
/* Layout: tek sütun oyun masası (üst gezinme, seviye/zorluk seçici, ızgara, harf klavyesi); Profil ve Yönetim aynı sütunda sekme olarak */
:root {
  --bg: #e9edf2;
  --surface: #ffffff;
  --ink: #17202b;
  --muted: #5a6676;
  --line: #c9d0da;
  --box: #17202b;
  --accent: #2554c7;
  --accent-soft: #dbe4fb;
  --peer: #dfe7f4;
  --same: #c7d6fb;
  --diag: #fbefcf;
  --diag-strong: #e2a91a;
  --mean: #c62828;
  --err: #c42b37;
  --err-soft: #fbe1e3;
  --ok: #1f8a4c;
  --ok-soft: #dcf2e4;
  --t1: #f3f6fb; --t2: #eaf3ee; --t3: #f6eff7; --t4: #f5f1e8;
  --shadow: 0 1px 2px rgb(23 32 43 / .06), 0 8px 24px rgb(23 32 43 / .08);
  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-cell: "Rubik", "Figtree", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a; --surface: #18202a; --ink: #e5eaf1; --muted: #93a0b1; --line: #334050; --box: #c9d3e0;
    --accent: #7ea0ff; --accent-soft: #24345a; --peer: #28364a; --same: #2d4270; --diag: #3a3220; --diag-strong: #f0bf45; --mean: #ff7b72;
    --err: #ff6b76; --err-soft: #4a2127; --ok: #4fce85; --ok-soft: #1c3a29;
    --t1: #1a2330; --t2: #19281f; --t3: #261d2a; --t4: #28241b;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a; --surface: #18202a; --ink: #e5eaf1; --muted: #93a0b1; --line: #334050; --box: #c9d3e0;
  --accent: #7ea0ff; --accent-soft: #24345a; --peer: #28364a; --same: #2d4270; --diag: #3a3220; --diag-strong: #f0bf45; --mean: #ff7b72;
  --err: #ff6b76; --err-soft: #4a2127; --ok: #4fce85; --ok-soft: #1c3a29;
  --t1: #1a2330; --t2: #19281f; --t3: #261d2a; --t4: #28241b;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* Uçtan uca ekran (Android 15+): kamera çentiği ve sistem çubukları için güvenli alan payı; webde 0 */
.app { max-width: 580px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.app.wide { max-width: 980px; }
.admin-badge, .admin-exit { display: none; }
.admin-mode .admin-badge { display: inline-block; margin-left: 10px; font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--surface); background: var(--ink); padding: 4px 9px; border-radius: 6px; vertical-align: middle; }
.admin-mode .admin-exit { display: inline-block; }
.admin-mode .nav, .admin-mode #announce, .admin-mode #joinBanner { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1; margin: 0; }
.logo span { color: var(--diag-strong); }
.nav { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 999px; box-shadow: var(--shadow); }
.nav button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.nav button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.who { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.who img { width: 20px; height: 20px; border-radius: 50%; }

.banner { background: var(--accent-soft); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.warn { background: var(--diag); }
.banner.bad { background: var(--err-soft); }

.picker { display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: var(--surface); padding: 6px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg button[aria-pressed="true"] small { color: inherit; opacity: .75; }
.seg button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.stats { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.stats .tools-r { display: flex; gap: 6px; margin-left: auto; }
.stat { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.stat b { color: var(--ink); font-size: 15px; font-weight: 700; }
.stats .spacer { flex: 1; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill.icon { padding: 5px 9px; display: grid; place-items: center; }
.pill svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.pill:disabled { opacity: .4; }
.pill.icon[aria-pressed="false"] svg { stroke: var(--muted); }

.board-wrap { position: relative; }
.board {
  display: grid; aspect-ratio: 1; width: 100%; max-width: 100%;
  background: var(--surface); border: 2.5px solid var(--box); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.cell {
  position: relative; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); padding: 0; cursor: pointer; display: grid; place-items: center; min-width: 0; min-height: 0;
  font-family: var(--f-cell); font-size: calc(var(--cell-fs, 32px) * var(--cell-k, 1) * 1.15); font-weight: 500; color: var(--accent);
  transition: background-color .12s;
}
.cell.bR { border-right: 2.5px solid var(--box); }
.cell.bB { border-bottom: 2.5px solid var(--box); }
.cell.lastC { border-right: 0; }
.cell.lastR { border-bottom: 0; }
.cell.tint1 { background: var(--t1); } .cell.tint2 { background: var(--t2); } .cell.tint3 { background: var(--t3); } .cell.tint4 { background: var(--t4); }
/* Köşegen hücreleri oyun sırasında renklendirilmez (kelime çözülünce .win ile turuncuya döner) */
/* Düzensiz bölgeler: her bölge kendi tonunda (--rh, ui2.js regionHues); köşegen de bölgenin renginde, kelime çıkınca köşegen rengine döner */
.cell.rh { --rbg: hsl(var(--rh) 62% 91%); }
:root[data-theme="dark"] .cell.rh { --rbg: hsl(var(--rh) 26% 21%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cell.rh { --rbg: hsl(var(--rh) 26% 21%); } }
.cell.rh, .cell.rh.diag { background: var(--rbg); }
.cell.peer { background: var(--peer); }
body.peer-a { --peer: #eef2f8; } body.peer-c { --peer: #d0dcf0; }
:root[data-theme="dark"] body.peer-a { --peer: #1f2935; } :root[data-theme="dark"] body.peer-c { --peer: #31435c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.peer-a { --peer: #1f2935; } :root:not([data-theme="light"]) body.peer-c { --peer: #31435c; } }
.cell.rh.peer { background: color-mix(in srgb, var(--rbg) 45%, var(--peer)); }
.cell.same { background: var(--same); }
.cell.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2.5px var(--accent); }
.cell.given { color: var(--ink); font-weight: 600; }
.cell.revealed { color: var(--diag-strong); font-weight: 600; }
.cell.wrong { color: var(--err); background: var(--err-soft); }
.cell.wrong.sel { box-shadow: inset 0 0 0 2.5px var(--err); }
.cell.rh.same { background: var(--same); } .cell.rh.sel { background: var(--accent-soft); } .cell.rh.wrong { background: var(--err-soft); }
.notes { position: absolute; inset: 1px; display: grid; font-size: min(calc(var(--note-fs, 12px) * var(--note-k, 1) * 1.2), var(--note-max, 99px)); overflow: hidden; color: var(--muted); font-weight: 500; line-height: 1; }
.notes span { display: grid; place-items: center; }
.cell.flash { animation: flash .6s ease; }
@keyframes flash { 0% { box-shadow: inset 0 0 0 0 var(--ok); } 35% { box-shadow: inset 0 0 0 3px var(--ok); background: var(--ok-soft); } 100% { box-shadow: inset 0 0 0 0 var(--ok); } }
.cell.win { animation: win .55s ease both; }
@keyframes win { 0% { transform: scale(1); } 45% { transform: scale(1.14); background: var(--diag-strong); color: var(--surface); } 100% { transform: scale(1); background: var(--diag-strong); color: var(--surface); } }
.cell.win.done { background: var(--diag-strong); color: var(--surface); }

.overlay { position: absolute; inset: 0; border-radius: 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; text-align: center; }
.overlay .box { display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 340px; }
.overlay h2 { font-family: var(--f-display); font-size: 26px; margin: 0; text-wrap: balance; }
.overlay p { margin: 0; color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; background: var(--ink); color: var(--surface); }
.btn.alt { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.sm { padding: 8px 13px; font-size: 15px; border-radius: 9px; }
.btn.danger { background: var(--err-soft); color: var(--err); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.keys { display: grid; gap: 7px; }
.key {
  position: relative; border: 0; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow), inset 0 -2px 0 var(--line);
  height: clamp(44px, 12vw, 58px); font-family: var(--f-cell); font-size: clamp(22px, 6.2vw, 30px); font-weight: 600; cursor: pointer; min-width: 0;
}
.key small { position: absolute; right: 6px; bottom: 3px; font-family: var(--f-body); font-size: 12.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.key.full { opacity: .3; }
.upd-bar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--surface); border-radius: 16px; padding: 12px 12px 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14.5px; max-width: 560px; margin: 0 auto; }
.upd-bar[hidden] { display: none; }
.upd-bar svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #f0bf45; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upd-bar div { flex: 1; } .upd-bar b { display: block; } .upd-bar span { opacity: .75; font-size: 13px; }
.upd-bar .btn { background: #f0bf45; color: #17202b; } .upd-bar .x { background: none; border: 0; color: inherit; opacity: .7; font-size: 20px; padding: 4px 6px; cursor: pointer; }
.upd-bar .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin-top: 6px; overflow: hidden; } .upd-bar .bar i { display: block; height: 100%; background: #f0bf45; }
.news { position: fixed; inset: 0; z-index: 70; background: rgba(15,20,26,.45); display: grid; place-items: center; padding: 16px; }
.news .card { max-width: 400px; width: 100%; max-height: 90vh; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.news h2 { margin: 0; font-family: var(--f-display); font-size: 22px; } .news .eyebrow { margin: 0; }
.news ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.news li i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--diag); display: grid; place-items: center; font-style: normal; }
.icon-btn.mus.off { background: var(--bg); }
.icon-btn.mus.off svg { opacity: .75; }
.icon-btn.mus .slash { stroke: var(--err); }
@media (max-width: 370px) { .gb-sub .lv { display: none; } .gamebar { gap: 4px; } .gamebar .icon-btn { width: 38px; height: 38px; } .gb-title b#gameTitle { font-size: 17px; } }
.key { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.key.x { color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.key.x::after { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 2.5px; background: var(--err, #c42b37); border-radius: 2px; transform: rotate(-35deg); pointer-events: none; }
.key.x small { opacity: .4; }
.key.hold:not(.x)::before { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 2.5px; background: var(--err); border-radius: 2px; transform: rotate(-35deg); clip-path: inset(0 100% 0 0); animation: elimFill .36s linear .12s forwards; pointer-events: none; }
.key.x.hold::after { animation: elimFade .36s linear .12s forwards; }
@keyframes elimFill { to { clip-path: inset(0 0 0 0); } }
@keyframes elimFade { to { opacity: .15; } }
.key.last { box-shadow: 0 0 0 2.5px var(--diag-strong, #e2a91a), var(--shadow); }
.cell .xdot { position: absolute; right: 3px; top: 2px; font: 700 9px/1 var(--f-body); color: var(--err, #c42b37); pointer-events: none; }
.key:active { transform: translateY(1px); }
.keys.notes-on .key { background: var(--accent-soft); }

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tool { border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tool svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { background: var(--surface); }
.tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.tool[aria-pressed="true"] svg { stroke: var(--accent); }
.tool:disabled { opacity: .4; cursor: not-allowed; }

.card { background: var(--surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card p { margin: 0; }
.muted { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.field { flex: 1; min-width: 160px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg); color: var(--ink); }
.auth-btns { display: grid; gap: 10px; margin: 6px 0 4px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 12px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 16px; }
.auth-btn svg { width: 20px; height: 20px; flex: none; }
.auth-btn.apple { background: #000; color: #fff; }
.auth-btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1.5px #747775; }
.auth-btn.facebook { background: #1877f2; color: #fff; }
.auth-pw { display: grid; gap: 8px; } .auth-pw .btn { justify-self: start; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
:root[data-theme="dark"] .auth-btn.apple { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-btn.apple { background: #fff; color: #000; } }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 8px 0 2px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.small { font-size: 12.5px; }
.proto-note { font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 8px 0 0; }
.ad-slot { display: none; }
body.ad-bottom { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
.ad-video .ad-screen { aspect-ratio: 16/9; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--peer) 0 14px, var(--surface) 14px 28px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 10px; color: var(--ink); font-weight: 700; text-align: center; padding: 8px; }
.ad-video .ad-screen small { font-weight: 400; color: var(--muted); }
.ad-video .row { justify-content: space-between; margin-top: 10px; flex-wrap: nowrap; }
.ad-video .row .btn { flex: none; }
.tool.ad #hintCount { color: var(--accent); }
.site-footer { margin: 28px 0 8px; text-align: center; font-size: 12.5px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 6px; }
.site-footer a, .info-page a { color: var(--accent); }
.in-game .site-footer { display: none; }
/* Mobil uygulamada tanıtım metni ve site altbilgisi gösterilmez (yalnızca web'de, arama motorları için) */
.is-app .seo-intro, .is-app .site-footer, .is-app .get-app { display: none !important; }
.get-app { display: flex; flex-direction: column; gap: 12px; }
.get-app .ga-row { display: flex; align-items: center; gap: 14px; }
.ga-ic, .app-bar .ga-ic { width: 52px; height: 52px; border-radius: 13px; background: #17202b; color: #fff; display: grid; place-items: center; font: 800 28px var(--f-display); position: relative; flex: none; }
.ga-ic::after { content: ''; position: absolute; right: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #f0bf45; }
.dl { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; align-self: flex-start; }
.dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-bar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px 10px 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1px solid var(--line); max-width: 560px; margin: 0 auto; }
.app-bar[hidden] { display: none; }
.app-bar .ga-ic { width: 44px; height: 44px; border-radius: 11px; font-size: 24px; }
.app-bar .ga-ic::after { right: 6px; top: 6px; width: 8px; height: 8px; }
.app-bar > div { flex: 1; line-height: 1.25; } .app-bar b { display: block; font-size: 15px; } .app-bar span.s { color: var(--muted); font-size: 13px; }
.app-bar .x { background: none; border: 0; color: var(--muted); font-size: 20px; padding: 4px; cursor: pointer; }
/* Oyun sırasında Ayarlar / Nasıl oynanır açılınca oyuna tek dokunuşla dönüş */
.back-to-game { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px 12px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 15px/1 var(--f-body); box-shadow: var(--shadow); cursor: pointer; }
.back-to-game svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body:has(.back-to-game:not([hidden])) #app { padding-bottom: 76px; }
body:has(#consentBar) .back-to-game { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
/* Uygulamada yerel his: dokunma vurgusu, metin seçme, uzun basma menüsü ve sayfa esnemesi yok (giriş alanları hariç) */
.is-app, .is-app * { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.is-app, html:has(body.is-app) { user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
.is-app input, .is-app textarea { user-select: text; -webkit-user-select: text; }
.nav [data-tab="profile"] { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.info-nav button { flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.info-nav button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.info-page h2 { font-family: var(--f-display); font-size: 26px; margin: 0 0 8px; }
.info-page h3 { margin: 16px 0 4px; font-size: 16px; }
.info-page p, .info-page li { line-height: 1.6; }
.info-page ul, .info-page ol { padding-left: 20px; margin: 4px 0; }
.info-page .toggle { margin: 8px 0; }
mark.ph { background: #fde68a; color: #4a3a00; border-radius: 4px; padding: 0 3px; }
.contact-dl { display: grid; gap: 8px; margin: 10px 0 16px; }
.contact-dl dt { font-size: 12px; color: var(--muted); }
.contact-dl dd { margin: 0; font-weight: 600; }
.card-inner { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-inner .field { width: 100%; box-sizing: border-box; font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card.welcome { border: 2px solid var(--accent); }
.seo-intro { margin-top: 18px; }
.seo-intro h3 { font-size: 16px; margin: 12px 0 4px; }
.seo-intro p { color: var(--muted); line-height: 1.6; margin: 0 0 6px; }
.seo-intro a { color: var(--accent); }
.daily-live { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.daily-live span { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13.5px; font-weight: 600; }
.daily-live b { font-family: var(--f-display); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-solved { background: var(--diag); color: var(--ink); }
.live-solved b { color: var(--diag-strong); }
.live-now { background: var(--ok-soft); color: var(--ink); }
.live-now b { color: var(--ok); }
.live-first { background: var(--accent-soft); color: var(--accent); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.msg { font-size: 13.5px; margin: 0; min-height: 1em; }
.msg.bad { color: var(--err); }
.msg.good { color: var(--ok); }

.result .word { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 8vw, 40px); letter-spacing: .06em; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin: 0; }
.tiles-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0; }
.tiles-dl div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.tiles-dl dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tiles-dl dd { margin: 0; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.tiles-dl .hi dd { color: var(--accent); }

details { background: var(--surface); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 700; font-size: 14px; }
details > div { padding-top: 8px; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
details ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.toggle { display: flex; align-items: center; gap: 10px; color: var(--ink); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.info { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; }
kbd { font-family: var(--f-body); font-size: 11.5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--ink); }

.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; }
.wrap-tbl td:first-child { white-space: normal; }
tr.group td { background: var(--bg); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--err-soft); color: var(--err); }
.chip.idle { background: var(--bg); color: var(--muted); }
.person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.person img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.person b { display: block; font-size: 13.5px; }
.person span { font-size: 12px; color: var(--muted); }
.bar-wrap { position: relative; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); font-variant-numeric: tabular-nums; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words span, .words .word-chip { color: var(--ink); background: var(--diag); border-radius: 7px; padding: 3px 8px; font-family: var(--f-cell); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.setting-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.num-in { width: 64px; border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--bg); text-align: center; }
.goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.goal { display: flex; flex-direction: column; gap: 5px; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.goal-top b { color: var(--diag-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.goal.done .meter i { background: var(--ok); }
.goal .muted { font-size: 12px; font-variant-numeric: tabular-nums; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.board-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.board-list li.me { background: var(--accent-soft); border-radius: 8px; }
.board-list .rank { font-family: var(--f-display); font-weight: 800; font-size: 18px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-list .podium .rank { color: var(--ink); }
.board-list .p1 .rank { color: var(--diag-strong); }
.board-list .who-cell { display: flex; flex-direction: column; min-width: 0; }
.board-list .who-cell b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .who-cell .muted { font-size: 12px; }
.board-list .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.seg button { position: relative; }
.seg button.has-save::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--diag-strong); box-shadow: 0 0 0 2px var(--surface); }
.chip.warn { background: var(--diag); color: var(--ink); }
/* Haftanın kelimesi */
.week-card .wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.week-card .wk-head h2 { margin: 0; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.wk-day small { font-size: 12px; color: var(--muted); }
.wk-day.miss small { color: var(--err); font-weight: 700; } .wk-day.today small { color: var(--accent); font-weight: 700; }
.wk-cell { width: 100%; height: 48px; box-sizing: border-box; border-radius: 10px; display: grid; place-items: center; font: 800 18px var(--f-display); color: var(--ink); border: 1.5px solid var(--line); background: var(--peer); padding: 0; }
.wk-cell.got { background: var(--diag); border-color: var(--diag-strong); }
.wk-cell.got.new { box-shadow: 0 0 0 4px color-mix(in srgb, var(--diag-strong) 25%, transparent); border-width: 2px; }
.wk-cell.today { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent); }
button.wk-cell { cursor: pointer; }
.wk-cell.miss { background: var(--err-soft); border: 1.5px dashed var(--err); color: var(--err); font: 700 13px var(--f-body); }
.wk-note { display: flex; gap: 8px; align-items: flex-start; background: var(--err-soft); border-radius: 10px; padding: 9px 11px; font-size: 14px; margin: 0; }
.wk-done { margin: 0; font-size: 15px; }
.wk-word { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 38px)); gap: clamp(3px, 1.2vw, 5px); justify-content: center; width: 100%; }
.wk-word span { min-width: 0; aspect-ratio: 38 / 44; height: auto; border-radius: 9px; font-size: clamp(14px, 4.6vw, 19px) !important; background: var(--peer); display: grid; place-items: center; font: 700 19px var(--f-display); color: var(--muted); }
.wk-word span.on { background: var(--diag); border: 2px solid var(--diag-strong); color: var(--ink); font-weight: 800; box-shadow: 0 0 0 4px color-mix(in srgb, var(--diag-strong) 22%, transparent); }
.wk-res { display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--surface); border-radius: 14px; padding: 14px; margin: 6px 0; box-shadow: var(--shadow); }
.wk-res .wk-grid { width: 100%; }
.wk-page { display: flex; flex-direction: column; gap: 14px; }
.wk-top { display: flex; align-items: center; gap: 10px; }
.card.arsiv-link { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border: 0; }
.arsiv-link span { display: flex; flex-direction: column; gap: 2px; }
.arsiv-link small { color: var(--muted); font-size: 13px; }
.arsiv-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ar-page { display: flex; flex-direction: column; gap: 14px; }
.ar-week h3 { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 700; }
.ar-week ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ar-week li + li { border-top: 1px solid var(--line); }
.ar-week li button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 2px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ar-week li button > span:first-child { display: flex; flex-direction: column; gap: 1px; }
.ar-week li small { color: var(--muted); font-size: 13px; }
.ar-week .btn.sm { pointer-events: none; }
.wk-top h2 { margin: 0; font-family: var(--f-display); font-size: 22px; }
.wk-clue { background: var(--diag); border-radius: 14px; padding: 12px 14px; }
.wk-clue p { margin: 0; font-size: 16px; }
.wk-board { align-items: center; gap: 16px; }
.wk-slots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 520px; }
.wk-slots button, .wk-slots span { height: 50px; border-radius: 9px; display: grid; place-items: center; font: 800 21px var(--f-display); padding: 0; border: 1.5px solid var(--line); background: var(--peer); color: var(--ink); min-width: 0; }
.wk-slots span.next { border: 2px solid var(--accent); background: var(--accent-soft); }
.wk-slots button { background: var(--ink); color: var(--surface); border-color: var(--ink); cursor: pointer; }
.wk-slots.bad { animation: wkshake .4s; } .wk-slots.good button { background: var(--ok); border-color: var(--ok); }
@keyframes wkshake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
@media (prefers-reduced-motion: reduce) { .wk-slots.bad { animation: none; } }
.wk-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wk-tiles button { min-width: 54px; height: 54px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--diag-strong); background: var(--diag); font: 800 21px var(--f-display); color: var(--ink); cursor: pointer; }
.wk-tiles button:disabled { border-style: dashed; border-color: var(--line); background: var(--surface); color: var(--line); cursor: default; }
.card.pending { background: color-mix(in srgb, var(--diag) 55%, var(--surface)); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--diag-strong); }
.pending-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pending-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.pending-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 200px; }
.pending-main .meter i { background: var(--diag-strong); }
.pending-main .muted { font-size: 12px; font-variant-numeric: tabular-nums; }
.pending-act { display: flex; gap: 6px; }
.coach { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.coach[hidden] { display: none; }
.coach h3 { margin: 0; font-family: var(--f-display); font-size: 20px; }
.coach p { margin: 0; font-size: 17px; line-height: 1.5; }
.coach .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.coach-dots { display: inline-flex; gap: 5px; }
.coach-dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.coach-dots i.on { background: var(--accent); }
.coach-msg { color: var(--err); font-weight: 600; }
.cell.coach { box-shadow: inset 0 0 0 3px var(--accent); animation: coachPulse 1.4s ease-in-out infinite; z-index: 1; }
.cell.coach-u { background: var(--accent-soft); }
.tool.coach { box-shadow: 0 0 0 3px var(--accent); animation: coachPulse 1.4s ease-in-out infinite; }
@keyframes coachPulse { 50% { box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .cell.coach, .tool.coach { animation: none; } }
.cell.coach-b { box-shadow: inset 0 0 0 3px var(--diag-strong); }
.hintcard { box-shadow: var(--shadow), inset 0 0 0 2px var(--diag-strong); }
.hintcard .eyebrow { margin: 0; }
.hint-pre { margin: 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.daily-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow), inset 4px 0 0 var(--accent); }
.daily-card[hidden] { display: none; }
.daily-card.offline { opacity: .6; }
.off-banner { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow), inset 4px 0 0 var(--muted); font-size: 14px; }
.off-banner svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.off-banner b { display: block; } .off-banner span { color: var(--muted); font-size: 13px; }
#sizeSeg .pk { display: block; font: 600 11px/1.2 var(--f-body); color: var(--ok); margin-top: 2px; }
#sizeSeg .pk.none { color: var(--muted); }
#sizeSeg button[aria-pressed="true"] .pk { color: inherit; opacity: .8; }
.pending-sync { background: var(--diag); border-radius: 12px; padding: 10px 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.pending-sync svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.daily-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.daily-main .muted { font-size: 13px; }
.daily-streak { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--diag); color: var(--ink); letter-spacing: 0; text-transform: none; }
.daily-done { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.daily-done p { margin: 0; }
.nav-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--diag); color: var(--ink); vertical-align: 1px; }
.nav-badge.full { background: var(--ok-soft); color: var(--ok); }
.col-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.col-row { display: flex; flex-direction: column; gap: 4px; }
.col-top { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.col-top .muted { font-size: 12px; }
.word-chip { border: 0; cursor: pointer; font: inherit; }
.word-chip[aria-pressed="true"] { outline: 2px solid var(--accent); }
.word-meaning { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--mean); font-weight: 600; }
.word-meaning b { color: var(--ink); }
.meaning { margin: 4px 0 12px; color: var(--mean); font-size: 17px; font-weight: 600; line-height: 1.4; }
.keys.dense .key { font-size: clamp(15px, 4.2vw, 22px); padding-block: 8px; }
.seg .master-note { border-style: dashed; color: var(--muted); font-weight: 600; background: transparent; }
.seg .master-note b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; }
.master-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 15px; }
/* ---- Yeniden düzen: ana sayfa, sade oyun ekranı, ayarlar ---- */
.tab { display: flex; flex-direction: column; gap: 14px; }
.logo-btn { all: unset; cursor: pointer; }
.logo-btn:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.nav-icon { display: grid; place-items: center; padding: 6px 9px !important; }
.nav svg, .icon-btn svg, .stat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.in-game .top, .in-game #announce, .in-game #joinBanner { display: none !important; }
.in-game .app { padding-top: 10px; gap: 10px; }
.sec-title { font-family: var(--f-display); font-size: 19px; margin: 0; }
.sec-sub { margin: -4px 0 0; font-size: 13.5px; }
.size-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-grid button { padding: 12px 6px; font-size: 17px; font-weight: 700; text-align: center; border-radius: 12px; }
.size-grid button small { font-size: 11.5px; margin-top: 2px; }
.tier-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.tier-row button[data-tier] { flex: 1 1 0; min-width: 72px; padding: 11px 8px; font-size: 15px; border-radius: 12px; background: var(--accent); color: #fff; border-color: var(--accent); }
.tier-row button[data-tier][aria-pressed="true"] { background: var(--accent); color: #fff; }
.tier-row .master-note { flex-basis: 100%; }
.continue-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow), inset 4px 0 0 var(--diag-strong); }
.continue-card[hidden] { display: none; }
.continue-card .cc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.continue-card .meter { height: 6px; }
.link-btn { align-self: center; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
.gamebar { position: relative; display: flex; align-items: center; gap: 6px; }
.gb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.gb-title b#gameTitle { font-family: var(--f-display); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gb-stats { display: flex; gap: 14px; }
.gb-stats .stat { gap: 4px; align-items: center; }
.gb-stats .stat svg { width: 16px; height: 16px; }
.gb-stats .stat b { font-size: 16px; }
.gb-sub { display: flex; gap: 4px; align-items: center; justify-content: center; margin: 2px 0 3px; flex-wrap: nowrap; max-width: 100%; overflow: hidden; }
.gb-sub:empty { display: none; }
.gb-sub span { font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; line-height: 1.35; }
.gb-sub span.t { background: var(--diag); color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.icon-btn:disabled { opacity: .4; }
.game-menu { position: absolute; right: 0; top: 48px; z-index: 30; min-width: 220px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 6px; display: flex; flex-direction: column; }
.game-menu[hidden] { display: none; }
.game-menu button { text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--ink); }
.game-menu button:hover, .game-menu button:focus-visible { background: var(--peer); }
.game-menu .info { margin: 4px 12px 6px; font-size: 11.5px; }
.play-area { display: flex; flex-direction: column; gap: 12px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.theme-seg { display: inline-flex; gap: 4px; }
.card > .toggle { padding: 4px 0; }
/* Yazı boyutu ayarları: ızgara harfleri ve not harfleri ayrı ayrı büyütülür */
body.cell-l { --cell-k: 1.18; } body.cell-xl { --cell-k: 1.36; }
body.note-l { --note-k: 1.25; } body.note-xl { --note-k: 1.5; }
body.note-l .notes, body.note-xl .notes { font-weight: 600; }
body.cell-l .key, body.cell-xl .key { font-size: 1.15em; }
body.no-timer #timeStat { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, #000 45%, transparent); }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 22px 20px; max-width: 380px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.modal-box h2 { font-family: var(--f-display); font-size: 21px; margin: 0; line-height: 1.2; }
.modal-box p { margin: 0; color: var(--muted); font-size: 15px; }
.modal-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-box .row .btn { flex: 1 1 auto; }
.slots { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: var(--diag); font-size: 14px; }
.slots b { font-size: 20px; font-variant-numeric: tabular-nums; }
.slots.full { background: var(--err-soft); color: var(--err); }
.modal-box p.warn-line { color: var(--err); font-size: 14px; }
.ask-off { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.pending-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); z-index: 10; }

@media (prefers-reduced-motion: reduce) { .cell.flash { animation: none; } .cell.win { animation: none; background: var(--diag-strong); color: var(--surface); } .cell { transition: none; } }
.consent-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.consent-bar p { margin: 0; flex: 1 1 220px; }
.consent-bar .row { margin: 0; gap: 8px; }

.proto-note,.ad-slot{display:none!important}
