@font-face { font-family: 'Anton'; src: url(fonts/anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Oswald'; src: url(fonts/oswald.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
:root { --acc: #b8f53a; --acc2: #e6ffc2; --gold: #ffcf5a; --ink: #eef2fb; --mut: #9aa6c2; --gz: #33e27a; --red: #ff4a3d;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #04060b; color: var(--ink); font-family: 'Oswald', system-ui, sans-serif; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#app { position: absolute; inset: 0; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

#callout { position: absolute; left: 0; right: 0; top: 38%; text-align: center; pointer-events: none; font-family: 'Anton', sans-serif; font-size: clamp(38px, 12vw, 72px); letter-spacing: .03em; color: #fff; opacity: 0; text-shadow: 0 0 22px rgba(184,245,58,.7), 0 4px 0 #1c3a00, 0 8px 20px #000; z-index: 4; }
#callout small { display: block; font-size: .36em; letter-spacing: .2em; color: var(--acc2); text-shadow: 0 2px 8px #000; }
#callout.show { animation: callout 1.7s cubic-bezier(.2,.9,.3,1.2) forwards; }
#callout.meh { color: #dfe6f6; font-size: clamp(26px, 8vw, 44px); text-shadow: 0 3px 10px #000; }
@keyframes callout { 0% { opacity: 0; transform: scale(.4); } 14% { opacity: 1; transform: scale(1.08); } 24% { transform: scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04) translateY(-14px); } }
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #04060b; letter-spacing: .12em; color: var(--mut); z-index: 50; transition: opacity .5s; }
#loading.out { opacity: 0; pointer-events: none; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--acc); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; z-index: 10; }
#title { background: radial-gradient(120% 70% at 50% 42%, rgba(4,6,12,.0), rgba(4,6,12,.74) 78%); display: flex; align-items: center; justify-content: center; padding: calc(var(--st) + 56px) calc(var(--sr) + 18px) calc(var(--sb) + 16px) calc(var(--sl) + 18px); }
.title-wrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-wrap { width: min(70vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 28px rgba(0,0,0,.7)); animation: logoIn .9s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } }
.menu { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.row { display: flex; gap: 9px; }
.row > * { flex: 1; }
.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 7px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(#1a2238, #0c1120); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.5); font-size: 16px; letter-spacing: .1em; text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { min-height: 62px; border-color: #f2ffd0; background: linear-gradient(#efffb0, #b8f53a 52%, #6fae12); color: #0b1402; box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 26px rgba(150,230,40,.35); }
.btn.daily { border-color: rgba(255,207,90,.6); background: linear-gradient(#2b2412, #15110a); }
.btn.daily .b-main em { font-style: normal; font-size: 13px; letter-spacing: .14em; color: var(--gold); margin-left: 6px; vertical-align: middle; }
.btn.small { min-height: 44px; font-size: 14px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn[disabled] { opacity: .45; }
.b-main { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .06em; line-height: 1.1; }
.btn:not(.primary) .b-main { font-size: 19px; }
.b-sub { font-size: 12px; letter-spacing: .1em; opacity: .82; }
.toggles { gap: 6px; }
.toggles .tog { white-space: nowrap; flex: 1 1 auto; min-width: 0; min-height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,14,26,.6); font-size: 12px; letter-spacing: .02em; padding: 0 5px; }
.tog[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.best { text-align: center; font-size: 13px; letter-spacing: .12em; color: var(--mut); min-height: 18px; }
.best b { color: var(--gold); font-weight: 600; }
.gdg-back { position: absolute; z-index: 20; top: calc(var(--st) + 10px); left: calc(var(--sl) + 10px); display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 5px; border-radius: 999px; background: rgba(8,12,24,.72); border: 1px solid rgba(255,255,255,.22); color: #e9eefb; text-decoration: none; font-size: 13px; letter-spacing: .12em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.gdg-back img { width: 28px; height: 28px; object-fit: contain; }
.gdg-back.inline { position: static; align-self: center; margin-top: 4px; }
.gdg-back.inline.top { align-self: flex-start; margin: 0 0 4px; }
.sheet { background: rgba(3,5,10,.6); display: flex; align-items: center; justify-content: center; padding: calc(var(--st) + 12px) calc(var(--sr) + 12px) calc(var(--sb) + 12px) calc(var(--sl) + 12px); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-card { width: 100%; max-width: 400px; max-height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(#141b2e, #090d18); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.sheet-card.wide { max-width: 440px; }
.sheet-card h2 { margin: 0; font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: .06em; font-size: 26px; text-align: center; }
.sheet-card p { margin: 0; color: #c9d2e8; font-size: 15px; line-height: 1.4; text-align: center; }
.setup-lbl { font-size: 11px; letter-spacing: .24em; color: var(--mut); margin-top: 2px; display: flex; justify-content: space-between; align-items: center; }
.link { background: none; border: none; color: var(--acc); font-size: 12px; letter-spacing: .14em; text-decoration: underline; padding: 4px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper .btn { width: 56px; font-size: 24px; }
#pCount { font-family: 'Anton', sans-serif; font-size: 34px; min-width: 40px; text-align: center; }
.inits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.inits label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; letter-spacing: .16em; color: var(--mut); }
.inits input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: #0b1120; color: #fff; font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .12em; text-align: center; text-transform: uppercase; -webkit-user-select: text; user-select: text; touch-action: manipulation; }
.cpu-list { display: flex; flex-wrap: wrap; gap: 5px; }
.cpu-list span { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; letter-spacing: .04em; }
.cpu-list span i { font-style: normal; color: var(--mut); font-size: 11px; margin-left: 4px; }
.parks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.park { position: relative; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(#141c30, #0a0f1c); min-height: 64px; display: flex; flex-direction: column; gap: 2px; }
.park .pn { font-family: 'Anton', sans-serif; font-size: 16px; letter-spacing: .04em; }
.park .pd { font-size: 11px; letter-spacing: .06em; color: var(--mut); }
.park.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 18px rgba(184,245,58,.25); }
.park-blurb { font-size: 13px; color: #c9d2e8; text-align: center; min-height: 36px; }
.d-date { text-align: center; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.d-desc { font-size: 15px !important; }
.d-cond { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.d-cond span { padding: 5px 10px; border-radius: 999px; background: rgba(255,207,90,.1); border: 1px solid rgba(255,207,90,.35); font-size: 13px; letter-spacing: .06em; }
.d-status { text-align: center; font-size: 14px; letter-spacing: .08em; color: var(--acc2); min-height: 18px; }
.d-top ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.d-top li { display: flex; gap: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 15px; }
.d-top li .r { width: 22px; color: var(--mut); }
.d-top li .n { flex: 1; font-family: 'Anton', sans-serif; letter-spacing: .12em; }
.d-top li .s { color: var(--gold); }
.d-top .empty { text-align: center; color: var(--mut); font-size: 14px; padding: 8px; }
.d-next { text-align: center; font-size: 12px; letter-spacing: .18em; color: var(--mut); }
.u-round { text-align: center; font-size: 13px; letter-spacing: .3em; color: var(--acc); }
.u-name { text-align: center; font-family: 'Anton', sans-serif; font-size: 54px; letter-spacing: .1em; line-height: 1.05; }
.u-note { text-align: center; color: #c9d2e8; font-size: 15px; }
.res { gap: 8px; }
.res-head { text-align: center; letter-spacing: .36em; color: var(--mut); font-size: 13px; }
.res-big { text-align: center; font-family: 'Anton', sans-serif; font-size: 50px; line-height: 1.02; color: var(--gold); text-shadow: 0 0 22px rgba(255,200,80,.4); }
.res-sub { text-align: center; font-size: 14px; letter-spacing: .1em; color: #c9d2e8; }
.res-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.coach ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.35; color: #dfe6f6; }
.small-p { font-size: 13px !important; color: var(--mut) !important; text-align: left !important; }

.cpu-note, .diff-note { font-size: 12.5px; line-height: 1.35; color: var(--mut); text-align: center; }
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.dif { min-height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); font-family: 'Anton', sans-serif; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.dif.on { background: linear-gradient(#efffb0, #b8f53a 52%, #6fae12); color: #0b1402; border-color: #f2ffd0; box-shadow: 0 4px 14px rgba(150,230,40,.3); }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hud-top { position: absolute; top: calc(var(--st) + 10px); left: calc(var(--sl) + 10px); right: calc(var(--sr) + 10px); display: flex; justify-content: center; padding-left: 52px; }
.icon-btn { pointer-events: auto; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,12,24,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; letter-spacing: -2px; }
.scorebar { flex: 1; max-width: 420px; height: 44px; display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; background: linear-gradient(#141b2c, #070a12); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.5); }
.sb-team { display: flex; align-items: center; gap: 5px; padding: 0 7px; background: rgba(255,255,255,.04); }
.sb-kit { width: 10px; height: 26px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.sb-code { font-family: 'Anton', sans-serif; font-size: 18px; letter-spacing: .06em; }
.sb-team.me .sb-code { color: var(--acc2); }
.sb-dots { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; min-width: 0; }
.sb-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); flex: 0 0 auto; }
.sb-dots i.g { background: #3ce07a; border-color: #3ce07a; box-shadow: 0 0 6px rgba(60,224,122,.6); }
.sb-dots i.x { background: #ff4a3d; border-color: #ff4a3d; }
.sb-dots i.now { border-color: #fff; animation: blink .7s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sb-score { display: flex; align-items: center; gap: 6px; padding: 0 10px; background: linear-gradient(#f4f6fa, #c9ced9); color: #0a0f1a; font-family: 'Anton', sans-serif; font-size: 24px; font-variant-numeric: tabular-nums; }
.sb-score i { font-style: normal; opacity: .5; font-size: 18px; }
.hud-row2 { position: absolute; top: calc(var(--st) + 62px); left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); display: flex; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .16em; color: #dfe7f7; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
#hKick { color: var(--acc); }
#hKick.sd { color: #ff6b5e; animation: blink .9s steps(2) infinite; }
#hPts { color: var(--gold); }
.role-tag { position: absolute; left: 50%; top: calc(var(--st) + 84px); transform: translateX(-50%); padding: 4px 12px 5px; border-radius: 999px; background: rgba(6,9,18,.62); border: 1px solid rgba(255,255,255,.16); font-size: 11px; letter-spacing: .22em; white-space: nowrap; }
.role-tag:empty { display: none; }
.prac-bar { position: absolute; left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 12px); display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.prac-bar .btn { pointer-events: auto; flex: 0 0 auto; padding: 6px 12px; min-height: 40px; font-size: 13px; }
.prac-bar span { font-size: 12px; letter-spacing: .14em; color: #dfe7f7; text-shadow: 0 1px 3px #000; text-align: right; }
#aim { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 4; }
#aim .a-ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 0 10px rgba(184,245,58,.7), inset 0 0 8px rgba(184,245,58,.4); }
#aim .a-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
#aim.u90 .a-ring { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,207,90,.9), inset 0 0 8px rgba(255,207,90,.5); }
#aim.u90 .a-dot { background: var(--gold); }
#read { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid #ff5a4a; box-shadow: 0 0 18px rgba(255,90,74,.9), inset 0 0 10px rgba(255,90,74,.5); pointer-events: none; z-index: 4; animation: readIn .25s ease-out both; }
@keyframes readIn { from { transform: scale(2.2); opacity: 0; } }
#trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
#trail path { fill: none; stroke: rgba(230,255,190,.9); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(184,245,58,.9)); transition: opacity .35s; }
#trail.fade path { opacity: 0; }
#meter { position: absolute; left: 50%; bottom: calc(var(--sb) + 66px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(6,9,18,.72); border: 1px solid rgba(255,255,255,.14); z-index: 4; pointer-events: none; animation: rdIn .25s ease-out both; }
@keyframes rdIn { from { opacity: 0; transform: translate(-50%, 8px); } }
#meter .m-lbl { font-size: 10px; letter-spacing: .22em; color: var(--mut); white-space: nowrap; }
#meter .m-lbl.r { color: var(--acc2); min-width: 64px; }
#meter .m-bar { position: relative; width: 120px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
#meter .m-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: linear-gradient(90deg, #6fae12, #b8f53a 70%, #ffcf5a 86%, #ff4a3d); }
#meter .m-zone { position: absolute; top: 0; bottom: 0; left: 72%; width: 12%; border-left: 1px solid rgba(255,255,255,.6); border-right: 1px solid rgba(255,255,255,.6); }
.hint { position: absolute; left: 0; right: 0; bottom: calc(var(--sb) + 22%); text-align: center; font-size: 15px; letter-spacing: .16em; color: #fff; text-shadow: 0 2px 6px #000; pointer-events: none; animation: hintPulse 1.8s ease-in-out infinite; padding: 0 20px; z-index: 4; }
@keyframes hintPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
#callout.gold { color: #fff3c4; text-shadow: 0 0 26px rgba(255,200,80,.95), 0 4px 0 #5a3a00, 0 8px 20px #000; }
#callout.red { color: #ffd9d4; text-shadow: 0 0 22px rgba(255,80,60,.8), 0 4px 0 #4a0a00, 0 8px 20px #000; }

/* title logo (pure type, no image) */
.logo-wrap { width: min(80vw, 340px); aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; margin-bottom: 14px; animation: logoIn .9s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } }
.logo { display: flex; align-items: flex-start; gap: 8px; line-height: .86; filter: drop-shadow(0 10px 26px rgba(0,0,0,.8)); }
.l-up { font-family: 'Anton', sans-serif; font-size: clamp(54px, 17vw, 84px); letter-spacing: .02em; background: linear-gradient(#ffffff, #dfe6f0 55%, #9aa6b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-90 { position: relative; font-family: 'Anton', sans-serif; font-size: clamp(54px, 17vw, 84px); background: linear-gradient(#f4ffc9, #b8f53a 55%, #5d9a0c); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 6px; }
.l-90::after { content: ''; position: absolute; right: -6px; top: -2px; width: 22px; height: 22px; border-top: 4px solid #fff; border-right: 4px solid #fff; border-radius: 0 4px 0 0; opacity: .9; }
.logo-sub { margin-top: 6px; font-size: 13px; letter-spacing: .5em; color: var(--acc2); padding-left: .5em; text-shadow: 0 2px 8px #000, 0 0 14px #000; }

/* team picker */
.teams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.team { display: flex; align-items: center; gap: 9px; padding: 7px 9px; min-height: 54px; border-radius: 12px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(160deg, #18213a, #0a0f1c 70%); text-align: left; }
.team.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 18px rgba(184,245,58,.25); }
.shirt { flex: 0 0 34px; height: 36px; position: relative; }
.shirt svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.t-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t-name { font-family: 'Anton', sans-serif; font-size: 16px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-str { font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.cup-path { display: flex; flex-direction: column; gap: 6px; }
.cp { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.cp .cp-r { width: 104px; font-size: 11px; letter-spacing: .16em; color: var(--mut); }
.cp .shirt { flex-basis: 26px; height: 28px; }
.cp .cp-n { flex: 1; font-family: 'Anton', sans-serif; font-size: 17px; letter-spacing: .04em; }
.cp .cp-s { font-size: 13px; color: var(--mut); letter-spacing: .08em; }
.cp.won { border-color: rgba(60,224,122,.4); background: rgba(60,224,122,.08); }
.cp.won .cp-s { color: #3ce07a; }
.cp.next { border-color: var(--acc); box-shadow: 0 0 14px rgba(184,245,58,.2); }
.cp.lost { border-color: rgba(255,74,61,.45); background: rgba(255,74,61,.08); }
.cup-pts { text-align: center; font-size: 13px; letter-spacing: .16em; color: var(--gold); }
.i-round { text-align: center; font-size: 13px; letter-spacing: .3em; color: var(--acc); }
.i-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.i-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'Anton', sans-serif; font-size: 19px; letter-spacing: .04em; text-align: center; }
.i-team .shirt { flex-basis: auto; width: 64px; height: 68px; }
.i-team small { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.i-v { font-family: 'Anton', sans-serif; font-size: 22px; color: var(--mut); }
.i-toss { text-align: center; font-size: 14px; letter-spacing: .08em; color: #c9d2e8; }
.d-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(255,207,90,.06); border: 1px solid rgba(255,207,90,.25); }
.d-match .i-team .shirt { width: 46px; height: 50px; }
.res-table .kt { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; font-size: 13px; }
.res-table .kt b { font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: .05em; font-size: 15px; }
.res-table .kt .dots { display: flex; gap: 4px; flex-wrap: wrap; }
.res-table .kt .dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
.res-table .kt .dots i.g { background: #3ce07a; border-color: #3ce07a; } .res-table .kt .dots i.x { background: #ff4a3d; border-color: #ff4a3d; }
.res-pts { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 13px; }
.res-pts div { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.04); }
.res-pts div b { color: var(--gold); font-weight: 600; }
.lb-note { text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--mut); }

@media (orientation: landscape) and (max-height: 520px) {
  #title { padding-top: calc(var(--st) + 12px); }
  .title-wrap { max-width: 780px; flex-direction: row; gap: 28px; align-items: center; }
  .logo-wrap { width: auto; max-width: 42vw; }
  .menu { max-width: 380px; gap: 7px; }
  .btn.primary { min-height: 52px; }
  .btn { min-height: 42px; }
  .btn.small { min-height: 38px; }
  .b-main { font-size: 19px; }
  .hud-top { justify-content: flex-start; right: auto; width: min(480px, 62vw); }
  .hud-row2 { top: calc(var(--st) + 60px); right: auto; width: min(480px, 62vw); justify-content: flex-start; gap: 18px; }
  .role-tag { left: auto; right: calc(var(--sr) + 12px); top: calc(var(--st) + 14px); transform: none; }
  #callout { top: 30%; }
  .hint { bottom: calc(var(--sb) + 18%); }
  .sheet-card { max-width: 620px; padding: 12px 16px; gap: 7px; }
  .sheet-card.wide { max-width: 700px; }
  .teams { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .team { flex-direction: column; text-align: center; min-height: 0; padding: 4px 3px; gap: 1px; }
  .team .shirt { flex-basis: 24px; width: 24px; height: 25px; }
  .t-name { font-size: 13px; } .t-str { display: none; }
  .diff-note { font-size: 11px; }
  .cup-path { display: grid; grid-template-columns: repeat(5, 1fr); }
  .cp { flex-direction: column; text-align: center; gap: 4px; padding: 6px; }
  .cp .cp-r { width: auto; font-size: 9.5px; }
  .cp .cp-n { font-size: 15px; }
  .res-big { font-size: 40px; }
  .diffs { padding: 3px; } .dif { min-height: 34px; font-size: 14px; }
}
.sticky-actions { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px 14px; background: linear-gradient(rgba(9,13,24,0), #090d18 30%); z-index: 2; }
@media (orientation: landscape) and (max-height: 520px) { .sticky-actions { bottom: -12px; margin: 0 -16px -12px; padding: 8px 16px 10px; } }
body.clean #hud, body.clean #callout, body.clean #hint, body.clean #aim, body.clean #read, body.clean #meter, body.clean #trail, body.clean .screen { display: none !important; }
