/* Senkron Fast Finger — koyu, ferah neon. Vurgu rengi logodaki nane yeşilinin parlayan hali. */
:root {
  --bg: #05080b; --bg-2: #081016; --surface: rgba(13, 21, 27, .74); --surface-solid: #0c151b; --surface-2: rgba(22, 34, 42, .7);
  --stroke: rgba(120, 255, 220, .1); --stroke-hi: rgba(120, 255, 220, .24);
  --text: #e8fff8; --muted: #8fa9a3; --dim: #5b726d;
  --mint: #1df2c6; --mint-2: #12c7a3; --mint-ink: #01231c; --mint-soft: rgba(29, 242, 198, .12); --mint-glow: rgba(29, 242, 198, .45);
  --violet: #a98bff;
  --pink: #ff3ea5; --pink-soft: rgba(255, 62, 165, .14); --amber: #ffc145; --cyan: #44d9ff; --bad: #ff4d6a; --bad-soft: rgba(255, 77, 106, .14);
  --gold: #ffcf4a; --silver: #b9c6d3; --bronze: #e08b55;
  --lane-1: #1df2c6; --lane-2: #ff3ea5; --lane-3: #ffc145; --lane-4: #44d9ff;
  --grid: rgba(29, 242, 198, .06);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --r: 18px; --r-sm: 12px;
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3faf8; --bg-2: #e9f5f1; --surface: rgba(255, 255, 255, .82); --surface-solid: #fff; --surface-2: rgba(232, 245, 241, .9);
  --stroke: rgba(4, 80, 64, .1); --stroke-hi: rgba(4, 120, 96, .26);
  --text: #08201b; --muted: #4c6863; --dim: #8aa39d;
  --mint: #0bb893; --mint-2: #08977a; --mint-ink: #022a22; /* beyaz yazı bu yeşilde 4.5:1 kontrastı sağlamıyor */ --mint-soft: rgba(11, 184, 147, .12); --mint-glow: rgba(11, 184, 147, .3);
  --violet: #6c4fe0;
  --pink: #e0207f; --pink-soft: rgba(224, 32, 127, .1); --amber: #c98a00; --cyan: #0a9cc4; --bad: #d92d4a; --bad-soft: rgba(217, 45, 74, .1);
  --lane-1: #0bb893; --lane-2: #e0207f; --lane-3: #d99a00; --lane-4: #0a9cc4;
  --grid: rgba(4, 80, 64, .06);
  --shadow: 0 1px 2px rgba(8, 32, 27, .05), 0 18px 40px -20px rgba(8, 32, 27, .22);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.dim { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.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; }

/* ---------- arka plan: ızgara + üstte nane parıltısı ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute; left: 50%; top: -340px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--mint-soft), transparent), radial-gradient(closest-side at 80% 60%, var(--pink-soft), transparent 70%);
  filter: blur(20px);
}

/* ---------- üst çubuk ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, calc((100vw - 1240px) / 2)); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { filter: drop-shadow(0 0 14px var(--mint-glow)); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font: 700 17px var(--f-display); letter-spacing: -.01em; }
.wordmark i { font: 500 9.5px var(--f-mono); letter-spacing: .32em; color: var(--mint); font-style: normal; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.on { color: var(--text); background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--stroke-hi); }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 24px; height: 2px; transform: translateX(-50%); background: var(--mint); box-shadow: 0 0 12px var(--mint); border-radius: 2px; }
.top-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* çevrim içi sayacı */
.online-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font: 500 12px var(--f-mono); color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.online-chip[hidden] { display: none; }
.online-chip b { color: var(--mint); font-weight: 600; }
.online-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pulse 2s infinite; }
.lang-pick { position: relative; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); cursor: pointer; }
.lang-pick svg, .icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.lang-pick select { appearance: none; border: 0; background: transparent; padding: 0 2px; cursor: pointer; font-weight: 500; max-width: 120px; }
.lang-pick select option { background: var(--surface-solid); color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); cursor: pointer; }
.icon-btn:hover svg { color: var(--text); }
#sound-btn .off, #sound-btn[aria-pressed="false"] .on { display: none; }
#sound-btn[aria-pressed="false"] .off { display: inline; }
.user-chip { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); cursor: pointer; font-weight: 500; max-width: 180px; }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--cyan)); color: var(--mint-ink); font: 700 11px var(--f-display); }

