/* =====================================================================
   HOOP DREAMS — style.css
   Dark sports-game UI: glass panels, condensed fonts, glow accents.
   ===================================================================== */
:root {
  --bg: #07090f; --panel: rgba(15, 20, 32, .72); --panel2: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .1);
  --text: #e5e7eb; --muted: #94a3b8; --accent: #f97316; --accent2: #facc15; --good: #22c55e; --bad: #ef4444; --blue: #38bdf8;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --cond: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--cond); letter-spacing: .02em; margin: .4em 0; }
h2 { font-size: 1.6rem; } h3 { font-size: 1.15rem; color: #fff; } h4 { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
kbd { font-family: var(--cond); font-size: .75rem; background: #ffffff1a; border: 1px solid #ffffff2a; border-radius: 5px; padding: 1px 6px; }
.muted { color: var(--muted); } .hl { color: var(--accent2); } .small { font-size: .8rem; } .center { text-align: center; } .big { font-size: 1.2rem; }
.warn-text { color: #fca5a5; font-size: .85rem; }

/* ---------- layout shell ---------- */
#app { position: fixed; inset: 0; }
#bg { position: absolute; inset: 0; overflow: hidden; }
.bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.bg-layer.on { opacity: 1; }
.bg-layer::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(3, 5, 10, .65) 100%); }
.scene-svg { width: 100%; height: 100%; display: block; }
.scene-svg .flash { animation: flash 4s infinite; opacity: 0; }
@keyframes flash { 0%, 92%, 100% { opacity: 0; } 94% { opacity: 1; } }
.scene-svg .beam { transform-origin: top center; animation: sway 7s ease-in-out infinite alternate; }
.scene-svg .b2 { animation-delay: -3s; }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; transition: opacity .35s ease, transform .35s ease; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.screen.enter { opacity: 0; transform: translateY(14px) scale(.99); }
.corner { position: fixed; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 40; }
body[data-screen=hubscreen] .corner #setBtn { display: none; }
body[data-screen=hubscreen] #bg::after, body[data-screen=postgame] #bg::after { content: ''; position: absolute; inset: 0; background: rgba(5, 7, 12, .5); }
body[data-screen=hubscreen] .corner { top: auto; bottom: 86px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 14, 24, .7); backdrop-filter: blur(8px); font-size: 1rem; display: grid; place-items: center; transition: transform .15s, background .15s; }
.icon-btn:hover { transform: scale(1.08); background: rgba(249, 115, 22, .3); }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.panel { padding: 14px 16px; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.row.end { justify-content: flex-end; } .row.center { justify-content: center; } .row.wrap { flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { position: relative; border: 0; border-radius: 10px; padding: 10px 18px; font-family: var(--cond); font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #fb923c, #ea580c); box-shadow: 0 4px 0 #9a3412, 0 8px 20px rgba(249, 115, 22, .25); transition: transform .12s, box-shadow .12s, filter .12s; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 0 #9a3412, 0 12px 30px rgba(249, 115, 22, .4); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #9a3412; }
.btn small { font-family: var(--body); font-size: .7rem; text-transform: none; letter-spacing: 0; opacity: .85; font-weight: 500; }
.btn.big { padding: 14px 28px; font-size: 1.2rem; }
.btn.sm { padding: 6px 12px; font-size: .8rem; box-shadow: 0 3px 0 #9a3412; }
.btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .14); box-shadow: none; }
.btn.alt { background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 0 #1e3a8a; }
.btn.danger { background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 3px 0 #7f1d1d; }
.btn.glow::after { content: ''; position: absolute; inset: -3px; border-radius: 13px; border: 2px solid rgba(250, 204, 21, .6); animation: glow 2s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 0%, 100% { opacity: .2; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

/* ---------- bars / pct tags ---------- */
.bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; flex: 1; min-width: 40px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f97316, #facc15); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.bar.good i { background: linear-gradient(90deg, #16a34a, #4ade80); } .bar.warn i { background: linear-gradient(90deg, #dc2626, #f87171); }
.bar.xp i { background: linear-gradient(90deg, #38bdf8, #a78bfa); }
.pct { font-family: var(--cond); font-weight: 700; font-size: .85rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.pct.hi { background: rgba(34, 197, 94, .2); color: #4ade80; border: 1px solid #22c55e66; }
.pct.mid { background: rgba(234, 179, 8, .18); color: #fde047; border: 1px solid #eab30866; }
.pct.lo { background: rgba(239, 68, 68, .2); color: #fca5a5; border: 1px solid #ef444466; }
.pct.mg { background: rgba(168, 85, 247, .2); border: 1px solid #a855f766; }

/* ---------- toasts / modals / fx ---------- */
#toasts { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(560px, 94vw); pointer-events: none; }
.toast { background: rgba(10, 14, 24, .92); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; font-size: .9rem; opacity: 0; transform: translateY(-10px); transition: all .3s; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toast.in { opacity: 1; transform: none; }
.toast.good { border-left-color: var(--good); } .toast.bad { border-left-color: var(--bad); } .toast.info { border-left-color: var(--blue); display: block; } .toast.ach { border-left-color: var(--accent2); }
.toast svg { vertical-align: middle; }
.chg { display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: .82rem; }
.chg b { font-family: var(--cond); }
.chg.up b { color: #4ade80; } .chg.down b { color: #f87171; } .chg.special { background: linear-gradient(90deg, #7c3aed55, #38bdf855); } .chg.special b { color: #fff; }
.modal { position: fixed; inset: 0; background: rgba(2, 4, 8, .7); display: grid; place-items: center; z-index: 60; opacity: 0; transition: opacity .25s; padding: 16px; }
.modal.in { opacity: 1; }
.modal-card { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 22px; transform: scale(.95); transition: transform .25s; }
.modal.in .modal-card { transform: none; }
.modal .x { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 1.1rem; color: var(--muted); }
.modal.train .modal-card { width: min(520px, 100%); text-align: center; }
.train-stage { position: relative; min-height: 340px; }
.train-stage .mg { position: absolute; inset: 0; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.burst { position: absolute; inset: 0; display: grid; place-items: center; }
.burst-ring { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 6px solid var(--accent2); animation: ring 1.2s ease-out forwards; box-shadow: 0 0 60px var(--accent2); }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(3.5); opacity: 0; } }
.burst-text { font-family: var(--display); font-size: clamp(3rem, 10vw, 6rem); color: #fff; text-shadow: 0 0 30px #facc15, 0 4px 0 #b45309; animation: pop 2.2s ease forwards; text-align: center; line-height: .9; }
.burst-text small { display: block; font-family: var(--cond); font-size: 1.2rem; color: var(--accent2); text-shadow: none; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* =====================================================================
   TITLE
   ===================================================================== */
.title-wrap { min-height: 100%; display: grid; grid-template-columns: 1fr minmax(260px, 340px); grid-template-rows: 1fr auto; gap: 20px 40px; padding: 6vh 6vw 3vh; align-items: center; }
.title-logo { grid-column: 1; }
.tl-ball { width: 90px; animation: bounceBall 1.4s cubic-bezier(.5, 0, .5, 1) infinite alternate; filter: drop-shadow(0 10px 20px rgba(249, 115, 22, .5)); }
@keyframes bounceBall { from { transform: translateY(-14px) rotate(-10deg); } to { transform: translateY(8px) rotate(20deg); } }
.title-logo h1 { font-family: var(--display); font-size: clamp(4rem, 13vw, 10rem); line-height: .82; margin: .1em 0; letter-spacing: .02em; }
.title-logo h1 span { display: block; background: linear-gradient(180deg, #fff 30%, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #9a3412) drop-shadow(0 0 40px rgba(249, 115, 22, .45)); }
.title-logo h1 span:last-child { background: linear-gradient(180deg, #fdba74, #f97316); -webkit-background-clip: text; background-clip: text; }
.tl-sub { font-family: var(--cond); letter-spacing: .3em; color: #fed7aa; font-size: clamp(.75rem, 1.6vw, 1rem); }
.title-menu { grid-column: 1; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.title-card { grid-column: 2; grid-row: 1 / span 2; height: 60vh; animation: floaty 4s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.title-card svg { height: 100%; width: 100%; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.title-foot { grid-column: 1 / -1; color: #64748b; font-size: .75rem; }
.howto p { line-height: 1.55; color: #cbd5e1; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; background: var(--panel2); }
.slot.empty { color: var(--muted); padding: 14px; font-style: italic; }
.slot-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #1e293b; flex: none; }
.slot-av svg { width: 100%; height: 100%; }
.slot-info { flex: 1; display: flex; flex-direction: column; } .slot-info span { color: var(--accent2); font-family: var(--cond); } .slot-info small { color: var(--muted); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.set-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.set-grid select, .fgrid input { background: #0b1220; border: 1px solid var(--line); color: #fff; border-radius: 8px; padding: 8px 10px; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.chk { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; }

/* =====================================================================
   CHARACTER CREATION
   ===================================================================== */
.create { max-width: 1200px; margin: 0 auto; padding: 18px 16px 30px; }
.create-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.create-head h2 { font-family: var(--display); font-size: 2.4rem; margin: 0; letter-spacing: .04em; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step { border: 1px solid var(--line); background: rgba(0, 0, 0, .4); border-radius: 30px; padding: 6px 14px 6px 6px; font-family: var(--cond); letter-spacing: .05em; display: flex; gap: 8px; align-items: center; }
.step b { width: 24px; height: 24px; border-radius: 50%; background: #1e293b; display: grid; place-items: center; font-size: .8rem; }
.step.on { border-color: var(--accent); background: rgba(249, 115, 22, .2); } .step.on b, .step.done b { background: var(--accent); }
.create-body { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 16px; align-items: start; }
.create-form { padding: 18px; min-height: 420px; }
.create-preview { display: flex; flex-direction: column; gap: 12px; align-items: center; position: sticky; top: 10px; }
#cradar { width: 100%; padding: 10px; display: flex; flex-direction: column; align-items: center; }
.cr-title { font-family: var(--cond); letter-spacing: .15em; color: var(--muted); font-size: .75rem; }
.create-foot { display: flex; justify-content: space-between; margin-top: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--cond); }
.fgrid input { font-size: 1.05rem; font-family: var(--body); text-transform: none; letter-spacing: 0; }
.opt-cards { display: grid; gap: 10px; }
.opt-cards.three { grid-template-columns: repeat(3, 1fr); } .opt-cards.five { grid-template-columns: repeat(5, 1fr); } .opt-cards.arch { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ocard { text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; transition: all .15s; }
.ocard b { font-family: var(--cond); font-size: 1.1rem; letter-spacing: .03em; } .ocard span { font-size: .8rem; color: var(--muted); }
.ocard:hover { border-color: #ffffff44; transform: translateY(-2px); }
.ocard.sel { border-color: var(--accent); background: rgba(249, 115, 22, .15); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(249, 115, 22, .25); }
.ocard.pos { align-items: center; text-align: center; } .ocard.pos b { font-family: var(--display); font-size: 2rem; }
.archc { --ac: #f97316; } .archc.sel { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 16%, transparent); box-shadow: 0 0 0 1px var(--ac), 0 8px 24px color-mix(in srgb, var(--ac) 30%, transparent); }
.ac-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 0, 0, .35); display: grid; place-items: center; }
.ac-bon { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .ac-bon em { font-style: normal; font-family: var(--cond); font-size: .75rem; color: #4ade80; background: rgba(34, 197, 94, .12); padding: 1px 6px; border-radius: 4px; }
.ac-sig { margin-top: 6px; font-family: var(--cond); font-size: .85rem; color: var(--accent2); } .ac-sig small { display: block; color: var(--muted); font-family: var(--body); font-size: .72rem; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 8px; }
.cap { display: flex; align-items: center; gap: 8px; font-size: .8rem; } .cap span { width: 92px; color: var(--muted); } .cap b { font-family: var(--cond); width: 22px; text-align: right; }
.look-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.look-grid h4 { margin: 8px 0 4px; font-size: .75rem; }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 30px; height: 30px; border-radius: 7px; border: 2px solid #ffffff22; font-size: .8rem; color: var(--muted); }
.sw.round { border-radius: 50%; } .sw.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); transform: scale(1.08); }
.chip { border: 1px solid var(--line); background: rgba(255, 255, 255, .05); border-radius: 20px; padding: 4px 10px; font-size: .78rem; text-transform: capitalize; }
.chip.sel { background: var(--accent); border-color: var(--accent); }

/* =====================================================================
   PLAYER CARD
   ===================================================================== */
.pcard { --c1: #7c4a1e; --c2: #c27c3a; --c3: #f5c08a; --ink: #fff; position: relative; width: 240px; aspect-ratio: 5 / 7.6; border-radius: 18px; overflow: hidden; padding: 12px; display: flex; flex-direction: column;
  background: linear-gradient(155deg, var(--c3) 0%, var(--c2) 30%, var(--c1) 75%, #1c1007 100%); box-shadow: 0 20px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .25), inset 0 0 0 6px rgba(0, 0, 0, .15); color: var(--ink); font-family: var(--cond); }
.pcard.big { width: 280px; }
.tier-silver.pcard { --c1: #4b5563; --c2: #9ca3af; --c3: #f3f4f6; }
.tier-gold.pcard { --c1: #92400e; --c2: #f59e0b; --c3: #fef08a; }
.tier-diamond.pcard { --c1: #1e3a8a; --c2: #38bdf8; --c3: #e0f2fe; }
.tier-goat.pcard { --c1: #3b0764; --c2: #c026d3; --c3: #fde68a; animation: holo 4s linear infinite; background-size: 200% 200%; background-image: linear-gradient(135deg, #fde68a, #f472b6, #a78bfa, #38bdf8, #4ade80, #fde68a); }
@keyframes holo { to { background-position: 200% 200%; } }
.pc-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 55%); background-size: 250% 100%; animation: shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.pc-top { display: flex; align-items: flex-start; gap: 6px; position: relative; z-index: 2; }
.pc-ovr { font-family: var(--display); font-size: 3rem; line-height: .8; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.pc-ovr small { font-family: var(--cond); font-size: .7rem; letter-spacing: .2em; }
.pc-pos { font-family: var(--display); font-size: 1.6rem; margin-top: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.pc-arch { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .3); display: grid; place-items: center; }
.pc-art { flex: 1; min-height: 0; margin: -40px -12px -4px; position: relative; z-index: 1; overflow: hidden; }
.pc-art svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.pc-name { position: relative; z-index: 2; text-align: center; line-height: 1; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.pc-name span { display: block; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.pc-name b { font-family: var(--display); font-size: 1.9rem; letter-spacing: .03em; text-transform: uppercase; }
.pc-archname { text-align: center; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 6px; margin: 6px 0 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .3); position: relative; z-index: 2; }
.pc-stats div { display: flex; gap: 5px; align-items: baseline; justify-content: center; }
.pc-stats b { font-size: 1.05rem; } .pc-stats span { font-size: .65rem; opacity: .8; letter-spacing: .08em; }
.pc-foot { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .08em; opacity: .9; position: relative; z-index: 2; }
.pc-tier { text-transform: uppercase; font-weight: 700; }

/* =====================================================================
   STORY (visual novel)
   ===================================================================== */
.story { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; max-width: 1100px; margin: 0 auto; }
.story-top { position: absolute; top: 12px; left: 14px; right: 100px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.chap { font-family: var(--cond); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; background: rgba(0, 0, 0, .5); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); }
.portraits { position: relative; flex: 1; min-height: 0; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.portrait { position: relative; height: min(60vh, 520px); width: min(44%, 400px); transition: filter .3s, transform .3s, opacity .3s; display: flex; flex-direction: column; justify-content: flex-end; }
.portrait svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.portrait.dim { filter: brightness(.45) saturate(.6); transform: scale(.96); }
.portrait.active { filter: none; transform: scale(1.02); }
.portrait.pop { animation: pIn .4s ease; }
@keyframes pIn { from { opacity: 0; transform: translateY(30px); } }
.p-name { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-family: var(--cond); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; opacity: 0; }
.dialog { position: relative; margin-top: -40px; padding: 20px 22px 18px; min-height: 150px; z-index: 2; cursor: pointer; }
.speaker { --c: #f97316; position: absolute; top: -18px; left: 18px; background: var(--c); color: #0b0b0b; padding: 5px 14px; border-radius: 8px; font-family: var(--cond); display: flex; gap: 10px; align-items: baseline; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transform: skewX(-8deg); }
.speaker b { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; } .speaker span { font-size: .72rem; opacity: .75; }
.speaker.none { display: none; }
.dtext { font-size: clamp(1rem, 2.1vw, 1.18rem); line-height: 1.55; min-height: 3.2em; color: #f1f5f9; }
.dtext.narr { font-style: italic; color: #cbd5e1; }
.dnext { position: absolute; right: 18px; bottom: 10px; color: var(--accent); animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.choices { display: none; flex-direction: column; gap: 8px; margin-top: 12px; cursor: default; }
.choices.show { display: flex; animation: pIn .3s ease; }
.choice { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 11px 14px; transition: all .15s; font-size: .98rem; }
.choice > span { flex: 1; }
.choice:hover:not(:disabled) { background: rgba(249, 115, 22, .18); border-color: var(--accent); transform: translateX(4px); box-shadow: -4px 0 0 var(--accent); }
.choice.cont { justify-content: center; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; }
.hint { font-family: var(--cond); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; white-space: nowrap; }

/* =====================================================================
   HUB
   ===================================================================== */
.hub { max-width: 1240px; margin: 0 auto; padding: 12px 14px 110px; }
.hub-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; flex-wrap: wrap; }
.ht-av { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: linear-gradient(#334155, #0f172a); border: 2px solid var(--accent); flex: none; }
.ht-av svg { width: 100%; height: 100%; }
.ht-id { display: flex; flex-direction: column; min-width: 150px; } .ht-id b { font-family: var(--cond); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; } .ht-id span { font-size: .75rem; color: var(--muted); }
.ht-ovr { width: 58px; height: 58px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(150deg, #f5c08a, #7c4a1e); box-shadow: inset 0 0 0 2px #ffffff40; }
.ht-ovr.tier-silver { background: linear-gradient(150deg, #f3f4f6, #4b5563); } .ht-ovr.tier-gold { background: linear-gradient(150deg, #fef08a, #92400e); } .ht-ovr.tier-diamond { background: linear-gradient(150deg, #e0f2fe, #1e3a8a); } .ht-ovr.tier-goat { background: linear-gradient(150deg, #fde68a, #c026d3, #38bdf8); }
.ht-ovr b { font-family: var(--display); font-size: 1.9rem; line-height: .9; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); } .ht-ovr span { font-family: var(--cond); font-size: .6rem; letter-spacing: .2em; }
.ht-lvl { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-size: .85rem; } .ht-lvl small { color: var(--muted); white-space: nowrap; }
.ht-stats { display: flex; gap: 14px; } .ht-stats div { display: flex; flex-direction: column; align-items: center; } .ht-stats b { font-family: var(--cond); font-size: 1.05rem; } .ht-stats span { font-size: .6rem; letter-spacing: .15em; color: var(--muted); }
.hub-tabs { display: flex; gap: 4px; margin: 12px 0; overflow-x: auto; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs button { position: relative; border: 1px solid transparent; background: rgba(0, 0, 0, .45); border-radius: 10px; padding: 9px 16px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; white-space: nowrap; transition: all .15s; }
.hub-tabs button:hover { background: rgba(255, 255, 255, .1); }
.hub-tabs button.on { background: var(--accent); box-shadow: 0 4px 16px rgba(249, 115, 22, .4); }
.dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); position: absolute; top: 5px; right: 5px; box-shadow: 0 0 8px var(--accent2); animation: glow 1.4s infinite; }
.hub-body { animation: pIn .3s ease; }
.hub-cta { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(5, 7, 12, .97) 60%, transparent); z-index: 20; flex-wrap: wrap; }
.hub-cta-info { display: flex; flex-direction: column; } .hub-cta-info b { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; } .hub-cta-info span { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ap { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid #ffffff44; } .ap.on { background: var(--good); border-color: var(--good); box-shadow: 0 0 8px var(--good); }
.home-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.home-card { display: flex; justify-content: center; } .home-card .pcard { width: 280px; position: sticky; top: 10px; }
.home-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.home-main .next-card { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(249, 115, 22, .25), rgba(15, 20, 32, .8)); }
.nc-tag { font-family: var(--cond); font-size: .72rem; letter-spacing: .2em; color: var(--accent2); text-transform: uppercase; }
.next-card h3 { font-family: var(--display); font-size: 2rem; margin: 2px 0; letter-spacing: .03em; } .next-card p { margin: 0; color: #cbd5e1; font-size: .9rem; }
.meters { display: flex; flex-direction: column; gap: 9px; }
.mtr { display: flex; align-items: center; gap: 10px; font-size: .82rem; } .mtr span { width: 110px; color: var(--muted); } .mtr b { font-family: var(--cond); width: 30px; text-align: right; }
.mtr.inj span { width: auto; flex: 1; color: #fca5a5; }
.rels { display: flex; flex-direction: column; gap: 8px; }
.rel { display: flex; gap: 10px; align-items: center; } .rel > div:last-child { flex: 1; display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.rel b { font-family: var(--cond); font-size: .9rem; } .rel small { grid-column: 2; font-size: .7rem; color: var(--muted); }
.rel-av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #1e293b; flex: none; } .rel-av svg { width: 100%; height: 100%; }
.post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #1e293b; flex: none; } .post-av svg { width: 100%; height: 100%; }
.post-main { flex: 1; min-width: 0; } .post-head { display: flex; gap: 6px; align-items: center; font-size: .85rem; flex-wrap: wrap; } .post-head span { color: var(--muted); font-size: .78rem; }
.verified { font-style: normal; background: #3b82f6; color: #fff; border-radius: 50%; width: 15px; height: 15px; font-size: .55rem; display: inline-grid; place-items: center; }
.post-text { font-size: .9rem; margin: 3px 0; line-height: 1.4; word-wrap: break-word; } .post-foot { font-size: .75rem; color: var(--muted); }
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.tcard { text-align: left; padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s; }
.tcard:hover:not(:disabled) { transform: translateY(-4px); border-color: var(--accent); }
.tcard b { font-family: var(--cond); font-size: 1.15rem; text-transform: uppercase; } .tcard span { font-size: .82rem; color: var(--muted); }
.tc-ico { width: 54px; height: 54px; border-radius: 12px; background: rgba(249, 115, 22, .12); display: grid; place-items: center; }
.tcard.rest .tc-ico { background: rgba(34, 197, 94, .12); }
.tc-attrs { display: flex; gap: 5px; flex-wrap: wrap; } .tc-attrs em { font-style: normal; font-family: var(--cond); font-size: .75rem; background: rgba(255, 255, 255, .07); padding: 2px 7px; border-radius: 5px; }
.up-grid { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }
.up-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-family: var(--cond); font-size: 1.1rem; } .up-head .muted { font-family: var(--body); font-size: .72rem; }
.up-row { display: grid; grid-template-columns: 120px 1fr 34px 28px 28px; gap: 8px; align-items: center; padding: 4px 0; font-size: .85rem; }
.up-n { color: #cbd5e1; } .up-row > b { font-family: var(--cond); text-align: right; font-size: 1rem; }
.up-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.up-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; background: linear-gradient(90deg, #f97316, #facc15); }
.up-bar i.pend { background: #22c55e; border-radius: 0 5px 5px 0; box-shadow: 0 0 8px #22c55e; }
.up-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #94a3b8; }
.mini { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); font-weight: 700; }
.mini.plus:not(:disabled) { background: rgba(34, 197, 94, .2); border-color: #22c55e88; color: #4ade80; }
.mini.plus:not(:disabled):hover { background: #22c55e; color: #fff; }
.up-side { position: sticky; top: 10px; display: flex; flex-direction: column; align-items: center; }
.up-ovr { font-family: var(--display); font-size: 2.6rem; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.bcard { display: flex; gap: 12px; padding: 12px; align-items: flex-start; } .bcard.locked { opacity: .55; }
.bcard b { font-family: var(--cond); font-size: 1.05rem; } .bcard p { margin: 4px 0; font-size: .8rem; color: #cbd5e1; } .bcard small { font-size: .7rem; color: var(--muted); }
.badge-ico { flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); } .badge-ico.t4 { filter: drop-shadow(0 0 10px #c084fc); }
.btier { margin-left: 8px; font-family: var(--cond); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: #334155; }
.btier.t1 { background: #cd7f32; } .btier.t2 { background: #9ca3af; color: #111; } .btier.t3 { background: #fbbf24; color: #111; } .btier.t4 { background: #a855f7; }
.shop-grid { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
.shop-prev { position: sticky; top: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } .shop-prev svg { height: 300px; } .shop-prev b { font-family: var(--cond); font-size: 1.4rem; color: var(--accent2); } .shop-prev span { font-size: .75rem; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px; } .item > div { flex: 1; display: flex; flex-direction: column; } .item b { font-size: .88rem; } .item small { font-size: .72rem; color: var(--muted); }
.item.eq { border-color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.swatch { width: 28px; height: 28px; border-radius: 8px; flex: none; border: 2px solid #ffffff33; }
.feed { max-width: 640px; margin: 0 auto; } .feed-head { display: flex; justify-content: space-between; font-family: var(--cond); margin-bottom: 6px; } .feed-head span { color: var(--muted); }
.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .career-grid .wide { grid-column: 1 / -1; }
.statboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.statboxes div { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 8px; text-align: center; display: flex; flex-direction: column; }
.statboxes b { font-family: var(--cond); font-size: 1.3rem; } .statboxes span { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.linechart { width: 100%; height: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; } .tbl th { text-align: left; font-family: var(--cond); color: var(--muted); font-weight: 500; letter-spacing: .08em; padding: 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); } .tbl .w { color: #4ade80; font-weight: 600; } .tbl .l { color: #f87171; }
.grade-s { font-family: var(--cond); font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #334155; }
.gA { background: #16a34a !important; color: #fff; } .gB { background: #2563eb !important; color: #fff; } .gC { background: #ca8a04 !important; color: #fff; } .gD, .gF { background: #dc2626 !important; color: #fff; }
.log { margin: 0; padding-left: 18px; font-size: .85rem; color: #cbd5e1; line-height: 1.6; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; padding: 12px; align-items: center; opacity: .5; } .ach.got { opacity: 1; border-color: #facc1566; }
.ach-ico { font-size: 1.6rem; } .ach b { display: block; font-family: var(--cond); } .ach span { font-size: .8rem; color: var(--muted); }

/* =====================================================================
   MATCH
   ===================================================================== */
.match { max-width: 1280px; margin: 0 auto; padding: 8px 10px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.scorebug { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border-radius: 12px; overflow: hidden; background: #0a0f1a; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); max-width: 760px; width: 100%; margin: 0 auto; transition: box-shadow .3s; }
.scorebug.fire { box-shadow: 0 0 0 2px #f97316, 0 0 30px #f97316aa; }
.sb-team { --tc: #f97316; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, #000), color-mix(in srgb, var(--tc) 25%, #0a0f1a)); }
.sb-team.them { justify-content: flex-end; background: linear-gradient(270deg, color-mix(in srgb, var(--tc) 55%, #000), color-mix(in srgb, var(--tc) 25%, #0a0f1a)); }
.sb-abbr { font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; }
.sb-score { font-family: var(--display); font-size: 2.4rem; line-height: 1; min-width: 50px; text-align: center; }
.sb-team.us .sb-score { margin-left: auto; } .sb-team.them .sb-score { margin-right: auto; }
.sb-score.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.4); color: var(--accent2); } }
.sb-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 16px; background: #05080f; font-family: var(--cond); min-width: 92px; }
.sb-per { font-size: .75rem; color: var(--muted); letter-spacing: .15em; } .sb-clock { font-size: 1.3rem; font-weight: 600; } .sb-shot { font-size: .75rem; background: #b91c1c; padding: 0 6px; border-radius: 4px; }
.sb-flag { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); }
.fire-tag { display: inline-block; font-family: var(--cond); font-size: .7rem; letter-spacing: .1em; background: linear-gradient(90deg, #dc2626, #f97316); padding: 1px 10px; border-radius: 8px 8px 0 0; animation: glow 1s infinite; }
.match-title { text-align: center; font-family: var(--cond); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.match-title b { color: #fff; } .mom-count { margin-left: 10px; color: var(--accent2); }
.match-main { display: grid; grid-template-columns: 1fr 290px; gap: 10px; }
.court-wrap { position: relative; aspect-ratio: 16 / 10; width: 100%; max-height: calc(100vh - 300px); min-height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #05070d; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.court-wrap > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; box-shadow: inset 0 0 120px 30px rgba(220, 38, 38, .55); }
.vignette.on { opacity: 1; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 80px 10px rgba(220, 38, 38, .35); } }
.court-banner { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scaleY(0); text-align: center; font-family: var(--display); font-size: clamp(2rem, 6vw, 4.2rem); letter-spacing: .05em; padding: 10px; background: linear-gradient(90deg, transparent, rgba(5, 8, 15, .92) 20%, rgba(5, 8, 15, .92) 80%, transparent); transition: transform .25s cubic-bezier(.2, 1.4, .5, 1); pointer-events: none; z-index: 4; line-height: 1; }
.court-banner.show { transform: translateY(-50%) scaleY(1); }
.court-banner small { display: block; font-family: var(--cond); font-size: .95rem; letter-spacing: .25em; color: var(--muted); margin-bottom: 4px; }
.court-banner em { display: block; font-style: normal; color: #4ade80; font-size: .7em; } .court-banner em.l { color: #f87171; }
.court-banner.fire { color: #fdba74; text-shadow: 0 0 30px #f97316; }
.court-banner.sig { color: #fff; text-shadow: 0 0 30px #a78bfa, 0 0 60px #38bdf8; }
.court-banner.clutch { color: #fca5a5; text-shadow: 0 0 24px #dc2626; animation: shakeX .4s ease 2; }
@keyframes shakeX { 25% { transform: translate(-6px, -50%); } 75% { transform: translate(6px, -50%); } }
.court-banner .tip { display: flex; justify-content: center; align-items: center; gap: 18px; } .court-banner .tip span { font-size: 1.6rem; color: var(--muted); }
.court-banner .tip svg { width: 64px; height: 64px; }
.court-banner.win { color: #fff; } .court-banner.loss { color: #cbd5e1; }
.court-caption { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); opacity: 0; transition: opacity .3s; }
.mg-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.mg-layer.on { pointer-events: auto; background: rgba(2, 4, 8, .35); }
.pbp { display: flex; flex-direction: column; padding: 10px; min-height: 0; max-height: calc((min(100vw, 1280px) - 330px) * .625); }
.statline .sl-name { font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; } .sl-name em { color: var(--accent2); font-style: normal; }
.sl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.sl-grid div { background: rgba(255, 255, 255, .05); border-radius: 6px; text-align: center; padding: 3px 0; display: flex; flex-direction: column; }
.sl-grid b { font-family: var(--cond); font-size: 1.05rem; } .sl-grid span { font-size: .6rem; color: var(--muted); letter-spacing: .1em; }
.pbp .meters { flex-direction: row; gap: 8px; margin: 8px 0; }
.mini-meter { flex: 1; } .mini-meter span { font-size: .6rem; letter-spacing: .12em; color: var(--muted); font-family: var(--cond); }
.bar.sig i { background: linear-gradient(90deg, #a78bfa, #38bdf8); } .bar.sig.ready { box-shadow: 0 0 10px #a78bfa; animation: glow 1s infinite; }
.bar.fat i { background: linear-gradient(90deg, #facc15, #ef4444); }
.pbp-head { font-family: var(--cond); font-size: .7rem; letter-spacing: .2em; color: var(--muted); margin: 4px 0; }
.pbp-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 80px; font-size: .82rem; }
.pbp-list li { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); animation: pIn .3s ease; line-height: 1.35; }
.pbp-list time { display: block; font-family: var(--cond); font-size: .65rem; color: #64748b; }
.pbp-list li.good { border-left: 3px solid var(--good); padding-left: 7px; } .pbp-list li.bad { border-left: 3px solid var(--bad); padding-left: 7px; }
.pbp-list li.sys { color: var(--muted); text-align: center; font-family: var(--cond); letter-spacing: .1em; } .pbp-list li.hot { color: #fdba74; }
.moment-panel { padding: 12px 14px; opacity: .35; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(6px); min-height: 92px; }
.moment-panel.show { opacity: 1; pointer-events: auto; transform: none; }
.mp-setup { font-size: 1rem; line-height: 1.45; margin-bottom: 10px; } .mp-wait { font-family: var(--cond); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.mp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 10px 12px; transition: all .15s; }
.opt:hover { border-color: var(--accent); background: rgba(249, 115, 22, .15); transform: translateY(-2px); }
.opt-l { flex: 1; font-weight: 600; font-size: .92rem; } .opt-l small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); }
.opt .pct { font-size: 1.05rem; }
.opt.sig { border-color: #a78bfa; background: linear-gradient(90deg, rgba(167, 139, 250, .25), rgba(56, 189, 248, .15)); box-shadow: 0 0 16px rgba(167, 139, 250, .4); animation: glow 1.5s infinite; }

/* ---------- minigames ---------- */
.mg { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .18s; padding: 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.mg.in { opacity: 1; }
.mg-card { position: relative; background: rgba(8, 12, 22, .93); border: 1px solid #ffffff22; border-radius: 16px; padding: 12px 16px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .7), 0 0 0 1px rgba(249, 115, 22, .3); max-width: 96%; max-height: 96%; overflow: hidden; display: flex; flex-direction: column; align-items: center; transform: scale(.9); transition: transform .2s; }
.mg.in .mg-card { transform: none; }
.mg-title { font-family: var(--display); font-size: 1.6rem; letter-spacing: .06em; color: var(--accent2); line-height: 1; }
.mg-hint { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.mg-sub { font-family: var(--cond); font-size: .75rem; color: var(--muted); margin-top: 4px; }
.mg-body { display: flex; flex-direction: column; align-items: center; }
.mg-body canvas { max-width: 100%; height: auto; }
.mg-result { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; letter-spacing: .05em; background: rgba(5, 8, 15, .8); animation: pop 1s ease forwards; }
.mg-result.good { color: #4ade80; text-shadow: 0 0 20px #22c55e; } .mg-result.bad { color: #f87171; }
.meter { position: relative; width: 44px; height: 190px; border-radius: 22px; background: #0b1220; border: 2px solid #ffffff33; overflow: hidden; margin: 8px 30px; }
.meter-green { position: absolute; left: 0; right: 0; background: rgba(34, 197, 94, .45); border-top: 2px solid #4ade80; border-bottom: 2px solid #4ade80; }
.meter-perfect { position: absolute; left: 0; right: 0; top: 36%; bottom: 36%; background: #a3e635; box-shadow: 0 0 10px #a3e635; }
.meter-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, #f97316, #facc15 80%); opacity: .5; }
.meter-line { position: absolute; left: -2px; right: -2px; height: 4px; background: #fff; box-shadow: 0 0 10px #fff; transform: translateY(2px); }
.ft-dots { display: flex; gap: 8px; margin-top: 6px; } .ft-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff55; } .ft-dots i.make { background: #22c55e; border-color: #22c55e; } .ft-dots i.miss { background: #ef4444; border-color: #ef4444; }
.combo-seq { display: flex; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; justify-content: center; }
.combo-seq span { width: 46px; height: 46px; border-radius: 10px; background: #1e293b; display: grid; place-items: center; font-size: 1.4rem; border: 2px solid transparent; transition: all .12s; }
.combo-seq span.cur { border-color: var(--accent2); transform: scale(1.15); box-shadow: 0 0 16px #facc1588; }
.combo-seq span.hit { background: #16a34a; } .combo-seq span.miss { background: #b91c1c; opacity: .7; }
.timer { width: 240px; height: 6px; border-radius: 3px; background: #ffffff15; overflow: hidden; margin: 6px 0; } .timer i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #facc15); width: 100%; }
.dpad { display: grid; grid-template-columns: repeat(4, 54px); gap: 6px; margin-top: 8px; }
.dpad button { height: 50px; border-radius: 10px; border: 1px solid #ffffff33; background: rgba(255, 255, 255, .08); font-size: 1.2rem; touch-action: manipulation; }
.dpad button:active { background: var(--accent); }
.dpad.three { grid-template-columns: repeat(3, 1fr); width: 100%; min-width: 260px; } .dpad.three button { font-family: var(--cond); font-size: .9rem; letter-spacing: .05em; }
.def-stage { position: relative; width: 240px; height: 170px; display: grid; place-items: center; }
.def-att { width: 130px; height: 160px; transition: transform .15s; } .def-att svg { width: 100%; height: 100%; }
.def-tell { position: absolute; top: 4px; right: 6px; font-size: 2.2rem; color: #64748b; font-family: var(--display); }
.def-tell.go { color: var(--accent2); text-shadow: 0 0 16px var(--accent2); font-size: 3rem; } .def-tell.fake { color: #f87171; opacity: .8; }
.pl-court { position: relative; width: 300px; max-width: 80vw; height: 190px; border-radius: 12px; margin: 8px 0; background: radial-gradient(ellipse at 50% 0%, #c98b4e, #8a5a2b); border: 2px solid #fff3; }
.pl-court::before { content: ''; position: absolute; left: 32%; right: 32%; top: 0; height: 46%; border: 2px solid #fff6; border-top: 0; }
.pl-mate { position: absolute; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; border: 3px solid #ef444499; background: #1e293b; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all .12s; touch-action: manipulation; }
.pl-mate b { font-family: var(--display); font-size: 1.3rem; line-height: 1; } .pl-mate span { font-size: .5rem; max-width: 48px; overflow: hidden; white-space: nowrap; }
.pl-mate.open { border-color: #22c55e; background: #166534; box-shadow: 0 0 20px #22c55e; transform: translate(-50%, -50%) scale(1.15); }
.pl-mate.covered { border-color: #ef4444; background: #7f1d1d; }
.pl-you { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: var(--accent2); color: #111; font-family: var(--cond); font-weight: 700; font-size: .7rem; padding: 3px 8px; border-radius: 10px; }

/* =====================================================================
   POST-GAME / CHAPTER END / ENDING
   ===================================================================== */
.postgame { max-width: 1100px; margin: 0 auto; padding: 16px 14px 30px; }
.pg-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 18px; }
.pg-team { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; text-align: center; }
.pg-score { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.4rem); color: #64748b; }
.pg-score span.w { color: #fff; text-shadow: 0 0 20px rgba(255, 255, 255, .3); } .pg-score em { font-style: normal; font-family: var(--cond); font-size: .9rem; letter-spacing: .2em; color: var(--muted); }
.pg-result { text-align: center; font-family: var(--display); font-size: clamp(2.6rem, 9vw, 5rem); margin: 10px 0; line-height: 1; animation: pIn .5s ease; }
.pg-result.win { color: #4ade80; text-shadow: 0 0 40px rgba(34, 197, 94, .5); } .pg-result.loss { color: #f87171; }
.pg-result small { display: block; font-family: var(--cond); font-size: .85rem; color: var(--muted); letter-spacing: .2em; text-shadow: none; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.pg-grade-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pg-grade { font-family: var(--display); font-size: 5rem; line-height: 1; width: 120px; height: 120px; border-radius: 22px; display: grid; place-items: center; animation: pop2 .7s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
@keyframes pop2 { from { transform: scale(0) rotate(-20deg); } }
.pg-grade.gA { background: linear-gradient(135deg, #4ade80, #15803d); } .pg-grade.gB { background: linear-gradient(135deg, #60a5fa, #1d4ed8); } .pg-grade.gC { background: linear-gradient(135deg, #facc15, #a16207); } .pg-grade.gD, .pg-grade.gF { background: linear-gradient(135deg, #f87171, #991b1b); }
.pg-grade-box > span { font-family: var(--cond); letter-spacing: .2em; font-size: .75rem; color: var(--muted); margin: 6px 0 10px; }
.pg-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; }
.pg-line div { background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 5px 0; display: flex; flex-direction: column; } .pg-line b { font-family: var(--cond); font-size: 1.1rem; } .pg-line span { font-size: .6rem; color: var(--muted); }
.pg-moments { margin-top: 10px; font-size: .85rem; color: #cbd5e1; }
.pg-xp { display: flex; align-items: center; gap: 10px; font-family: var(--cond); } .pg-xp span { color: #a78bfa; font-size: 1.2rem; } .pg-xp small { color: var(--muted); }
.pg-changes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pg-badges { display: flex; gap: 12px; flex-wrap: wrap; } .pg-badges div { display: flex; flex-direction: column; align-items: center; font-size: .75rem; } .pg-badges b { font-family: var(--cond); }
.pg-ach { font-size: .82rem; margin: 4px 0; }
.pg-high ul { margin: 0 0 10px; padding-left: 18px; font-size: .88rem; line-height: 1.6; }
.pg-quote { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px; }
.q-av { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: #1e293b; flex: none; } .q-av svg { width: 100%; height: 100%; }
.pg-quote p { margin: 2px 0 0; font-style: italic; font-size: .88rem; color: #cbd5e1; }
.pg-foot { display: flex; justify-content: center; margin-top: 18px; }
.chend, .ending { max-width: 1000px; margin: 0 auto; padding: 30px 16px 40px; text-align: center; }
.ce-tag, .end-tag { text-transform: uppercase; font-family: var(--cond); letter-spacing: .35em; color: var(--accent2); font-size: .85rem; }
.chend h1, .ending h1 { font-family: var(--display); font-size: clamp(3rem, 10vw, 6rem); margin: 0; line-height: .95; text-shadow: 0 6px 0 #9a3412, 0 0 40px rgba(249, 115, 22, .5); }
.ce-sum, .ending > p { max-width: 640px; margin: 10px auto 20px; color: #cbd5e1; line-height: 1.6; }
.ce-grid { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; text-align: left; }
.ce-stats { flex: 1; min-width: 280px; max-width: 480px; }
.ce-next { margin: 18px auto; padding: 14px; max-width: 640px; display: flex; flex-direction: column; gap: 4px; } .ce-next b { font-family: var(--cond); letter-spacing: .1em; } .ce-next span { color: var(--muted); font-size: .85rem; }
.summary-card { display: flex; gap: 16px; padding: 18px; text-align: left; max-width: 680px; margin: 0 auto; background: linear-gradient(135deg, rgba(249, 115, 22, .2), rgba(15, 20, 32, .9)); }
.sc-left { width: 160px; flex: none; } .sc-left svg { width: 100%; height: 260px; }
.sc-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sc-title { font-family: var(--display); font-size: 2.4rem; line-height: 1; } .sc-sub { color: var(--muted); font-size: .85rem; }
.sc-ending { font-family: var(--cond); letter-spacing: .2em; color: var(--accent2); font-size: .85rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
body[data-screen=match] .corner { top: auto; bottom: 10px; }
@media (max-width: 980px) {
  .match-main { display: contents; }
  .court-wrap { order: 2; max-height: 56vh; } .moment-panel { order: 3; } .pbp { order: 4; }
  .scorebug { order: 0; } .match-title { order: 1; }
  .pbp { max-height: 260px; }
  .pbp .pbp-list { max-height: 110px; }
  .home-grid { grid-template-columns: 1fr; } .home-card .pcard { position: static; }
  .up-grid, .shop-grid { grid-template-columns: 1fr; } .up-side, .shop-prev { position: static; }
  .pg-grid { grid-template-columns: 1fr; }
  .create-body { grid-template-columns: 1fr; } .create-preview { position: static; order: -1; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .create-preview .pcard.big { width: 200px; } #cradar { width: auto; flex: 1; min-width: 200px; max-width: 280px; }
}
@media (max-width: 720px) {
  .title-wrap { grid-template-columns: 1fr; padding: 10vh 6vw 4vh; }
  .title-card { display: none; }
  .title-menu { max-width: none; }
  .home-main { grid-template-columns: 1fr; }
  .career-grid { grid-template-columns: 1fr; }
  .opt-cards.three { grid-template-columns: 1fr; } .opt-cards.five { grid-template-columns: repeat(5, 1fr); } .ocard.pos { padding: 8px 2px; } .ocard.pos span { font-size: .55rem; }
  .fgrid, .look-grid, .caps, .set-grid { grid-template-columns: 1fr; }
  .portrait { height: 42vh; width: 48%; }
  .dialog { padding: 18px 14px 14px; }
  .hub-top { gap: 10px; } .ht-stats { width: 100%; justify-content: space-around; } .ht-lvl { order: 5; min-width: 100%; }
  .up-row { grid-template-columns: 92px 1fr 30px 28px 28px; font-size: .78rem; }
  .sb-abbr { display: none; } .sb-team svg { width: 32px; height: 32px; } .sb-score { font-size: 2rem; } .sb-mid { min-width: 76px; padding: 4px 8px; }
  .court-wrap { aspect-ratio: 4 / 3; }
  .mp-opts { grid-template-columns: 1fr; }
  .meter { height: 150px; }
  .summary-card { flex-direction: column; align-items: center; } .sc-left svg { height: 200px; }
  .hub-cta { justify-content: space-between; } .hub-cta .btn.big { padding: 12px 18px; font-size: 1rem; }
}

/* =====================================================================
   CHAPTER 2: seasons, bracket, recruiting
   ===================================================================== */
.cta-btns { display: flex; gap: 10px; }
.stars { color: #facc15; letter-spacing: 1px; text-shadow: 0 0 8px rgba(250, 204, 21, .4); }
.ht-stats .stars { font-size: .85rem; }
.nc-vs { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .nc-vs > span { font-family: var(--display); font-size: 1.4rem; color: var(--muted); }
.keytag { font-style: normal; font-family: var(--cond); font-size: .75rem; letter-spacing: .1em; background: linear-gradient(90deg, #f59e0b, #facc15); color: #111; padding: 3px 9px; border-radius: 6px; margin-left: auto; }
.keytag.sm { font-size: .6rem; padding: 1px 5px; margin-left: 4px; }
.season-grid, .recruit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.season-grid > :first-child, .recruit-grid > .rec-head, .recruit-grid > .offers { grid-column: 1 / -1; }
.standings td.tm { display: flex; align-items: center; gap: 8px; } .standings td.tm svg { flex: none; }
.standings tr.me td { background: rgba(249, 115, 22, .16); font-weight: 700; }
.standings tr.cutline td { border-bottom: 2px dashed #facc15aa; }
.standings .last i { font-style: normal; font-family: var(--cond); font-size: .65rem; padding: 0 3px; margin-right: 2px; border-radius: 3px; }
.standings .last i.W { background: #166534; } .standings .last i.L { background: #7f1d1d; }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .85rem; }
.sched li.cur { background: rgba(250, 204, 21, .1); border-radius: 6px; }
.sched .wk { font-family: var(--cond); color: var(--muted); width: 28px; } .sched .op { flex: 1; }
.sched b.w { color: #4ade80; font-family: var(--cond); } .sched b.l { color: #f87171; font-family: var(--cond); } .sched b.nxt { color: var(--accent2); font-family: var(--cond); letter-spacing: .1em; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px; align-items: stretch; }
.bk-round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 150px; }
.bk-name { font-family: var(--cond); font-size: .7rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; text-align: center; }
.bk-match { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bk-team { display: flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: .82rem; opacity: .65; }
.bk-team + .bk-team { border-top: 1px solid var(--line); }
.bk-team i { font-style: normal; font-size: .65rem; color: var(--muted); width: 10px; } .bk-team span { flex: 1; font-family: var(--cond); letter-spacing: .05em; } .bk-team b { font-family: var(--cond); }
.bk-team.win { opacity: 1; background: rgba(34, 197, 94, .12); } .bk-team.win b { color: #4ade80; }
.bk-team.me { box-shadow: inset 3px 0 0 var(--accent); } .bk-team.me span { color: #fdba74; }
.bk-team.tbd { color: var(--muted); font-style: italic; justify-content: center; }
.bk-champ { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-family: var(--cond); } .bk-champ span { font-size: 2.6rem; }
.seasonscr { max-width: 1000px; margin: 0 auto; padding: 30px 16px 40px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.seasonscr h1 { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 5rem); margin: 0; line-height: .95; }
.seasonscr h1.gold { color: #facc15; text-shadow: 0 6px 0 #92400e, 0 0 40px rgba(250, 204, 21, .6); }
.seasonscr .panel { text-align: left; }
.ce-dev { max-width: 560px; margin: 0 auto 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-color: #22c55e66; }
.ce-dev b { font-family: var(--cond); letter-spacing: .12em; text-transform: uppercase; color: #4ade80; font-size: .8rem; }
.ce-dev span { font-family: var(--display); font-size: 1.8rem; } .ce-dev em { font-style: normal; color: #4ade80; } .ce-dev small { color: var(--muted); }
.modal.sim .modal-card { width: min(480px, 100%); text-align: center; }
.sim-score { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0; font-family: var(--display); }
.sim-score b { font-size: 3rem; color: #64748b; } .sim-score b.w { color: #fff; } .sim-score span { font-family: var(--cond); font-size: .8rem; letter-spacing: .2em; color: var(--muted); }
.simres h3 { margin: 6px 0 12px; } .simres .pg-changes { justify-content: center; }
.rec-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.rec-stars { font-size: 2.6rem; color: #facc15; letter-spacing: 3px; text-shadow: 0 0 20px rgba(250, 204, 21, .5); }
.rec-head b { display: block; font-family: var(--cond); font-size: 1.3rem; } .rec-head span { color: var(--muted); font-size: .85rem; } .rec-head p { flex-basis: 100%; margin: 0; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.offer { display: flex; gap: 12px; padding: 12px; } .offer-logo { flex: none; }
.offer-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer-main b { font-family: var(--cond); font-size: 1.05rem; } .offer-main small { color: var(--muted); font-size: .75rem; } .offer-main em { font-size: .8rem; color: #cbd5e1; }
.offer-bars { display: grid; grid-template-columns: 82px 1fr; gap: 4px 8px; align-items: center; margin-top: 6px; font-size: .7rem; color: var(--muted); }
.watching { display: flex; flex-wrap: wrap; gap: 10px; } .watching > div { display: flex; flex-direction: column; align-items: center; opacity: .55; } .watching small { color: #facc15; font-size: .6rem; }
@media (max-width: 720px) {
  .season-grid, .recruit-grid { grid-template-columns: 1fr; }
  .cta-btns { width: 100%; } .cta-btns .btn { flex: 1; }
  .offers { grid-template-columns: 1fr; }
}

/* "now playing" music label */
#nowplaying { position: fixed; left: 12px; bottom: 12px; z-index: 45; font-family: var(--cond); font-size: .8rem; letter-spacing: .06em; color: #e2e8f0; background: rgba(10, 14, 24, .8); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; opacity: 0; transform: translateY(8px); pointer-events: none; }
#nowplaying i { font-style: normal; color: var(--accent); margin-right: 4px; }
#nowplaying.show { animation: npShow 4s ease forwards; }
@keyframes npShow { 0% { opacity: 0; transform: translateY(8px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
body[data-screen=hubscreen] #nowplaying { bottom: 92px; }

/* =====================================================================
   ROLLS: archetype + weapon, rarity, wingspan
   ===================================================================== */
.rar { display: inline-block; font-family: var(--cond); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; color: #0b0b0b; background: var(--rc); vertical-align: middle; }
.rar-mythic.rar, .rar.rar-mythic { background: linear-gradient(90deg, #ef4444, #f59e0b, #a855f7, #ef4444); background-size: 300% 100%; animation: holo 3s linear infinite; color: #fff; }
.roll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.roll-box { display: flex; flex-direction: column; gap: 10px; }
.roll-box h3 { margin: 0; font-family: var(--display); font-size: 1.7rem; letter-spacing: .05em; }
.reel { min-height: 250px; border-radius: 14px; border: 1px dashed #ffffff33; background: rgba(0, 0, 0, .3); display: flex; align-items: stretch; justify-content: center; overflow: hidden; }
.reel.landed .rcard { animation: land .6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes land { from { transform: scale(.7) rotate(-3deg); opacity: 0; } }
.reel-empty { align-self: center; font-family: var(--display); font-size: 5rem; color: #ffffff22; }
.reel-spin { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px; filter: blur(.4px); }
.reel-spin b { font-family: var(--cond); font-size: 1.2rem; color: var(--rc); }
.rcard { --rc: #94a3b8; width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 22%, transparent), rgba(10, 14, 24, .6)); box-shadow: inset 0 0 0 2px var(--rc), 0 0 24px color-mix(in srgb, var(--rc) 35%, transparent); border-radius: 14px; }
.rcard.rar-legendary, .rcard.rar-mythic { box-shadow: inset 0 0 0 2px var(--rc), 0 0 40px color-mix(in srgb, var(--rc) 60%, transparent); }
.rc-top { display: flex; justify-content: space-between; align-items: center; }
.rc-ico { width: 52px; height: 52px; border-radius: 12px; background: rgba(0, 0, 0, .35); display: grid; place-items: center; }
.rc-name { font-family: var(--display); font-size: 1.7rem; letter-spacing: .03em; line-height: 1; }
.rcard p { margin: 0; font-size: .82rem; color: #cbd5e1; }
.rc-pass { background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.rc-pass b { font-family: var(--cond); font-size: .75rem; letter-spacing: .1em; color: var(--rc); } .rc-pass span { font-size: .78rem; }
.odds { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--cond); font-size: .8rem; color: var(--muted); }
.pc-archname small { display: block; font-size: .62rem; letter-spacing: .08em; opacity: .9; margin-top: 1px; }
.body-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ape { font-family: var(--cond); font-size: .8rem; padding: 1px 6px; border-radius: 5px; background: #334155; }
.ape.pos { background: #166534; } .ape.neg { background: #7f1d1d; }
.style-panel { grid-column: 1 / -1; }
.sp-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sp-row:last-child { border-bottom: 0; }
.sp-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 0, 0, .35); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.sp-row b { font-family: var(--cond); } .sp-row small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.vignette.zone { opacity: 1; box-shadow: inset 0 0 120px 30px rgba(56, 189, 248, .5); animation: pulse 1.6s ease-in-out infinite; }
@media (max-width: 720px) { .roll-grid, .body-sliders { grid-template-columns: 1fr; } .reel { min-height: 200px; } }

/* =====================================================================
   POSSESSIONS, MINIGAME LAYOUT FIXES, FREE THROW VIEW
   ===================================================================== */
.match-title { align-self: center; background: rgba(5, 8, 15, .92); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; color: #cbd5e1; position: relative; z-index: 2; }
.moment-panel { opacity: .8; }
.moment-panel.show { opacity: 1; }
.mp-setup { color: #fff; }
.mp-now { font-family: var(--cond); letter-spacing: .08em; color: var(--accent2); font-size: .95rem; }
.mp-idle { font-family: var(--cond); letter-spacing: .1em; color: #94a3b8; text-transform: uppercase; font-size: .8rem; }
.mp-wait { color: #e2e8f0; }
.mp-hint { margin-top: 8px; font-size: .72rem; color: #94a3b8; }
.opt { position: relative; }
.opt-mg { font-style: normal; color: #c4b5fd; white-space: nowrap; }
.opt-tip { display: none; position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); background: #0b1020; border: 1px solid #f9731688; border-radius: 8px; padding: 6px 9px; font-size: .74rem; line-height: 1.35; color: #e2e8f0; z-index: 8; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); text-align: left; }
.opt:hover .opt-tip, .opt.tipon .opt-tip { display: block; }
.pct-note { font-style: normal; font-size: .68rem; color: #94a3b8; margin-left: 4px; }
.fire-tag.zone { background: linear-gradient(90deg, #0ea5e9, #6366f1); }
/* minigames size to their content and never clip */
.mg-layer.on { overflow: auto; }
.mg { overflow: visible; }
.mg-card { max-height: none; overflow: visible; }
.mg-title { padding: 0 8px; }
.mg-sub { color: #cbd5e1; }
.mg-hint { color: #cbd5e1; }
.mg-result { border-radius: 16px; }
/* free throw view */
.mg-ftview { position: absolute; inset: 0; padding: 0; place-items: stretch; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #05070d; border-radius: 14px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.mg-ftview.in { opacity: 1; }
.ftv-top, .ftv-bot { display: flex; align-items: center; gap: 8px 14px; padding: 8px 14px; background: #0b1020; flex-wrap: wrap; }
.ftv-top b { font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; color: var(--accent2); }
.ftv-dots { display: flex; gap: 6px; } .ftv-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff66; }
.ftv-dots i.make { background: #22c55e; border-color: #22c55e; } .ftv-dots i.miss { background: #ef4444; border-color: #ef4444; }
.ftv-score { font-family: var(--cond); font-size: .9rem; color: #e2e8f0; background: #1e293b; padding: 2px 8px; border-radius: 6px; }
.ftv-score:empty { display: none; }
.ftv-res { margin-left: auto; font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; }
.ftv-res.good { color: #4ade80; } .ftv-res.bad { color: #f87171; }
.ftv-stage { position: relative; min-height: 0; }
.ftv-stage canvas { position: absolute; inset: 0; display: block; }
.ftv-bot { justify-content: space-between; font-size: .85rem; color: #e2e8f0; }
.ftv-bot .g { color: #4ade80; } .ftv-bot .press { color: #f87171; font-style: normal; font-weight: 700; }
.train-stage { min-height: 380px; }
/* strength push */
.push-track { position: relative; width: min(300px, 70vw); height: 46px; background: #1e293b; border-radius: 23px; overflow: hidden; margin: 12px 0 6px; }
.push-zone { position: absolute; right: 0; top: 0; bottom: 0; width: 24%; background: rgba(34, 197, 94, .35); border-left: 2px solid #4ade80; display: grid; place-items: center; font-family: var(--cond); font-size: .75rem; letter-spacing: .1em; color: #bbf7d0; }
.push-mark { position: absolute; top: 5px; width: 14%; height: 36px; border-radius: 18px; background: linear-gradient(180deg, #fb923c, #ea580c); display: grid; place-items: center; font-family: var(--cond); font-size: .7rem; font-weight: 700; transition: left .05s linear; }
.push-btn { margin-top: 8px; width: 170px; height: 54px; border-radius: 14px; border: 0; font-family: var(--display); font-size: 1.6rem; letter-spacing: .08em; color: #fff; background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 4px 0 #7f1d1d; touch-action: manipulation; }
.push-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7f1d1d; }
@media (max-width: 720px) {
  /* on phones, minigames take the whole screen so nothing is cut off */
  .mg-layer.on { position: fixed; inset: 0; z-index: 70; background: rgba(2, 4, 8, .82); }
  .mg-layer.on .mg { position: fixed; }
  .mg-layer.ftmode .mg-ftview { position: fixed; inset: 0; border-radius: 0; }
  .opt-tip { position: static; margin-top: 6px; }
  .opt.tipon { flex-wrap: wrap; }
}

/* =====================================================================
   CUTSCENES
   ===================================================================== */
.cs { position: fixed; inset: 0; z-index: 120; background: #000; overflow: hidden; opacity: 0; transition: opacity .4s; user-select: none; -webkit-user-select: none; cursor: default; }
.cs.in { opacity: 1; }
.cs-hl { z-index: 160; background: transparent; transition: none; }
.cs-cv { position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; }
.cs::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
/* titles (slam = anime impact text, rise = quiet fade-up, loc = location caption bottom-left) */
.cs-title { position: absolute; left: 0; right: 0; top: 50%; z-index: 4; text-align: center; padding: 0 16px; pointer-events: none; opacity: 0; transform: translateY(-50%);
  font-family: var(--px); font-weight: 700; font-size: clamp(2.2rem, 10vw, 6.5rem); line-height: .95; letter-spacing: .04em; color: #fff; text-shadow: 4px 4px 0 #9a3412, 8px 8px 0 #000; }
.cs-title small { display: block; margin-top: 12px; font-family: var(--px); font-weight: 400; font-size: clamp(.75rem, 2.4vw, 1.2rem); letter-spacing: .25em; color: #fde68a; text-shadow: 2px 2px 0 #000; text-transform: uppercase; }
.cs-title.slam.on { animation: csSlam .5s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.cs-title.rise.on { animation: csRise 1.2s ease forwards; } .cs-title.rise { text-shadow: 4px 4px 0 #000; font-size: clamp(1.8rem, 7vw, 4.5rem); }
.cs-title.loc { top: auto; bottom: calc(var(--cb, 0px) + var(--lb, 18px) + 14px); left: calc(var(--cl, 0px) + 18px); right: auto; text-align: left; transform: none; font-size: clamp(1.3rem, 4.5vw, 2.6rem); text-shadow: 3px 3px 0 #000; }
.cs-title.loc.on { animation: csLoc .6s steps(6) forwards; } .cs-title.loc small { margin-top: 6px; }
.cs-title.hl { font-size: clamp(2rem, 9vw, 5.5rem); top: 42%; left: 4%; right: auto; text-align: left; max-width: 62%; transform: translateY(-50%) rotate(-6deg); text-shadow: 4px 4px 0 #000, -2px -2px 0 #000; }
.cs-title.hl.on { animation: csSlamHl .4s cubic-bezier(.2, 1.4, .4, 1) forwards; } .cs-title.hl small { color: #fff; }
@keyframes csSlam { 0% { opacity: 0; transform: translateY(-50%) scale(3.2); filter: blur(4px); } 55% { opacity: 1; transform: translateY(-50%) scale(.92); filter: none; } 70% { transform: translateY(-50%) scale(1.04) translateX(-4px); } 85% { transform: translateY(-50%) scale(1) translateX(3px); } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes csSlamHl { 0% { opacity: 0; transform: translateY(-50%) rotate(-6deg) scale(2.6); } 60% { opacity: 1; transform: translateY(-50%) rotate(-6deg) scale(.95); } 100% { opacity: 1; transform: translateY(-50%) rotate(-6deg) scale(1); } }
@keyframes csRise { 0% { opacity: 0; transform: translateY(-30%); letter-spacing: .3em; } 100% { opacity: 1; transform: translateY(-50%); letter-spacing: .06em; } }
@keyframes csLoc { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
/* freeze-frame name + stats card */
.cs-card { position: absolute; z-index: 5; left: calc(var(--cl, 0px) + 14px); top: calc(var(--ct, 0px) + var(--lb, 18px) + 10px); min-width: 210px; max-width: 80vw; padding: 10px 14px 12px; background: #0b0f1c; border: 3px solid #facc15; box-shadow: 0 0 0 3px #000, 6px 6px 0 #000;
  transform: translateX(-130%) skewX(-8deg); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.3, .4, 1), opacity .2s; pointer-events: none; }
.cs-card.on { transform: translateX(0) skewX(-8deg); opacity: 1; }
.cs-card small { display: block; font-family: var(--px); font-size: .62rem; letter-spacing: .14em; color: #fde68a; text-transform: uppercase; }
.cs-card b { display: block; font-family: var(--px); font-size: clamp(1.1rem, 3.6vw, 1.8rem); color: #fff; text-shadow: 3px 3px 0 #b45309; margin: 2px 0 8px; }
.cs-card div { display: grid; gap: 4px; }
.cs-card span { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 6px; font-family: var(--px); font-size: .7rem; color: #cbd5e1; }
.cs-card em { height: 7px; background: #1e293b; position: relative; overflow: hidden; } .cs-card em::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, #f97316, #facc15); transform-origin: left; animation: csBar .7s .2s ease-out both; }
.cs-card u { text-decoration: none; color: #facc15; text-align: right; }
@keyframes csBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* dialogue: inside the bottom letterbox, or under the picture when the screen is tall */
.cs-dialog { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--cb, 0px) + var(--lb, 18px) * .4); width: min(780px, calc(var(--cw, 92vw) - 24px), 94vw); transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .3s;
  background: #0b0f1c; border: 3px solid #facc15; box-shadow: 0 0 0 3px #000, 6px 6px 0 #000; padding: 10px 16px 12px; pointer-events: none; }
.cs.below .cs-dialog { bottom: auto; top: calc(100% - var(--cb, 0px) + 12px); }
.cs-dialog.on { opacity: 1; transform: translate(-50%, 0); }
.cs-dialog b { position: absolute; top: -16px; left: 12px; padding: 3px 10px; font-family: var(--px); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #0b0f1c; background: var(--nc, #facc15); border: 2px solid #000; }
.cs-dialog b:empty { display: none; }
.cs-dialog p { margin: 4px 0 0; min-height: 2.3em; font-family: var(--pxb); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.12; color: #f1f5f9; }
.cs-dialog.narr { border-color: #64748b; } .cs-dialog.narr p { color: #cbd5e1; font-style: italic; }
.cs-score { position: absolute; z-index: 4; top: calc(var(--ct, 0px) + var(--lb, 18px) + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 12px; background: #0a0f1a; border: 2px solid #ffffff44; font-family: var(--px); font-size: clamp(.8rem, 2.4vw, 1.2rem); color: #fff; opacity: 0; transition: opacity .3s; }
.cs-score.on { opacity: 1; } .cs-score b { color: #facc15; } .cs-score i { font-style: normal; color: #f87171; min-width: 0; } .cs-score i:empty { display: none; }
/* gallery */
.cs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.csg { overflow: hidden; display: flex; flex-direction: column; }
.csg-thumb { height: 120px; position: relative; overflow: hidden; background: #05070d; } .csg-thumb svg, .csg-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; image-rendering: crisp-edges; display: block; } .csg-thumb img:not([src]) { visibility: hidden; }
.csg-thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 2rem; color: #fff; text-shadow: 0 3px 0 #000; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.csg.locked .csg-thumb { filter: grayscale(1) brightness(.35); }
.csg-info { padding: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.csg-info b { font-family: var(--cond); } .csg-info small { display: block; color: var(--muted); font-size: .72rem; }

/* =====================================================================
   ARCADE (16-bit look) — fast breaks + pickup games
   ===================================================================== */
body.arc-open { overflow: hidden; }
.arc { --sw: min(100vw - 16px, calc((100dvh - 150px) * 16 / 9)); position: fixed; inset: 0; z-index: 110; background: radial-gradient(ellipse at 50% 40%, #111a33, #05060b 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; opacity: 0; transition: opacity .3s; font-family: 'Courier New', monospace; color: #e2e8f0; }
.arc.in { opacity: 1; } .arc.out { opacity: 0; transition-duration: .5s; }
.arc.brk { background: radial-gradient(ellipse at 50% 40%, #2a1406, #05060b 70%); }
.arc-hud { width: var(--sw); display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; background: #0b0f1c; border: 3px solid #1e293b; box-shadow: 0 0 0 2px #000; padding: 4px 8px; }
.ah-team { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .08em; } .ah-team.r { justify-content: flex-end; }
.ah-team i { width: 10px; height: 22px; background: var(--tc); box-shadow: 2px 2px 0 #000; }
.ah-team b { font-size: .9rem; } .ah-s { font-size: 1.5rem; color: #facc15; text-shadow: 2px 2px 0 #b45309; min-width: 2ch; text-align: center; }
.ah-s.bump { animation: ahBump .5s steps(4); } @keyframes ahBump { 40% { transform: scale(1.5); color: #fff; } }
.ah-mid { display: flex; flex-direction: column; align-items: center; line-height: 1.1; } .ah-mid b { color: #fb923c; font-size: .78rem; letter-spacing: .14em; } .ah-mid span { font-size: .78rem; color: #cbd5e1; } .ah-mid span.low { color: #f87171; }
.ah-btns { display: flex; gap: 6px; }
.arc-btn-sm { border: 2px solid #475569; background: #0f172a; color: #e2e8f0; font-family: inherit; font-weight: 700; padding: 3px 9px; cursor: pointer; }
.arc-stage { position: relative; width: var(--sw); aspect-ratio: 16 / 9; border: 3px solid #1e293b; box-shadow: 0 0 0 3px #000, 0 0 40px rgba(56, 189, 248, .15); background: #000; overflow: hidden; }
.arc-stage canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.arc-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.arc-pop { position: absolute; left: 0; right: 0; top: 18%; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.arc-msg { font-weight: 900; font-size: clamp(.9rem, 3.2vw, 1.9rem); letter-spacing: .06em; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; animation: arcPop 1.6s steps(8) forwards; }
.arc-msg.big { font-size: clamp(1.3rem, 4.8vw, 2.9rem); }
@keyframes arcPop { 0% { transform: scale(.4); opacity: 0; } 12% { transform: scale(1.15); opacity: 1; } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.arc-tags { position: absolute; inset: 0; pointer-events: none; }
.arc-tag { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: clamp(.55rem, 1.5vw, .85rem); letter-spacing: .06em; white-space: nowrap; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; animation: arcTag 1.1s steps(6) forwards; }
@keyframes arcTag { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%); } }
.arc-intro { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(2, 4, 10, .66); text-align: center; padding: 10px; }
.arc-intro.on { display: flex; }
.arc-intro b { font-size: clamp(1.5rem, 6vw, 4.2rem); color: #facc15; text-shadow: 4px 4px 0 #b45309; letter-spacing: .08em; animation: blink .5s steps(2) infinite alternate; }
.arc-intro b.cd { animation: none; font-size: clamp(3rem, 12vw, 7rem); color: #fff; text-shadow: 5px 5px 0 #ea580c; }
.arc-intro small { color: #e2e8f0; letter-spacing: .16em; margin-top: 8px; text-transform: uppercase; font-size: clamp(.6rem, 1.8vw, .9rem); }
@keyframes blink { to { opacity: .55; } }
/* fast break transition */
.arc-trans { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; z-index: 4; overflow: hidden; }
.arc-trans.in, .arc-trans.out { display: flex; }
.at-stripes { position: absolute; inset: -20%; background: repeating-linear-gradient(115deg, #f97316 0 28px, #facc15 28px 40px, #0b0f1c 40px 70px); }
.arc-trans.in .at-stripes { animation: atIn .45s steps(6) both; } .arc-trans.out .at-stripes { animation: atOut .45s steps(6) both; }
.arc-trans b { position: relative; font-size: clamp(1.6rem, 7vw, 4.6rem); font-weight: 900; color: #fff; letter-spacing: .06em; text-shadow: 5px 5px 0 #000, -2px -2px 0 #000; font-style: italic; }
.arc-trans.in b { animation: atText .5s steps(5) both; } .arc-trans.out b { animation: atOut .4s steps(5) both; }
@keyframes atIn { from { transform: translateX(-120%); } to { transform: translateX(0); } }
@keyframes atOut { from { transform: translateX(0); } to { transform: translateX(120%); } }
@keyframes atText { from { transform: scale(2.4) skewX(-12deg); opacity: 0; } to { transform: scale(1) skewX(-12deg); opacity: 1; } }
/* bottom bar */
.arc-bar { width: var(--sw); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .7rem; letter-spacing: .08em; }
.ab-stam { display: flex; align-items: center; gap: 6px; } .ab-stam span, .ab-move span { color: #94a3b8; }
.ab-meter { width: 90px; height: 8px; background: #000; border: 1px solid #475569; } .ab-meter i { display: block; height: 100%; background: #22c55e; } .ab-meter i.low { background: #ef4444; }
.ab-move { display: flex; align-items: center; gap: 6px; } .ab-move b { color: #4ade80; } .ab-move.cd b { color: #f87171; }
.arc-keys { color: #94a3b8; flex: 1; text-align: right; } .arc-keys kbd { background: #1e293b; border: 1px solid #475569; padding: 0 3px; }
/* touch controls */
.arc-touch { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: 176px; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: flex-end; pointer-events: none; }
.arc-touch.on { display: flex; }
.arc-joy { pointer-events: auto; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); position: relative; touch-action: none; }
.arc-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(250, 204, 21, .75); box-shadow: 0 0 12px #facc15; }
.arc-pad { pointer-events: auto; display: grid; grid-template-columns: 70px 74px; grid-template-rows: 70px 70px; gap: 10px; }
.arc-pad button { --cd: 0; position: relative; border-radius: 50%; border: 3px solid #000; font-family: 'Courier New', monospace; font-weight: 900; font-size: .72rem; color: #fff; background: #334155; touch-action: none; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; user-select: none; -webkit-user-select: none; }
.arc-pad button small { font-size: .55rem; opacity: .8; }
.arc-pad button[data-b=shoot] { grid-column: 2; grid-row: 1 / span 2; border-radius: 40px; background: #ea580c; font-size: 1rem; }
.arc-pad button[data-b=pass] { background: #2563eb; grid-column: 1; grid-row: 2; }
.arc-pad button[data-b=move] { background: #7c3aed; grid-column: 1; grid-row: 1; }
.arc-pad button[data-b=move]::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(rgba(0, 0, 0, .6) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; }
.arc-pad button.down { filter: brightness(1.4); transform: scale(.94); }
.arc-help { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .78); z-index: 5; padding: 16px; overflow: auto; }
.arc-help.on { display: flex; }
.arc-help-card { background: #0f172a; border: 3px solid #facc15; padding: 16px 18px; max-width: 560px; color: #e2e8f0; box-shadow: 8px 8px 0 #000; max-height: 100%; overflow: auto; }
.arc-help-card h3 { color: #facc15; letter-spacing: .15em; margin-top: 0; }
.arc-help-card p { margin: 6px 0; font-size: .85rem; } .arc-help-card b { color: #fdba74; }
.arc-moves span { display: inline-block; margin: 2px 6px 0 0; color: #64748b; } .arc-moves span.on { color: #86efac; }
@media (max-width: 760px), (pointer: coarse) { .arc { justify-content: flex-start; padding-top: 8px; --sw: calc(100vw - 16px); } .arc-hud { grid-template-columns: 1fr auto 1fr; } .ah-btns { grid-column: 1 / -1; justify-content: center; } .arc-keys { flex-basis: 100%; text-align: left; } }
@media (orientation: landscape) { .arc-rot { display: none; } }
@media (orientation: landscape) and (max-height: 500px) { .arc { --sw: min(100vw - 300px, calc((100dvh - 70px) * 16 / 9)); padding-top: 4px; gap: 3px; } .arc-bar { display: none; } .arc-hud { padding: 2px 6px; } .ah-s { font-size: 1.1rem; } .ah-btns { grid-column: auto; } .arc-hud { grid-template-columns: 1fr auto 1fr auto; } .arc-touch { height: 140px; } .arc-joy { width: 110px; height: 110px; } .arc-pad { grid-template-columns: 58px 62px; grid-template-rows: 58px 58px; } }
.opt-cards.two { grid-template-columns: repeat(2, 1fr); }
/* fast break flash on the match court */
.court-banner.fb { color: #fff; font-style: italic; background: repeating-linear-gradient(115deg, rgba(249, 115, 22, .92) 0 22px, rgba(250, 204, 21, .92) 22px 32px, rgba(11, 15, 28, .92) 32px 56px); text-shadow: 4px 4px 0 #000; }

/* =====================================================================
   16-BIT MATCH VIEW — the choices mode uses the same retro look as arcade play
   ===================================================================== */
:root { --px: 'Silkscreen', 'Courier New', monospace; --pxb: 'VT323', 'Courier New', monospace; --pxpanel: #0b0f1c; --pxedge: #1e293b; }
body[data-screen=match] .match { gap: 6px; }
body[data-screen=match] .glass { background: var(--pxpanel); border: 3px solid var(--pxedge); border-radius: 0; box-shadow: 0 0 0 2px #000, 5px 5px 0 #000; backdrop-filter: none; }
/* scorebug */
.scorebug { border-radius: 0; border: 3px solid var(--pxedge); box-shadow: 0 0 0 2px #000, 5px 5px 0 #000; background: #05070d; }
.sb-team { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 70%, #000) 0 10px, #0b0f1c 10px); padding: 4px 12px 4px 18px; }
.sb-team.them { background: linear-gradient(270deg, color-mix(in srgb, var(--tc) 70%, #000) 0 10px, #0b0f1c 10px); padding: 4px 18px 4px 12px; }
.sb-abbr { font-family: var(--px); font-size: 1rem; letter-spacing: .08em; }
.sb-score { font-family: var(--px); font-weight: 700; font-size: 1.9rem; color: #facc15; text-shadow: 3px 3px 0 #b45309; }
.sb-score.bump { animation: ahBump .5s steps(4); }
.sb-team svg { image-rendering: pixelated; width: 34px; height: 34px; }
.sb-mid { background: #000; font-family: var(--px); border-left: 3px solid var(--pxedge); border-right: 3px solid var(--pxedge); }
.sb-per { font-size: .6rem; } .sb-clock { font-size: 1rem; color: #fb923c; } .sb-shot { font-family: var(--px); font-size: .6rem; border-radius: 0; background: #7f1d1d; }
.fire-tag { font-family: var(--px); border-radius: 0; font-size: .6rem; }
.match-title { font-family: var(--px); font-size: .62rem; letter-spacing: .12em; } .match-title b { color: #facc15; }
/* court */
.court-wrap { border-radius: 0; border: 3px solid var(--pxedge); box-shadow: 0 0 0 2px #000, 5px 5px 0 #000; background: #000; }
.court-wrap > canvas { object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; }
.court-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); }
.court-banner { font-family: var(--px); font-weight: 700; font-size: clamp(1.4rem, 5vw, 3.2rem); letter-spacing: .04em; text-shadow: 4px 4px 0 #000; background: linear-gradient(90deg, transparent, rgba(5, 8, 15, .95) 12%, rgba(5, 8, 15, .95) 88%, transparent); transition: transform .2s steps(4); }
.court-banner small { font-family: var(--px); font-size: .62rem; letter-spacing: .2em; }
.court-banner.fb { font-style: italic; background: repeating-linear-gradient(115deg, rgba(249, 115, 22, .95) 0 22px, rgba(250, 204, 21, .95) 22px 32px, rgba(11, 15, 28, .95) 32px 56px); }
.court-banner.seg-loose { background: repeating-linear-gradient(115deg, rgba(14, 165, 233, .95) 0 22px, rgba(224, 242, 254, .95) 22px 32px, rgba(11, 15, 28, .95) 32px 56px); }
.court-banner.seg-putback { background: repeating-linear-gradient(115deg, rgba(34, 197, 94, .95) 0 22px, rgba(190, 242, 100, .95) 22px 32px, rgba(11, 15, 28, .95) 32px 56px); }
.court-banner.seg-broken { background: repeating-linear-gradient(115deg, rgba(168, 85, 247, .95) 0 22px, rgba(244, 114, 182, .95) 22px 32px, rgba(11, 15, 28, .95) 32px 56px); }
.court-banner.seg-buzzer { background: repeating-linear-gradient(115deg, rgba(220, 38, 38, .95) 0 22px, rgba(251, 146, 60, .95) 22px 32px, rgba(11, 15, 28, .95) 32px 56px); }
.court-banner.seg-final { background: repeating-linear-gradient(115deg, rgba(127, 29, 29, .97) 0 22px, rgba(250, 204, 21, .97) 22px 30px, rgba(0, 0, 0, .97) 30px 56px); animation: shakeX .4s steps(3) 2; }
.court-banner .tip svg { image-rendering: pixelated; }
/* box score + play-by-play */
.statline .sl-name { font-family: var(--px); font-size: .75rem; }
.sl-grid div { border-radius: 0; background: #111827; border: 2px solid #000; }
.sl-grid b { font-family: var(--px); font-size: .95rem; color: #fde68a; } .sl-grid span { font-family: var(--px); font-size: .5rem; }
.mini-meter span, .pbp-head { font-family: var(--px); font-size: .55rem; }
body[data-screen=match] .bar { border-radius: 0; height: 8px; border: 1px solid #000; } body[data-screen=match] .bar i { border-radius: 0; }
.pbp-list { font-family: var(--pxb); font-size: 1.12rem; line-height: 1.05; }
.pbp-list li { padding: 5px 4px; border-bottom: 2px dotted #1e293b; animation: none; }
.pbp-list time { font-family: var(--px); font-size: .5rem; }
.pbp-list li.sys { font-family: var(--px); font-size: .6rem; }
/* decision panel */
.moment-panel { transition: opacity .2s steps(3); }
.mp-setup { font-family: var(--pxb); font-size: 1.35rem; line-height: 1.1; }
.mp-now, .mp-wait, .mp-idle, .mp-hint { font-family: var(--px); font-size: .6rem; letter-spacing: .1em; }
.opt { border-radius: 0; border: 2px solid #334155; background: #111827; box-shadow: 3px 3px 0 #000; transition: transform .08s steps(2); }
.opt:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; border-color: #facc15; background: #1e293b; }
.opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.opt kbd { font-family: var(--px); border-radius: 0; background: #000; color: #facc15; border: 1px solid #475569; }
.opt-l { font-family: var(--px); font-size: .72rem; letter-spacing: .02em; line-height: 1.3; }
.opt-l small { font-family: var(--pxb); font-size: 1rem; letter-spacing: 0; line-height: 1; }
.opt .pct, body[data-screen=match] .pct { font-family: var(--px); border-radius: 0; font-size: .75rem; }
.opt.sig { border-color: #a78bfa; background: #1e1b4b; }
.opt-tip { font-family: var(--pxb); font-size: 1rem; border-radius: 0; }
/* minigames (match + training) */
.mg-card { border-radius: 0; background: #0b0f1c; border: 3px solid #facc15; box-shadow: 0 0 0 3px #000, 8px 8px 0 #000; }
.mg-title { font-family: var(--px); font-weight: 700; font-size: 1.05rem; color: #facc15; text-shadow: 3px 3px 0 #b45309; letter-spacing: .06em; }
.mg-hint, .mg-sub { font-family: var(--px); font-size: .55rem; letter-spacing: .06em; line-height: 1.5; }
.mg-result { font-family: var(--px); font-weight: 700; font-size: 1.4rem; text-shadow: 3px 3px 0 #000; animation: pop 1s steps(5); }
.pxc, .mg-body canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.meter { border-radius: 0; border: 3px solid #000; outline: 2px solid #475569; background: #111827; }
.meter-fill { background: repeating-linear-gradient(0deg, #f97316 0 6px, #facc15 6px 8px); opacity: .6; }
.meter-green { border-radius: 0; } .meter-perfect { box-shadow: none; }
.meter-line { height: 4px; box-shadow: none; outline: 1px solid #000; }
.ft-dots i, .ftv-dots i { border-radius: 0 !important; }
.combo-seq span { border-radius: 0; border: 3px solid #000; box-shadow: 3px 3px 0 #000; font-size: 1.2rem; }
.combo-seq span.cur { border-color: #facc15; transform: none; box-shadow: 0 0 0 2px #facc15, 3px 3px 0 #000; }
.timer { border-radius: 0; height: 8px; border: 1px solid #000; } .timer i { background: repeating-linear-gradient(90deg, #ef4444 0 6px, #facc15 6px 8px); }
.dpad button { border-radius: 0; border: 2px solid #000; background: #1e293b; box-shadow: 3px 3px 0 #000; font-family: var(--px); }
.dpad button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.dpad.three button { font-family: var(--px); font-size: .6rem; }
.def-att canvas { width: 100%; height: 100%; } .def-tell { font-family: var(--px); }
.pl-court { border-radius: 0; border: 3px solid #000; outline: 2px solid #475569; background: repeating-linear-gradient(0deg, #c98b4e 0 6px, #b97c43 6px 9px); image-rendering: pixelated; }
.pl-mate { border-radius: 0; box-shadow: 3px 3px 0 #000; } .pl-mate b { font-family: var(--px); } .pl-mate span { font-family: var(--px); font-size: .4rem; }
.pl-you { font-family: var(--px); border-radius: 0; }
.push-track, .push-zone, .push-mark, .push-btn { border-radius: 0 !important; font-family: var(--px); }
.mg-ftview .ftv-top, .mg-ftview .ftv-bot { font-family: var(--px); font-size: .62rem; letter-spacing: .06em; }
.mg-ftview .ftv-top b { font-family: var(--px); font-weight: 700; color: #facc15; text-shadow: 2px 2px 0 #b45309; letter-spacing: .04em; }
.mg-ftview .ftv-res, .mg-ftview .ftv-score { font-family: var(--px); border-radius: 0; }
.mg-ftview canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
/* post-game in the same style */
body[data-screen=postgame] .pg-score, body[data-screen=postgame] .pg-result { font-family: var(--px); font-weight: 700; }
/* training drills: practice-facility backdrop */
.train-stage { position: relative; }
.train-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: .55; pointer-events: none; }
/* courts gallery (hub) */
.courts-h { font-family: var(--px); font-size: .75rem; color: #facc15; margin: 14px 0 6px; }
.courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.court-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 0 !important; }
.court-card canvas { width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; border: 2px solid #000; }
.court-card b { font-family: var(--px); font-size: .7rem; } .court-card small { display: block; color: var(--muted); font-size: .75rem; margin: 2px 0 6px; }
.court-card.sel { outline: 3px solid #facc15; } .court-card.locked { opacity: .55; }
/* arcade segment transitions (colors per trigger) */
.arc.seg-loose .at-stripes { background: repeating-linear-gradient(115deg, #0ea5e9 0 28px, #e0f2fe 28px 40px, #0b0f1c 40px 70px); }
.arc.seg-putback .at-stripes { background: repeating-linear-gradient(115deg, #22c55e 0 28px, #bef264 28px 40px, #0b0f1c 40px 70px); }
.arc.seg-broken .at-stripes { background: repeating-linear-gradient(115deg, #a855f7 0 28px, #f472b6 28px 40px, #0b0f1c 40px 70px); }
.arc.seg-buzzer .at-stripes { background: repeating-linear-gradient(115deg, #dc2626 0 28px, #fb923c 28px 40px, #0b0f1c 40px 70px); }
.arc.seg-final .at-stripes { background: repeating-linear-gradient(115deg, #7f1d1d 0 28px, #facc15 28px 36px, #000 36px 70px); }
.arc .ah-mid b, .arc .ah-team b, .arc-msg, .arc-tag, .arc-intro b, .arc-trans b, .arc-help-card h3 { font-family: var(--px); }
.arc-trans b { font-weight: 700; }
/* portrait phones: a closer arcade camera and a much bigger court */
.arc.arc-portrait { --sw: calc(100vw - 16px); justify-content: flex-start; }
.arc.arc-portrait .arc-stage { width: var(--sw); flex: none; height: auto; }
.arc-stage { flex: none; }
@media (max-width: 760px) {
  body[data-screen=match] .court-wrap { aspect-ratio: 4 / 3; max-height: 52vh; }
  .opt-l { font-size: .62rem; } .mp-setup { font-size: 1.15rem; }
  .sb-score { font-size: 1.4rem; } .sb-abbr { font-size: .75rem; }
}


/* ---------- weapons for everyone · passing · close calls · full box score ---------- */
.court-banner.wpn-us { color: #fde68a; text-shadow: 0 0 26px #f59e0b, 4px 4px 0 #000; background: linear-gradient(90deg, transparent, rgba(120, 53, 15, .85), transparent); }
.court-banner.wpn-them { color: #fecaca; text-shadow: 0 0 26px #dc2626, 4px 4px 0 #000; background: linear-gradient(90deg, transparent, rgba(127, 29, 29, .88), transparent); }
.opt.open { border-color: #22c55e88; }
.pl-mate.dim { opacity: .35; } .pl-mate.target { border-color: #facc15; }
.pbp-tabs { display: flex; gap: 6px; } .pbp-tabs button { flex: 1; font: inherit; letter-spacing: .14em; color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); padding: 4px 0; cursor: pointer; }
.pbp-tabs button.on { color: #facc15; border-color: #facc1566; }
.box-live { font-size: .75rem; overflow: auto; max-height: 100%; } .box-live b { display: block; font-family: var(--px); font-size: .7rem; color: #facc15; margin: 6px 0 2px; }
.box-live table, .pg-box table { width: 100%; border-collapse: collapse; } .box-live td, .box-live th, .pg-box td, .pg-box th { padding: 2px 4px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
.box-live td:first-child, .box-live th:first-child, .pg-box td:first-child, .pg-box th:first-child { text-align: left; } .box-live th, .pg-box th { color: var(--muted); font-weight: 500; font-size: .65rem; }
.box-live tr.me td, .pg-box tr.me td { color: #facc15; }
.pg-box { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; overflow-x: auto; font-size: .8rem; }
.pg-box td small { display: block; color: var(--muted); font-size: .62rem; white-space: normal; }
@media (max-width: 760px) { .pg-box { grid-template-columns: 1fr; } }
.wp-panel { grid-column: 1 / -1; margin-top: 14px; }
.wp-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.wp-info { flex: 1; min-width: 0; } .wp-info b { font-family: var(--cond); } .wp-info small { display: block; color: var(--muted); font-size: .76rem; }
.wp-rank { display: inline-flex; gap: 3px; margin-top: 4px; } .wp-rank i { width: 14px; height: 6px; background: #1e293b; border: 1px solid #000; } .wp-rank i.on { background: #facc15; }
.wp-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; } .wp-offer { display: flex; flex-direction: column; gap: 6px; }
.ab-wpn b { color: #facc15; } .ab-wpn.on b { color: #fde047; text-shadow: 0 0 8px #f59e0b; } .ab-wpn.cd b { color: #64748b; }
.arc-pad { position: relative; }
.arc-pad button.wpn { position: absolute; right: 0; top: -66px; width: 56px; height: 56px; background: #78350f; border-color: #000; opacity: .55; }
.arc-pad button.wpn.ready { opacity: 1; background: #b45309; box-shadow: 0 0 14px #f59e0b; } .arc-pad button.wpn.on { opacity: 1; background: #facc15; color: #111; }
