/* Köstebek! 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: #1e1424; --ink: #fff; --dim: #dccbb8; --gold: #ffd23f; --org: #f59f0b; --red: #f43f5e; --blue: #3b9bff; --grn: #4fd17a; --teal: #7ee08a; --card: rgba(38, 26, 32, .97); --line: rgba(255, 235, 210, .16); --b1: #7a5434; --b2: #45301d; }
* { 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(24, 16, 22, .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(24, 16, 22, .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(24, 16, 22, .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(24, 16, 22, .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; }

/* ---------- 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; }



/* ---------- Köstebek!: renkler ve menü ---------- */
.menu { background: linear-gradient(90deg, rgba(30, 20, 36, .94) 62%, rgba(30, 20, 36, 0)); }
.logo { text-shadow: 0 4px 0 #6b4330, 0 8px 0 #1b1210, 0 12px 22px rgba(0, 0, 0, .45); }
.logo span { color: var(--gold); text-shadow: 0 4px 0 #a3650a, 0 8px 0 #1b1210, 0 0 28px rgba(255, 210, 63, .5); }
.btn.xs { box-shadow: 0 3px 0 var(--b2); }

/* ---------- üst: altın-çanta, oyuncular, süre ---------- */
.stat { position: absolute; top: max(6px, env(safe-area-inset-top)); left: calc(max(8px, env(safe-area-inset-left)) + 52px); display: flex; flex-wrap: wrap; gap: 5px; max-width: min(430px, 44vw); }
.stat span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 1px; border-radius: 12px; background: rgba(24, 16, 22, .84); font-weight: 800; font-size: 16px; white-space: nowrap; }
.stat .gold b { color: var(--gold); } .stat .bag.full { background: #9b1c31; animation: blink .8s infinite alternate; } .stat small { color: var(--dim); font-size: 12px; }
@keyframes blink { to { filter: brightness(1.35); } }
.board { position: absolute; top: calc(max(6px, env(safe-area-inset-top)) + 40px); left: calc(max(8px, env(safe-area-inset-left)) + 52px); display: flex; flex-direction: column; gap: 3px; max-width: 220px; }
.board .r { display: flex; align-items: center; gap: 6px; padding: 1px 9px 0 6px; border-radius: 10px; background: rgba(24, 16, 22, .74); font-weight: 800; font-size: 13px; white-space: nowrap; line-height: 1.5; }
.board .r i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; border: 2px solid rgba(0, 0, 0, .5); }
.board .r span { flex: 1; overflow: hidden; text-overflow: ellipsis; } .board .r b { color: var(--gold); font-size: 12px; } .board .r.me { background: rgba(120, 90, 30, .8); } .board .r.off { opacity: .5; }
.clock { position: absolute; top: max(6px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 2px 16px 1px; border-radius: 14px; background: rgba(24, 16, 22, .84); text-align: center; line-height: 1.05; }
.clock b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; } .clock small { color: var(--dim); font-size: 12px; font-weight: 800; } .clock.chase { background: #8a1d2c; animation: blink .6s infinite alternate; }
.side { position: absolute; top: calc(max(6px, env(safe-area-inset-top)) + 48px); right: max(8px, env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: 186px; }
#mini { width: 186px; height: auto; aspect-ratio: 180 / 96; border-radius: 12px; border: 2px solid rgba(255, 235, 210, .35); background: #0b0912; pointer-events: auto; cursor: zoom-in; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.side.big { top: 50%; right: 50%; transform: translate(50%, -50%); width: min(92vw, 900px); z-index: 15; }
.side.big #mini { width: 100%; cursor: zoom-out; }
.radar { display: flex; align-items: flex-end; gap: 3px; padding: 4px 9px 3px; border-radius: 11px; background: rgba(24, 16, 22, .84); height: 30px; }
.radar span { font-size: 15px; align-self: center; } .radar i { width: 7px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.radar i:nth-of-type(1) { height: 5px; } .radar i:nth-of-type(2) { height: 9px; } .radar i:nth-of-type(3) { height: 13px; } .radar i:nth-of-type(4) { height: 17px; } .radar i:nth-of-type(5) { height: 21px; }
.radar i.on { background: #6effaa; box-shadow: 0 0 8px #6effaa; } .radar em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--dim); align-self: center; margin-left: 3px; }
.hints { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hints div { padding: 3px 10px 1px; border-radius: 10px; background: rgba(120, 84, 10, .88); font-weight: 800; font-size: 13px; max-width: 186px; text-align: right; line-height: 1.25; }
#banner { position: absolute; top: calc(max(6px, env(safe-area-inset-top)) + 56px); left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
#banner span { padding: 4px 18px 2px; border-radius: 14px; background: rgba(24, 16, 22, .88); font-weight: 800; font-size: 17px; animation: toast 3.2s forwards; text-align: center; max-width: 90vw; }
#banner span.hot { background: #a3122c; } #banner span.gold { background: #8a5a06; }
#big div.go { color: var(--gold); } #big div.win { color: var(--gold); } #big div.bad { color: #ff8a8a; } #big div.hot { color: #ffe066; text-shadow: 0 5px 0 #8a1d2c, 0 0 30px rgba(255, 80, 80, .6); }
#toast { top: auto; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 120px); }

/* ---------- alt: eşyalar, dükkân ve kap düğmeleri ---------- */
.items { position: absolute; bottom: max(30px, calc(env(safe-area-inset-bottom) + 26px)); left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: auto; }
.it { position: relative; width: 52px; height: 52px; border: 2px solid rgba(255, 235, 210, .25); border-radius: 13px; background: rgba(24, 16, 22, .84); font-size: 24px; cursor: pointer; padding: 0; }
.it b { position: absolute; right: 3px; bottom: 0; font-size: 13px; font-weight: 800; color: var(--gold); } .it kbd { position: absolute; left: 4px; top: 1px; font: 800 10px sans-serif; color: var(--dim); }
.it.none { opacity: .35; } .it.act { border-color: #6effaa; box-shadow: 0 0 10px #6effaa; }
.prompts { position: absolute; left: 0; right: 0; bottom: calc(max(30px, env(safe-area-inset-bottom) + 26px) + 64px); display: flex; justify-content: center; gap: 10px; pointer-events: none; }
.pbtn { pointer-events: auto; border: 0; border-radius: 16px; padding: 7px 18px 4px; font-weight: 800; font-size: 19px; cursor: pointer; color: #2b1a00; background: linear-gradient(180deg, #ffe680, var(--gold) 45%, var(--org)); box-shadow: 0 5px 0 #a3650a; }
.pbtn kbd { font: 800 12px sans-serif; padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .2); margin-left: 4px; vertical-align: 2px; }
.pbtn.grab { color: #fff; background: linear-gradient(180deg, #ff8a8a, var(--red)); box-shadow: 0 5px 0 #8c1d22; animation: blink .4s infinite alternate; }

/* dokunmatik */
.touch .pad { position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); width: 168px; height: 168px; pointer-events: auto; }
.touch .pad button, .touch .acts button { position: absolute; width: 60px; height: 60px; border: 2px solid rgba(255, 235, 210, .3); border-radius: 18px; background: rgba(24, 16, 22, .55); color: #fff; font-size: 24px; touch-action: none; }
.touch .pad [data-k=U] { left: 54px; top: 0; } .touch .pad [data-k=L] { left: 0; top: 54px; } .touch .pad [data-k=R] { left: 108px; top: 54px; } .touch .pad [data-k=D] { left: 54px; top: 108px; }
.touch .acts { position: absolute; right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); width: 176px; height: 150px; pointer-events: auto; }
.touch .acts [data-k=DIG] { right: 0; bottom: 0; width: 84px; height: 84px; border-radius: 26px; font-size: 32px; background: rgba(160, 100, 20, .7); }
.touch .acts [data-k=J] { right: 92px; bottom: 6px; width: 70px; height: 70px; } .touch .acts [data-k=bag] { right: 14px; bottom: 96px; width: 52px; height: 48px; font-size: 22px; }
.touch button small { display: block; font-size: 10px; font-weight: 800; line-height: 1; margin-top: -2px; }
.touch button.on { background: rgba(255, 210, 63, .5); }
body.touch .items { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 176px); left: auto; right: max(10px, env(safe-area-inset-right)); transform: none; flex-direction: column; gap: 4px; }
body.touch .it { width: 46px; height: 46px; font-size: 21px; } body.touch .it kbd { display: none; }
body.touch .prompts { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 178px); }
body.touch #toast { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 236px); }

/* ---------- dükkân ve çanta ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tabs button { padding: 7px 4px 4px; border: 2px solid transparent; border-radius: 13px; background: rgba(255, 255, 255, .08); font-weight: 800; cursor: pointer; }
.tabs button.on { border-color: var(--gold); background: rgba(255, 210, 63, .16); }
.goldbig { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; }
.shop { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.srow { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px 5px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.srow > span:first-child { font-size: 26px; text-align: center; } .srow b { display: block; font-size: 16px; } .srow small { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.25; }
.srow .btn { width: auto; min-width: 92px; } .lvl { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; } .lvl i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .18); } .lvl i.on { background: var(--gold); }
.ores { width: 100%; border-collapse: collapse; font-size: 15px; } .ores td, .ores th { padding: 4px 6px 2px; border-top: 1px solid var(--line); text-align: right; } .ores td:first-child, .ores th:first-child { text-align: left; }
.ores th { color: var(--dim); font-size: 12px; } .ores tfoot td { font-weight: 800; color: var(--gold); }
.ores i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .5); }

@media (max-width: 700px) {
  .stat { max-width: calc(100vw - 260px); } .stat span { font-size: 13.5px; padding: 2px 7px 0; }
  .board { display: none; }
  .clock { left: auto; right: calc(max(8px, env(safe-area-inset-right)) + 52px); transform: none; padding: 2px 10px 1px; } .clock b { font-size: 18px; } .clock small { font-size: 10px; }
  .side { width: 128px; } #mini { width: 128px; } .hints div { font-size: 11.5px; max-width: 128px; }
  #banner { top: calc(max(6px, env(safe-area-inset-top)) + 46px); } #banner span { font-size: 14.5px; }
  .pbtn { font-size: 16px; padding: 6px 13px 3px; }
}
body:not(.net) .netonly { display: none; }
@media (max-width: 700px) {
  .menu { inset: 0; width: 100%; background: linear-gradient(180deg, rgba(30, 20, 36, .9), rgba(30, 20, 36, .55)); padding-left: max(22px, calc(50% - 200px)); padding-right: max(22px, calc(50% - 200px)); }
  .back { left: max(22px, calc(50% - 200px)); }
  #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; } }
@media (max-height: 520px) { .touch .pad { transform: scale(.85); transform-origin: left bottom; } .touch .acts { transform: scale(.85); transform-origin: right bottom; } body.touch .items { flex-direction: row; bottom: max(8px, env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); } }
body.touch #keysHint { display: none; }
