/* BLACKOUT ROYALE — UI */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #07090d;
  --panel: #10151d;
  --line: #232c38;
  --txt: #dfe7ef;
  --dim: #7a8798;
  --green: #45ff9c;
  --red: #ff4646;
  --amber: #ffd166;
  --cyan: #4dd7ff;
}
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--txt);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif; -webkit-user-select: none; user-select: none;
  touch-action: none; }
.hidden { display: none !important; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: var(--bg); }

/* ── HUD ── */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#topbar { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  background: rgba(10,14,20,.72); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 18px; font-size: 20px; font-weight: 700; letter-spacing: 2px; }
#phase { margin-left: 10px; color: var(--amber); font-size: 13px; letter-spacing: 1px; }
.tsgreen { color: var(--green); margin-right: 14px; }
.tsred { color: var(--red); margin-left: 14px; }
#pingbox { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 12px; color: var(--dim);
  font-size: 12px; background: rgba(10,14,20,.6); padding: 4px 8px; border-radius: 6px; }
#pingbox .bad { color: var(--red); }
#killbox { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 34px); left: 12px;
  background: rgba(10,14,20,.72); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; font-size: 15px; font-weight: 800; }
#killbox .skull { color: var(--red); margin-right: 6px; }
#feed { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; text-align: right;
  font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
#feed div { background: rgba(10,14,20,.72); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 10px; animation: feedin .18s ease-out; }
#feed .k { color: var(--green); font-weight: 600; }
#feed .d { color: var(--red); font-weight: 600; }
#feed .me { border-color: #4a5a2a; }
@keyframes feedin { from { transform: translateX(14px); opacity: 0; } }

#scanwarn { position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  color: var(--red); font-weight: 800; letter-spacing: 3px; font-size: 18px;
  text-shadow: 0 0 14px rgba(255,70,70,.8); animation: pulse .5s infinite alternate; }
@keyframes pulse { from { opacity: .5; } to { opacity: 1; } }

#bottom { position: absolute; left: 50%; transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; }
#hpcol { display: flex; flex-direction: column; gap: 3px; }
#hpwrap { position: relative; width: 230px; height: 22px; background: rgba(10,14,20,.75);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#armorwrap { width: 230px; height: 6px; background: rgba(10,14,20,.75); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden; }
#armorbar { height: 100%; width: 0%; background: linear-gradient(90deg, #2f9fd9, #4dd7ff); transition: width .12s linear; }
#hpbar { height: 100%; width: 100%; background: linear-gradient(90deg, #2fd97c, #45ff9c);
  transition: width .12s linear; }
#hpbar.low { background: linear-gradient(90deg, #d92f2f, #ff6a45); }
#hptext { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #08130c; mix-blend-mode: normal; text-shadow: 0 0 4px rgba(255,255,255,.35); }
#ammo { font-size: 22px; font-weight: 800; letter-spacing: 1px; background: rgba(10,14,20,.75);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 14px; min-width: 92px; text-align: center; }
#ammo .lowmag { color: var(--amber); }
#reloadtag { display: block; font-size: 10px; color: var(--amber); letter-spacing: 2px; }

#abbtn { position: absolute; right: 26px; bottom: max(90px, calc(env(safe-area-inset-bottom) + 76px));
  width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--line);
  background: rgba(16,21,29,.8); color: var(--cyan); font-size: 30px; pointer-events: auto;
  display: flex; align-items: center; justify-content: center; flex-direction: column; }
#abbtn.ready { border-color: var(--cyan); box-shadow: 0 0 18px rgba(77,215,255,.35); }
#abbtn.active { border-color: var(--green); color: var(--green); box-shadow: 0 0 18px rgba(69,255,156,.5); }
#abcd { font-size: 15px; font-weight: 700; color: var(--dim); }

/* mobil ATES dugmesi: sag alt kose, yetenek onun ustunde (sag alt duzen) */
#firebtn { position: absolute; right: 22px; bottom: max(88px, calc(env(safe-area-inset-bottom) + 74px));
  width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgba(255,90,70,.6);
  background: rgba(30,14,12,.72); color: #ff6a55; font-size: 42px; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(255,90,70,.25); touch-action: none; user-select: none; }
