/* EwrekaGames — tasarım sistemi (uygulama kabuğu) */
/* Rubik (değişken yazı tipi, 300–800) — kendi sunucumuzdan; latin + latin-ext (ğ ş ı İ ç ö ü) */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/assets/fonts/rubik-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/assets/fonts/rubik-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f4f6fa;
  --side: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --surface-3: #e5eaf2;
  --line: #e2e7ef;
  --line-2: #d0d8e4;
  --ink: #172033;
  --ink-2: #4b566b;
  --ink-3: #5a6679;
  --brand: #ff6b4a;
  --brand-press: #e0502f;
  --brand-soft: rgba(255, 107, 74, .1);
  --blue: #3d7bf7;
  --blue-press: #2a5fd0;
  --blue-soft: rgba(61, 123, 247, .1);
  --on-brand: #fff;
  --good: #14a874;
  --bad: #e5484d;
  --overlay: rgba(244, 246, 250, .8);
  --shadow-sm: 0 1px 2px rgba(23, 32, 51, .06);
  --shadow: 0 2px 4px rgba(23, 32, 51, .04), 0 12px 32px -12px rgba(23, 32, 51, .18);
  --shadow-lg: 0 4px 8px rgba(23, 32, 51, .05), 0 28px 64px -20px rgba(23, 32, 51, .32);
  --press: 0 3px 0 var(--line-2);
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .6, 1);
  /* oyun dosyalarının kullandığı adlar */
  --accent: var(--brand); --accent-2: var(--brand-press); --accent-soft: var(--brand-soft); --on-accent: var(--on-brand);
  --text: var(--ink); --muted: var(--ink-3); --line2: var(--line-2);
  --glass: var(--surface); --glass2: var(--surface-2);
  --serif: var(--sans); --display: var(--sans); --font: var(--sans);
  --grad: linear-gradient(135deg, #ff8a5c, #ff6b4a);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #11151d; --side: #0c1017; --surface: #181e29; --surface-2: #212937; --surface-3: #2b3444;
  --line: #262e3c; --line-2: #354052; --ink: #eef1f6; --ink-2: #a9b2c2; --ink-3: #8d98ab;
  --brand: #ff7656; --brand-press: #c94a2c; --brand-soft: rgba(255, 118, 86, .14);
  --blue: #5b8ff9; --blue-press: #3466d1; --blue-soft: rgba(91, 143, 249, .14);
  --good: #34d399; --bad: #f87171; --overlay: rgba(17, 21, 29, .8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 28px 64px -20px rgba(0, 0, 0, .8);
  --press: 0 3px 0 #0a0d13;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151d; --side: #0c1017; --surface: #181e29; --surface-2: #212937; --surface-3: #2b3444;
    --line: #262e3c; --line-2: #354052; --ink: #eef1f6; --ink-2: #a9b2c2; --ink-3: #8d98ab;
    --brand: #ff7656; --brand-press: #c94a2c; --brand-soft: rgba(255, 118, 86, .14);
    --blue: #5b8ff9; --blue-press: #3466d1; --blue-soft: rgba(91, 143, 249, .14);
    --good: #34d399; --bad: #f87171; --overlay: rgba(17, 21, 29, .8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 28px 64px -20px rgba(0, 0, 0, .8);
    --press: 0 3px 0 #0a0d13;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--brand-soft); }
.ico { width: 18px; height: 18px; flex: none; display: inline-block; }
.ico svg { width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo b { color: var(--brand); font-weight: 800; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.lm-bg { fill: #1e2636; }
.lm-ring { stroke: #1e2636; }
:root[data-theme="dark"] .lm-bg { fill: #2b3444; }
:root[data-theme="dark"] .lm-ring { stroke: #2b3444; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lm-bg { fill: #2b3444; } :root:not([data-theme="light"]) .lm-ring { stroke: #2b3444; } }

/* ---------- uygulama kabuğu ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidenav { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 14px; overflow-y: auto; z-index: 50; }
.sidenav > .logo { padding: 0 8px 20px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px; border-radius: 12px; color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nav .nico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-3); }
.nav a.on .nico { color: var(--brand); }
.nav .gico { width: 28px; height: 28px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.nav .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.nav .cnt.wait { background: var(--brand); color: #fff; }
.nav .cnt[hidden] { display: none; }
.nav-h { margin: 18px 10px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.me-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; position: relative; }
.me-chip:hover { background: var(--surface-2); }
.me-t { display: flex; flex-direction: column; min-width: 0; flex: 1; cursor: text; }
.me-t small { font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.me-t input { border: 0; outline: 0; background: transparent; padding: 0; font-weight: 600; font-size: 14px; min-width: 0; width: 100%; }
.me-t input::placeholder { color: var(--ink-3); font-weight: 500; }
.me-edit { color: var(--ink-3); display: grid; }
.me-edit .ico { width: 14px; height: 14px; }
.side-tools { display: flex; gap: 2px; }
.iconbtn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; flex: none; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: none; }
.scrim { display: none; }
.content { width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 36px 64px; flex: 1; }

/* ---------- düğmeler ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: var(--press); transition: transform .08s, box-shadow .08s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--press); }
.btn .ico { width: 17px; height: 17px; }
.btn.primary, .btn.accent { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-press); }
.btn.primary:hover, .btn.accent:hover { background: #ff7c5e; border-color: #ff7c5e; }
.btn.primary:disabled, .btn.accent:disabled { box-shadow: 0 3px 0 var(--brand-press); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.ghost:active { transform: none; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.big { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.wide { width: 100%; }
.btn.pulse::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: ringpulse 1.8s var(--ease) infinite; }
@keyframes ringpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 107, 74, 0); } }
.field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.field input::placeholder { color: var(--ink-3); }
.field .fico { color: var(--ink-3); display: grid; }
.field .fico .ico { width: 16px; height: 16px; }

/* ---------- avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }

/* ---------- ana sayfa ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.home-head h1 { font-size: 32px; font-weight: 800; margin: 0 0 6px; }
.home-head p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 520px; }
.joinbar { display: flex; gap: 8px; }
.joinbar .field { width: 190px; }
#joinCode { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
#joinCode::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 20px; }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile-art { position: relative; display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--line-2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tile-art img { display: block; width: 100%; height: 100%; transition: transform .35s var(--ease); }
.tile:hover .tile-art { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 9px 0 var(--line-2), 0 20px 30px -16px rgba(23, 32, 51, .35); }
.tile:hover .tile-art img { transform: scale(1.04); }
.tile:active .tile-art { transform: translateY(2px); box-shadow: 0 0 0 1px var(--line-2), 0 2px 0 var(--line-2); }
.tile-name { margin-top: 14px; font-weight: 700; font-size: 17px; }
.tile-sub { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.tile-sub.live { color: var(--good); }
.tile-sub.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.tile-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 2px 0 var(--brand-press); }
.tile-badge[hidden] { display: none; }
.tile-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tiles.small { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 16px; max-width: 760px; }
.tiles.small .tile-art { border-radius: 18px; }
.tiles.small .tile-name { font-size: 14px; margin-top: 10px; }
.about { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.about h2 { font-size: 20px; margin: 0 0 12px; }
.about p { color: var(--ink-2); margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: -4px 0 14px; color: var(--ink-2); font-size: 14px; }

/* ---------- oyun sayfası ---------- */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }
.gp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.gp-head { display: flex; align-items: center; gap: 22px; }
.gp-icon { width: 112px; height: 112px; border-radius: 26px; flex: none; box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--line-2); }
.gp-head h1 { font-size: 38px; font-weight: 800; margin: 0 0 4px; }
.gp-head p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-s { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.chip-s[hidden] { display: none; }
.chip-s .ico { width: 14px; height: 14px; }
.chip-s.live { background: rgba(20, 168, 116, .12); color: var(--good); }
.chip-s.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.play-card { margin-top: 32px; display: grid; gap: 12px; max-width: 520px; }
.namefield { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; cursor: text; transition: border-color .15s, box-shadow .15s; }
.namefield:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.nf-in { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nf-in small { font-size: 12px; color: var(--ink-3); }
.nf-in input { border: 0; outline: 0; background: transparent; padding: 0; font-size: 16px; font-weight: 600; }
.bigbtn { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 4px 0 var(--line-2); transition: transform .08s, box-shadow .08s, border-color .15s, background .15s; margin: 0; }
.bigbtn:hover { border-color: var(--ink-3); }
.bigbtn:active { transform: translateY(4px); box-shadow: none; }
.bigbtn.as-form:active { transform: none; box-shadow: 0 4px 0 var(--line-2); }
.bb-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.bb-ico .ico { width: 22px; height: 22px; }
.bb-t { display: flex; flex-direction: column; min-width: 0; }
.bb-t b { font-size: 17px; font-weight: 700; }
.bb-t small { font-size: 13px; color: var(--ink-3); }
.bb-t small.hot { color: var(--brand); font-weight: 600; }
.bb-t input { margin-top: 4px; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: var(--surface-2); outline: 0; font-size: 14px; }
.bb-t input:focus { border-color: var(--blue); }
.bb-go { color: var(--ink-3); display: grid; }
.bigbtn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-press); }
.bigbtn.primary:hover { background: #ff7c5e; }
.bigbtn.primary .bb-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.bigbtn.primary .bb-t small { color: rgba(255, 255, 255, .85); }
.bigbtn.primary .bb-t small.hot { color: #fff; }
.bigbtn.primary .bb-go { color: #fff; }
.bigbtn.loading { pointer-events: none; opacity: .75; }
.bigbtn.loading .bb-go { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.bigbtn.loading .bb-go .ico { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.gp-side { display: grid; gap: 16px; }
.how, .about-g { padding: 22px 22px 18px; }
.how h2, .about-g h2 { font-size: 17px; margin: 0 0 14px; }
.how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); }
.how li::before { content: counter(s); width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.about-g p { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.about-g a { text-decoration: underline; }
.more { margin-top: 56px; }
.more h2 { font-size: 20px; margin: 0 0 18px; }
.empty-page { text-align: center; padding: 80px 0; }
.empty-page p { color: var(--ink-2); margin-bottom: 24px; }

/* ---------- altbilgi (her temada koyu) ---------- */
.site-foot { background: #0c1017; color: #8f9aae; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 32px 36px 24px; }
.foot-links { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid #1f2633; }
.foot-links .logo { color: #eef1f6; font-size: 17px; }
.foot-links .lm-bg { fill: #2b3444; }
.foot-links .lm-ring { stroke: #2b3444; }
.foot-links nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 14px; }
.foot-links nav a:hover { color: #fff; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 13px; flex-wrap: wrap; }
.credit { display: inline-flex; align-items: center; gap: 12px; color: #d4dae5; font-size: 14px; }
.credit a { display: inline-flex; transition: opacity .2s; }
.credit a:hover { opacity: .85; }
.credit img { height: 36px; width: auto; display: block; }

/* ---------- oda ---------- */
body.in-room .content { max-width: 1320px; padding: 22px 24px 40px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); min-height: 360px; }
#board { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.pbar { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface-2); border: 2px solid transparent; transition: border-color .25s, background .25s; min-height: 64px; }
.pbar.turn { border-color: var(--brand); background: var(--brand-soft); }
.pbar .pn { flex: 1; min-width: 0; }
.pbar .pn b { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.pbar .pn b span { overflow: hidden; text-overflow: ellipsis; }
.pbar .pn b em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--ink-3); background: var(--surface); border-radius: 6px; padding: 1px 6px; }
.pbar .pn small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.pbar .chip { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.pbar .conn { display: inline-flex; align-items: center; gap: 5px; }
.pbar .conn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.pbar .conn.on::before { background: var(--good); }
.pbar .ptag { font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pbar .ptag.think { color: var(--ink-3); font-weight: 500; }
.pbar .psc { font-size: 26px; font-weight: 800; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.pbar .psc.bump { animation: bump .6s var(--spring); color: var(--brand); }
@keyframes bump { 40% { transform: scale(1.35); } }
.status-line { min-height: 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.status-line.me { color: var(--brand); }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .4; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.side { display: flex; flex-direction: column; gap: 16px; }
.room-card { padding: 14px; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-game { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-game img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.rc-game b { display: block; font-size: 15px; }
.rc-game small { display: block; color: var(--ink-3); font-size: 12px; }
.codechip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.codechip:hover { border-color: var(--ink-3); }
.codechip .ico { width: 14px; height: 14px; color: var(--ink-3); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface-2); color: var(--ink); }
.tabs .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.tabpane { padding: 12px 14px 14px; }
.chat-list { height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-3); font-size: 13px; max-width: 180px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; animation: msgin .25s var(--ease); }
.msg .bubble { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 7px 12px; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.msg .bubble b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.msg.me { align-self: flex-end; }
.msg.me .bubble { background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.big .bubble { font-size: 30px; background: transparent; padding: 0 2px; }
.msg.sys { align-self: center; max-width: 100%; color: var(--ink-3); font-size: 12px; background: var(--surface-2); padding: 3px 10px; border-radius: 8px; }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } }
.emojis { display: flex; gap: 4px; margin: 6px 0 8px; flex-wrap: wrap; }
.emojis button { height: 32px; min-width: 36px; padding: 0 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 16px; box-shadow: 0 2px 0 var(--line); transition: transform .1s; }
.emojis button.txt { font-size: 12px; font-weight: 700; }
.emojis button:hover { transform: translateY(-2px); }
.emojis button:active { transform: translateY(2px); box-shadow: none; }
.chat-form .field { padding-right: 4px; }
.chat-form .iconbtn { width: 34px; height: 34px; color: var(--blue); }
.emoji-fly { position: fixed; z-index: 70; font-size: 44px; pointer-events: none; }
.rules { font-size: 14px; color: var(--ink-2); }
.rules ul { padding-left: 18px; margin: 0; }
.rules li { margin-bottom: 8px; }
.rules a { color: var(--blue); }

/* bekleme */
.waiting { max-width: 520px; margin: 24px auto; }
.wait-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.wait-hero { position: relative; padding: 36px 24px 26px; text-align: center; background: radial-gradient(circle at 50% 46%, var(--brand-soft), transparent 62%); }
.seek { position: relative; width: 104px; height: 104px; margin: 0 auto 18px; }
.seek img { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--line-2); }
.seek::before, .seek::after { content: ""; position: absolute; inset: 0; border-radius: 30px; border: 2px solid var(--brand); opacity: 0; animation: seek 2.4s var(--ease) infinite; }
.seek::after { animation-delay: 1.2s; }
@keyframes seek { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.wait-hero h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.wait-hero p { margin: 0 auto; color: var(--ink-2); max-width: 380px; }
.wait-hero .timer { display: inline-block; margin-top: 12px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-3); background: var(--surface-2); padding: 3px 10px; border-radius: 8px; font-size: 13px; }
.wait-body { padding: 0 24px 24px; }
.wait-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 18px 0 8px; }
.linkbox { margin: 0 0 10px; height: 46px; }
.linkbox input { font-size: 14px; color: var(--ink-2); }
.share-row { display: flex; gap: 8px; }
.share-row .btn { flex: 1; }
.codebig { display: flex; gap: 6px; justify-content: center; }
.codebig span { width: 44px; height: 54px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 3px 0 var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 24px; font-weight: 700; animation: rise .4s var(--spring) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.wait-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
.wait-foot > span { display: inline-flex; align-items: center; gap: 8px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { padding: 90px 0; text-align: center; color: var(--ink-3); }
.state-box { padding: 44px 28px; text-align: center; }
.state-box .si { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.state-box .si .ico { width: 26px; height: 26px; }
.state-box h2 { font-size: 22px; margin: 16px 0 6px; }
.state-box p { color: var(--ink-2); margin: 0 0 22px; }

/* sonuç */
.result { position: absolute; inset: 0; display: grid; place-items: center; background: var(--overlay); border-radius: 22px; z-index: 25; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadein .3s ease; padding: 16px; }
@keyframes fadein { from { opacity: 0; } }
.result .box { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 28px 24px 22px; text-align: center; animation: popin .45s var(--spring); }
@keyframes popin { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.result .medal { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto; background: var(--surface-2); color: var(--ink-2); box-shadow: 0 4px 0 var(--line-2); }
.result .medal .ico { width: 30px; height: 30px; }
.result .medal.win { background: #f5b524; color: #fff; box-shadow: 0 4px 0 #c98d0c; animation: medal .9s var(--spring) .1s backwards; }
@keyframes medal { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
.result h2 { margin: 16px 0 2px; font-size: 30px; font-weight: 800; }
.result h2 em { font-style: normal; color: var(--brand); }
.result .sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; padding: 14px; background: var(--surface-2); border-radius: 14px; }
.scoreline .n { font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreline .n:first-child { text-align: right; }
.scoreline .n:last-child { text-align: left; }
.scoreline .s { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.scoreline .s i { font-style: normal; color: var(--ink-3); margin: 0 6px; font-weight: 500; }
.result .note { margin: 0 0 12px; color: var(--brand); font-weight: 700; font-size: 14px; }
.result .row { display: grid; gap: 8px; }

.modal { position: fixed; inset: 0; background: rgba(12, 16, 23, .55); display: grid; place-items: center; z-index: 80; padding: 16px; backdrop-filter: blur(3px); animation: fadein .2s; }
.modal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); padding: 28px 24px 24px; text-align: center; animation: popin .4s var(--spring); }
.modal .box > img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--line-2); }
.modal h3 { margin: 16px 0 6px; font-size: 22px; font-weight: 800; }
.modal h3 em { font-style: normal; color: var(--brand); }
.modal p { margin: 0 0 18px; color: var(--ink-2); }
.modal form { display: grid; gap: 10px; text-align: left; }
.modal .field { height: 48px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1e2636; color: #fff; padding: 11px 16px 11px 14px; border-radius: 12px; z-index: 90; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: toastin .35s var(--spring); max-width: calc(100vw - 32px); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.toast.ok::before { background: #34d399; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 14px); } }
.hint { font-size: 13px; color: var(--ink-3); text-align: center; }
.ctrl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* efekt katmanları */
.fx-spark { position: fixed; z-index: 75; border-radius: 50%; pointer-events: none; }
.fx-ring { position: fixed; z-index: 74; width: 40px; height: 40px; border-radius: 50%; border: 3px solid; pointer-events: none; }
.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 85; pointer-events: none; }
.fx-banner { position: absolute; left: 50%; top: 50%; z-index: 28; pointer-events: none; padding: 14px 28px 16px; border-radius: 18px; background: #1e2636; color: #fff; box-shadow: 0 5px 0 #0c1017, var(--shadow-lg); font-weight: 800; font-size: clamp(26px, 5.5vw, 40px); line-height: 1.05; white-space: nowrap; text-align: center; }
.fx-banner small { display: block; font-size: 13px; font-weight: 500; margin-top: 6px; opacity: .8; }
.fx-banner.gold { background: var(--brand); box-shadow: 0 5px 0 var(--brand-press), var(--shadow-lg); }
.fx-banner.blue { background: var(--blue); box-shadow: 0 5px 0 var(--blue-press), var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- odada dar kenar menü (masaüstü) ---------- */
@media (min-width: 961px) {
  body.in-room .app { grid-template-columns: 76px minmax(0, 1fr); }
  body.in-room .sidenav { padding: 16px 10px 12px; align-items: center; }
  body.in-room .sidenav > .logo { padding: 0 0 16px; }
  body.in-room .sidenav > .logo span, body.in-room .me-t, body.in-room .me-edit { display: none; }
  body.in-room .nav { width: 100%; align-items: center; }
  body.in-room .nav a { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; }
  body.in-room .nav a.on::before { left: -10px; }
  body.in-room .nav .gico { width: 30px; height: 30px; }
  body.in-room .nav .cnt { position: absolute; top: 2px; right: 0; margin: 0; min-width: 18px; height: 18px; font-size: 10px; padding: 0 4px; }
  body.in-room .nav-h { width: 28px; height: 1px; background: var(--line); margin: 10px auto; font-size: 0; }
  body.in-room .side-foot { flex-direction: column; gap: 4px; width: 100%; }
  body.in-room .me-chip { flex: none; padding: 0; }
  body.in-room .me-chip:hover { background: none; }
  body.in-room .side-tools { flex-direction: column; }
}

/* ---------- duyarlı ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .gp { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 1080px) {
  .room-grid { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidenav { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .app.nav-open .sidenav { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 16, 23, .45); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .app.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 12px; background: var(--side); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .topbar .logo { font-size: 18px; }
  .topbar .logo-mark { width: 28px; height: 28px; }
  .topbar-r { margin-left: auto; display: flex; gap: 4px; }
  .content { padding: 24px 20px 48px; }
  .foot-in { padding: 28px 20px 22px; }
}
@media (max-width: 640px) {
  .content, body.in-room .content { padding: 18px 14px 40px; }
  .home-head h1 { font-size: 26px; }
  .home-head p { font-size: 15px; }
  .joinbar { width: 100%; }
  .joinbar .field { flex: 1; width: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .tiles.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-art { border-radius: 18px; }
  .tile-name { font-size: 15px; }
  .about { padding: 22px 18px; margin-top: 44px; }
  .gp-head { gap: 16px; }
  .gp-icon { width: 80px; height: 80px; border-radius: 20px; }
  .gp-head h1 { font-size: 28px; }
  .gp-head p { font-size: 14px; }
  .side { grid-template-columns: 1fr; }
  .stage { padding: 8px; border-radius: 18px; gap: 8px; }
  .pbar { min-height: 56px; padding: 8px 10px 8px 8px; }
  .pbar .psc { font-size: 22px; }
  .result .box { padding: 22px 18px 18px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .credit { font-size: 13px; }
}

/* ---- Erişilebilirlik: içeriğe geç bağlantısı ---- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---- Altbilgi: yasal bağlantılar ---- */
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 14px; font-size: 14px; }
.foot-legal a, .foot-legal .linkbtn { color: var(--ink-2); text-decoration: none; }
.foot-legal a:hover, .foot-legal .linkbtn:hover { color: var(--ink); text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot-links { flex-wrap: wrap; }

/* ---- Çerez bandı ---- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); pointer-events: none; }
.consent-in { pointer-events: auto; max-width: 860px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.consent-txt { flex: 1 1 340px; min-width: 0; }
.consent-txt strong { display: block; font-size: 16px; margin-bottom: 2px; }
.consent-txt p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.consent-txt a { color: var(--blue); }
.consent-opts { flex: 1 0 100%; display: grid; gap: 8px; font-size: 14px; }
.consent-opts[hidden] { display: none; }
.consent-opts label { display: flex; gap: 10px; align-items: flex-start; }
.consent-opts input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-btns .btn { min-width: 96px; }
@media (max-width: 560px) { .consent-btns { width: 100%; } .consent-btns .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; } }

/* ---- Yasal / bilgi sayfaları ---- */
.legal { max-width: 780px; }
.legal h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
.legal .legal-meta { margin: 0 0 24px; color: var(--ink-3); font-size: 14px; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; line-height: 1.3; }
.legal h3 { margin: 20px 0 6px; font-size: 16px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 24px; }
.legal .toc ol { margin: 0; }
.legal .tbl { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.legal .tbl th, .legal .tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.legal .tbl th { background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal .tbl tr:last-child td { border-bottom: 0; }
.legal .note { background: var(--blue-soft); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.legal .note p { margin: 0; }
.legal .ph { background: var(--brand-soft); color: var(--ink); border-radius: 6px; padding: 0 4px; }

/* ---- Dil seçici (kenar menü altı; mobilde çekmece içinde) ---- */
.side-lang { margin-top: auto; padding-top: 12px; position: relative; }
.side-lang + .side-foot { margin-top: 10px; }
.langsw { position: relative; }
.langsw > summary { list-style: none; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 14px; cursor: pointer; user-select: none; transition: background .15s, color .15s; }
.langsw > summary::-webkit-details-marker { display: none; }
.langsw > summary:hover, .langsw[open] > summary { background: var(--surface-2); color: var(--ink); }
.langsw .ls-ico { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.langsw .ls-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langsw > summary .ls-code { display: none; }
.langsw .ls-chev { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform .15s; }
.langsw[open] .ls-chev { transform: rotate(180deg); }
.ls-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; }
.ls-list a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.ls-list a:hover { background: var(--surface-2); color: var(--ink); }
.ls-list a.on { color: var(--ink); font-weight: 600; background: var(--brand-soft); }
.ls-list .ls-code { width: 26px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.ls-list a.on .ls-code { color: var(--brand); }
@media (min-width: 961px) {
  body.in-room .side-lang { width: 100%; display: flex; justify-content: center; }
  body.in-room .langsw > summary { width: 48px; height: 44px; padding: 0; flex-direction: column; justify-content: center; gap: 1px; }
  body.in-room .langsw > summary .ls-cur, body.in-room .langsw .ls-chev { display: none; }
  body.in-room .langsw > summary .ls-code { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); line-height: 1; }
  body.in-room .ls-list { left: 0; right: auto; width: 56px; padding: 4px; }
  body.in-room .ls-list a { justify-content: center; padding: 0; height: 34px; }
  body.in-room .ls-list .ls-name { display: none; }
  body.in-room .ls-list .ls-code { width: auto; font-size: 12px; }
}

/* ---- Dil önerisi bandı (i18n-ui.js) ---- */
.langhint { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 950; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: grid; gap: 10px; animation: langhint-in .25s var(--ease); transition: opacity .25s, transform .25s; }
.langhint.out { opacity: 0; transform: translateY(-8px); }
.langhint p { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.langhint-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.langhint-btns .btn { height: 36px; padding: 0 14px; font-size: 13px; }
@keyframes langhint-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- Çevrilmemiş yasal sayfa notu ---- */
.legal-fallback { max-width: 780px; margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--ink-2); font-size: 14px; }

/* kenar menü: oyuncu adı etiketi tek satır */
.me-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