main { width: min(1240px, 100%); margin: 0 auto; padding: 28px 16px 72px; min-height: calc(100vh - 140px); outline: none; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 26px 16px 34px; border-top: 1px solid var(--stroke); font-size: 13px; }
.foot-links { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 4px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--mint); text-decoration: underline; }
.foot span:first-of-type { font-weight: 600; }

/* ---------- temel bileşenler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mint) 92%, white), var(--mint-2)); color: var(--mint-ink); font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 60%, transparent), 0 10px 30px -8px var(--mint-glow); transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--mint), 0 14px 38px -8px var(--mint-glow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke-hi); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--mint); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field, .select {
  width: 100%; height: 46px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--stroke-hi); background: var(--surface-solid);
  transition: border-color .15s, box-shadow .15s;
}
textarea.field { height: auto; min-height: 140px; padding: 12px 16px; resize: vertical; font: 13px/1.5 var(--f-mono); }
.field:focus, .select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.select { appearance: none; padding-inline-end: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa9a3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
[dir="rtl"] .select { background-position: left 12px center; }
.card { position: relative; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pad { padding: 22px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--mint-soft); color: var(--mint); }
.badge.pink { background: var(--pink-soft); color: var(--pink); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 1.6s infinite; }
.kicker { font: 500 12px var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--mint); }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 56px 0 18px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.err { color: var(--bad); min-height: 1.4em; margin: 6px 0 0; font-size: 14px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
#toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--stroke-hi); box-shadow: var(--shadow); transition: .25s;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast[data-tone="bad"] { border-color: var(--bad); }

.dlg { width: min(440px, calc(100vw - 32px)); padding: 26px; border-radius: var(--r); border: 1px solid var(--stroke-hi); background: var(--surface-solid); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); }
.dlg::backdrop { background: rgba(2, 6, 8, .66); backdrop-filter: blur(6px); }
.dlg h2 { font-size: 22px; margin-bottom: 8px; }
.dlg p { margin: 0 0 16px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); flex-wrap: wrap; }
.tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; }
.tabs button.on { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 20px -4px var(--mint-glow); }

/* ---------- ana sayfa ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 36px 0 12px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; margin: 16px 0 18px; line-height: 1; }
.hero h1 .glow { color: var(--mint); text-shadow: 0 0 32px var(--mint-glow); display: block; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero .row { gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1.05; }
.hero-logo { position: absolute; width: 38%; right: 4%; top: 0; filter: drop-shadow(0 0 40px var(--mint-glow)); animation: float 6s ease-in-out infinite; z-index: 2; }
.term { position: absolute; left: 0; right: 10%; bottom: 6%; padding: 22px 22px 18px; }
.term-top { display: flex; gap: 6px; margin-bottom: 16px; }
.term-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--stroke-hi); }
.term-top i:first-child { background: var(--pink); } .term-top i:nth-child(2) { background: var(--amber); } .term-top i:nth-child(3) { background: var(--mint); }
.term-text { font: 500 clamp(16px, 1.8vw, 21px)/1.6 var(--f-mono); min-height: 3.2em; }
.term-text .ok { color: var(--text); } .term-text .rest { color: var(--dim); }
.term-text .cur { box-shadow: -2px 0 0 var(--mint); animation: blink 1s steps(1) infinite; }
.term-stats { display: flex; gap: 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.term-stats b { display: block; font: 700 26px var(--f-display); color: var(--mint); }
.term-stats span { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mini-lanes { position: absolute; left: 6%; right: 0; top: 14%; padding: 14px 16px; display: grid; gap: 9px; }
.mini-lane { position: relative; height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.mini-lane i { position: absolute; inset-block: 0; left: 0; border-radius: 6px; width: 30%; background: var(--c); box-shadow: 0 0 14px var(--c); animation: lane var(--d) ease-in-out infinite alternate; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode {
  display: flex; flex-direction: column; gap: 12px; padding: 22px; text-decoration: none; overflow: hidden; min-height: 268px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.mode:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.mode::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); opacity: .7; transition: opacity .2s; pointer-events: none; }
.mode:hover::before { opacity: 1; }
.mode-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.mode-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--c)); }
.mode h3 { font-size: 19px; }
.mode p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.mode .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c); }
.mode .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.mode:hover .go svg { transform: translateX(4px); }
[dir="rtl"] .mode .go svg { transform: scaleX(-1); }

.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; padding: 22px 22px 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pod .avatar { width: 52px; height: 52px; font-size: 16px; }
.pod b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pts { font: 600 13px var(--f-mono); color: var(--muted); }
.pod .step { width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: center; font: 800 22px var(--f-display); color: var(--mint-ink); }
.pod.p1 .step { height: 96px; background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 50%, transparent)); box-shadow: 0 0 40px -6px var(--gold); }
.pod.p2 .step { height: 66px; background: linear-gradient(180deg, var(--silver), color-mix(in srgb, var(--silver) 40%, transparent)); }
.pod.p3 .step { height: 48px; background: linear-gradient(180deg, var(--bronze), color-mix(in srgb, var(--bronze) 40%, transparent)); }
.pod.p1 .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 24px var(--gold); }

.ranks { list-style: none; margin: 0; padding: 8px; }
.ranks li { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.ranks li:nth-child(odd) { background: var(--surface-2); }
.ranks li.me { box-shadow: inset 0 0 0 1px var(--mint); background: var(--mint-soft); }
.ranks .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranks .meta { font: 500 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.ranks .pts { font: 700 15px var(--f-mono); color: var(--mint); text-align: end; min-width: 60px; }
.ranks .empty { display: block; text-align: center; color: var(--muted); padding: 26px; background: none; }
.rk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font: 700 13px var(--f-mono); background: var(--surface-2); color: var(--muted); }
.rk.r1 { background: var(--gold); color: #261a00; box-shadow: 0 0 16px -2px var(--gold); } .rk.r2 { background: var(--silver); color: #141a20; } .rk.r3 { background: var(--bronze); color: #2a1406; }

.vids { display: grid; gap: 10px; padding: 12px; }
.vid { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid transparent; background: none; text-align: start; cursor: pointer; text-decoration: none; }
.vid:hover { background: var(--surface-2); border-color: var(--stroke); }
.vid img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.vid b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; }
.vid span { font-size: 12px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-c { padding: 22px; }
.step-c .n { font: 800 34px var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--mint); }
.step-c h3 { font-size: 17px; margin: 10px 0 6px; }
.step-c p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- oyun sayfaları ortak ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(28px, 4.4vw, 44px); margin-top: 8px; }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 620px; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.stat span { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font: 700 24px var(--f-display); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat b small { font: 500 12px var(--f-mono); color: var(--muted); margin-inline-start: 4px; }
.stat[data-tone="ahead"] b { color: var(--mint); } .stat[data-tone="behind"] b { color: var(--pink); }
.tv {
  position: relative; max-height: 9.6em; overflow: hidden; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--stroke);
  font: 500 clamp(19px, 2.2vw, 25px)/1.6 var(--f-mono); color: var(--dim); white-space: pre-wrap; word-break: break-word; cursor: text; direction: ltr; text-align: left;
}
.tv span.ok { color: var(--text); }
.tv span.skip { color: var(--text); opacity: .4; }
.tv span.fix { color: var(--amber); }
.tv span.err { color: var(--bad); background: var(--bad-soft); border-radius: 3px; animation: shake .2s; }
.tv span.cur { box-shadow: -2px 0 0 var(--mint); animation: blink 1s steps(1) infinite; }
.tv.focus-off::after { content: attr(data-hint); position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font: 500 15px var(--f-body); backdrop-filter: blur(3px); border-radius: inherit; }
.ghost-in { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.stage { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--stroke); background: #03070a; }
.stage canvas { display: block; width: 100%; height: auto; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: color-mix(in srgb, #02060a 62%, transparent); backdrop-filter: blur(4px); }
.overlay .box { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.overlay h2 { font-size: clamp(26px, 4vw, 40px); color: #fff; }
.overlay p { color: #b6cbc6; margin: 0; }
.count { font: 800 clamp(70px, 14vw, 160px) var(--f-display); color: var(--mint); text-shadow: 0 0 40px var(--mint-glow); animation: pop .9s ease-out; }
.result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.result .stat { text-align: center; }
.result-note { color: var(--muted); min-height: 1.4em; }
.select-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.select-row label { font-size: 13px; color: var(--muted); }
.select-row .select { width: auto; min-width: 170px; height: 42px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); }
.seg button { height: 34px; min-width: 56px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; font: 600 14px var(--f-mono); }
.seg button.on { background: var(--mint); color: var(--mint-ink); }

/* yarış */
.lobby { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: var(--r); border: 1px dashed var(--stroke-hi); text-align: center; min-width: 0; }
.seat.full { border-style: solid; border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 8%, transparent); }
.seat .avatar { width: 48px; height: 48px; background: var(--c, var(--surface-2)); }
.seat:not(.full) .avatar { background: var(--surface-2); color: var(--dim); animation: pulse 1.4s infinite; }
.seat b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-grid { display: grid; gap: 14px; }

