:root { --bg:#f3f6fc; --card:#fff; --text:#0e1a3d; --muted:#6b7590; --line:#e3e8f2; --brand:#2a63d8; --brand2:#e8effd; --danger:#e0453a; --warn:#d97706; --win:#1f9d55;
  --grad:linear-gradient(135deg,#071a5c 0%,#1d4cc7 50%,#5b95f3 100%); }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); padding-bottom:70px; }
a { color:inherit; text-decoration:none; }
.top { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; padding:10px 16px; background:var(--card); border-bottom:1px solid var(--line); }
.logo { font-weight:800; font-size:20px; color:var(--brand); }
#nav { display:flex; gap:14px; align-items:center; }
#nav a { color:var(--muted); font-weight:600; } #nav a.on { color:var(--brand); }
.bell { position:relative; } .badge { position:absolute; top:-6px; right:-10px; background:var(--danger); color:#fff; border-radius:9px; font-size:11px; padding:0 5px; }
main { max-width:920px; margin:0 auto; padding:16px; }
.bottom { display:none; }
@media (max-width:700px) {
  #nav .hide-sm { display:none; }
  .bottom { display:flex; position:fixed; bottom:0; left:0; right:0; background:var(--card); border-top:1px solid var(--line); justify-content:space-around; padding:8px 0; z-index:5; }
  .bottom a { display:flex; flex-direction:column; align-items:center; font-size:11px; color:var(--muted); } .bottom a.on { color:var(--brand); } .bottom span { font-size:20px; }
}
h1 { font-size:22px; margin:4px 0 12px; } h2 { font-size:17px; margin:18px 0 8px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin-bottom:12px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.row { display:flex; align-items:center; gap:10px; } .between { justify-content:space-between; } .wrap { flex-wrap:wrap; }
.muted { color:var(--muted); font-size:13px; }
.btn { border:0; border-radius:10px; padding:9px 14px; font-weight:600; font-size:14px; cursor:pointer; background:var(--brand); color:#fff; }
.btn.ghost { background:var(--brand2); color:var(--brand); } .btn.danger { background:var(--danger); } .btn.sm { padding:5px 10px; font-size:13px; }
.btn:disabled { opacity:.5; cursor:default; }
input,textarea,select { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--text); font:inherit; margin:4px 0 10px; }
label { font-size:13px; font-weight:600; color:var(--muted); }
.cover { height:120px; border-radius:12px; background:linear-gradient(135deg,#0f9d58,#34a7c1); background-size:cover; background-position:center; display:flex; align-items:flex-end; padding:12px; color:#fff; font-weight:800; font-size:20px; text-shadow:0 1px 3px #0006; }
.av { width:36px; height:36px; border-radius:50%; background:var(--brand2); color:var(--brand); display:inline-flex; align-items:center; justify-content:center; font-weight:700; flex:none; overflow:hidden; background-size:cover; }
.av.lg { width:72px; height:72px; font-size:28px; }
.tag { display:inline-block; padding:2px 8px; border-radius:20px; background:var(--brand2); color:var(--brand); font-size:12px; font-weight:600; }
.tag.warn { background:#fef3c7; color:var(--warn); } .tag.gray { background:var(--line); color:var(--muted); }
.tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--line); margin:12px 0; }
.tabs a { padding:8px 12px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; white-space:nowrap; } .tabs a.on { color:var(--brand); border-color:var(--brand); }
.date { text-align:center; min-width:52px; border-radius:10px; background:var(--brand2); color:var(--brand); padding:6px; font-weight:800; line-height:1.1; } .date small { display:block; font-size:11px; font-weight:600; }
.bar { height:6px; background:var(--line); border-radius:3px; overflow:hidden; } .bar i { display:block; height:100%; background:var(--brand); }
.chat { height:55vh; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:4px; }
.msg { max-width:75%; } .msg .b { background:var(--bg); border:1px solid var(--line); padding:7px 11px; border-radius:14px; } .msg.me { align-self:flex-end; } .msg.me .b { background:var(--brand); color:#fff; border:0; }
.list > * + * { border-top:1px solid var(--line); } .list > * { padding:10px 0; }
.modal { position:fixed; inset:0; background:#0007; display:flex; align-items:center; justify-content:center; z-index:10; padding:16px; } .hidden { display:none !important; }
.sheet { background:var(--card); border-radius:16px; padding:18px; width:100%; max-width:480px; max-height:90vh; overflow-y:auto; }
.toast { position:fixed; bottom:84px; left:50%; transform:translateX(-50%); background:#111; color:#fff; padding:10px 16px; border-radius:10px; z-index:20; }
.hero { text-align:center; padding:40px 10px; } .hero h1 { font-size:32px; } .auth { max-width:380px; margin:20px auto; }
.score { font-size:22px; font-weight:800; }
table { width:100%; border-collapse:collapse; } td,th { padding:8px 4px; text-align:left; border-bottom:1px solid var(--line); font-size:14px; }
.chips { display:flex; gap:6px; overflow-x:auto; margin:8px 0; padding-bottom:2px; }
.chip { white-space:nowrap; padding:6px 12px; border:1px solid var(--line); border-radius:20px; font-size:13px; font-weight:600; color:var(--muted); background:var(--card); }
.chip.on { background:var(--text); color:var(--bg); border-color:var(--text); }
.days { display:flex; gap:6px; overflow-x:auto; margin:10px 0; }
.days a { min-width:50px; text-align:center; padding:6px 4px; border-radius:12px; background:var(--card); border:1px solid var(--line); }
.days a small { display:block; font-size:11px; color:var(--muted); } .days a b { font-size:18px; }
.days a.on { background:var(--text); color:var(--bg); } .days a.on small { color:var(--bg); }
.tm { font-weight:700; color:var(--brand); font-size:13px; margin:14px 0 6px; }
.info { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px; margin:10px 0; }
.info div { border:1px solid var(--line); border-radius:10px; padding:8px 10px; } .info small { display:block; font-size:11px; color:var(--muted); text-transform:uppercase; }
.picker { display:flex; align-items:center; gap:8px; margin:4px 0 10px; flex-wrap:wrap; }
.picker .pv { background:var(--bg) center/cover; border:1px dashed var(--line); display:flex; align-items:center; justify-content:center; font-size:22px; color:var(--muted); }
.picker.cover .pv { width:100%; height:120px; border-radius:12px; }
.picker.avatar .pv { width:72px; height:72px; border-radius:50%; }
.picker.post { margin:0; } .picker.post .pv { display:none; width:64px; height:64px; border-radius:8px; } .picker.post.has .pv { display:flex; }
.picker label.btn { color:var(--brand); font-size:13px; }
.postimg { display:block; max-width:100%; max-height:420px; border-radius:12px; margin:0 0 8px; cursor:zoom-in; object-fit:cover; }
.dash { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:24px; }
@media (max-width:760px) { .dash { grid-template-columns:1fr; } }
.prof { align-items:center; } .fc { text-align:center; min-width:64px; } .fc b { display:block; font-size:22px; } .fc small { color:var(--muted); font-size:11px; }
.rbox { flex:1; border:1px solid var(--line); border-radius:12px; padding:10px; background:var(--card); }
.rbox.on { border-color:var(--brand); background:var(--brand2); } .rbox:not(.on) .rv { color:var(--muted); }
.rv { font-size:28px; font-weight:800; flex:1; } .ring { width:34px; height:34px; }
.chart { width:100%; height:auto; display:block; } .chart text { font-size:9px; fill:var(--muted); }
.stats > div { padding:9px 0; }
.up { color:var(--brand); } .down { color:var(--danger); }
.mon { font-size:14px; margin:16px 0 8px; color:var(--muted); text-transform:capitalize; }
.mc .sc { margin-top:8px; align-items:flex-start; } .mc .pl { gap:6px; margin:3px 0; font-size:14px; } .mc .pl .av { width:24px; height:24px; font-size:11px; }
.mc .mine { font-weight:700; color:var(--brand); }
.games { display:flex; gap:12px; font-weight:700; font-size:18px; color:var(--muted); } .games .gw { color:var(--text); }
.mc details { margin-top:8px; } .mc summary { cursor:pointer; }
.dets { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; }
.det { border:1px solid var(--line); border-radius:10px; padding:8px; font-size:13px; } .det .av { width:24px; height:24px; font-size:11px; } .det .row + .row { margin-top:6px; gap:6px; }
.pill { background:var(--bg); border-radius:6px; padding:2px 6px; font-weight:600; } .pill.pu { background:var(--brand2); color:var(--brand); } .pill.pd { background:#fee2e2; color:var(--danger); }
.slot { margin:4px 0 8px; position:relative; } .slot > .row { justify-content:flex-start; } .slot { display:flex; align-items:center; justify-content:space-between; }
.slot input { margin:0; } .sug { position:absolute; top:100%; left:0; right:0; background:var(--card); border:1px solid var(--line); border-radius:10px; z-index:3; }
.sug:empty { display:none; } .sug a { padding:6px 10px; gap:8px; } .sug a:hover { background:var(--bg); }
.mf select, .mf input { margin:0; min-width:120px; }
.mst { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-top:8px; padding:8px 10px; border-radius:10px; font-size:13px; }
.mst.warn { background:#fef3c7; color:#92400e; } .mst.bad { background:#fee2e2; color:#991b1b; }
.mc.pending, .mc.rejected { border-style:dashed; } .mc.rejected { opacity:.7; }
.mst.ok { background:var(--brand2); color:var(--brand); }

/* ---------- app shell (blue gradient theme) ---------- */
body.app { background:var(--grad) fixed; min-height:100vh; }
body.app .top { position:sticky; top:12px; margin:12px 16px 0; border-radius:40px; border:0; box-shadow:0 6px 24px #0a1f5c33; padding:10px 22px; }
.logo { color:var(--brand); letter-spacing:-.5px; }
body.app #nav { gap:16px; } body.app #nav .av { width:34px; height:34px; }
#side { display:none; }
body.app #side { display:flex; flex-direction:column; gap:4px; position:fixed; top:96px; left:16px; width:200px; }
#side a { display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:12px; color:#dfe8ff; font-weight:600; position:relative; }
#side a:hover { background:#ffffff1a; } #side a.on { background:#ffffff2e; color:#fff; } #side a span { width:20px; text-align:center; }
#side .badge { position:static; margin-left:auto; }
body.app main { max-width:1100px; margin:0 0 0 232px; padding:24px 24px 40px; color:#fff; }
body.app main > h1, body.app main h2, body.app .dash h2, body.app .mon { color:#fff; }
body.app main .muted { color:#c9d6f5; }
body.app .card, body.app .sheet, body.app table { color:var(--text); }
body.app .card .muted, body.app .sheet .muted { color:var(--muted); }
body.app .card { border:0; border-radius:16px; box-shadow:0 4px 18px #08164a26; }
body.app .card h2 { color:var(--text); }
body.app .rbox { background:#ffffff14; border:1px solid #ffffff33; color:#fff; } body.app .rbox .muted { color:#dfe8ff; }
body.app .rbox.on { background:#ffffff33; border-color:#ffffffaa; } body.app .rbox:not(.on) .rv { color:#c9d6f5; }
body.app .prof h1 { color:#fff; } body.app .fc small { color:#c9d6f5; }
body.app .chip { background:#ffffff1f; border-color:#ffffff40; color:#fff; } body.app .chip.on { background:#fff; color:var(--brand); border-color:#fff; }
body.app .days a { background:#ffffff1f; border-color:#ffffff33; color:#fff; } body.app .days a small { color:#dfe8ff; } body.app .days a.on { background:#fff; color:var(--brand); } body.app .days a.on small { color:var(--brand); }
body.app main > form input, body.app main > form select, body.app .mf input, body.app .mf select { background:#fff; border:0; color:var(--text); border-radius:10px; }
body.app .tabs { border-color:#ffffff40; } body.app .tabs a { color:#c9d6f5; } body.app .tabs a.on { color:#fff; border-color:#fff; }
body.app .tm { color:#fff; }
body.app main > .row > .btn.ghost, body.app .prof ~ .row .btn.ghost { background:#ffffff26; color:#fff; }
body.app .btn { border-radius:22px; }
body.app main > a.muted { color:#dfe8ff; }
body.app .chart text { fill:#8a94ad; }
.up { color:var(--win); }
.tag { background:var(--brand2); color:var(--brand); } .mc .tag:not(.gray) { background:#e3f6ea; color:var(--win); }
@media (max-width:860px) {
  body.app #side { display:none; } body.app main { margin:0 auto; padding:16px; }
  body.app .bottom { display:flex; position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--line); justify-content:space-around; padding:8px 0; z-index:5; }
  body.app .bottom a { display:flex; flex-direction:column; align-items:center; font-size:11px; color:var(--muted); } body.app .bottom a.on { color:var(--brand); } body.app .bottom span { font-size:20px; }
}

/* ---------- landing ---------- */
body.public { padding-bottom:0; background:#fff; }
body.public .top { position:fixed; left:0; right:0; background:transparent; border:0; padding:18px 32px; }
body.public .top .logo { color:#fff; font-size:24px; }
body.public #nav a { color:#e6eeff; } body.public #nav .btn { background:#fff; color:var(--brand); }
body.public main { max-width:none; padding:0; }
body.public main .auth { margin-top:0; }
.lwrap { max-width:1120px; margin:0 auto; padding:0 24px; }
.lhero { background:var(--grad); color:#fff; padding:130px 0 90px; }
.lgrid { display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center; }
.kick { display:inline-block; background:#ffffff26; padding:6px 12px; border-radius:20px; font-size:13px; font-weight:600; }
.lhero h1 { font-size:54px; line-height:1.05; letter-spacing:-1.5px; margin:18px 0; font-weight:800; }
.lead { font-size:18px; color:#dbe6ff; max-width:520px; margin-bottom:26px; }
.btn.lg { padding:14px 24px; font-size:16px; border-radius:30px; }
.lhero .btn.lg:not(.ghost), .btn.light { background:#fff; color:var(--brand); }
.lhero .btn.ghost { background:transparent; color:#fff; border:1.5px solid #ffffffaa; }
.mock { color:var(--text); border:0; border-radius:20px; box-shadow:0 30px 60px #04124a55; transform:rotate(1.5deg); }
.mock .rbox { border:1px solid var(--line); background:#fff; } .mock .rbox.on { background:var(--brand2); border-color:var(--brand); } .mock .rbox:not(.on) .rv { color:var(--muted); }
.lstats { background:#0b1f63; color:#fff; padding:28px 0; }
.lstats .lwrap { display:grid; grid-template-columns:repeat(4,1fr); text-align:center; }
.lstats b { display:block; font-size:32px; } .lstats span { color:#a9bdf0; font-size:14px; }
.lsec { padding:80px 0; } .lsec.alt { background:var(--bg); }
.lh { font-size:34px; letter-spacing:-.8px; text-align:center; margin:0 0 36px; }
.feat { border-radius:16px; padding:22px; } .feat .fi { font-size:30px; margin-bottom:8px; } .feat b { font-size:17px; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.steps > div { background:#fff; border-radius:16px; padding:24px; box-shadow:0 4px 18px #08164a14; }
.num { display:inline-flex; width:36px; height:36px; border-radius:50%; background:var(--grad); color:#fff; align-items:center; justify-content:center; font-weight:800; margin-bottom:10px; }
.steps b { display:block; font-size:17px; }
.lcta { background:var(--grad); color:#fff; text-align:center; padding:70px 0; } .lcta h2 { font-size:36px; margin:0 0 6px; } .lcta p { color:#dbe6ff; margin-bottom:22px; }
.lfoot { padding:24px 0; border-top:1px solid var(--line); }
body.public main:has(.auth) { background:var(--grad); min-height:100vh; padding:100px 16px 40px; }
body.public main:has(.auth) .hero { color:#fff; padding:10px; } body.public main:has(.auth) .hero .muted { color:#dbe6ff; }
@media (max-width:860px) {
  .lgrid, .steps { grid-template-columns:1fr; } .lhero { padding:100px 0 60px; } .lhero h1 { font-size:38px; }
  .lstats .lwrap { grid-template-columns:repeat(2,1fr); gap:16px; } .mock { transform:none; }
  body.public .top { padding:14px 16px; }
}

/* ---------- responsive: hamburger drawer (≤860px) ---------- */
.burger, .scrim { display:none; }
.top { gap:12px; } .top .logo { margin-right:auto; }
@media (max-width:860px) {
  body.app .burger { display:block; background:none; border:0; font-size:22px; color:var(--brand); cursor:pointer; padding:0 4px; }
  body.app.menu #side { display:flex; position:fixed; top:0; left:0; bottom:0; width:260px; padding:84px 14px 20px; background:var(--grad); z-index:30;
    box-shadow:8px 0 30px #0007; animation:slidein .2s ease-out; overflow-y:auto; }
  body.app.menu .scrim { display:block; position:fixed; inset:0; background:#0006; z-index:25; }
  body.app.menu .top { z-index:31; position:fixed; left:0; right:0; }
  body.app .top { margin:10px 10px 0; padding:8px 16px; top:10px; }
  .prof { flex-wrap:wrap; } .prof h1 { font-size:20px; } .prof > div:nth-child(2) { min-width:0; flex:1 1 140px; }
  .prof .fc { flex:1; background:#ffffff1a; border-radius:12px; padding:6px; }
  .rv { font-size:24px; }
  .mf > * { flex:1 1 45% !important; min-width:0 !important; }
  .dets { grid-template-columns:1fr; }
  table { font-size:13px; } td, th { padding:6px 3px; }
  .sheet { max-height:85vh; border-radius:16px 16px 0 0; align-self:flex-end; }
  body.app .modal { padding:0; align-items:flex-end; }
}
@keyframes slidein { from { transform:translateX(-100%); } to { transform:none; } }
@media (max-width:420px) { .rbox { padding:8px; } .rv { font-size:21px; } .ring { width:28px; height:28px; } .games { gap:8px; font-size:16px; } }

/* ---------- sidebar: monochrome line icons, muted text, white active ---------- */
body.app #side { gap:6px; width:210px; }
#side a { gap:16px; padding:12px 16px; font-size:17px; font-weight:600; color:#9fb4e8; letter-spacing:.1px; }
#side a .ic { width:24px; height:24px; flex:none; color:#9fb4e8; --icon-cut:#1b3a9e; }
#side a:hover { background:#ffffff12; color:#c8d6fa; } #side a:hover .ic { color:#c8d6fa; }
#side a.on { background:#ffffff24; color:#fff; } #side a.on .ic { color:#fff; --icon-cut:#2a55c4; }
.bottom a .ic { width:22px; height:22px; margin-bottom:2px; }
.burger .ic { width:24px; height:24px; }
.langs { display:flex; gap:4px; align-items:center; }
#nav .langs .chip { padding:3px 8px; font-size:11px; background:transparent; border-color:var(--line); color:var(--muted); }
#nav .langs .chip.on { background:var(--text); color:var(--bg); border-color:var(--text); }
body.public #nav .langs .chip { border-color:#ffffff60; color:#e6eeff; } body.public #nav .langs .chip.on { background:#fff; color:var(--brand); border-color:#fff; }

.av.gen { color:#fff; font-weight:700; letter-spacing:.5px; text-shadow:0 1px 2px #0003; font-size:13px; }
.av.gen.lg { font-size:26px; } .av.lg { box-shadow:0 0 0 3px #ffffff55; }
#nav .bell { color:var(--brand); display:inline-flex; } #nav .bell .ic { width:22px; height:22px; }
.bottom a { gap:2px; }

.duprtag { display:inline-block; background:#0b1f63; color:#fff; font-size:10px; font-weight:800; letter-spacing:.8px; padding:2px 6px; border-radius:5px; vertical-align:middle; }
.dline { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:6px; font-size:12px; color:var(--muted); }
.duprbar { margin:8px 0 4px; padding:8px 12px; border-radius:12px; background:#ffffff1f; color:#fff; font-size:13px; } .duprbar .duprtag { background:#fff; color:#0b1f63; }
#duprCard .rbox { background:var(--bg); border:1px solid var(--line); color:var(--text); } #duprCard .rbox .rv { color:var(--text); }
#duprCard .rbox .muted { color:var(--muted) !important; }

/* ---------- logo ---------- */
.logo { display:inline-flex; align-items:center; gap:9px; font-weight:800; font-size:21px; letter-spacing:-.6px; }
.logo .mark { width:34px; height:34px; border-radius:10px; flex:none; }
body.public .top .logo .mark { box-shadow:0 0 0 2px #ffffff66; }
.mark.lg { width:64px; height:64px; border-radius:18px; box-shadow:0 8px 24px #04124a55; margin-bottom:6px; }
.lfoot .logo { font-size:18px; color:var(--brand); } .lfoot .logo .mark { width:28px; height:28px; border-radius:8px; }
/* refined wordmark */
.logo { font-weight:700; letter-spacing:-.9px; gap:10px; }
.logo .mark { border-radius:9px; }
body.app .top .logo { color:#0b1f63; }

/* ---------- tournaments ---------- */
.tcard { display:block; }
.tcover { height:110px; border-radius:12px; background:linear-gradient(135deg,#0b1f63,#2154d1 60%,#d4f53c); background-size:cover; background-position:center; display:flex; align-items:flex-end; padding:12px; }
.tcover span { color:#fff; font-weight:800; font-size:18px; text-shadow:0 1px 4px #0006; }
.thero { background:linear-gradient(135deg,#0b1f63,#1d4cc7); background-size:cover; background-position:center; border-radius:18px; padding:22px; color:#fff; }
.thero h1 { color:#fff; margin:8px 0 4px; font-size:28px; } .thero .muted2 { color:#c9d6f5; font-size:13px; margin-top:4px; }
.thero .btn.ghost { background:#ffffff26; color:#fff; }
.tst.registration { background:#e3f6ea; color:var(--win); } .tst.live { background:#fee2e2; color:var(--danger); } .tst.draft, .tst.closed { background:#e3e8f2; color:var(--muted); } .tst.finished { background:#0b1f63; color:#fff; }
.livetag { background:#fee2e2; color:var(--danger); animation:pulse 1.6s infinite; } @keyframes pulse { 50% { opacity:.55; } }
.team { display:inline-flex; align-items:center; gap:6px; } .team .av { width:22px; height:22px; font-size:10px; margin-right:-10px; border:2px solid #fff; } .team .av + span, .team span:last-child { margin-left:12px; }
.mrow { display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }
.mrow .mteams { flex:1; min-width:200px; } .mrow .mteams > div { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:2px 0; }
.mrow .mteams .win { font-weight:700; } .mrow .mteams b { color:var(--muted); letter-spacing:2px; } .mrow .mteams .win b { color:var(--text); }
.mrow .mmeta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; }
.mrow.live { background:#fff7f7; border-radius:10px; padding:6px; }
.courts { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.court { background:#fff; border-radius:16px; padding:14px; color:var(--text); box-shadow:0 4px 18px #08164a26; border-top:4px solid var(--line); } .court.busy { border-top-color:var(--danger); }
.court .muted { color:var(--muted) !important; }
.bracket { display:flex; gap:22px; overflow-x:auto; padding-bottom:6px; }
.bcol { display:flex; flex-direction:column; justify-content:space-around; gap:14px; min-width:210px; }
.bround { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
.bmatch { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--bg); cursor:default; position:relative; }
.bmatch[onclick] { cursor:pointer; } .bmatch.live { border-color:var(--danger); } .bmatch.done { background:#fff; }
.bteam { display:flex; justify-content:space-between; gap:8px; padding:6px 10px; font-size:13px; } .bteam + .bteam { border-top:1px solid var(--line); }
.bteam.win { font-weight:700; background:#e3f6ea; } .bsc { letter-spacing:2px; } .bname { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; }
.blive, .btime { display:block; font-size:11px; padding:2px 10px 4px; color:var(--danger); } .btime { color:var(--muted); }
tr.adv td { background:#e3f6ea; }
.podium { display:flex; align-items:center; gap:12px; padding:10px; border-radius:12px; margin-bottom:8px; } .podium .medal { font-size:30px; }
.podium.gold { background:#fff7d6; } .podium.silver { background:#eef1f6; } .podium.bronze { background:#fbeee4; }

/* ---------- rankings ---------- */
.rankf .seg { display:inline-flex; background:var(--bg); border-radius:22px; padding:3px; margin:0 8px 8px 0; }
.rankf .seg .chip { border:0; background:transparent; color:var(--muted); } .rankf .seg .chip.on { background:var(--brand); color:#fff; }
body.app .rankf .seg .chip { color:var(--muted); } body.app .rankf .seg .chip.on { background:var(--brand); color:#fff; }
.rankf form input, .rankf form select { margin:0; }
.rankf .ck { font-weight:400; color:var(--text); font-size:13px; gap:6px; white-space:nowrap; } .rankf .ck input { width:auto; margin:0; }
.rank td { vertical-align:middle; } .rank .rk { font-weight:800; width:36px; text-align:center; } .rank .score { font-size:17px; } .rank .ring { width:28px; height:28px; }
@media (max-width:700px) { .rank .hide-sm { display:none; } }

/* ---------- inline line icons & rank badges (no emoji) ---------- */
.ic.ii { width:15px; height:15px; vertical-align:-3px; margin-right:4px; stroke-width:2; opacity:.85; }
.btn .ic.ii { opacity:1; } .einfo { line-height:1.9; }
.feat .fi .ic, .fi .ic { width:30px; height:30px; color:var(--brand); }
.stats .ic { width:18px; height:18px; vertical-align:-4px; margin-right:8px; color:var(--brand); }
.picker .pv .ic { width:24px; height:24px; color:var(--muted); }
.mb { display:inline-flex; width:24px; height:24px; border-radius:50%; align-items:center; justify-content:center; font-weight:800; font-size:12px; color:#fff; }
.mb.m1 { background:linear-gradient(135deg,#f6d365,#d4a017); } .mb.m2 { background:linear-gradient(135deg,#d7dde5,#9aa5b4); } .mb.m3 { background:linear-gradient(135deg,#e8b48a,#b8733d); }
.podium .medal .mb { width:34px; height:34px; font-size:15px; }
.udot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--brand); }

/* ---------- generated artwork ---------- */
.lhero { background:linear-gradient(90deg,#071a5cf2 0%,#0b1f63d9 38%,#1d4cc766 70%,#1d4cc733 100%),url(/img/hero.jpg) center 30%/cover; }
.feat .fi img { width:96px; height:96px; object-fit:contain; display:block; margin-bottom:6px; }
body.public main:has(.auth) { background:linear-gradient(#0b1f63cc,#071a5ce6),url(/img/auth-bg.jpg) center/cover; }
@media (min-width:861px) { body.public main:has(.auth) { background:linear-gradient(90deg,#071a5cf0,#0b1f63b3),url(/img/hero.jpg) center/cover; } }
/* public pages: readable header over any section; normal padding for non-landing views */
body.public .top { background:#071a5ccc; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
body.public main:not(:has(.lhero)):not(:has(.auth)) { max-width:1100px; margin:0 auto; padding:90px 16px 40px; }
body.public { background:#f3f6fc; }
body.public main:not(:has(.lhero)):not(:has(.auth)) > h1 { color:var(--text); }
.feat .fi { min-height:96px; }

/* Google sign-in */
.or { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; margin:14px 0; } .or::before, .or::after { content:''; flex:1; height:1px; background:var(--line); }
.gbtn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; background:#fff !important; color:#1f1f1f !important; border:1px solid #dadce0; font-weight:600; }
.gbtn:hover { background:#f8f9fa !important; }

/* ---------- language menu ---------- */
.lang { position:relative; }
.langbtn { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 10px 0 9px; border-radius:18px; border:1px solid var(--line); background:var(--bg); color:var(--text); font:600 13px/1 inherit; cursor:pointer; }
.langbtn .ic { width:16px; height:16px; } .langbtn .caret { width:12px; height:12px; opacity:.6; transition:transform .15s; }
.lang.open .langbtn .caret { transform:rotate(180deg); }
.langmenu { display:none; position:absolute; right:0; top:calc(100% + 6px); min-width:190px; background:#fff; border-radius:14px; box-shadow:0 12px 32px #0a1f5c33; padding:6px; z-index:40; }
.lang.open .langmenu { display:block; }
.langmenu a { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:10px; color:var(--text); font-size:14px; }
.langmenu a b { width:30px; font-size:11px; color:var(--muted); letter-spacing:.4px; }
.langmenu a:hover { background:var(--bg); } .langmenu a.on { background:var(--brand2); color:var(--brand); font-weight:600; }
.langmenu .tick { width:16px; height:16px; margin-left:auto; color:var(--brand); }
body.public .langbtn { background:#ffffff1f; border-color:#ffffff55; color:#fff; }
.maplink { color:inherit; text-decoration:underline; text-underline-offset:3px; }
body.public #nav .langmenu a { color:var(--text); } body.public #nav .langmenu a.on { color:var(--brand); }

/* covers: photo + bottom shade so the title stays readable */
.cover, .tcover { background-size:cover !important; background-position:center !important; }
.cover { height:140px; }
