:root {
  --bg: #0a101d; --bg2: #0e1627; --surface: #131c31; --surface2: #1a2540; --surface3: #223052;
  --border: #26334f; --text: #e9eefb; --muted: #8e9bba; --accent: #25d366; --accent-ink: #04210f;
  --blue: #4c8dff; --gold: #fbbf24; --danger: #ff5d5d; --warn: #ffb020;
  --radius: 14px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; min-height: 100vh;
  background-image: radial-gradient(900px 420px at 85% -10%, rgba(37, 211, 102, .10), transparent 60%), radial-gradient(700px 400px at -10% 10%, rgba(76, 141, 255, .10), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: .01em; margin: 0; line-height: 1.1; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3rem); } h2 { font-size: 1.7rem; } h3 { font-size: 1.2rem; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.hidden { display: none !important; }

/* header */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 16, 29, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--text); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #0e9f4d); display: grid; place-items: center; color: var(--accent-ink); font-size: 1rem; }
nav.tabs { display: flex; gap: 4px; margin-left: 12px; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
nav.tabs a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
nav.tabs a.active { color: var(--text); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent); }
.spacer { flex: 1; }
.userbox { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* butonlar / formlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); padding: 10px 16px; border-radius: 11px; font-weight: 600; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--surface3); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; } .btn.danger { background: rgba(255, 93, 93, .12); border-color: rgba(255, 93, 93, .4); color: #ffb3b3; }
.btn.sm { padding: 6px 11px; font-size: .85rem; border-radius: 9px; } .btn.lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 13px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 211, 102, .15); }
label.field { display: block; margin-bottom: 14px; } label.field > span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--muted); }
.pill.green { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .4); color: #8ff0b4; }
.pill.gold { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); color: var(--gold); }
.alert { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface2); }
.alert.warn { border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .08); } .alert.err { border-color: rgba(255, 93, 93, .5); background: rgba(255, 93, 93, .08); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 18px; height: 18px; }

main { padding: 28px 0 60px; min-height: 60vh; }
.hero { padding: 8px 0 22px; } .hero p { color: var(--muted); max-width: 640px; margin: 8px 0 0; font-size: 1.05rem; }
.hero h1 span { color: var(--accent); }