#firebtn:active { background: rgba(60,20,16,.9); box-shadow: 0 0 30px rgba(255,90,70,.55); }
body.touch #abbtn { right: 38px; bottom: max(214px, calc(env(safe-area-inset-bottom) + 200px));
  width: 62px; height: 62px; font-size: 24px; }
#mutebtn { position: absolute; left: 12px; bottom: max(14px, env(safe-area-inset-bottom));
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(16,21,29,.8); color: var(--txt); font-size: 17px; pointer-events: auto; }

/* canlı sohbet: sol tarafta saydam akış */
#chatlog { position: absolute; left: 12px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 96px);
  display: flex; flex-direction: column; gap: 3px; max-width: 360px; pointer-events: none; }
.chatmsg { background: rgba(8,12,18,.48); border-radius: 6px; padding: 3px 9px; font-size: 13px;
  color: rgba(230,240,250,.92); animation: feedin .15s ease-out; transition: opacity .6s; }
.chatmsg.out { opacity: 0; }
.chatmsg b { color: #cfe3ff; font-weight: 700; }
.chatmsg.self b { color: var(--green); }
.chatmsg.friend b { color: var(--green); }
.chatmsg.enemy b { color: #ff8080; }
#chatin { position: absolute; left: 12px; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
  width: 300px; background: rgba(10,14,20,.88); border: 1px solid var(--line); border-radius: 8px;
  color: var(--txt); padding: 8px 11px; font-size: 14px; outline: none; pointer-events: auto; }
#chatin:focus { border-color: var(--cyan); }

#deathov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: radial-gradient(ellipse at center, rgba(60,0,0,.25), rgba(5,6,9,.78));
  backdrop-filter: blur(1px); }
#deathtxt { font-size: 38px; font-weight: 900; letter-spacing: 7px; color: var(--red);
  text-shadow: 0 0 26px rgba(255,70,70,.75); animation: deathpop .3s cubic-bezier(.2,1.5,.4,1); }
@keyframes deathpop { from { transform: scale(1.6); opacity: 0; } }
#deathkiller { display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  background: rgba(14,18,26,.85); border: 1px solid #3a2430; border-radius: 999px; padding: 6px 16px 6px 6px; }
#deathkiller img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--red);
  background: #0c1017; box-shadow: 0 0 14px rgba(255,70,70,.45); object-fit: cover; }
#deathkiller span { font-size: 14px; color: var(--txt); }
#deathcount { margin-top: 12px; font-size: 46px; font-weight: 900; color: #fff;
  text-shadow: 0 0 18px rgba(255,120,120,.6); font-variant-numeric: tabular-nums; }
#deathbar { width: 220px; height: 6px; background: rgba(255,255,255,.10); border-radius: 3px;
  margin-top: 6px; overflow: hidden; }
#deathbarfill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff6a45, var(--red)); }
#deathheroes { display: flex; gap: 7px; margin-top: 16px; pointer-events: auto; }
.dhero { width: 46px; height: 46px; padding: 4px; border: 2px solid var(--line); border-radius: 10px;
  background: rgba(13,17,25,.85); cursor: pointer; transition: border-color .1s, transform .1s; }
.dhero:hover { transform: translateY(-2px); }
.dhero img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dhero.sel { border-color: var(--green); box-shadow: 0 0 12px rgba(69,255,156,.45); }
#spectxt { margin-top: 12px; font-size: 13px; color: var(--dim); letter-spacing: 1px; }

#announce { position: absolute; top: 24%; left: 50%; transform: translateX(-50%);
  font-size: 30px; font-weight: 900; letter-spacing: 5px; color: var(--amber); white-space: nowrap;
  text-shadow: 0 0 24px rgba(255,209,102,.85); animation: annpop .38s cubic-bezier(.2,1.6,.4,1); }
@keyframes annpop { from { transform: translateX(-50%) scale(.4); opacity: 0; } }

#overov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; background: rgba(5,6,9,.82); }
#overtitle { font-size: 30px; font-weight: 900; letter-spacing: 5px; }
#overwinner { font-size: 19px; color: var(--amber); }
#newmatch { color: var(--dim); font-size: 14px; }

