:root {
  --ink: #f4f7fb;
  --ink-2: #a9b6c8;
  --ink-3: #6c7b90;
  --night: #060b14;
  --glass: rgba(9, 16, 28, .72);
  --glass-2: rgba(16, 26, 44, .82);
  --line: rgba(255, 255, 255, .09);
  --lime: #c8ff3c;
  --lime-d: #9ad11a;
  --red: #ff4d5e;
  --gold: #ffcc4d;
  --blue: #49a6ff;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
  --display: 'Anton', 'Impact', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }

/* ---------- Arka plan: stadyum ---------- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-img {
  position: absolute; inset: -2%;
  background:
    url('/assets/stadium.jpg') center 40% / cover no-repeat,
    radial-gradient(120% 70% at 50% 110%, #1d6b2c 0%, #0c3417 40%, transparent 70%),
    radial-gradient(80% 60% at 50% 0%, #1a2a48 0%, #060b14 70%);
  animation: drift 40s ease-in-out infinite alternate;
  filter: saturate(1.05) brightness(.72) blur(2px);
}
@media (max-aspect-ratio: 3/4) { .bg-img { background-image: url('/assets/stadium-portrait.jpg'), radial-gradient(120% 70% at 50% 110%, #1d6b2c 0%, #0c3417 40%, transparent 70%), radial-gradient(80% 60% at 50% 0%, #1a2a48 0%, #060b14 70%); } }
@keyframes drift { from { transform: scale(1.04) translate3d(-.6%, 0, 0); } to { transform: scale(1.08) translate3d(.6%, -.8%, 0); } }
.bg-flare { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; mix-blend-mode: screen; opacity: .22; filter: blur(40px); }
.bg-flare.f1 { top: -30vmax; left: -15vmax; background: radial-gradient(circle, #dff1ff 0%, transparent 60%); animation: flick 7s infinite; }
.bg-flare.f2 { top: -30vmax; right: -15vmax; background: radial-gradient(circle, #dff1ff 0%, transparent 60%); animation: flick 9s infinite reverse; }
@keyframes flick { 0%, 100% { opacity: .2; } 50% { opacity: .3; } }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(3, 6, 12, .55) 75%, rgba(3, 6, 12, .9) 100%), linear-gradient(180deg, rgba(3, 6, 12, .55), transparent 25%, transparent 70%, rgba(3, 6, 12, .75)); }

#app { position: relative; z-index: 1; min-height: 100dvh; }
.screen { display: none; min-height: 100dvh; padding: calc(76px + env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
body.ingame .screen { padding-top: max(10px, env(safe-area-inset-top)); }
body.ingame .topbar { display: none; }
.screen.on { display: flex; flex-direction: column; animation: fadeUp .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Ortak ---------- */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--shadow); }
.panel-title { font-family: var(--cond); font-weight: 800; letter-spacing: .14em; font-size: 14px; color: var(--ink-2); margin-bottom: 14px; display: flex; justify-content: space-between; }
.kicker { font-family: var(--cond); font-weight: 700; letter-spacing: .2em; font-size: 13px; color: var(--lime); }
.muted { color: var(--ink-3); font-size: 14px; }
.center { text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 14px; font-family: var(--cond); font-weight: 800; font-size: 20px; letter-spacing: .08em; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 40px; font-size: 15px; padding: 0 16px; }
.btn-primary { background: linear-gradient(180deg, #d8ff6a, var(--lime) 45%, var(--lime-d)); color: #0b1400; box-shadow: 0 10px 30px rgba(200, 255, 60, .28), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(200, 255, 60, .42), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-primary:disabled { filter: grayscale(1) brightness(.6); cursor: default; }
.btn-ghost { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 10px; align-self: center; }
.field { display: block; }
.field span { display: block; font-family: var(--cond); font-weight: 700; letter-spacing: .12em; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; text-transform: uppercase; }
.field input, .join-row input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .35); padding: 0 16px; font-size: 18px; font-weight: 600; outline: none; transition: border .2s, box-shadow .2s; }
.field input:focus, .join-row input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 60, .15); }

/* ---------- Giriş ---------- */

