/* Son Hamle arayüzü. Giriş sayfası yedili oyun standardındadır: menü solda, oyunun canlı görüntüsü sağda (telefonda menü görüntünün üstünde). */
:root { --bg: #141038; --ink: #fff; --dim: #c4c3ee; --gold: #ffd23f; --org: #f59f0b; --red: #f43f5e; --blue: #6366f1; --grn: #2dd4bf; --teal: #5eead4; --card: rgba(20, 16, 56, .95); --line: rgba(255, 255, 255, .16); --b1: #3b3591; --b2: #1c1752; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 500 16px/1.35 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- düğmeler ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 4px 16px 0; border: 0; border-radius: 16px; background: var(--b1); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; cursor: pointer; box-shadow: 0 5px 0 var(--b2), 0 8px 18px rgba(0, 0, 0, .3); transition: transform .08s, box-shadow .08s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b2); }
.btn.pri { background: linear-gradient(180deg, #ffe680, var(--gold) 45%, var(--org)); color: #3a2600; box-shadow: 0 5px 0 #a3650a, 0 8px 22px rgba(245, 159, 11, .4); }
.btn.pri:active { box-shadow: 0 1px 0 #a3650a; }
.btn.grn { background: linear-gradient(180deg, #99f6e4, var(--grn) 50%, #0d9488); color: #042f2e; box-shadow: 0 5px 0 #0f5e57, 0 8px 22px rgba(45, 212, 191, .3); }
.btn.grn:active { box-shadow: 0 1px 0 #0f5e57; }
.btn.red { background: linear-gradient(180deg, #f47c80, var(--red)); box-shadow: 0 5px 0 #8c1d22; }
.btn.xl { min-height: 66px; font-size: 26px; border-radius: 22px; }
.btn.sm { min-height: 44px; font-size: 14.5px; padding: 3px 10px 0; border-radius: 14px; }
.btn.xs { min-height: 34px; width: auto; font-size: 13px; padding: 2px 10px 0; border-radius: 11px; box-shadow: 0 3px 0 var(--b2); }
.btn.ghost { background: rgba(255, 255, 255, .1); box-shadow: none; font-weight: 700; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn:focus-visible, input:focus-visible, .chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- ana menü ---------- */
.menu { position: fixed; inset: 0 auto 0 0; width: min(430px, 100%); padding: max(14px, env(safe-area-inset-top)) 22px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; gap: 11px; overflow-y: auto; touch-action: pan-y; background: linear-gradient(90deg, rgba(20, 16, 56, .95) 62%, rgba(20, 16, 56, 0)); }
.back { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 22px; color: var(--dim); text-decoration: none; font-weight: 700; font-size: 14px; }
.logo { margin: 18px 0 0; font-size: clamp(50px, 14vw, 74px); line-height: .9; font-weight: 800; letter-spacing: .01em; color: #fff; transform: rotate(-3deg); text-shadow: 0 4px 0 #4c1d95, 0 8px 0 #0b0828, 0 12px 22px rgba(0, 0, 0, .45); }
.logo span { color: var(--teal); text-shadow: 0 4px 0 #0f766e, 0 8px 0 #0b0828, 0 0 28px rgba(94, 234, 212, .55); }
.tagline { margin: 4px 0; color: var(--dim); font-weight: 700; font-size: 17px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lbtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 40px; } .lbtop .btn.xs { width: auto; padding: 0 12px; white-space: nowrap; }
.lbjoin { display: flex; gap: 6px; } .lbjoin input { width: 112px; min-height: 36px; padding: 4px 8px; font-size: 15px; letter-spacing: .12em; text-align: center; }
.joinrow { display: grid; grid-template-columns: 1fr 100px; gap: 9px; margin-top: 2px; }
input { min-height: 44px; padding: 3px 14px 0; border-radius: 14px; border: 2px solid var(--line); background: rgba(0, 0, 0, .3); font-weight: 800; font-size: 17px; user-select: text; -webkit-user-select: text; min-width: 0; width: 100%; }
#code, .codein { text-align: center; letter-spacing: .3em; text-transform: uppercase; } #code::placeholder, .codein::placeholder { letter-spacing: .08em; font-size: 14px; color: #9d9bd6; }
#menuMsg { min-height: 20px; margin: 0; text-align: center; color: #ffb3a8; font-weight: 700; font-size: 14.5px; }
.fine { margin: 0; text-align: center; color: #9d9bd6; font-size: 13px; } .fine a { color: var(--gold); font-weight: 700; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---------- maç göstergeleri ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
.hbtn { position: absolute; top: max(6px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: 44px; height: 40px; border: 0; border-radius: 12px; background: rgba(14, 11, 40, .82); font-size: 20px; font-weight: 800; pointer-events: auto; cursor: pointer; }
.hbtn.chat { right: calc(max(8px, env(safe-area-inset-right)) + 52px); }
.fsbtn[hidden] { display: none; } .fsbtn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; } .fsbtn .i2, .fsbtn.on .i1 { display: none; } .fsbtn.on .i2 { display: inline; }
.hbtn.hfs { right: auto; left: max(8px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: center; }
.mfs { position: absolute; top: max(6px, env(safe-area-inset-top)); right: 16px; display: flex; align-items: center; gap: 6px; height: 34px; padding: 2px 11px 0; border: 2px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, .25); color: var(--dim); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; } .mfs svg { width: 17px; height: 17px; stroke: var(--dim); }
#big { position: absolute; top: 26%; left: 0; right: 0; text-align: center; pointer-events: none; }
#big div { display: inline-block; padding: 6px 28px 2px; border-radius: 22px; font-weight: 800; font-size: clamp(40px, 11vw, 84px); line-height: 1; text-shadow: 0 5px 0 rgba(0, 0, 0, .35); animation: big 2.6s forwards; }
#big small { display: block; font-size: .3em; margin-top: 4px; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
@keyframes big { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 10% { transform: scale(1.15) rotate(2deg); opacity: 1; } 18% { transform: scale(1) rotate(0); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
#toast { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
#toast div { padding: 3px 16px 0; border-radius: 13px; background: rgba(14, 11, 40, .85); font-weight: 800; font-size: 16px; animation: toast 2.4s forwards; }
@keyframes toast { 0% { transform: scale(.6); opacity: 0; } 10% { transform: scale(1.06); opacity: 1; } 16% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
#chatLog { position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: max(54px, calc(env(safe-area-inset-bottom) + 48px)); width: min(420px, 70vw); display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; font-weight: 700; }
#chatLog div { align-self: flex-start; max-width: 100%; padding: 2px 10px 0; border-radius: 9px; background: rgba(14, 11, 40, .7); animation: fade 9s forwards; overflow-wrap: anywhere; }
#chatLog div b { margin-right: 4px; } #chatLog div.sys { color: var(--dim); font-weight: 600; font-style: italic; }
@keyframes fade { 85% { opacity: 1; } 100% { opacity: 0; } }
#chatForm { position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 20px)); pointer-events: auto; }
#chatForm input { min-height: 40px; font-size: 15px; background: rgba(14, 11, 40, .9); }
#keysHint { position: absolute; bottom: max(8px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); text-shadow: 0 1px 2px #000; animation: fade 12s forwards; }
#keysHint b { color: #fff; }

#net { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); padding: 6px 16px 3px; border-radius: 12px; background: var(--red); font-weight: 800; z-index: 50; }

/* ---------- pencereler ---------- */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 12px; background: rgba(6, 5, 20, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); touch-action: pan-y; }
.box { position: relative; width: min(460px, 100%); max-height: 100%; overflow-y: auto; padding: 20px 18px 18px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); text-align: center; display: flex; flex-direction: column; gap: 10px; animation: pop .3s cubic-bezier(.2, 1.5, .4, 1); }
.box.wide { width: min(760px, 100%); }
.box > * { flex-shrink: 0; }
.box h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1; color: var(--gold); text-shadow: 0 3px 0 #a3650a; } .box h2.lose { color: #f47c80; text-shadow: 0 3px 0 #8c1d22; }
.box h3 { margin: 4px 0 0; font-size: 14px; color: var(--dim); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.box p { margin: 0; } .box .dim { color: var(--dim); font-size: 14.5px; } .box a { color: var(--gold); font-weight: 800; }
.x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--dim); font-size: 22px; cursor: pointer; z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: 1 0 auto; min-width: 58px; padding: 6px 8px 3px; border-radius: 13px; border: 2px solid transparent; background: rgba(255, 255, 255, .09); text-align: center; cursor: pointer; line-height: 1.15; font-weight: 800; font-size: 14.5px; }
.chip small { display: block; font-size: 11.5px; color: var(--dim); font-weight: 700; }
.chip.on { border-color: var(--gold); background: rgba(255, 210, 63, .18); }
.chip[disabled] { cursor: default; opacity: .75; } .chip[disabled]:not(.on) { opacity: .4; }
.tog { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tog::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 2px solid rgba(255, 255, 255, .5); } .tog.on::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 2px #133; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .stats.four { grid-template-columns: repeat(4, 1fr); }
.stats div { padding: 8px 4px 5px; border-radius: 16px; background: rgba(255, 255, 255, .09); line-height: 1.15; } .stats small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 700; } .stats b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bigscore { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 44px; font-weight: 800; line-height: 1; } .bigscore span { font-size: 15px; padding: 2px 10px 0; border-radius: 10px; } .bigscore .r { background: var(--red); } .bigscore .b { background: var(--blue); }
.say { font-size: 17px; font-weight: 700; line-height: 1.3; } .say b { color: var(--gold); }
.codebig { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: .12em; color: var(--gold); text-shadow: 0 4px 0 #a3650a; user-select: all; -webkit-user-select: all; padding-left: .12em; }
.share3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.note { padding: 8px 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 14px; color: var(--dim); }
.how { text-align: left; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; } .how b { color: var(--gold); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; font-weight: 800; } .badges span { padding: 2px 10px 0; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; } .field2 label, .lbl { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 800; color: var(--dim); text-align: left; }
/* oda: takımlar */
.teams { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; text-align: left; }
.col { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .06); min-width: 0; }
.col.t1 { box-shadow: inset 0 3px 0 var(--red); } .col.t2 { box-shadow: inset 0 3px 0 var(--blue); } .col.t0 { box-shadow: inset 0 3px 0 #9aa4b2; }
.col > b { font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.pp { display: flex; align-items: center; gap: 4px; padding: 4px 6px 2px 9px; border-radius: 11px; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: 14px; min-height: 34px; }
.pp span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp.me { background: rgba(255, 210, 63, .2); } .pp.off { opacity: .5; }
.pp button { flex: 0 0 auto; width: 24px; height: 26px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 12px; cursor: pointer; padding: 0; }
.pp button:hover { background: rgba(255, 255, 255, .28); }
.col .btn.xs { width: 100%; }
.lchat { display: flex; flex-direction: column; gap: 6px; }
.lchat .log { height: 110px; overflow-y: auto; text-align: left; font-size: 14px; padding: 6px 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); user-select: text; -webkit-user-select: text; touch-action: pan-y; }
.lchat .log div { overflow-wrap: anywhere; } .lchat .log .sys { color: var(--dim); font-style: italic; }
.lchat form { display: grid; grid-template-columns: 1fr 80px; gap: 7px; } .lchat input { min-height: 40px; font-size: 15px; }
.rlist { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; touch-action: pan-y; }
.ritem { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 12px 5px; border-radius: 14px; background: rgba(255, 255, 255, .08); text-align: left; cursor: pointer; border: 0; width: 100%; }
.ritem:hover { background: rgba(255, 255, 255, .15); } .ritem b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ritem small { color: var(--dim); font-weight: 700; font-size: 12.5px; } .ritem em { font-style: normal; font-weight: 800; font-size: 15px; white-space: nowrap; }
.sect { display: flex; flex-direction: column; gap: 6px; }
details.more { text-align: left; } details.more summary { cursor: pointer; font-weight: 800; color: var(--dim); font-size: 14px; padding: 4px 0; }

@media (max-width: 700px) {
  .menu { inset: 0; width: 100%; background: linear-gradient(180deg, rgba(20, 16, 56, .9), rgba(20, 16, 56, .62)); padding-left: max(22px, calc(50% - 200px)); padding-right: max(22px, calc(50% - 200px)); }
  .back { left: max(22px, calc(50% - 200px)); }
  .teams { grid-template-columns: 1fr 1fr; } .col.t0 { grid-column: 1 / -1; order: 3; }
  #keysHint { display: none; }
}
@media (max-height: 640px) { .menu { justify-content: flex-start; gap: 8px; } .logo { font-size: 44px; margin-top: 22px; } .tagline, .fine { display: none; } .btn.xl { min-height: 54px; font-size: 22px; } .btn { min-height: 44px; } }


/* ---------- Son Hamle: üst gösterge ---------- */
.top { position: absolute; top: max(6px, env(safe-area-inset-top)); left: 60px; right: 112px; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 3; }
.turn { display: flex; flex-direction: column; align-items: center; padding: 3px 12px 1px; border-radius: 14px; background: rgba(14, 11, 40, .85); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); line-height: 1.05; white-space: nowrap; }
.turn b { font-size: 19px; letter-spacing: .04em; } .turn small { font-size: 12px; color: var(--dim); font-weight: 800; }
.turn.fin { background: linear-gradient(180deg, #f97316, #be123c); } .turn.fin small { color: #fff; }
.plist { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-width: 0; }
.plist span { display: flex; align-items: center; gap: 4px; padding: 2px 8px 0 5px; border-radius: 11px; background: rgba(14, 11, 40, .82); font-weight: 800; font-size: 13px; white-space: nowrap; max-width: 150px; }
.plist span i { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); }
.plist span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; } .plist span small { color: #fb7185; font-size: 11px; letter-spacing: -1px; }
.plist span.dead { opacity: .4; text-decoration: line-through; } .plist span.me { box-shadow: inset 0 0 0 2px var(--gold); } .plist span.rdy::after { content: '✓'; color: var(--teal); }
#arenaMsg { position: absolute; top: calc(max(6px, env(safe-area-inset-top)) + 46px); left: 0; right: 0; text-align: center; pointer-events: none; }
#arenaMsg span { display: inline-block; padding: 2px 12px 0; border-radius: 10px; font-weight: 800; font-size: 14px; background: rgba(14, 11, 40, .8); }
#arenaMsg span.hot { background: #be123c; animation: hot 1s infinite; }
@keyframes hot { 50% { background: #f43f5e; } }
#big { top: 30%; }
#big div.fin { color: #fff; background: linear-gradient(180deg, #fb923c, #e11d48); padding: 10px 30px 4px; box-shadow: 0 0 60px rgba(244, 63, 94, .7); animation: big 2.8s forwards; }
#big div.win { color: var(--gold); text-shadow: 0 5px 0 #a3650a, 0 0 30px rgba(255, 210, 63, .6); animation: winb 3.4s forwards; }
@keyframes winb { 0% { transform: scale(.3); opacity: 0; } 12% { transform: scale(1.18); opacity: 1; } 22% { transform: scale(1); } 90% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- planlama paneli ---------- */
#panel { position: absolute; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(720px, calc(100vw - 16px)); padding: 8px 10px 6px; border-radius: 22px; background: rgba(20, 16, 56, .92); border: 2px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); pointer-events: auto; z-index: 4; }
#panel.done .acts, #panel.done .dpad { opacity: .45; pointer-events: none; }
.timer { position: relative; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 7px; }
.timer i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, var(--teal), #818cf8); border-radius: 9px; }
.timer.low i { background: linear-gradient(90deg, #fb7185, #f97316); }
.timer span { position: absolute; inset: 0; text-align: center; font-weight: 800; font-size: 13px; line-height: 19px; text-shadow: 0 1px 2px #000; }
.prow { display: grid; grid-template-columns: 1fr auto 130px; gap: 9px; align-items: center; }
.acts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 3px 2px 1px; border: 2px solid transparent; border-radius: 13px; background: rgba(255, 255, 255, .09); color: #fff; font: inherit; font-weight: 800; font-size: 12px; line-height: 1.05; cursor: pointer; }
.act b { font-size: 21px; line-height: 1.1; font-weight: 400; } .act kbd { position: absolute; top: 2px; left: 5px; font: 700 10px system-ui; color: var(--dim); opacity: .7; }
.act:hover { background: rgba(255, 255, 255, .16); } .act.on { border-color: var(--gold); background: rgba(255, 210, 63, .2); }
.act.sk { background: rgba(167, 139, 250, .16); } .act.sk.on { background: rgba(167, 139, 250, .38); border-color: #c4b5fd; }
.act[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 34px); gap: 3px; }
.dpad button { border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; cursor: pointer; padding: 0; }
.dpad button[data-d="0"] { grid-column: 2; grid-row: 1; } .dpad button[data-d="3"] { grid-column: 1; grid-row: 2; } .dpad .mid { grid-column: 2; grid-row: 2; background: rgba(255, 255, 255, .05); } .dpad button[data-d="1"] { grid-column: 3; grid-row: 2; } .dpad button[data-d="2"] { grid-column: 2; grid-row: 3; }
.dpad button.on { background: var(--teal); color: #042f2e; } .dpad button[disabled] { opacity: .25; } .dpad.need button:not(.mid):not([disabled]) { animation: need 1s infinite; }
@keyframes need { 50% { box-shadow: 0 0 0 3px var(--gold); } }
.btn.ok { min-height: 108px; font-size: 19px; flex-direction: column; gap: 0; line-height: 1.1; } .btn.ok small { font-size: 12px; font-weight: 700; opacity: .8; }
.btn.ok.wait { background: rgba(255, 255, 255, .12); color: var(--dim); box-shadow: none; }
#pHint { margin: 5px 0 0; min-height: 18px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--dim); }
#pHint b { color: #fff; }
.tgts { display: inline-flex; flex-wrap: wrap; gap: 5px; justify-content: center; vertical-align: middle; } .tgts button { padding: 2px 10px 0; border-radius: 10px; border: 2px solid transparent; background: rgba(167, 139, 250, .25); color: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; } .tgts button.on { border-color: #c4b5fd; background: rgba(167, 139, 250, .5); }
#keysHint { bottom: auto; top: calc(max(6px, env(safe-area-inset-top)) + 74px); }
#hud #toast { top: calc(max(6px, env(safe-area-inset-top)) + 100px); }
#chatLog { bottom: auto; top: 112px; }
#chatForm { bottom: auto; top: 60px; }

/* ---------- lobi: oyuncular ---------- */
.seats { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.seat { display: flex; align-items: center; gap: 7px; padding: 5px 8px 3px; border-radius: 13px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: 15px; min-height: 40px; }
.seat > i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .55); box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .25); }
.seat > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .seat.me { background: rgba(255, 210, 63, .18); } .seat.off { opacity: .5; }
.seat em { font-style: normal; font-size: 12px; padding: 1px 7px 0; border-radius: 8px; background: rgba(255, 255, 255, .12); white-space: nowrap; } .seat em.rd { background: var(--teal); color: #042f2e; }
.seat button { flex: 0 0 auto; height: 28px; min-width: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 12.5px; cursor: pointer; padding: 0 6px; font-weight: 800; }
.tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tcols > div { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 16px; background: rgba(255, 255, 255, .05); min-width: 0; }
.tcols h4 { margin: 0; font-size: 14px; text-align: left; }
.cols { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.cbtn { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .5); cursor: pointer; padding: 0; box-shadow: inset -4px -6px 0 rgba(0, 0, 0, .25); }
.cbtn.on { outline: 3px solid var(--gold); outline-offset: 2px; } .cbtn[disabled] { opacity: .2; cursor: default; }
.rank { width: 100%; border-collapse: collapse; font-size: 13.5px; } .rank th { color: var(--dim); font-size: 11.5px; font-weight: 800; padding: 2px 3px; }
.rank td { padding: 4px 3px 2px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; } .rank td:first-child, .rank th:first-child { text-align: left; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.rank td i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; } .rank tr.w td { color: var(--gold); }
.mwrap { overflow-x: auto; }
.winner { font-size: 34px; font-weight: 800; line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 24px var(--tc, transparent); overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .top { left: 54px; right: 104px; flex-direction: column; gap: 3px; } .plist span em { display: none; } .plist span { padding: 2px 6px 0 4px; }
  .prow { grid-template-columns: 1fr auto; grid-template-areas: "acts acts" "ok dpad"; } .acts { grid-area: acts; } .dpad { grid-area: dpad; } .btn.ok { grid-area: ok; min-height: 46px; height: 100%; }
  #arenaMsg { top: calc(max(6px, env(safe-area-inset-top)) + 72px); } #hud #toast { top: calc(max(6px, env(safe-area-inset-top)) + 104px); }
  .acts { gap: 4px; } .act { min-height: 46px; font-size: 10.5px; } .act b { font-size: 18px; } .act kbd { display: none; }
  .dpad { grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 30px); }
  #keysHint { display: none; }
}
@media (max-height: 520px) { .act { min-height: 40px; } .act b { font-size: 16px; } .btn.ok { min-height: 86px; } }