#board { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,9,.55); }
#board table, #overscores { border-collapse: collapse; background: rgba(13,18,25,.92);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 330px; }
#board th, #board td, #overscores th, #overscores td { padding: 7px 16px; text-align: left; font-size: 14px; }
#board th, #overscores th { color: var(--dim); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border-bottom: 1px solid var(--line); }
#board tr.me td, #overscores tr.me td { color: var(--green); }
#board td.num, #overscores td.num { text-align: center; font-weight: 700; }
.bottag { font-size: 10px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px;
  padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.teamdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.lvbadge { display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 15px; padding: 0 4px; margin-left: 6px; border-radius: 4px;
  font-size: 10px; font-weight: 900; color: #0a0d12; vertical-align: 1px; }

/* ── Menü ── */
/* margin:auto — içerik taşarsa da OYNA butonuna kadar düzgün scroll edilir */
#menu { position: fixed; inset: 0; z-index: 10; display: flex;
  background: radial-gradient(ellipse at 30% 20%, #101823 0%, #07090d 62%); overflow-y: auto; }
#menucard { width: min(860px, 96vw); padding: 22px 26px; margin: auto; }
#logo { font-size: clamp(34px, 7vw, 52px); font-weight: 900; letter-spacing: 6px; color: #f2f6fa;
  text-shadow: 0 0 26px rgba(255,233,168,.25); }
#logo span { color: var(--amber); text-shadow: 0 0 26px rgba(255,209,102,.5); }
#tagline { color: var(--dim); margin: 6px 0 20px; font-size: 14px; }
.row { display: flex; gap: 10px; margin-bottom: 18px; }
#nick { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  color: var(--txt); padding: 11px 14px; font-size: 16px; outline: none; }
#nick:focus { border-color: var(--amber); }
#nick.need { border-color: var(--amber); box-shadow: 0 0 12px rgba(255,209,102,.22); }
#langsel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--txt);
  padding: 0 10px; font-size: 14px; outline: none; max-width: 150px; }
/* profil kartı */
#profile { display: flex; align-items: center; gap: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
/* seviye amblemi: XP ilerlemesi rozetin etrafinda dolanan isik halkasi (kademe renkli) */
#lvlbadge { width: 62px; height: 62px; border-radius: 50%; padding: 4px; flex: none;
  background: conic-gradient(var(--amber) 0deg, rgba(255,255,255,.07) 0); }
#lvlinner { width: 100%; height: 100%; border-radius: 50%; background: #0d1119;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
#lvlnum { font-size: 22px; font-weight: 900; color: var(--amber); line-height: 1;
  text-shadow: 0 0 10px rgba(255,209,102,.4); }
#lvltag { font-size: 7px; letter-spacing: 1.5px; color: var(--dim); margin-top: 1px; }
#xpline { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
#xpcur { color: var(--txt); font-weight: 700; }
#xpnext { color: var(--dim); }
#profmid { flex: 1; min-width: 0; }
#xpbarwrap { height: 8px; background: #1c232e; border-radius: 4px; overflow: hidden; }
#xpbar { height: 100%; width: 0%; background: linear-gradient(90deg, #f0a83a, var(--amber));
  transition: width .4s ease; }
#standing { margin-top: 6px; font-size: 12px; color: var(--dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
#lbbtn { padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  background: #1a2230; color: var(--cyan); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; flex: none; }
#lbbtn:hover { border-color: var(--cyan); }

/* global liste modalı */
#lbmodal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center;
  justify-content: center; background: rgba(4,6,10,.75); }
#lbcard { width: min(480px, 92vw); max-height: 82vh; display: flex; flex-direction: column;
  background: #0e141d; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
#lbtitle { font-size: 18px; letter-spacing: 3px; color: var(--amber); margin-bottom: 4px; }
#lblegend { font-size: 11px; color: var(--dim); margin-bottom: 10px; }
#lbscroll { overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
#lbtable { width: 100%; border-collapse: collapse; }
#lbtable td, #lbtable th { padding: 7px 12px; font-size: 13px; text-align: left; }
#lbtable th { color: var(--dim); font-size: 10px; letter-spacing: 2px; position: sticky; top: 0;
  background: #0e141d; }