/* sihirbaz */
.steps { display: flex; gap: 8px; margin: 18px 0 22px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--border); font-size: .8rem; }
.step.on { color: var(--text); } .step.on b { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.step.done b { background: rgba(37, 211, 102, .2); color: var(--accent); }
.step + .step::before { content: ''; width: 28px; height: 1px; background: var(--border); margin-right: 8px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.kind { text-align: left; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: .15s; }
.kind:hover { border-color: var(--surface3); transform: translateY(-2px); }
.kind.sel { border-color: var(--accent); background: linear-gradient(180deg, rgba(37, 211, 102, .10), var(--surface)); }
.kind .ico { font-size: 1.8rem; } .kind h3 { margin: 8px 0 4px; } .kind p { margin: 0; color: var(--muted); font-size: .9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--bg2); color: var(--muted); padding: 7px 13px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .88rem; transition: .12s; }
.chip:hover { color: var(--text); } .chip.sel { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip.num { min-width: 46px; text-align: center; font-size: 1rem; }
.players { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.player { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.player .num { font-family: var(--display); color: var(--muted); font-size: .95rem; text-transform: uppercase; margin-bottom: 8px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px; border: 2px dashed var(--border); background: var(--bg2); border-radius: 12px; cursor: pointer; text-align: left; min-height: 84px; }
.pick:hover { border-color: var(--accent); } .pick.filled { border-style: solid; border-color: var(--surface3); }
.pick .t { font-weight: 700; } .pick .s { color: var(--muted); font-size: .8rem; }
.logo { width: 56px; height: 56px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.logo.sm { width: 28px; height: 28px; filter: none; } .logo.md { width: 40px; height: 40px; } .logo.xl { width: 96px; height: 96px; } .logo.xxl { width: 120px; height: 120px; }
.logo-fb { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface3); font-family: var(--display); font-weight: 800; color: var(--muted); flex: none; }
.stars { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; vertical-align: middle; }
.stars .st { display: block; width: 1em; height: 1em; font-size: .95rem; flex: none; filter: drop-shadow(0 0 2px rgba(255, 197, 61, .25)); }
.stars .sv { margin-left: 6px; font-size: .82rem; color: #ffc53d; font-weight: 800; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(3, 7, 15, .75); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: min(920px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal.narrow { width: min(460px, 100%); }
.modal header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal .body { padding: 16px 18px; overflow: auto; }
.modal footer { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 14px; }
.team { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 13px; cursor: pointer; text-align: center; transition: .12s; }
.team:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface2); }
.team .logo { width: 76px; height: 76px; } .team .nm { font-weight: 700; font-size: .88rem; line-height: 1.15; min-height: 2.1em; display: grid; place-items: center; }
.team.taken { opacity: .35; pointer-events: none; filter: grayscale(.8); }
.team .badge { position: absolute; top: 6px; right: 6px; font-size: .65rem; background: var(--accent); color: var(--accent-ink); padding: 2px 6px; border-radius: 6px; font-weight: 800; }

/* turnuva */
.thead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.progress { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; min-width: 200px; flex: 1; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), #7ef5a8); transition: width .4s; }
.champion { display: flex; align-items: center; gap: 20px; padding: 22px; margin-bottom: 20px; border-radius: 18px; border: 1px solid rgba(251, 191, 36, .5); background: radial-gradient(500px 160px at 0 0, rgba(251, 191, 36, .22), transparent), var(--surface); }
.champion h2 { color: var(--gold); } .champion .trophy { font-size: 2.6rem; }
.tabbar { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabbar button { background: none; border: 0; padding: 10px 16px; color: var(--muted); font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabbar button.on { color: var(--text); border-bottom-color: var(--accent); }
.round { margin-bottom: 22px; } .round h3 { color: var(--muted); font-size: 1rem; margin-bottom: 10px; }
.matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; }
.match.done { border-color: rgba(37, 211, 102, .35); }
.side { display: flex; align-items: center; gap: 8px; min-width: 0; } .side.r { flex-direction: row-reverse; text-align: right; }
.side .who { min-width: 0; } .side .tn { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .side .pn { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { display: flex; align-items: center; gap: 4px; }
.score input { width: 46px; text-align: center; padding: 8px 4px; font-weight: 800; font-size: 1.1rem; -moz-appearance: textfield; }
.score input::-webkit-outer-spin-button, .score input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score .sep { color: var(--muted); font-weight: 800; }
.score .final { font-family: var(--display); font-size: 1.6rem; min-width: 70px; text-align: center; }
.mact { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; margin-top: -2px; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.tbl th, .tbl td { padding: 10px 8px; text-align: center; font-size: .92rem; } .tbl th { color: var(--muted); font-size: .75rem; text-transform: uppercase; background: var(--bg2); }
.tbl td.l, .tbl th.l { text-align: left; } .tbl tr + tr td { border-top: 1px solid var(--border); }
.tbl tr.q td:first-child { box-shadow: inset 3px 0 var(--accent); } .tbl tr.champ td:first-child { box-shadow: inset 3px 0 var(--gold); }
.tbl .tm { display: flex; align-items: center; gap: 10px; } .tbl .pts { font-weight: 800; color: var(--accent); }
.form { display: inline-flex; gap: 3px; } .form i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface3); } .form i.W { background: var(--accent); } .form i.L { background: var(--danger); } .form i.D { background: var(--warn); }
.tblwrap { overflow-x: auto; border-radius: 14px; }
.bracket { display: flex; gap: 28px; overflow-x: auto; padding-bottom: 10px; align-items: stretch; }
.bcol { min-width: 270px; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; flex: 1; }
.bcol h3 { text-align: center; color: var(--muted); font-size: 1rem; }
.tie { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 10px; }
.tie.done { border-color: rgba(37, 211, 102, .35); }
.tie .tl { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; } .tie .tl.win { background: rgba(37, 211, 102, .1); } .tie .tl.win .tn { color: #9af2bc; }
.tie .tl .tn { flex: 1; font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie .tl .agg { font-family: var(--display); font-size: 1.4rem; min-width: 26px; text-align: right; }
.tie .leg { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: .78rem; color: var(--muted); }
.tie .leg input { width: 40px; padding: 5px 2px; text-align: center; font-weight: 800; }
.tie .tbd { color: var(--muted); font-style: italic; }
.tie .pens { margin-top: 8px; padding: 8px; background: rgba(255, 176, 32, .08); border: 1px solid rgba(255, 176, 32, .4); border-radius: 9px; font-size: .78rem; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tie .pens input { width: 40px; padding: 5px 2px; text-align: center; font-weight: 800; }

/* rastgele maç */
.vs { background: radial-gradient(600px 260px at 50% 0, rgba(76, 141, 255, .16), transparent), var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 16px; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.vs .pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; width: 100%; }
.vs .tm { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.vs .tm .nm { font-family: var(--display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; } .vs .tm .lg { font-size: .8rem; color: var(--muted); }
.vs .vsmark { font-family: var(--display); font-size: 2.2rem; color: var(--muted); }
.vs .tm.spin .logo { animation: pulse .25s infinite alternate; }
.vs .scoreboard { font-family: var(--display); font-size: 3rem; font-weight: 800; letter-spacing: .05em; }
.hist { margin-top: 14px; display: grid; gap: 6px; } .hist div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: .88rem; }
.leagues-chips { max-height: 180px; overflow: auto; }
.lock { position: relative; } .lockbtn { background: none; border: 0; cursor: pointer; font-size: 1rem; opacity: .4; } .lockbtn.on { opacity: 1; }

/* reklam / çerez / footer */
.ad { margin: 18px auto; text-align: center; min-height: 0; overflow: hidden; } .ad ins { display: block; }
/* Sol/sağ dikey reklam sütunları: içerik (1120 px) ortada kalır; yalnızca iki yanda 160 px + boşluk sığan geniş ekranlarda görünür. */
.rail { display: none; position: fixed; top: 84px; width: 160px; height: 600px; z-index: 5; }
.rail .ad { margin: 0; }
@media (min-width: 1500px) { .rail:not(:empty) { display: block; } .rail-l { left: calc(50% - 560px - 176px); } .rail-r { left: calc(50% + 560px + 16px); } }
@media print { .rail { display: none !important; } }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin-inline: auto; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .88rem; color: var(--muted); }
footer.site { border-top: 1px solid var(--border); padding: 22px 0 40px; color: var(--muted); font-size: .85rem; }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.toast { position: fixed; top: 74px; right: 16px; z-index: 120; background: var(--surface3); border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 340px; animation: fade .2s; }
.toast.err { border-color: var(--danger); }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); }
.list { display: grid; gap: 10px; } .li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; flex-wrap: wrap; }
.li .grow { flex: 1; min-width: 160px; } .li b { font-size: 1.05rem; }
.auth { max-width: 420px; margin: 20px auto; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { to { transform: scale(1.08) rotate(2deg); opacity: .8; } }

@media (max-width: 820px) {
  .topbar .wrap { height: auto; padding: 8px 0; flex-wrap: wrap; } nav.tabs { order: 3; width: 100%; margin: 0; }
  .matches { grid-template-columns: 1fr; } .vs .tm .nm { font-size: 1.15rem; } .logo.xl { width: 76px; height: 76px; }
  .tbl th, .tbl td { padding: 8px 5px; font-size: .82rem; } .hide-m { display: none; }
}

@media (max-width: 520px) {
  .topbar .wrap { gap: 8px; } .brand { font-size: 1.1rem; } .brand .dot { width: 26px; height: 26px; }
  .userbox { margin-left: auto; } .userbox .btn { padding: 5px 9px; }
}

/* ---- rastgele maç (kompakt, gizlenebilir filtre) ---- */
.rm-head { padding: 0 0 14px; } .rm-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); } .rm-head h1 span { color: var(--accent); } .rm-head p { margin: 6px 0 0; font-size: .92rem; max-width: 640px; }
.rm { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 14px; align-items: start; transition: grid-template-columns .2s; }
.rm.closed { grid-template-columns: minmax(0, 1fr); gap: 0; } .rm.closed .filters { display: none; }
.filters { padding: 12px; font-size: .85rem; position: sticky; top: 74px; }
.fhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .fhead b { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; }
.iconbtn { background: var(--bg2); border: 1px solid var(--border); color: var(--muted); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; line-height: 1; } .iconbtn:hover { color: var(--text); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 10px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 0; border-radius: 7px; cursor: pointer; font-weight: 700; font-size: .8rem; } .seg button.on { background: var(--accent); color: var(--accent-ink); }
.flabel { font-size: .68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 6px; } .flabel span { font-weight: 500; text-transform: none; opacity: .7; margin-left: 4px; }
.chips.mini { gap: 5px; } .chips.mini .chip { padding: 3px 9px; font-size: .74rem; } .leagues-chips { max-height: 92px; overflow: auto; margin-bottom: 10px; scrollbar-width: thin; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .frow1 { display: block; margin-bottom: 8px; }
.frow label span, .frow1 > span { display: block; font-size: .68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.filters select { padding: 6px 8px; font-size: .82rem; border-radius: 8px; }
.chk { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; cursor: pointer; line-height: 1.25; } .chk input { accent-color: var(--accent); margin-top: 2px; } .chk em { color: var(--muted); font-style: normal; font-size: .76rem; }
.rtool { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; } .rsum { min-width: 0; flex: 1 1 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs { min-height: 440px; padding: 28px 18px; }
.vs .pair { grid-template-columns: 1fr auto 1fr; gap: 8px; }
.logo.hero { width: clamp(120px, 17vw, 210px); height: clamp(120px, 17vw, 210px); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.rm.closed .logo.hero { width: clamp(130px, 21vw, 250px); height: clamp(130px, 21vw, 250px); }
.vs .tm .nm { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.05; } .vs .tm .stars .st { font-size: 1.5rem; } .vs .tm .stars .sv { font-size: 1.05rem; }
.vs .vsmark { font-size: clamp(1.8rem, 3vw, 2.6rem); } .vs .scoreboard { font-size: clamp(2.2rem, 4vw, 3.4rem); white-space: nowrap; }
.lockbtn { font-size: .78rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border) !important; background: var(--bg2) !important; padding: 3px 10px; border-radius: 99px; opacity: .85; } .lockbtn.on { color: var(--accent); border-color: var(--accent) !important; opacity: 1; }
@media (max-width: 820px) {
  .rm, .rm.closed { grid-template-columns: 1fr; gap: 12px; } .filters { position: static; }
  .logo.hero, .rm.closed .logo.hero { width: clamp(84px, 26vw, 140px); height: clamp(84px, 26vw, 140px); } .vs { min-height: 340px; padding: 20px 8px; }
}

/* ---- bayrak emojisi (iPhone/Apple görünümü; Windows için Twemoji bayrak yazı tipi yedeği) ---- */
@font-face { font-family: 'Twemoji Country Flags'; unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F; src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2'); font-display: swap; }
.flag { font-family: 'Apple Color Emoji', 'Twemoji Country Flags', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }

/* ---- dil seçici ---- */
.langsw { position: relative; }
.langbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 11px; padding: 6px 10px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.langbtn:hover { background: var(--surface3); } .langbtn .flag { font-size: 1.25rem; } .langbtn .chev { font-size: .6rem; opacity: .7; }
.langmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 6px; box-shadow: var(--shadow); z-index: 60; animation: fade .12s; }
.langmenu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; text-align: left; }
.langmenu button:hover { background: var(--surface2); } .langmenu button.on { background: rgba(37, 211, 102, .12); color: #9af2bc; }
.langmenu .flag { font-size: 1.4rem; } .langmenu .code { margin-left: auto; font-size: .7rem; color: var(--muted); text-transform: uppercase; }

.flagimg { width: 24px; height: 24px; object-fit: contain; display: block; flex: none; }
.langbtn .flagimg { width: 24px; height: 24px; } .langmenu .flagimg { width: 28px; height: 28px; }

/* ---- Apple emoji görselleri ---- */
img.emoji { display: inline-block; width: 1.18em; height: 1.18em; vertical-align: -.24em; margin: 0 .06em; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.brand .dot img.emoji { width: 1.25em; height: 1.25em; vertical-align: middle; margin: 0; }
