:root {
  --navy: #07122b; --navy2: #0d1f45; --gold: #f2c14e; --gold2: #ffde8a; --ink: #eef3ff; --mute: #9fb0d4;
  --glass: rgba(10, 22, 52, .72); --line: rgba(255, 255, 255, .12); --good: #3ddc84; --bad: #ff5d5d; --mid: #f7b733;
  --r: 14px;
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #050b1a; color: var(--ink); }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
#loading { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; background: radial-gradient(ellipse at center, #13285a, #050b1a); z-index: 50; font-weight: 600; letter-spacing: .04em; transition: opacity .6s; }
#loading.gone { opacity: 0; pointer-events: none; }
.ball-spin { font-size: 54px; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#ui { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.screen { position: absolute; inset: 0; display: none; pointer-events: auto; }
.screen.on { display: block; animation: fade .35s ease; }
.screen.scroll { overflow-y: auto; background: linear-gradient(180deg, rgba(5, 11, 26, .78), rgba(5, 11, 26, .94) 40%); backdrop-filter: blur(6px); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* HOME */
#s-home { background: linear-gradient(90deg, rgba(5, 11, 26, .92) 0%, rgba(5, 11, 26, .55) 45%, rgba(5, 11, 26, 0) 70%); }
.hero { position: absolute; left: 7vw; top: 50%; transform: translateY(-50%); max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; color: var(--gold); font-weight: 700; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: .9; margin: 14px 0 10px; font-weight: 900; font-style: italic; letter-spacing: -.02em; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
h1 span { color: transparent; -webkit-text-stroke: 2px var(--gold); background: linear-gradient(180deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; }
.sub { color: var(--mute); font-size: 17px; margin-bottom: 30px; }
.menu { display: flex; flex-direction: column; gap: 10px; width: 300px; }
.fine { margin-top: 26px; font-size: 11px; color: rgba(255, 255, 255, .45); max-width: 380px; }
.btn { border: 1px solid var(--line); background: rgba(255, 255, 255, .07); padding: 13px 20px; border-radius: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; text-align: left; transition: transform .12s, background .15s, border-color .15s; backdrop-filter: blur(8px); }
.btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); transform: translateX(3px); }
.btn.primary { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #1a1405; border: none; box-shadow: 0 8px 30px rgba(242, 193, 78, .3); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.center { text-align: center; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* BARS / TABS */
.bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: rgba(5, 11, 26, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); flex-wrap: wrap; }
.bar h2 { margin: 0; font-size: 20px; font-style: italic; text-transform: uppercase; letter-spacing: .03em; }
#team-search { margin-left: auto; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); width: 240px; font: inherit; }
.tabs { margin-left: auto; display: flex; gap: 4px; background: rgba(255, 255, 255, .05); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: transparent; padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--mute); }
.tabs button.on { background: var(--gold); color: #1a1405; }
#hub-team { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-transform: uppercase; font-style: italic; }
#hub-team img { height: 26px; border-radius: 3px; }

/* TEAM GRID */
#team-grid { padding: 22px 28px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.group-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.group-card h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .25em; color: var(--gold); text-transform: uppercase; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.team-row:hover { background: rgba(255, 255, 255, .08); }
.team-row img { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.team-row .nm { font-weight: 700; flex: 1; }
.ovr { font-weight: 900; font-size: 15px; min-width: 34px; text-align: center; padding: 3px 6px; border-radius: 7px; background: rgba(255, 255, 255, .1); }
.ovr.hi { background: linear-gradient(135deg, #ffe08a, #f2b230); color: #2a1d00; }
.ovr.md { background: #2f6fdb; }
.ovr.lo { background: #5b6478; }
.mini { display: flex; gap: 6px; font-size: 10px; color: var(--mute); }
.mini b { color: var(--ink); }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(2, 6, 16, .72); display: grid; place-items: center; backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(1100px, 95vw); max-height: 92vh; overflow: auto; background: linear-gradient(180deg, #0f2147, #0a1734); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: fade .25s; }
.x { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 28px; color: var(--mute); }

/* TEAM SHEET */
.ts-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ts-head img.flag { width: 84px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.ts-head h2 { margin: 0; font-size: 34px; font-style: italic; text-transform: uppercase; }
.ts-head .meta { color: var(--mute); font-size: 14px; margin-top: 4px; }
.ratings { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.rate { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.rate .lab { font-size: 11px; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.rate .num { font-size: 30px; font-weight: 900; }
.rate .bar2 { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.rate .bar2 i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ff8a3d); }
.rate .hint { font-size: 11px; color: var(--mute); margin-top: 6px; }
.ts-body { display: grid; grid-template-columns: 1fr 330px; gap: 20px; }
@media (max-width: 900px) { .ts-body { grid-template-columns: 1fr; } .ratings { grid-template-columns: repeat(2, 1fr); } }
table.squad { width: 100%; border-collapse: collapse; font-size: 13px; }
.squad th { text-align: left; font-size: 10px; letter-spacing: .14em; color: var(--mute); text-transform: uppercase; padding: 6px 6px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0d1d40; }
.squad td { padding: 7px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.squad tr.xi td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.squad tr.sel td { background: rgba(242, 193, 78, .18); }
.squad tr.click { cursor: pointer; }
.squad tr.click:hover td { background: rgba(255, 255, 255, .06); }
.pos { font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 5px; }
.pos.GK { background: #e8a33d; color: #231500; } .pos.DF { background: #2f80ed; } .pos.MF { background: #27ae60; } .pos.FW { background: #eb5757; }
.cap { font-size: 10px; background: var(--gold); color: #000; border-radius: 4px; padding: 1px 4px; margin-left: 4px; font-weight: 900; }
.stat { color: var(--mute); }
.pitchmini { position: relative; aspect-ratio: 68/90; background: repeating-linear-gradient(180deg, #2f7d32 0 9%, #358a38 9% 18%); border-radius: 12px; border: 2px solid rgba(255, 255, 255, .6); overflow: hidden; }
.pitchmini:before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255, 255, 255, .5); }
.pitchmini:after { content: ''; position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; transform: translate(-50%, -50%); }
.pm-box { position: absolute; left: 25%; right: 25%; bottom: 0; height: 15%; border: 2px solid rgba(255, 255, 255, .5); border-bottom: 0; }
.dot { position: absolute; transform: translate(-50%, -50%); text-align: center; font-size: 10px; font-weight: 700; z-index: 2; width: 70px; }
.dot i { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 50%; font-style: normal; font-weight: 900; font-size: 11px; border: 2px solid rgba(0, 0, 0, .4); }
.dot span { text-shadow: 0 1px 3px #000; white-space: nowrap; }
.kits { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.kitcard { width: 124px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: rgba(255, 255, 255, .09); border: 2px solid var(--line); border-radius: 14px; padding: 12px 12px 8px; text-align: center; cursor: pointer; transition: transform .12s, border-color .12s; }
.kitcard:hover { transform: translateY(-3px); }
.kitcard.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .25); }
.kitcard .kl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
h3.sec { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }

/* HUB */
#hub-body { padding: 24px 28px 80px; max-width: 1280px; margin: 0 auto; }
.next { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.next .side { text-align: center; }
.next img { width: 120px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.next .tn { font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; margin-top: 10px; }
.next .vs { font-size: 18px; color: var(--mute); text-align: center; }
.next .vs b { display: block; font-size: 13px; letter-spacing: .25em; color: var(--gold); margin-bottom: 8px; }
.cmp { display: grid; grid-template-columns: 50px 1fr 60px 1fr 50px; gap: 8px; align-items: center; font-size: 13px; margin-top: 18px; }
.cmp .l { text-align: right; font-weight: 800; } .cmp .r { font-weight: 800; }
.cmp .t { text-align: center; color: var(--mute); font-size: 11px; letter-spacing: .15em; }
.cmp .bl, .cmp .br { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; }
.cmp .bl i { float: right; height: 100%; background: var(--gold); } .cmp .br i { display: block; height: 100%; background: #6fa8ff; }
.actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.results { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.res { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.res .h { text-align: right; } .res .sc { font-weight: 900; min-width: 54px; text-align: center; background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 2px 6px; }
.res img { width: 20px; vertical-align: middle; border-radius: 2px; margin: 0 6px; }
.res.me { outline: 1px solid var(--gold); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
table.st { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--glass); border-radius: 12px; overflow: hidden; }
.st caption { text-align: left; font-weight: 800; letter-spacing: .25em; color: var(--gold); font-size: 12px; padding: 0 0 6px; }
.st th { font-size: 10px; color: var(--mute); padding: 7px 6px; text-align: center; letter-spacing: .1em; }
.st td { padding: 7px 6px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .05); }
.st td.tm { text-align: left; font-weight: 700; }
.st td.tm img { width: 20px; vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.st tr.q1 td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.st tr.q3 td:first-child { box-shadow: inset 3px 0 0 var(--mid); }
.st tr.me td { background: rgba(242, 193, 78, .1); }
.st .pts { font-weight: 900; }
.legend { font-size: 12px; color: var(--mute); margin: 10px 0 18px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: middle; }
.bracket { display: grid; grid-template-columns: repeat(9, minmax(120px, 1fr)); gap: 10px; align-items: center; overflow-x: auto; padding-bottom: 20px; }
.bcol { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; height: 100%; min-height: 640px; }
.bcol h4 { margin: 0 0 4px; font-size: 10px; letter-spacing: .2em; color: var(--gold); text-align: center; text-transform: uppercase; }
.bm { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; overflow: hidden; }
.bm div { display: flex; justify-content: space-between; gap: 6px; padding: 4px 7px; align-items: center; }
.bm div + div { border-top: 1px solid rgba(255, 255, 255, .06); }
.bm img { width: 16px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.bm .w { font-weight: 900; color: #fff; } .bm .lz { color: var(--mute); }
.bm.me { border-color: var(--gold); }
.bm .tbd { color: rgba(255, 255, 255, .3); }
.final-cell { text-align: center; }
.trophy { font-size: 64px; filter: drop-shadow(0 6px 20px rgba(242, 193, 78, .6)); }
.scorers td, .scorers th { padding: 8px; }
.empty { color: var(--mute); text-align: center; padding: 40px; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud[hidden] { display: none; }
#scorebug { position: absolute; left: 24px; top: 20px; display: flex; align-items: stretch; height: 44px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.sb-team { display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #13244d, #0b1734); padding: 0 12px; font-weight: 900; font-size: 18px; letter-spacing: .04em; position: relative; }
.sb-team img { height: 22px; border-radius: 2px; }
.sb-team .kitbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.sb-score { display: flex; align-items: center; gap: 8px; background: #fff; color: #0b1734; padding: 0 14px; font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums; }
.sb-score i { font-style: normal; color: #8892a8; }
.sb-clock { display: flex; align-items: center; background: var(--gold); color: #1a1405; padding: 0 12px; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; border-radius: 0 8px 8px 0; min-width: 72px; justify-content: center; }
#sb-h { border-radius: 8px 0 0 8px; }
#sb-events { position: absolute; left: 24px; top: 70px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000; line-height: 1.6; }
#toast { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); background: rgba(5, 11, 26, .8); border: 1px solid var(--line); padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .3s; white-space: nowrap; }
#toast.on { opacity: 1; }
#banner { position: absolute; left: 0; right: 0; top: 34%; text-align: center; opacity: 0; transition: opacity .35s, transform .35s; transform: scale(.9); }
#banner.on { opacity: 1; transform: scale(1); }
#banner .b1 { display: inline-block; font-size: clamp(42px, 7vw, 92px); font-weight: 900; font-style: italic; letter-spacing: -.01em; padding: 4px 40px; background: linear-gradient(90deg, transparent, rgba(5, 11, 26, .85) 15%, rgba(5, 11, 26, .85) 85%, transparent); color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
#banner.goal .b1 { color: var(--gold2); font-size: clamp(60px, 11vw, 150px); }
#banner .b2 { font-size: 20px; font-weight: 700; margin-top: 6px; text-shadow: 0 2px 8px #000; }
#player-chip { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; background: rgba(5, 11, 26, .78); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 10px; }
.pc-no { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.pc-name { font-weight: 800; font-size: 15px; }
.pc-meta { font-size: 12px; color: var(--mute); }
#power { position: absolute; left: 50%; bottom: 190px; width: 220px; height: 12px; transform: translateX(-50%); background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; overflow: hidden; opacity: 0; transition: opacity .15s; }
#power.on { opacity: 1; }
#power div { height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, #f7b733 70%, #ff4d4d); }
#radar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 230px; height: 150px; border-radius: 10px; background: rgba(20, 70, 30, .55); border: 1px solid rgba(255, 255, 255, .35); }
#keys { position: absolute; right: 22px; bottom: 22px; font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .8); background: rgba(5, 11, 26, .6); padding: 8px 12px; border-radius: 10px; max-width: 470px; text-align: right; }
#keys b { color: var(--gold2); }
#keys.off { display: none; }
#pen-ui[hidden] { display: none; }
#reticle { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid var(--gold2); border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(0, 0, 0, .3); }
#reticle:after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; background: var(--gold2); border-radius: 50%; }
.pen-hint { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); background: rgba(5, 11, 26, .8); padding: 10px 18px; border-radius: 30px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); white-space: nowrap; }
#shootout { position: absolute; right: 24px; top: 20px; background: rgba(5, 11, 26, .85); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 14px; }
#shootout .so-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
#shootout img { width: 22px; border-radius: 2px; }
#shootout .pd { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); display: inline-block; }
#shootout .pd.g { background: var(--good); border-color: var(--good); } #shootout .pd.m { background: var(--bad); border-color: var(--bad); }
#pause { position: absolute; inset: 0; background: rgba(2, 6, 16, .6); display: grid; place-items: center; pointer-events: auto; backdrop-filter: blur(4px); }
#pause[hidden] { display: none; }
.pause-card { display: flex; flex-direction: column; gap: 10px; width: 300px; background: var(--glass); padding: 26px; border-radius: 18px; border: 1px solid var(--line); }
.pause-card h2 { margin: 0 0 8px; font-style: italic; text-transform: uppercase; }

/* post match */
.pm-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; text-align: center; }
.pm-score img { width: 90px; border-radius: 6px; }
.pm-score .big { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pm-score .tn { font-weight: 900; font-size: 20px; text-transform: uppercase; font-style: italic; margin-top: 6px; }
.pm-sc { font-size: 13px; color: var(--mute); margin-top: 6px; line-height: 1.6; }
.statrow { display: grid; grid-template-columns: 60px 1fr 140px 1fr 60px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.statrow .l { text-align: right; font-weight: 800; } .statrow .r { font-weight: 800; } .statrow .t { text-align: center; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.statrow .b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.statrow .b.l2 i { float: right; } .statrow .b i { display: block; height: 100%; }
.verdict { text-align: center; font-size: 16px; font-weight: 800; margin: 18px 0 4px; }
.verdict.good { color: var(--good); } .verdict.bad { color: var(--bad); }

/* help */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.help-grid div { background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 14px 18px; }
.help-grid h4 { margin: 0 0 8px; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; font-size: 12px; }
.help-grid p, .help-grid li { font-size: 14px; line-height: 1.6; color: #d6def2; }
kbd { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 12px; font-family: inherit; font-weight: 700; }
.set-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.set-row label { width: 160px; color: var(--mute); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.seg { display: flex; gap: 4px; background: rgba(255, 255, 255, .05); padding: 4px; border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 700; color: var(--mute); }
.seg button.on { background: var(--gold); color: #1a1405; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* touch */
#touch { display: none; }
.touch-on #touch { display: block; }
.touch-on #keys { display: none; }
.stick { position: absolute; left: 30px; bottom: 30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); pointer-events: auto; touch-action: none; }
.knob { position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.tbtns { position: absolute; right: 20px; bottom: 20px; display: grid; grid-template-columns: repeat(3, 70px); gap: 10px; pointer-events: auto; }
.tbtns button { height: 60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(5, 11, 26, .55); font-weight: 900; font-size: 11px; touch-action: none; }
.tbtns button.on { background: var(--gold); color: #000; }
.touch-on #radar { bottom: auto; top: 76px; left: auto; right: 16px; transform: none; width: 170px; height: 111px; }
.touch-on #player-chip { bottom: auto; top: 76px; }

.kitcard.info { cursor: default; border-color: rgba(255,255,255,.18); box-shadow: none; }
.kitcard.info:hover { transform: none; }
.kits.small .kitcard { width: 96px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 6px; } ::-webkit-scrollbar-track { background: transparent; }
.modal-card { padding-top: 34px; }

/* fixtures: fixed flag slots, single-line names */
.res .h, .res .a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.res .h { justify-content: flex-end; } .res .a { justify-content: flex-start; }
.res .h span, .res .a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res img { margin: 0; flex: none; }
.vsx { display: block; font-size: 22px; font-weight: 900; font-style: italic; color: #fff; margin: 2px 0 4px; }
.next .stat { color: #b9c6e4; }
/* bracket */
.bracket2 { overflow-x: auto; padding-bottom: 20px; }
.bh, .bg { display: grid; grid-template-columns: minmax(96px,1fr) 22px minmax(96px,1fr) 22px minmax(96px,1fr) 22px minmax(96px,1fr) 22px minmax(132px,1.15fr) 22px minmax(96px,1fr) 22px minmax(96px,1fr) 22px minmax(96px,1fr) 22px minmax(96px,1fr); min-width: 1120px; }
.bh div { font-size: 10px; letter-spacing: .2em; color: var(--gold); text-align: center; text-transform: uppercase; padding-bottom: 10px; font-weight: 800; }
.bg { grid-template-rows: repeat(16, 44px); }
.bk { display: flex; flex-direction: column; justify-content: center; }
.bk .bm { width: 100%; }
.bk.fin { align-items: center; text-align: center; }
.bk.fin h4 { margin: 4px 0; font-size: 10px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.champ { margin-top: 10px; font-weight: 900; font-size: 18px; font-style: italic; text-transform: uppercase; color: var(--gold2); }
.champ small { display: block; font-size: 10px; letter-spacing: .25em; color: var(--mute); font-style: normal; }
.cn { border: 2px solid rgba(255,255,255,.22); border-left: 0; border-radius: 0 6px 6px 0; margin: 0 0 0 0; position: relative; }
.cn.r { border-left: 2px solid rgba(255,255,255,.22); border-right: 0; border-radius: 6px 0 0 6px; }
.cn:after { content: ''; position: absolute; top: 50%; left: 100%; width: 22px; border-top: 2px solid rgba(255,255,255,.22); }
.cn.r:after { left: auto; right: 100%; }
.cn.h { border: 0; } .cn.h:after { left: 0; width: 100%; }
.cn:not(.h) { margin-right: 11px; } .cn.r:not(.h) { margin-right: 0; margin-left: 11px; }
.cn:not(.h):after { width: 11px; } 

.bk.fin { display: grid; grid-template-rows: 1fr auto 1fr; align-items: stretch; }
.bk.fin .fin-top { align-self: end; padding-bottom: 6px; } .bk.fin .fin-bot { align-self: start; }
.bm div b { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.bm { font-size: 11px; }
.res img { width: 22px; height: 15px; object-fit: cover; }
.bm img { width: 16px; height: 11px; object-fit: cover; }
.st td.tm img { width: 21px; height: 14px; object-fit: cover; }
.next img { width: 132px; height: 88px; object-fit: cover; }
#hub-team img { width: 39px; height: 26px; object-fit: cover; }
.cmp { width: 340px; }
#hub-body:has(.bracket2) { max-width: none; }