#lbtable tr.me td { color: var(--green); font-weight: 700; }
#lbtable td.num { text-align: right; font-variant-numeric: tabular-nums; }
#lbclose { margin-top: 12px; padding: 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  background: #1a2230; color: var(--txt); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

#overxp { font-size: 14px; color: var(--amber); }

#perfbox { position: fixed; right: 10px; bottom: 10px; z-index: 60; background: rgba(8,10,14,.85);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: 12px/1.5 Consolas, monospace;
  color: #9fe8b0; pointer-events: none; white-space: pre; }

#modes { display: flex; gap: 8px; margin-bottom: 16px; }
.modebtn { flex: 1; padding: 10px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  background: var(--panel); color: var(--dim); border: 2px solid var(--line); border-radius: 9px; cursor: pointer; }
.modebtn.sel { color: var(--txt); border-color: var(--amber); box-shadow: 0 0 14px rgba(255,209,102,.15); }
/* vitrin: seçili kahraman ortada, büyük, kart görünümlü */
#showcase { position: relative; display: flex; align-items: center; gap: 22px;
  background: linear-gradient(160deg, #131a26 0%, #0d1119 70%);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px;
  box-shadow: inset 0 0 60px rgba(69,255,156,.05); }
#shlvl { position: absolute; top: 12px; right: 14px; font-size: 12px; font-weight: 800;
  letter-spacing: 1px; color: var(--amber); border: 1px solid rgba(255,209,102,.5);
  border-radius: 999px; padding: 4px 12px; background: rgba(20,16,6,.6); }
#shimg { width: 190px; height: 190px; object-fit: contain; flex: none;
  filter: drop-shadow(0 0 26px rgba(69,255,156,.30)); animation: shfloat 3.2s ease-in-out infinite; }
@keyframes shfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
#shinfo { flex: 1; min-width: 0; }
#shname { font-size: 26px; font-weight: 900; letter-spacing: 3px; }
#shdesc { color: var(--cyan); font-size: 13px; margin: 4px 0 2px; }
#shpass { color: var(--amber); font-size: 12px; margin: 2px 0; }
#shab { color: var(--dim); font-size: 12px; margin-bottom: 10px; }
#shstats .stat { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); margin-top: 5px; }
#shstats .stat b { width: 38px; font-weight: 400; }
#shstats .bar { flex: 1; height: 6px; background: #1c232e; border-radius: 3px; overflow: hidden; }
#shstats .bar i { display: block; height: 100%; border-radius: 3px; }

/* alt şerit: küçük kahraman kareleri */
#heroes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 14px; }
.hero { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 6px;
  cursor: pointer; transition: border-color .12s, transform .12s; aspect-ratio: 1; }
.hero:hover { transform: translateY(-2px); }
.hero.sel { border-color: var(--green); box-shadow: 0 0 16px rgba(69,255,156,.25); }
.hero img { width: 100%; height: 100%; object-fit: contain; display: block; }

#invbtn { width: 100%; padding: 11px; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  background: #14202e; color: var(--cyan); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; margin-bottom: 10px; }
#invbtn:hover { border-color: var(--cyan); }
#invnote { text-align: center; color: var(--amber); font-size: 12px; margin: -4px 0 10px; }
#playbtn { width: 100%; padding: 15px; font-size: 19px; font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(180deg, #ffd166, #f0a83a); color: #241a05; border: none; border-radius: 10px;
  cursor: pointer; box-shadow: 0 4px 24px rgba(255,209,102,.28); }
#playbtn:hover { filter: brightness(1.07); }
#playbtn:disabled { filter: grayscale(.7) brightness(.7); cursor: wait; }
#controlstxt { color: var(--dim); font-size: 12px; margin-top: 14px; text-align: center; line-height: 1.6; }
#conn { text-align: center; color: var(--amber); margin-top: 10px; font-size: 14px; }
#conn.err { color: var(--red); }