.brand { text-align: center; }
.brand-kicker { font-family: var(--cond); font-weight: 700; letter-spacing: .32em; color: var(--lime); font-size: 14px; }
.brand-title { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 13vw, 128px); line-height: .9; margin: 8px 0 10px; letter-spacing: .01em; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.brand-title span { display: block; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.brand-sub { max-width: 440px; margin: 0 auto; color: #d6deea; text-shadow: 0 2px 12px rgba(0,0,0,.9); font-size: 17px; line-height: 1.45; }
.home-panel { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { border-radius: 14px; padding: 14px 10px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); text-align: center; transition: all .2s; }
.mode b { display: block; font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .08em; }
.mode small { color: var(--ink-3); font-size: 13px; }
.mode.on { border-color: var(--lime); background: rgba(200, 255, 60, .1); box-shadow: inset 0 0 0 1px var(--lime); }
.mode.on small { color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.join-row input { text-transform: uppercase; letter-spacing: .4em; text-align: center; font-family: var(--cond); font-weight: 800; font-size: 24px; }

/* ---------- Lobi ---------- */
#s-lobby { max-width: 980px; margin: 0 auto; width: 100%; gap: 18px; justify-content: center; }
.lobby-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.room-code { display: flex; align-items: baseline; gap: 12px; }
.room-code span { font-family: var(--cond); font-weight: 700; color: var(--ink-3); letter-spacing: .2em; }
.room-code b { font-family: var(--display); font-size: clamp(48px, 10vw, 80px); letter-spacing: .12em; font-weight: 400; line-height: 1; }
.lobby-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 760px) { .lobby-grid { grid-template-columns: 1fr; } }
.lobby-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.lp.empty { opacity: .35; border-style: dashed; animation: none; }
.lp .jersey { width: 38px; height: 38px; flex: none; }
.lp .nm { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp .tag { font-size: 11px; font-family: var(--cond); letter-spacing: .14em; color: var(--gold); font-weight: 800; }
.lp .off { color: var(--ink-3); }
.lp .kick { margin-left: auto; color: var(--ink-3); font-size: 18px; padding: 4px 6px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.settings { display: grid; gap: 12px; margin-bottom: 18px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.set-row label { color: var(--ink-2); font-size: 15px; }
.stepper { display: flex; align-items: center; background: rgba(0, 0, 0, .3); border-radius: 12px; border: 1px solid var(--line); }
.stepper button { width: 36px; height: 36px; font-size: 20px; color: var(--ink-2); }
.stepper b { min-width: 40px; text-align: center; font-family: var(--cond); font-size: 20px; }
#btn-start { width: 100%; }

/* ---------- HUD ---------- */
#s-game { padding-top: max(10px, env(safe-area-inset-top)); gap: 12px; max-width: 1200px; margin: 0 auto; width: 100%; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.hud-code { font-family: var(--cond); font-weight: 800; letter-spacing: .2em; color: var(--ink-3); font-size: 14px; }
.hud-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.scorebug { display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); font-family: var(--cond); font-weight: 800; letter-spacing: .1em; }
.scorebug > div { padding: 8px 14px; display: flex; align-items: center; }
.sb-mode { background: var(--lime); color: #0b1400; font-size: 14px; }
.sb-main { background: #0d1626; font-size: 20px; }
.sb-sub { background: #172338; color: var(--ink-2); font-size: 16px; }
@media (max-width: 520px) { .sb-mode { display: none !important; } .scorebug > div { padding: 6px 10px; } .sb-main { font-size: 17px; } .sb-sub { font-size: 14px; } }
.clock { position: relative; width: 52px; height: 52px; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: rgba(0, 0, 0, .45); stroke-width: 4; }
.clock .trk { stroke: rgba(255, 255, 255, .12); }
.clock .arc { fill: none; stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke .2s; }
.clock b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 22px; }
.clock.hot .arc { stroke: var(--red); }
.clock.hot b { color: var(--red); animation: beat 1s infinite; }
.clock.idle { opacity: .25; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } }
.mute { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .35); font-size: 16px; }

/* ---------- Oyuncu şeridi ---------- */
.players-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.players-strip::-webkit-scrollbar { display: none; }
.pc { position: relative; flex: 0 0 auto; min-width: 118px; padding: 8px 12px 8px 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); display: flex; align-items: center; gap: 9px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .3s, box-shadow .3s; }
.pc::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--c); }
.pc .jersey { width: 28px; height: 28px; flex: none; }
.pc .nm { font-weight: 700; font-size: 14px; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .pts { font-family: var(--display); font-size: 22px; line-height: 1; margin-left: auto; padding-left: 6px; }
.pc .wins { display: flex; gap: 3px; margin-top: 3px; }
.pc .wins i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.pc .wins i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.pc .st { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pc .st.ok { background: var(--lime); color: #0b1400; }
.pc .st.pk { background: #fff; color: #0b1400; }
.pc.me { border-color: rgba(200, 255, 60, .5); }
.pc.off { opacity: .45; }
.pc.flash { animation: flash .7s; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 60, .9); transform: scale(1.06); } 100% { box-shadow: 0 0 0 18px rgba(200, 255, 60, 0); transform: none; } }
.pc.flash-bad { animation: flashbad .6s; }
@keyframes flashbad { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.crown { position: absolute; top: -9px; left: 8px; font-size: 13px; }

/* ---------- Sahne ---------- */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.phase-banner { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 56px); letter-spacing: .03em; text-align: center; text-shadow: 0 6px 30px rgba(0, 0, 0, .7); line-height: 1; min-height: 1em; margin-top: 4px; }
.phase-banner small { display: block; font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--lime); margin-bottom: 8px; }
.phase-banner.anim { animation: slam .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam { from { transform: scale(1.6); opacity: 0; letter-spacing: .3em; } to { transform: none; opacity: 1; } }

/* Masa: takım armaları */
.table { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; perspective: 1000px; width: 100%; }
.table:empty { display: none; }
.crest { width: 132px; height: 168px; position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .9, .2, 1); }
.crest.flip { transform: rotateY(180deg); }
.crest .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; overflow: hidden; }
.crest .back { background: repeating-linear-gradient(135deg, #0d1a2e 0 10px, #0a1424 10px 20px); box-shadow: var(--shadow); }
.crest .back::after { content: '?'; font-family: var(--display); font-size: 54px; color: rgba(255, 255, 255, .18); }
.crest .front { transform: rotateY(180deg); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), var(--glass-2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.crest .front::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, var(--c, #fff) 0%, transparent 60%); opacity: .25; }
.crest img.logo { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); position: relative; }
.crest .tn { font-family: var(--cond); font-weight: 800; font-size: 16px; line-height: 1.05; letter-spacing: .02em; position: relative; }
.crest .who { position: absolute; bottom: 0; left: 0; right: 0; font-size: 12px; font-weight: 700; padding: 4px; background: var(--c); color: #0b1400; }
.crest .auto { position: absolute; top: 6px; right: 6px; font-size: 10px; background: rgba(0, 0, 0, .6); padding: 2px 6px; border-radius: 6px; color: var(--ink-2); }
.crest.hit .front { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime), 0 0 40px rgba(200, 255, 60, .45); }
.table.small .crest { width: 96px; height: 122px; }
.table.small .crest img.logo { width: 50px; height: 50px; }
.table.small .crest .tn { font-size: 13px; }
.table.duel { gap: 0; align-items: center; }
.table.duel .vs { font-family: var(--display); font-size: 40px; padding: 0 18px; color: var(--lime); text-shadow: 0 0 30px rgba(200, 255, 60, .5); }
.table.duel .crest { width: 170px; height: 210px; }
.table.duel .crest img.logo { width: 100px; height: 100px; }
.table.duel .crest .tn { font-size: 20px; }
@media (max-width: 520px) {
  .crest { width: 96px; height: 124px; } .crest img.logo { width: 50px; height: 50px; } .crest .tn { font-size: 13px; }
  .table.duel .crest { width: 132px; height: 168px; } .table.duel .crest img.logo { width: 72px; height: 72px; } .table.duel .vs { font-size: 28px; padding: 0 8px; }
  .table.small .crest { width: 78px; height: 100px; } .table.small .crest img.logo { width: 40px; height: 40px; } .table.small .crest .tn { font-size: 11px; }
}

/* Arama */
.search-box { width: min(560px, 100%); display: none; position: relative; }
.search-box.on { display: block; animation: fadeUp .3s; }
.search { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; border-radius: 18px; background: rgba(6, 12, 22, .85); border: 2px solid rgba(200, 255, 60, .55); box-shadow: 0 0 0 6px rgba(200, 255, 60, .08), var(--shadow); backdrop-filter: blur(12px); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 20px; font-weight: 600; }
.search input::placeholder { color: var(--ink-3); }
.search-ico { font-size: 22px; }
.search.locked { opacity: .5; border-color: rgba(255, 255, 255, .2); }
.results { list-style: none; margin: 8px 0 0; padding: 6px; border-radius: 16px; background: rgba(8, 14, 26, .94); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: 46vh; overflow-y: auto; position: absolute; left: 0; right: 0; z-index: 5; }
.results:empty { display: none; }
.results li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.results li.sel, .results li:hover { background: rgba(200, 255, 60, .12); }
.results img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.results img.ph { border-radius: 50%; object-fit: cover; background: #1b2638; }
.results .r-n { font-weight: 700; font-size: 17px; }
.results .r-s { color: var(--ink-3); font-size: 13px; }
.results .flag { margin-left: auto; font-size: 18px; }
.my-pick { margin-top: 12px; text-align: center; color: var(--ink-2); font-family: var(--cond); font-weight: 700; letter-spacing: .08em; font-size: 18px; }
.my-pick img { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-right: 8px; }

/* Cevap akışı */
.feed { width: min(760px, 100%); display: flex; flex-direction: column; gap: 10px; }
.ans { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(14px); animation: slideIn .45s cubic-bezier(.2, 1.2, .4, 1); position: relative; overflow: hidden; }
.ans.good { border-color: rgba(200, 255, 60, .6); box-shadow: 0 0 30px rgba(200, 255, 60, .18); }
.ans.bad { border-color: rgba(255, 77, 94, .5); opacity: .82; }
.ans .ph { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #18243a; flex: none; }
.ans.bad .ph { width: 44px; height: 44px; filter: grayscale(1); }
.ans .info { flex: 1; min-width: 0; }
.ans .pn { font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: .02em; }
.ans .by { font-size: 13px; color: var(--ink-3); }
.ans .by b { color: var(--c); }
.ans .stints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stint { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 600; }
.stint img { width: 20px; height: 20px; object-fit: contain; }
.stint span { color: var(--ink-3); font-weight: 500; }
.ans .pts { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--lime); }
.ans.bad .pts { color: var(--red); font-size: 26px; }
@keyframes slideIn { from { transform: translateY(-16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.ans.good::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-100%); animation: shine 1.1s .1s; }
@keyframes shine { to { transform: translateX(100%); } }

/* Sonuç */
.result-box { width: min(760px, 100%); display: none; flex-direction: column; gap: 14px; }
.result-box.on { display: flex; animation: fadeUp .4s; }
.res-banner { text-align: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(200, 255, 60, .18), rgba(73, 166, 255, .12)); border: 1px solid rgba(200, 255, 60, .35); }
.res-banner h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .02em; }
.res-banner p { margin: 6px 0 0; color: var(--ink-2); }
.missed h4, .gains h4 { font-family: var(--cond); letter-spacing: .16em; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.missed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mp { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.mp img.ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #18243a; flex: none; }
.mp .pn { font-weight: 700; font-size: 15px; }
.mp .yrs { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.gains-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gain { padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-weight: 700; }
.gain b { font-family: var(--display); font-weight: 400; margin-left: 6px; }
.gain .plus { color: var(--lime); } .gain .minus { color: var(--red); }

/* Final */
.podium { display: flex; align-items: end; justify-content: center; gap: 10px; margin: 10px 0; }
.pod { width: 120px; text-align: center; }
.pod .jersey { width: 64px; height: 64px; margin: 0 auto 6px; }
.pod .nm { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.pod .blk { border-radius: 12px 12px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04)); border: 1px solid var(--line); border-bottom: 0; display: grid; place-items: center; font-family: var(--display); font-size: 38px; }
.pod.p1 .blk { height: 140px; background: linear-gradient(180deg, rgba(255, 204, 77, .5), rgba(255, 204, 77, .06)); }
.pod.p2 .blk { height: 100px; } .pod.p3 .blk { height: 70px; }
.trophy { font-size: 64px; text-align: center; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(255, 204, 77, .5)); }
@keyframes float { 50% { transform: translateY(-8px); } }

.admin-bar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); display: none; justify-content: center; z-index: 10; }
.admin-bar.on { display: flex; animation: fadeUp .3s; }
.admin-bar .btn { min-width: 220px; height: 60px; font-size: 22px; }
.wait-admin { text-align: center; color: var(--ink-3); font-family: var(--cond); letter-spacing: .12em; font-weight: 700; }

/* Konfeti */
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 50; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

/* Bildirim */
.toasts { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 12px; background: rgba(10, 16, 28, .95); border: 1px solid var(--line); font-weight: 700; box-shadow: var(--shadow); animation: fadeUp .25s; }
.toast.warn { border-color: var(--gold); } .toast.err { border-color: var(--red); }

/* Kurallar */
.rules { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 20px; background: #0b1322; color: var(--ink); padding: 24px; box-shadow: var(--shadow); }
.rules::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.rules h2 { font-family: var(--display); font-weight: 400; margin: 0 0 12px; font-size: 32px; }
.rules h3 { font-family: var(--cond); letter-spacing: .14em; color: var(--lime); margin: 18px 0 8px; font-size: 15px; }
.rules ol { padding-left: 20px; line-height: 1.5; color: var(--ink-2); }
.rules table { width: 100%; border-collapse: collapse; }
.rules td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.rules td:last-child { text-align: right; font-family: var(--display); font-size: 20px; color: var(--lime); }
.rules p { color: var(--ink-2); line-height: 1.5; }
.rules form { margin-top: 16px; } .rules .btn { width: 100%; }

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


/* =========================================================
   v2: üst bar, hero, ışıklar, sıralama, profil, rozetler
   ========================================================= */
.bg-beams { position: absolute; inset: 0; overflow: hidden; mix-blend-mode: screen; }
.bg-beams i { position: absolute; top: -20vh; width: 22vw; height: 140vh; background: linear-gradient(180deg, rgba(220, 240, 255, .16), rgba(220, 240, 255, 0) 70%); filter: blur(18px); transform-origin: 50% 0; animation: sweep 9s ease-in-out infinite alternate; }
.bg-beams i:nth-child(1) { left: 2vw; transform: rotate(-24deg); }
.bg-beams i:nth-child(2) { left: 26vw; transform: rotate(-10deg); animation-delay: -3s; opacity: .7; }
.bg-beams i:nth-child(3) { right: 26vw; transform: rotate(10deg); animation-delay: -5s; opacity: .7; }
.bg-beams i:nth-child(4) { right: 2vw; transform: rotate(24deg); animation-delay: -1s; }
@keyframes sweep { from { opacity: .35; } to { opacity: .9; } }
.bg-grain { position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); pointer-events: none; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; background: rgba(5, 9, 17, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo span { font-family: var(--display); font-size: 22px; letter-spacing: .04em; }
.logo b { font-weight: 400; color: transparent; -webkit-text-stroke: 1.2px var(--ink); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-a { color: var(--ink-2); text-decoration: none; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; font-size: 15px; padding: 8px 12px; border-radius: 10px; text-transform: uppercase; }
.nav-a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
@media (max-width: 560px) { .nav-a span { display: none; } .logo span { font-size: 18px; } }
.me-chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; }
.me-chip.out { padding: 0 16px; background: var(--lime); color: #0b1400; font-family: var(--cond); letter-spacing: .08em; border: 0; }
.me-chip img, .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #22324d; display: grid; place-items: center; font-family: var(--display); font-size: 15px; color: var(--ink); flex: none; }

/* Hero */
#s-home { align-items: center; gap: 34px; }
.hero { width: min(1180px, 100%); display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin-top: 3vh; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; } .hero .brand-sub { margin: 0 auto; } .hero-stats { justify-content: center; } }
.hero-copy .brand-title { font-size: clamp(64px, 11vw, 150px); text-align: inherit; margin: 10px 0 14px; }
.brand-title .l1 { display: block; background: linear-gradient(180deg, #fff 30%, #b9c6d8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .6)); }
.brand-title .l2 { display: block; width: fit-content; color: transparent; -webkit-text-stroke: 2px var(--lime); position: relative; }
@media (max-width: 900px) { .brand-title .l2 { margin: 0 auto; } }
.brand-title .l2::after { content: 'OYUNCU'; position: absolute; inset: 0; color: var(--lime); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); animation: fillIn 3.2s 0.6s cubic-bezier(.7, 0, .2, 1) infinite alternate; }
@keyframes fillIn { 0%, 30% { clip-path: inset(0 100% 0 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }
.hero .brand-sub { max-width: 560px; margin: 0; font-size: 18px; color: #d6deea; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.hero .brand-sub b { color: var(--ink); }
.pulse-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; box-shadow: 0 0 0 0 rgba(200, 255, 60, .7); animation: ping 1.6s infinite; vertical-align: 1px; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(200, 255, 60, 0); } }
.hero-stats { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats div { font-family: var(--cond); color: var(--ink-3); letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.home-panel { width: 100%; max-width: 440px; justify-self: end; }
@media (max-width: 900px) { .home-panel { justify-self: center; } }
.glow-edge { position: relative; }
.glow-edge::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(200, 255, 60, .7), rgba(255, 255, 255, .05) 35%, rgba(73, 166, 255, .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.btn-xl { height: 60px; font-size: 22px; width: 100%; }
.btn .arr { transition: transform .2s; } .btn:hover .arr { transform: translateX(4px); }
.mode-ico { width: 46px; height: 30px; display: block; margin: 0 auto 6px; fill: var(--ink-3); stroke: var(--ink-3); }
.mode.on .mode-ico { fill: var(--lime); stroke: var(--lime); }
.mode-ico .x { fill: none; }
.hp-who { display: none; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(200, 255, 60, .08); border: 1px solid rgba(200, 255, 60, .25); }
.hp-who.on { display: flex; }
.hp-who .nm { font-weight: 800; font-size: 18px; }
.hp-who small { display: block; color: var(--ink-3); font-size: 12px; }

/* Logo şeridi */
.marquee { width: 100vw; margin-left: -16px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 6px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marq 60s linear infinite; }
.marquee-track img { width: 46px; height: 46px; object-fit: contain; opacity: .8; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)) grayscale(.15); transition: transform .2s, opacity .2s; }
.marquee-track img:hover { transform: scale(1.2); opacity: 1; }
@keyframes marq { to { transform: translateX(-50%); } }

.home-grid { width: min(1180px, 100%); display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.panel-title a { color: var(--lime); text-decoration: none; letter-spacing: .06em; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.step i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-family: var(--display); font-size: 18px; background: rgba(200, 255, 60, .12); color: var(--lime); border: 1px solid rgba(200, 255, 60, .3); }
.step b { font-family: var(--cond); font-size: 20px; letter-spacing: .03em; }
.step p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.points-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.points-row span { padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.points-row b { font-family: var(--display); font-weight: 400; color: var(--lime); font-size: 18px; margin-right: 6px; }
.points-row .neg b { color: var(--red); }
.top-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 10px; }
.top-row:hover { background: rgba(255, 255, 255, .04); }
.top-row .rk { font-family: var(--display); font-size: 26px; width: 28px; text-align: center; color: var(--ink-3); }
.top-row .nm { font-weight: 800; font-size: 17px; }
.top-row .pts { margin-left: auto; font-family: var(--display); font-size: 22px; }
.top-row .pts small { font-family: var(--cond); font-size: 12px; color: var(--ink-3); margin-left: 4px; letter-spacing: .1em; }
.empty-note { color: var(--ink-3); padding: 18px 4px; font-size: 15px; }

/* Unvan ve rozet */
.title-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-family: var(--cond); font-weight: 800; letter-spacing: .1em; font-size: 11px; text-transform: uppercase; vertical-align: middle; }
.title-chip.r1, .t-hasta { color: #ffd75e; } .title-chip.r1 { background: linear-gradient(135deg, rgba(255, 204, 77, .3), rgba(255, 120, 40, .25)); border: 1px solid rgba(255, 204, 77, .7); box-shadow: 0 0 14px rgba(255, 204, 77, .35); }
.title-chip.r2, .t-manyak { color: #e6eef8; } .title-chip.r2 { background: rgba(220, 230, 245, .16); border: 1px solid rgba(220, 230, 245, .6); }
.title-chip.r3, .t-deli { color: #f0a46b; } .title-chip.r3 { background: rgba(205, 127, 50, .2); border: 1px solid rgba(205, 127, 50, .7); }
.badge-ico { width: 22px; height: 22px; vertical-align: middle; flex: none; }
.badge-big { width: 92px; height: 92px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.badge-big.l1 { animation: float 3s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255, 204, 77, .55)); }

/* Lobi v2 */
#s-lobby { justify-content: flex-start; }
.lobby-wrap { width: min(1080px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.lobby-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
.lobby-side { display: flex; flex-direction: column; gap: 16px; }
.invite { text-align: center; }
.qr { width: 200px; height: 200px; margin: 0 auto 10px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 6px rgba(200, 255, 60, .18), var(--shadow); }
.qr svg { width: 100%; height: 100%; display: block; }
.invite-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.invite-row input { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); padding: 0 12px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.share { width: 100%; margin-top: 8px; }
.lp .sub { display: flex; gap: 6px; align-items: center; margin-top: 2px; }

/* Oyuncu şeridindeki künye */
.pc .tagline { display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.pc .tagline .title-chip { font-size: 9px; padding: 1px 6px; }
.pc .tagline .badge-ico { width: 16px; height: 16px; }
.common-hint { font-family: var(--cond); font-weight: 700; letter-spacing: .14em; color: var(--ink-3); font-size: 13px; min-height: 16px; text-transform: uppercase; }
.common-hint b { color: var(--lime); }

/* Sayfalar */
.page { width: min(980px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 9vw, 88px); margin: 4px 0 6px; line-height: .95; }
.page-head .muted b { font-family: var(--cond); letter-spacing: .06em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-family: var(--cond); font-weight: 700; letter-spacing: .06em; font-size: 15px; color: var(--ink-2); }
.chip.on { background: var(--lime); color: #0b1400; border-color: var(--lime); }
.lb-tools { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.lb-search { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); padding: 0 14px; font-size: 15px; outline: none; width: 200px; }
.lb-panel { padding: 8px; }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { font-family: var(--cond); font-weight: 700; letter-spacing: .1em; font-size: 12px; color: var(--ink-3); text-align: right; padding: 10px 8px; white-space: nowrap; }
.lb-table th.on { color: var(--lime); }
.lb-table th:nth-child(1), .lb-table th:nth-child(2) { text-align: left; }
.lb-table td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: right; font-family: var(--cond); font-weight: 700; font-size: 17px; white-space: nowrap; }
.lb-table td.on { color: var(--lime); font-size: 19px; }
.lb-table td:nth-child(1) { text-align: left; font-family: var(--display); font-weight: 400; color: var(--ink-3); width: 36px; }
.lb-table td:nth-child(2) { text-align: left; font-family: var(--body); }
.lb-table tr.me td { background: rgba(200, 255, 60, .06); }
.lb-table a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.lb-table .avatar { width: 28px; height: 28px; font-size: 13px; }
.lb-scroll { overflow-x: auto; }
@media (max-width: 640px) { .lb-table .hide-sm { display: none; } .lb-search { width: 100%; } }
.podium-lb { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; }
.pl { text-align: center; padding: 18px 10px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); text-decoration: none; color: inherit; position: relative; overflow: hidden; }
.pl.p1 { padding-top: 30px; border-color: rgba(255, 204, 77, .55); box-shadow: 0 0 40px rgba(255, 204, 77, .18); }
.pl.p1::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255, 204, 77, .25), transparent 60%); }
.pl .avatar { width: 64px; height: 64px; margin: 0 auto 8px; font-size: 28px; border: 2px solid rgba(255, 255, 255, .2); }
.pl.p1 .avatar { width: 80px; height: 80px; border-color: #ffcc4d; }
.pl .nm { font-weight: 800; font-size: 18px; margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .val { font-family: var(--display); font-size: 30px; }
.pl .val small { font-family: var(--cond); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; margin-left: 4px; }
.pl .rk { font-family: var(--display); position: absolute; top: 8px; left: 12px; color: var(--ink-3); font-size: 22px; }

/* Profil */
.prof-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 640px) { .prof-head { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.prof-head .avatar { width: 96px; height: 96px; font-size: 42px; border: 3px solid rgba(200, 255, 60, .6); }
.prof-name { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 7vw, 60px); line-height: 1; margin: 6px 0; }
.prof-rank { color: var(--ink-2); font-family: var(--cond); letter-spacing: .12em; font-weight: 700; }
.badge-card { text-align: center; padding: 14px 18px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.badge-card .bn { font-family: var(--cond); font-weight: 800; letter-spacing: .06em; margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.stat span { font-family: var(--cond); font-weight: 700; letter-spacing: .1em; font-size: 12px; color: var(--ink-3); text-transform: uppercase; }
.stat.hl b { color: var(--lime); }
.badge-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bl { text-align: center; padding: 14px 8px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); opacity: .4; filter: grayscale(1); }
.bl.got { opacity: 1; filter: none; border-color: rgba(255, 255, 255, .2); }
.bl .badge-big { width: 64px; height: 64px; }
.bl b { display: block; font-family: var(--cond); font-size: 14px; letter-spacing: .04em; margin-top: 6px; }
.bl small { color: var(--ink-3); font-size: 12px; }

/* Diyaloglar */
.dlg { max-width: 440px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #101a2d, #0a1220); color: var(--ink); padding: 26px; box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.dlg h2 { font-family: var(--display); font-weight: 400; margin: 4px 0 8px; font-size: 34px; letter-spacing: .02em; }
.dlg .field { margin: 14px 0; }
.dlg-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--ink-2); }
.dlg .or { margin: 14px 0 0; }
.g-btn { display: flex; justify-content: center; min-height: 44px; margin-top: 12px; }
.g-btn:empty { display: none; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 0; }
.code-boxes input { height: 60px; text-align: center; font-family: var(--display); font-size: 30px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .35); outline: none; color: var(--ink); width: 100%; }
.code-boxes input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 60, .15); }
.dlg .link { display: block; margin: 8px auto 0; }

/* Premium */
.pro-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-family: var(--cond); font-weight: 800; font-size: 11px; letter-spacing: .14em; color: #1a1200; background: linear-gradient(135deg, #fff1a8, #ffcc4d 50%, #e09b1b); vertical-align: middle; margin-left: 6px; }
.missed.locked { position: relative; }
.missed.locked { min-height: 230px; }
.missed-list.blurred { filter: blur(4px) saturate(.8); pointer-events: none; user-select: none; opacity: .9; }
.mp { position: relative; }
.kbadge { position: absolute; top: 6px; right: 8px; font-family: var(--display); font-size: 13px; color: #1a1200; background: var(--gold); border-radius: 6px; padding: 1px 6px; }
.unlock { position: absolute; left: 50%; top: calc(50% + 12px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 26px; border-radius: 18px; background: linear-gradient(160deg, rgba(30, 24, 6, .92), rgba(12, 16, 28, .95)); border: 1px solid rgba(255, 204, 77, .7); box-shadow: 0 0 0 6px rgba(255, 204, 77, .12), 0 20px 50px rgba(0, 0, 0, .6); text-align: center; min-width: 250px; transition: transform .15s, box-shadow .2s; animation: glowPulse 2.4s ease-in-out infinite; }
.unlock:hover { transform: translate(-50%, -50%) scale(1.04); }
.unlock .lock { font-size: 26px; }
.unlock b { font-family: var(--cond); font-size: 22px; letter-spacing: .04em; }
.unlock small { color: var(--gold); font-weight: 700; }
.unlock em { font-style: normal; margin-top: 6px; padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, #fff1a8, #ffcc4d 50%, #e09b1b); color: #1a1200; font-family: var(--cond); font-weight: 800; letter-spacing: .08em; }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 10px rgba(255, 204, 77, .06), 0 20px 50px rgba(0, 0, 0, .6); } }
.promo { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; cursor: pointer; border-color: rgba(255, 204, 77, .5); background: linear-gradient(135deg, rgba(255, 204, 77, .14), rgba(9, 16, 28, .8)); color: var(--ink); }
.promo b { font-family: var(--cond); font-size: 22px; letter-spacing: .03em; }
.promo small { color: var(--ink-2); }

/* v3: dil, hızlı oyna, yayıncı modu, gizli cevaplar, arama */
.lang-sel { height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--ink); border: 1px solid var(--line); padding: 0 8px; font: 700 14px var(--cond); letter-spacing: .04em; }
.lang-sel option { background: #0d1626; }
.cta-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.cta-row .btn-xl { font-size: 19px; padding: 0 12px; }
.waiting-line { text-align: center; color: var(--lime); font: 700 13px var(--cond); letter-spacing: .12em; text-transform: uppercase; min-height: 16px; }
.stream-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.stream-toggle input { width: 18px; height: 18px; accent-color: #ff4d5e; }
#btn-stream.on { background: #ff4d5e; box-shadow: 0 0 0 4px rgba(255,77,94,.25); }
/* yayında yazılanlar görünmez */
body.streamer #team-q, body.streamer #player-q { -webkit-text-security: disc; text-security: disc; }
body.streamer .search { border-color: rgba(255,77,94,.7); box-shadow: 0 0 0 6px rgba(255,77,94,.1), var(--shadow); }
body.streamer .search::after { content: '🎥 LIVE'; font: 800 12px var(--cond); letter-spacing: .14em; color: #ff4d5e; }
.results .stream-note { color: var(--ink-2); justify-content: center; cursor: default; }
.st.tr { background: #49a6ff; color: #04101f; }
.pc.flash-n { animation: flashn .5s; }
@keyframes flashn { 0% { box-shadow: 0 0 0 0 rgba(73,166,255,.8); } 100% { box-shadow: 0 0 0 14px rgba(73,166,255,0); } }
.ans.dup { border-color: rgba(255,204,77,.5); opacity: .9; }
.ans.dup .pts { color: var(--gold); font-size: 26px; }
.ans .pts small { font-size: 14px; opacity: .7; }
.mine-msg { margin-top: 10px; text-align: center; font: 800 17px var(--cond); letter-spacing: .06em; min-height: 22px; }
.mine-msg.ok { color: var(--lime); } .mine-msg.bad { color: var(--red); animation: flashbad .4s; } .mine-msg.dup { color: var(--gold); }
.pro-tag.sm { font-size: 9px; padding: 1px 5px; margin-left: 4px; }
/* arama sonuçları */
.results li { padding: 8px 10px; gap: 14px; }
.results .r-img { width: 44px; height: 44px; flex: none; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.05); padding: 3px; }
.results img.ph.r-img { object-fit: cover; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); background: #1b2638; }
.results .r-txt { min-width: 0; }
.results .r-n { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .r-s { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results li.sel { background: linear-gradient(90deg, rgba(200,255,60,.18), rgba(200,255,60,.04)); box-shadow: inset 3px 0 0 var(--lime); }
.results li.sel .r-n { color: var(--lime); }
.nav .lang-sel { margin-left: 4px; }
@media (max-width: 560px) { .cta-row { grid-template-columns: 1fr; } .lang-sel { width: 64px; } }

/* v4: oda türü, açık odalar, oda kodu */
.vis-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vis { border-radius: 12px; padding: 10px 8px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); text-align: center; transition: all .2s; }
.vis b { display: block; font: 800 16px var(--cond); letter-spacing: .08em; }
.vis small { color: var(--ink-3); font-size: 12px; }
.vis.on { border-color: #49a6ff; background: rgba(73,166,255,.12); box-shadow: inset 0 0 0 1px #49a6ff; }
.vis.on small { color: var(--ink-2); }
.rooms-panel { width: min(1180px, 100%); }
.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.room-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: left; transition: all .15s; }
.room-item:hover { border-color: var(--lime); background: rgba(200,255,60,.08); transform: translateY(-1px); }
.ri-mode { font-size: 22px; }
.ri-main { flex: 1; min-width: 0; }
.ri-main b { display: block; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-main small { color: var(--ink-3); font-size: 12px; }
.ri-n { font: 400 20px var(--display); color: var(--ink-2); }
.ri-go { font: 800 13px var(--cond); letter-spacing: .1em; color: var(--lime); }
.sm-link { padding: 0 6px; font-size: 16px; text-decoration: none; }
.code-card { text-align: center; }
.big-code { font: 400 clamp(64px, 14vw, 96px) var(--display); letter-spacing: .16em; line-height: 1; margin: 6px 0 10px; color: var(--lime); text-shadow: 0 0 40px rgba(200,255,60,.3); user-select: all; }
.code-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; margin-top: 8px; }
.vis-line { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.room-list .empty-note { grid-column: 1 / -1; }

/* premium penceresi */
.premium-dlg { text-align: center; border-color: rgba(255,204,77,.45); background: radial-gradient(120% 80% at 50% 0%, rgba(255,204,77,.18), transparent 60%), linear-gradient(180deg, #14100a, #0a1220); }
.pro-crown { font-size: 46px; filter: drop-shadow(0 6px 20px rgba(255,204,77,.5)); }
.premium-dlg h2 { margin-top: 10px; }
.prm-list { list-style: none; padding: 0; margin: 14px 0; text-align: left; display: grid; gap: 8px; }
.prm-list li { padding: 10px 12px 10px 38px; border-radius: 12px; background: rgba(255,255,255,.05); position: relative; font-weight: 600; }
.prm-list li::before { content: '✓'; position: absolute; left: 12px; color: var(--gold); font-weight: 900; }
.prm-price { font: 400 46px var(--display); color: var(--gold); margin: 6px 0 12px; }
.prm-price small { font: 700 18px var(--cond); color: var(--ink-2); letter-spacing: .06em; }
.btn-gold { background: linear-gradient(180deg, #fff1a8, #ffcc4d 50%, #e09b1b); color: #1a1200; box-shadow: 0 10px 30px rgba(255,204,77,.3); }
/* diyalog kapatma düğmesi her zaman üstte ve tıklanabilir */
.dlg { position: fixed; }
.dlg-x { z-index: 5; display: grid; place-items: center; font-size: 16px; cursor: pointer; }
.dlg-x:hover { background: rgba(255,255,255,.16); color: var(--ink); }
.pro-crown { pointer-events: none; }
/* pencere dışına tıklayınca kapanır */

.res-banner.nc { background: linear-gradient(135deg, rgba(255,77,94,.2), rgba(255,204,77,.1)); border-color: rgba(255,77,94,.5); animation: slam .5s cubic-bezier(.2,1.6,.4,1); }

/* yayıncı modu: büyük yazı + oyun içi sağ üst metinli buton */
.stream-toggle { font-size: 17px; font-weight: 700; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(255,77,94,.08); border: 1px solid rgba(255,77,94,.3); color: var(--ink); }
.stream-toggle input { width: 22px; height: 22px; }
.stream-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.18); font: 800 15px var(--cond); letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
.stream-btn .sb-ico { font-size: 16px; }
.stream-btn:hover { color: var(--ink); border-color: rgba(255,77,94,.6); }
.stream-btn.on { background: #ff4d5e; border-color: #ff4d5e; color: #fff; box-shadow: 0 0 0 4px rgba(255,77,94,.25); }
.stream-btn.on .sb-ico { animation: beat 1.4s infinite; }
@media (max-width: 520px) { .stream-btn .sb-txt { display: none; } .stream-btn { padding: 0 10px; } }

.set-row { align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.set-row label { display: flex; flex-direction: column; gap: 2px; }
.set-row label b { color: var(--ink); font-size: 15px; }
.set-row label small { color: var(--ink-3); font-size: 12px; line-height: 1.35; max-width: 260px; }
.stepper b i { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 2px; }

/* VAR incelemesi (süre bitince son saniye cevapları) */
.var-overlay { position: fixed; inset: 0; z-index: 40; display: none; place-items: center; background: rgba(3,6,12,.6); backdrop-filter: blur(3px); }
.var-overlay.on { display: grid; animation: fadeUp .25s; }
.var-box { text-align: center; padding: 22px 26px; border-radius: 20px; background: linear-gradient(180deg, #0f1a2c, #0a1220); border: 1px solid rgba(73,166,255,.5); box-shadow: 0 0 60px rgba(73,166,255,.25); }
.var-pitch { position: relative; width: 220px; height: 132px; margin: 0 auto 12px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(90deg, #0e5a24 0 22px, #11692a 22px 44px); }
.var-pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.var-scan { position: absolute; top: 0; bottom: 0; width: 4px; background: #49a6ff; box-shadow: 0 0 18px 6px rgba(73,166,255,.7); animation: varscan 1.1s ease-in-out infinite alternate; }
@keyframes varscan { from { left: 6%; } to { left: 92%; } }
.var-ball { position: absolute; top: 50%; font-size: 22px; animation: varball 1.5s linear infinite; }
@keyframes varball { 0% { left: 10%; transform: translateY(-50%) rotate(0); } 50% { left: 78%; transform: translateY(-80%) rotate(360deg); } 100% { left: 10%; transform: translateY(-50%) rotate(720deg); } }
.var-title { font: 400 30px var(--display); letter-spacing: .06em; color: #49a6ff; }
.var-desc { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

.ans-st { font: 700 11px var(--cond); letter-spacing: .06em; margin-top: 2px; }
.ans-st.yes { color: #49a6ff; }
.ans-st.no { color: var(--ink-3); animation: thinking 1.4s ease-in-out infinite; }
@keyframes thinking { 50% { opacity: .45; } }

/* ================= Mobil ================= */
button, a, .room-item, .results li { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mail-hint { font-size: 12px; margin: 4px 0 0; }
@media (max-width: 700px) {
  .screen { padding-left: 12px; padding-right: 12px; }
  .topbar { height: calc(56px + env(safe-area-inset-top)); }
  .logo svg { width: 28px; height: 28px; }
  .screen { padding-top: calc(66px + env(safe-area-inset-top)); }
  .me-chip { height: 36px; font-size: 13px; }
  .me-chip span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { margin-top: 0; gap: 18px; }
  .hero-copy .brand-title { font-size: 64px; margin: 6px 0 10px; }
  .hero .brand-sub { font-size: 15px; }
  .hero-stats { gap: 16px; margin-top: 14px; }
  .hero-stats b { font-size: 26px; }
  .home-panel { padding: 16px; }
  .btn-xl { height: 54px; font-size: 18px; }
  .marquee-track img { width: 36px; height: 36px; }
  .room-list { grid-template-columns: 1fr; }

  /* lobi: kod kartı en üstte */
  .lobby-grid { display: flex; flex-direction: column; }
  .lobby-side { order: -1; }
  .lobby-head { display: none; }
  .big-code { font-size: 72px; }
  .lobby-players { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp { padding: 8px; gap: 8px; }
  .lp .jersey { width: 30px; height: 30px; }
  .lp .nm { font-size: 15px; }
  .set-row label small { max-width: 190px; }

  /* oyun ekranı */
  #s-game { gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); }
  .hud { grid-template-columns: auto 1fr auto; gap: 6px; }
  .hud-left { display: none; }
  .scorebug { justify-self: start; }
  .clock { width: 44px; height: 44px; }
  .clock b { font-size: 18px; }
  .mute { width: 36px; height: 36px; }
  .stream-btn { height: 36px; }
  .players-strip { flex-wrap: nowrap; justify-content: flex-start; margin: 0 -12px; padding: 4px 12px 8px; scroll-snap-type: x proximity; }
  .pc { min-width: 104px; padding: 6px 10px 6px 8px; scroll-snap-align: start; }
  .pc .nm { max-width: 70px; font-size: 13px; }
  .pc .pts { font-size: 19px; }
  .phase-banner { font-size: 30px; }
  .phase-banner small { font-size: 12px; margin-bottom: 4px; }
  .stage { gap: 10px; }
  .table { gap: 8px; }
  .crest, .table.small .crest { width: 74px; height: 96px; }
  .crest img.logo, .table.small .crest img.logo { width: 38px; height: 38px; }
  .crest .tn, .table.small .crest .tn { font-size: 11px; }
  .crest .who { font-size: 10px; padding: 2px; }
  .table.duel .crest { width: 120px; height: 152px; }
  .table.duel .crest img.logo { width: 64px; height: 64px; }
  .search-box { scroll-margin-top: 8px; }
  .search { height: 56px; padding: 0 14px; border-radius: 16px; }
  .search input { font-size: 17px; }
  .results { max-height: 38vh; position: relative; }
  .results li { padding: 8px; }
  .results .r-img { width: 40px; height: 40px; }
  .results .r-n { font-size: 16px; }
  .ans { padding: 10px; gap: 10px; }
  .ans .ph { width: 48px; height: 48px; border-radius: 12px; }
  .ans .pn { font-size: 18px; }
  .ans .pts { font-size: 28px; }
  .stint { font-size: 12px; }
  .res-banner h3 { font-size: 26px; }
  .missed-list { grid-template-columns: 1fr; }
  .unlock { min-width: 220px; padding: 14px 18px; }
  .admin-bar .btn { min-width: 0; width: calc(100vw - 24px); height: 56px; }
  .var-pitch { width: 180px; height: 108px; }
  .dlg { padding: 20px; }
  .dlg h2 { font-size: 28px; }
  .code-boxes input { height: 52px; font-size: 26px; }
  .podium .pod { width: 96px; }
  .lb-tools { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .chip { flex: none; }
  .podium-lb { gap: 6px; }
  .pl .avatar { width: 48px; height: 48px; }
  .pl.p1 .avatar { width: 60px; height: 60px; }
  .pl .nm { font-size: 14px; }
  .pl .val { font-size: 22px; }
}
@media (max-width: 380px) {
  .crest, .table.small .crest { width: 66px; height: 88px; }
  .hero-copy .brand-title { font-size: 54px; }
}

/* ---------- SEO bloğu (ana sayfa altı) ---------- */
.seo-block { margin-top: 18px; color: var(--ink-2, #a9b6c8); font-size: 15px; line-height: 1.6; }
.seo-block h2 { font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: .02em; color: var(--ink, #f4f7fb); font-size: 22px; margin: 18px 0 8px; }
.seo-block h2:first-child { margin-top: 0; }
.seo-block details { border-top: 1px solid rgba(255,255,255,.08); padding: 8px 0; }
.seo-block summary { cursor: pointer; font-weight: 700; color: var(--ink, #f4f7fb); }
.seo-block details p { margin: 6px 0 0; }
.seo-pairs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seo-pairs a { display: inline-block; padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--ink, #f4f7fb); text-decoration: none; font-size: 13px; font-weight: 600; }
.seo-pairs small { color: #c8ff3c; margin-left: 4px; }
.seo-block a { color: #c8ff3c; }
.seo-langs { margin-top: 14px; font-size: 13px; }