/* video senkron */
/* Tek sütun, ortalı: üstte video (ekran yüksekliğine göre), altında istatistik şeridi;
   onun altında o anki satır, çevirisi, yazma kutusu, sıradaki satır ve araç çubuğu. */
.sy-url {
  display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 5px 5px 5px 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.sy-url:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.sy-url > svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.sy-url input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 8px 0; font-size: 14px; }
.sy-url input::placeholder { color: var(--dim); }
.sy-url select { appearance: none; border: 0; background: var(--surface-2); border-radius: 999px; height: 36px; padding: 0 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.sy-url select option { background: var(--surface-solid); color: var(--text); }
.sy-url .btn { flex: none; }

.sy { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.sy-stage { width: min(100%, max(320px, calc(54vh * 16 / 9))); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.player iframe, .player > div:first-child { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .shield { position: absolute; inset: 0; z-index: 2; }
.sy-cover { z-index: 4; color: #fff; background: rgba(4, 8, 10, .62); backdrop-filter: blur(8px); }
.sy-cover h2 { font-size: clamp(22px, 3vw, 34px); }
.sy-cover p { max-width: 42ch; font-size: 14.5px; }
.wait-chip { position: absolute; z-index: 3; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(2, 8, 10, .82); color: #ffc062; font: 500 12.5px var(--f-mono); white-space: nowrap; border: 1px solid rgba(255, 192, 98, .5); backdrop-filter: blur(8px); }
.wait-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1s infinite; }

/* zaman çizgisi: satır blokları, video başı (yuvarlak) ve senin konumun (çubuk) */
.sy-tl { position: relative; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--surface-2); }
.sy-tl-segs { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; }
.sy-tl-segs div { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--stroke-hi); }
.sy-tl-segs div.done { background: var(--mint); }
.sy-head { position: absolute; top: 50%; transform: translate(-50%, -50%); transition: left .12s linear; }
.sy-head.video { width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--bg); }
.sy-head.typed { width: 6px; height: 18px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--mint); }

.sy-statbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.sy-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.sy-stat span { display: block; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sy-stat b { display: block; margin-top: 6px; font: 600 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sy-stat b small { font-weight: 400; color: var(--muted); margin-inline-start: 3px; font-size: 12px; }
.sy-stat[data-tone="ahead"] b { color: var(--mint); } .sy-stat[data-tone="behind"] b { color: var(--amber); }
.sy-ctrls { display: flex; align-items: center; gap: 6px; }
.sy-nudge { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface); }
.sy-nudge button { border: 0; background: transparent; width: 30px; height: 100%; color: var(--muted); font-size: 15px; cursor: pointer; }
.sy-nudge button:hover { color: var(--text); }
.sy-nudge span { font: 500 11.5px/1 var(--f-mono); color: var(--muted); min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.sy-ib { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--surface); display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.sy-ib:hover { color: var(--text); border-color: var(--stroke-hi); }
.sy-ib svg { width: 15px; height: 15px; }

/* yazma alanı */
.sy-typing { --line-size: clamp(24px, 3.2vw, 32px); width: min(100%, 860px); text-align: center; padding: 14px 8px 4px; display: flex; flex-direction: column; align-items: center; cursor: text; }
.sy-typing.size-s { --line-size: clamp(20px, 2.4vw, 24px); } .sy-typing.size-l { --line-size: clamp(28px, 4.2vw, 42px); }
.sy-meta { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 14px; font: 500 11.5px/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.sy-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sy-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.sy-status[data-s="sync"], .sy-status[data-s="done"] { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.sy-status[data-s="sync"]::before, .sy-status[data-s="done"]::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.sy-status[data-s="wait"] { color: var(--amber); border-color: var(--amber); } .sy-status[data-s="wait"]::before { background: var(--amber); animation: pulse 1s infinite; }
.sy-line { margin: 0; font: 500 var(--line-size)/1.35 var(--f-mono); color: var(--dim); white-space: pre-wrap; word-break: break-word; text-wrap: balance; min-height: 1.35em; direction: ltr; transition: color .2s; }
.sy-line span.ok { color: var(--mint); }
.sy-line span.fix { color: var(--bad); }
.sy-line span.skip { opacity: .7; }
.sy-line span.cur { color: var(--text); box-shadow: inset 0 -3px 0 var(--mint); border-radius: 2px; }
.sy-typing.started .sy-line span.cur { animation: under 1.05s steps(1) infinite; }
.sy-line span.cur.err { color: var(--bad); box-shadow: inset 0 -3px 0 var(--bad); background: var(--bad-soft); animation: shake .18s; }
.sy-typing.waiting .sy-line { color: color-mix(in srgb, var(--amber) 55%, var(--dim)); }
.sy-tr { margin: 12px 0 0; font-size: 16.5px; color: var(--muted); min-height: 1.5em; max-width: 60ch; text-wrap: balance; }
.sy-type-wrap { width: min(100%, 520px); margin-top: 22px; }
.sy-in { display: block; width: 100%; text-align: center; font: 500 20px/1.2 var(--f-mono); padding: 14px 16px; border-radius: 16px; border: 1px solid var(--stroke-hi); background: var(--surface-solid); box-shadow: var(--shadow); outline: none; color: var(--text); caret-color: var(--mint); transition: border-color .2s, box-shadow .2s; }
.sy-in:focus { border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.sy-in::placeholder { color: var(--dim); font-family: var(--f-body); font-size: 15px; }
.sy-in.err { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 22px -4px var(--pink); animation: shake .18s; }
.sy-deadline { height: 3px; margin: 10px 18px 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sy-deadline i { display: block; height: 100%; width: 0; background: var(--mint); box-shadow: 0 0 10px var(--mint); transition: width .12s linear, background .3s; }
.sy-deadline.hot i { background: var(--amber); box-shadow: 0 0 10px var(--amber); } .sy-deadline.over i { background: var(--bad); animation: pulse .8s infinite; }
.sy-next { margin: 16px 0 0; font-size: 13.5px; color: var(--dim); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-next b { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-inline-end: 8px; }

.sy-toolbar { display: flex; align-items: center; gap: 2px; padding: 5px; margin-top: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow); flex-wrap: wrap; justify-content: center; max-width: 100%; backdrop-filter: blur(14px); }
.tb { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.tb svg { width: 16px; height: 16px; }
.tb b { font-weight: 600; }
.tb:hover { background: var(--surface-2); color: var(--text); }
.tb.on { color: var(--mint); background: var(--mint-soft); }
.tb-sep { width: 1px; height: 22px; background: var(--stroke); margin: 0 2px; }
.tb-select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--stroke); background: transparent; color: inherit; max-width: 130px; }
.tb-select option { color: var(--text); background: var(--surface-solid); }

.sy-below { width: min(100%, 860px); margin-top: 8px; }
.sy-below-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sy-below-head h3 { font-size: 16px; }
.sy-below-head span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sy-setup { width: min(560px, calc(100vw - 32px)); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; }
.chip-btn:hover, .chip-btn.on { color: var(--text); border-color: var(--stroke-hi); }
.chip-btn.on { background: var(--mint-soft); color: var(--mint); }
.cover { display: grid; place-items: center; padding: 30px; text-align: center; }
details.panel summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 600; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); font-family: var(--f-mono); }
details.panel[open] summary::before { content: "−"; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
.opts label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.opts input[type=checkbox] { accent-color: var(--mint); width: 16px; height: 16px; }
.opts input[type=range] { accent-color: var(--mint); flex: 1; }

/* büyü düellosu */
.duel-lobby { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
.duel-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.duel-name { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.duel-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.duel-name .mono { font: 700 18px var(--f-display); margin-inline-start: auto; }
.duel-hp.opp .duel-name { justify-content: flex-end; }
.duel-hp.opp .duel-name .mono { margin-inline-start: 0; margin-inline-end: auto; }
.duel-hp.opp .avatar { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; }
.hpbar { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke); overflow: hidden; }
.hpbar i, .hpbar u { position: absolute; inset-block: 0; left: 0; width: 100%; border-radius: inherit; transition: width .18s ease-out; }
.hpbar u { background: rgba(255, 255, 255, .28); transition: none; }
.duel-hp.me .hpbar i { background: linear-gradient(90deg, var(--mint-2), var(--mint)); box-shadow: 0 0 16px var(--mint-glow); }
.duel-hp.opp .hpbar { transform: scaleX(-1); }
.duel-hp.opp .hpbar i { background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 0 16px var(--pink); }
.hpbar.low { animation: pulse .9s infinite; }
.duel-clock { text-align: center; padding: 6px 16px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.duel-clock span { display: block; font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.duel-clock b { font: 700 24px var(--f-display); }
.duel-clock.hot b { color: var(--pink); animation: pulse 1s infinite; }
.spells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; cursor: text; }
.spell {
  --c: var(--mint); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); overflow: hidden; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.spell::before { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none; }
.spell.t2 { --c: var(--cyan); } .spell.t3 { --c: var(--violet); }
.spell.lock { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 16px 40px -14px var(--c); }
.spell-tier { font: 500 10.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.spell-word { font: 600 clamp(20px, 2.4vw, 26px) var(--f-mono); color: var(--text); letter-spacing: .02em; word-break: break-all; }
.spell-word .ok { color: var(--c); text-shadow: 0 0 12px var(--c); }
.spell-dmg { font: 600 12px var(--f-mono); color: var(--muted); }
.duel-hint { text-align: center; font-size: 13px; margin: 0; }

/* gece soygunu */
.noise-bar { height: 10px; margin-top: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.noise-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--pink)); box-shadow: 0 0 12px var(--amber); transition: width .15s; }
.noise-bar.hot { animation: pulse .6s infinite; }
.heist-words {
  --c: var(--mint); position: relative; text-align: center; padding: 18px 20px 16px; border-radius: var(--r); cursor: text;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: border-color .2s, box-shadow .2s;
}
.heist-words[data-phase="warn"] { --c: var(--amber); }
.heist-words[data-phase="light"] { --c: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 40px -10px var(--pink); }
.heist-cue { display: block; font: 600 11px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--c); min-height: 1.4em; }
.heist-words[data-phase="warn"] .heist-cue { animation: pulse .5s infinite; }
.heist-cur { font: 600 clamp(28px, 4vw, 40px) var(--f-mono); letter-spacing: .04em; color: var(--dim); margin: 6px 0 4px; unicode-bidi: plaintext; }
.heist-cur.gem { color: color-mix(in srgb, var(--amber) 70%, var(--dim)); }
.heist-cur.gem::before { content: '◆ '; color: var(--amber); text-shadow: 0 0 12px var(--amber); }
.heist-cur.cracked::before { content: '◇ '; color: var(--muted); text-shadow: none; }
.heist-time.low b { color: var(--pink); animation: pulse .5s infinite; }
.heist-time .noise-bar i { background: linear-gradient(90deg, var(--mint), var(--amber)); box-shadow: 0 0 12px var(--mint); }
.heist-time.low .noise-bar i { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.heist-cur .ok { color: var(--mint); text-shadow: 0 0 14px var(--mint-glow); }
.heist-cur .cur { color: var(--text); box-shadow: inset 0 -3px 0 var(--c); }
.heist-words[data-phase="light"] .heist-cur { opacity: .45; filter: blur(.5px); }
.heist-next { font: 500 14px var(--f-mono); color: var(--muted); }
/* oyun altyazısı: kelimenin seçilen dile çevirisi */
.word-sub { min-height: 1.4em; margin: 4px 0 0; font-size: 15px; color: var(--amber); text-align: center; unicode-bidi: plaintext; }
.word-sub b { color: var(--muted); font-weight: 500; }
.heist-words .word-sub { margin: 0 0 6px; }
.spell-sub { font-size: 13px; color: var(--amber); }

/* sıralama */
.board-table { width: 100%; border-collapse: collapse; }
.board-table th { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
.board-table td { padding: 12px 16px; border-bottom: 1px solid var(--stroke); }
.board-table td.num, .board-table th.num { text-align: end; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.board-table tr.me td { background: var(--mint-soft); }
.board-table td b { color: var(--mint); }
.board-table .empty { text-align: center; color: var(--muted); padding: 40px; }

/* Bitişik yazılan ya da hece tabanlı yazılarda harf aralığı harfleri koparır */
:lang(ar) :is(.badge, .kicker, .stat span, .term-stats span, .board-table th, .next-line b),
:lang(hi) :is(.badge, .kicker, .stat span, .term-stats span, .board-table th, .next-line b),
:lang(zh) :is(.badge, .kicker, .stat span, .term-stats span, .board-table th),
:lang(ja) :is(.badge, .kicker, .stat span, .term-stats span, .board-table th) { letter-spacing: 0; text-transform: none; }
:lang(ar) .term-text, :lang(hi) .term-text, :lang(zh) .term-text, :lang(ja) .term-text { font-family: var(--f-body); }

/* ---------- animasyonlar ---------- */
@keyframes blink { 50% { box-shadow: -2px 0 0 transparent; } }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes under { 50% { box-shadow: inset 0 -3px 0 transparent; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes lane { to { width: 96%; } }
@keyframes shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- duyarlı ---------- */
/* 7 mod bağlantısı + araçlar orta genişlikte sığsın */
@media (max-width: 1180px) {
  .top { gap: 12px; }
  .nav a { padding: 8px 9px; }
  .wordmark i { display: none; }
  .lang-pick select { max-width: 78px; }
  .user-chip span:last-child { display: none; }
  .user-chip { padding: 0 4px; }
  .online-lbl { display: none; }
}
@media (max-width: 1080px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 860px) {
  .hero, .two { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--stroke); z-index: 30; }
  .nav a.on::after { display: none; }
  /* backdrop-filter, sabit konumlu alt menü için kapsayıcı blok oluşturur; mobilde kaldır ki menü ekranın altına otursun */
  .top { justify-content: space-between; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  main { padding-bottom: 110px; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .lobby { grid-template-columns: repeat(2, 1fr); }
  .spells { grid-template-columns: 1fr; gap: 8px; }
  .spell { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; }
  .duel-top { grid-template-columns: 1fr 1fr; }
  .duel-clock { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 10px; font-size: 13px; flex-shrink: 0; }
}
@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 0; }
  .wordmark i, .user-chip span:last-child { display: none; }
  .user-chip { padding: 0 4px; }
  .lang-pick select { max-width: 74px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .result { grid-template-columns: 1fr 1fr; }
  .opts { grid-template-columns: 1fr; }
  .sy-url { flex-wrap: wrap; border-radius: 22px; padding: 8px 8px 8px 14px; }
  .sy-url input { flex-basis: calc(100% - 30px); }
  .sy-url select { flex: 1; }
  .sy-stats { gap: 14px; }
  .sy-statbar { justify-content: center; }
}