/* kompakt menü: sol sütun kontroller + sağda dikey kahraman KARTI */
#toprow { display: flex; gap: 16px; align-items: stretch; margin-bottom: 14px; }
#topleft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
#topleft .row { margin-bottom: 0; }
#nick { padding: 9px 12px; font-size: 14px; }
#langsel { font-size: 13px; max-width: 110px; }
#profile { margin-bottom: 0; padding: 8px 12px; }
#lvlbadge { width: 46px; height: 46px; }
#lvlnum { font-size: 17px; }
#modes { margin-bottom: 0; }
.modebtn { padding: 9px; font-size: 12px; }
#invbtn { margin-bottom: 0; padding: 10px; font-size: 12px; }
#lbpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
#lbhead { font-size: 10px; letter-spacing: 1.5px; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
#lbmini { width: 100%; border-collapse: collapse; }
#lbmini td { font-size: 12px; padding: 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#lbmini td.rk { width: 24px; color: var(--dim); }
#lbmini td.num { text-align: right; color: var(--amber); font-variant-numeric: tabular-nums; }
#lbmini tr.me td { color: var(--green); font-weight: 700; }
/* ilk 3: madalyali serit satirlar */
#lbmini tr.r1 td { background: linear-gradient(90deg, rgba(255,209,102,.18), rgba(255,209,102,.03)); }
#lbmini tr.r2 td { background: linear-gradient(90deg, rgba(200,214,229,.15), rgba(200,214,229,.03)); }
#lbmini tr.r3 td { background: linear-gradient(90deg, rgba(224,133,79,.16), rgba(224,133,79,.03)); }
#lbmini tr.r1 td:first-child, #lbmini tr.r2 td:first-child, #lbmini tr.r3 td:first-child { border-radius: 6px 0 0 6px; }
#lbmini tr.r1 td:last-child, #lbmini tr.r2 td:last-child, #lbmini tr.r3 td:last-child { border-radius: 0 6px 6px 0; }
#lbmini .medal { font-size: 13px; }
#lbhead { text-align: center; }
#invnote { margin: 0; }
#topleft::after { content: ''; flex: 1; } /* boşluk alta itilsin */

#showcase { flex: none; width: 330px; flex-direction: column; text-align: center;
  padding: 16px 18px 14px; margin-bottom: 0; gap: 0;
  border: 1px solid rgba(69,255,156,.22);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(69,255,156,.08) 0%, transparent 60%),
    linear-gradient(160deg, #131a26 0%, #0d1119 70%);
  box-shadow: 0 10px 34px rgba(0,0,0,.45), inset 0 0 60px rgba(69,255,156,.04); }
#shimg { width: 200px; height: 200px; margin: 6px auto 4px; }
#shinfo { text-align: center; }
#shname { font-size: 24px; }
#shdesc { font-size: 12px; }
#shab { font-size: 11px; margin-bottom: 8px; }
#shstats { text-align: left; }

/* kart iskeleti SABIT: metin alanlarina rezerve yukseklik — karakter degisince zipplama yok */
#shname { min-height: 30px; line-height: 30px; }
#shdesc { min-height: 36px; line-height: 18px; }
#shpass { min-height: 18px; line-height: 18px; }
#shab { min-height: 32px; line-height: 16px; }
#shimg { flex: none; }

@media (max-width: 760px) {
  #toprow { flex-direction: column-reverse; }
  #showcase { width: 100%; }
}

@media (max-width: 820px) {
  #heroes { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  #heroes { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero canvas { height: 44px; }
  .hero .abname { min-height: 30px; }
  #hpwrap, #armorwrap { width: 150px; }
  #ammo { font-size: 18px; min-width: 74px; }
}

/* mobil dikey tutuş uyarısı — yalnız oyun sırasında (HUD görünürken) */
#rotatehint { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  #hud:not(.hidden) ~ #rotatehint, #hud:not(.hidden) #rotatehint { display: flex; }
  #rotatehint { position: absolute; inset: 0; z-index: 30; background: rgba(5,6,9,.9);
    flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
  #rotatehint span { font-size: 44px; animation: spinhint 2s infinite; }
  #rotatehint p { color: var(--txt); font-size: 16px; letter-spacing: 1px; }
}
@keyframes spinhint { 0%, 60% { transform: rotate(0); } 80%, 100% { transform: rotate(90deg); } }
