:root {
  --navy: #1f2a44; --coral: #e8594a; --gold: #e9b949; --cream: #f4efe6; --paper: #fbf8f2; --sand: #e8e0d2; --mute: #7d8496;
  --font: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--cream); color: var(--navy); font-family: var(--font); user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; overflow: hidden; background: var(--cream); }
#screen, #overlay, #layer { position: absolute; inset: 0; }
#overlay, #layer { pointer-events: none; }
#overlay > *, #layer > * { pointer-events: auto; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: inherit; }
img { -webkit-user-drag: none; }
.enter { animation: popIn .28s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.97); } }

/* ---------- buttons ---------- */
.btn { min-height: 2.9rem; padding: .55rem 1.1rem; border-radius: 1.5rem; background: var(--navy); color: var(--cream); font-weight: 800; font-size: .95rem; line-height: 1.15;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-align: center; transition: transform .12s, filter .12s, background .15s; }
.btn.press { animation: squash .22s; }
@keyframes squash { 30% { transform: scale(.93, .9); } 70% { transform: scale(1.03); } }
.btn.cta { background: var(--coral); font-size: 1.05rem; min-height: 3.2rem; }
.btn.ghost { background: var(--sand); color: var(--navy); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.small { min-height: max(2.75rem, 46px); font-size: .85rem; padding: .45rem .9rem; }
.btn.wide { width: 100%; }
.btn.round { width: max(2.9rem, 46px); height: max(2.9rem, 46px); min-height: max(2.9rem, 46px); padding: 0; border-radius: 50%; font-size: 1.2rem; }
.btn[disabled] { opacity: .38; cursor: default; }
.btn .ico, .chip .ico { width: 1.25rem; height: 1.25rem; }
.nav.focus { outline: .2rem solid var(--gold); outline-offset: .15rem; transform: scale(1.02); }
@media (hover: hover) { .btn:not([disabled]):hover, .card.nav:hover { filter: brightness(1.06); } }
.ico { display: inline-block; width: 1.1rem; height: 1.1rem; flex: none; vertical-align: middle; object-fit: contain; }
.ico svg { width: 100%; height: 100%; display: block; }

/* ---------- title ---------- */
.title { position: absolute; inset: 0; background: var(--navy) url(assets/cover-bg.webp) center / cover no-repeat; cursor: pointer; }
.title .logo { position: absolute; top: 9%; left: 50%; width: 82%; max-height: 30%; object-fit: contain; transform: translateX(-50%); animation: logoIn .7s cubic-bezier(.3, 1.6, .5, 1) both, float 4s 1s ease-in-out infinite; }
.title .logotext { position: absolute; top: 12%; width: 100%; text-align: center; font-size: 3rem; font-weight: 900; color: var(--cream); }
@keyframes logoIn { from { opacity: 0; transform: translateX(-50%) scale(.6); } }
@keyframes float { 50% { transform: translateX(-50%) translateY(-6px); } }
.title .tprompt { position: absolute; bottom: 10%; width: 100%; text-align: center; color: var(--cream); font-weight: 800; font-size: 1.15rem; letter-spacing: .05em; animation: pulse 1.8s infinite; }
.title .tkey { position: absolute; bottom: 6.5%; width: 100%; text-align: center; color: rgba(244, 239, 230, .65); font-size: .8rem; font-weight: 600; }
@media (hover: none) { .title .tkey { display: none; } }
.title .corner { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: rgba(244, 239, 230, .16); padding: .6rem; }

/* ---------- generic pages ---------- */
.page { position: absolute; inset: 0; padding: 1rem 1rem 1.2rem; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: .7rem; }
.page::-webkit-scrollbar, .content::-webkit-scrollbar, .sbody::-webkit-scrollbar { display: none; }
.center-page { justify-content: center; padding: 2rem 1.6rem; }
.page-head { display: flex; align-items: center; gap: .7rem; padding-right: 3.5rem; }
.page-title { font-size: 1.45rem; font-weight: 900; }
.page-sub { color: var(--mute); font-size: .9rem; font-weight: 600; margin-top: -.3rem; }
.card { background: var(--paper); border-radius: 1rem; padding: .85rem; display: block; width: 100%; }
.card.nav { cursor: pointer; transition: transform .12s; }
.card.nav:active { transform: scale(.98); }
.savecard { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.savecard b { display: block; font-size: 1.15rem; }
.savecard small, .teamtxt small, .regtxt small { color: var(--mute); font-weight: 600; font-size: .8rem; }
.regiongrid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.regcard { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-height: 9rem; }
.regtxt b { display: block; font-size: 1.15rem; }
.regdiff { display: flex; align-items: center; gap: .3rem; margin-top: auto; }
.regdiff small { font-size: .75rem; color: var(--mute); font-weight: 700; }
.stars { display: inline-flex; gap: .1rem; }
.stars .ico { width: 1rem; height: 1rem; }
.stars .on { color: var(--gold); } .stars .off { color: var(--sand); }
.list { display: flex; flex-direction: column; gap: .55rem; }
.teamcard { display: flex; align-items: center; gap: .75rem; }
.teamtxt { flex: 1; min-width: 0; }
.teamtxt b { display: block; font-size: 1.05rem; }
.teamnums { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-weight: 800; font-size: .85rem; }
.teamnums span { display: flex; align-items: center; gap: .25rem; }
.teamnums small { color: var(--mute); font-size: .7rem; }

/* ---------- emblems, avatars ---------- */
.emb { flex: none; display: flex; align-items: center; justify-content: center; background: var(--c); color: var(--cream); font-weight: 900; letter-spacing: .02em; position: relative; }
.emb span { line-height: 1; }
.emb.shape0 { border-radius: 50%; }
.emb.shape1 { border-radius: 22%; }
.emb.shape2 { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.emb.goldframe { box-shadow: 0 0 0 .18rem var(--gold); }
.emb.goldframe.shape2 { clip-path: none; border-radius: 30%; }
.av { flex: none; border-radius: 30%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.av img { width: 92%; height: 92%; image-rendering: pixelated; display: block; }

/* ---------- hub ---------- */
.hub { position: absolute; inset: 0; display: flex; flex-direction: column; }
.topbar { flex: none; background: var(--navy); color: var(--cream); padding: calc(.6rem + env(safe-area-inset-top)) 4.2rem .6rem .8rem; display: flex; flex-direction: column; gap: .5rem; }
.tb1 { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.tbname { min-width: 0; }
.tbname b { display: block; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbname small { display: block; font-size: .78rem; opacity: .75; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: rgba(244, 239, 230, .12); border-radius: 1rem; padding: .3rem .6rem; font-weight: 800; font-size: .9rem; color: var(--cream); min-height: 2rem; }
.chip.neg { color: #ff9a8c; }
.chip.gold { min-height: 2.75rem; min-width: 2.75rem; background: rgba(233, 185, 73, .2); }
.chip .plus { background: var(--gold); color: var(--navy); border-radius: 50%; width: 1.1rem; height: 1.1rem; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.content { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; display: flex; flex-direction: column; gap: .65rem; scrollbar-width: none; animation: fadeIn .2s; }
.tabbar { flex: none; display: flex; background: var(--paper); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); gap: .2rem; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 3.2rem; border-radius: .8rem; color: var(--mute); font-weight: 800; font-size: .72rem; text-align: center; }
.tab .ico { width: 1.4rem; height: 1.4rem; }
.tab.on { color: var(--coral); background: rgba(232, 89, 74, .08); }
.ctitle { font-weight: 900; font-size: 1rem; margin-bottom: .5rem; }
.ctitle.sub { margin: .7rem 0 .4rem; font-size: .9rem; }
.sectitle { font-weight: 900; font-size: .9rem; color: var(--mute); margin: .3rem .2rem -.2rem; }
.ptext { font-size: .92rem; line-height: 1.5; font-weight: 600; margin: .2rem 0 .6rem; }
.ptext.dim { color: var(--mute); }
.ptext.center { text-align: center; }
.warn { color: var(--coral); font-weight: 800; font-size: .85rem; margin: .2rem 0 .5rem; }
small.warn { margin: 0; font-size: inherit; }
.hint { display: block; color: var(--mute); font-size: .78rem; font-weight: 600; margin: .4rem 0; line-height: 1.4; }
.tagpill { display: inline-block; background: var(--navy); color: var(--cream); border-radius: 1rem; padding: .25rem .7rem; font-size: .78rem; font-weight: 800; }
.tagpill.open { background: var(--coral); }
.nc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.bo { font-weight: 900; color: var(--mute); font-size: .85rem; }
.vs { display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.vsside { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 32%; }
.vsside b { font-size: 1.1rem; }
.vsside small { color: var(--mute); font-weight: 700; font-size: .75rem; }
.vsmid { flex: 1; display: flex; justify-content: center; }
.charbox { position: relative; flex: none; }
.charimg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); image-rendering: pixelated; }
.sheetanim { position: absolute; background-repeat: no-repeat; image-rendering: pixelated; }
.winbar { position: relative; height: 1.6rem; border-radius: .8rem; background: var(--sand); overflow: hidden; margin: .7rem 0; }
.winbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: .8rem; }
.winbar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; color: var(--cream); mix-blend-mode: difference; }
.nc-act { display: flex; flex-direction: column; gap: .45rem; }
.toggle { align-self: center; }
.statrow { display: grid; grid-template-columns: 3.6rem 1fr 2rem; align-items: center; gap: .5rem; margin: .3rem 0; font-weight: 800; }
.statrow small { font-size: .8rem; color: var(--mute); }
.statrow b { text-align: right; }
.bar { height: .7rem; border-radius: .35rem; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: .35rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.seg .btn { background: var(--sand); color: var(--navy); padding: .4rem .3rem; font-size: .85rem; }
.seg .btn.on { background: var(--navy); color: var(--cream); }
.table { margin-bottom: .5rem; }
.gname { font-size: .78rem; font-weight: 900; color: var(--mute); margin: .4rem 0 .3rem; }
.trow { display: grid; grid-template-columns: 1.4rem 1.5rem 1fr 2.6rem 2.4rem; align-items: center; gap: .45rem; padding: .3rem .3rem; border-radius: .5rem; font-size: .85rem; font-weight: 700; }
.trow.me { background: rgba(232, 89, 74, .1); }
.trow .rk { color: var(--mute); font-weight: 900; text-align: center; }
.trow .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .wl { font-weight: 900; text-align: right; }
.trow .gd { color: var(--mute); text-align: right; font-size: .78rem; }
.mline { display: grid; grid-template-columns: 1.4rem 1fr 3.2rem 1fr 1.4rem; align-items: center; gap: .4rem; padding: .35rem .3rem; border-radius: .5rem; font-weight: 800; font-size: .85rem; }
.mline.me { background: rgba(232, 89, 74, .1); }
.mline .tn.r { text-align: right; }
.mline .win { color: var(--coral); }
.mline .sc { text-align: center; }
.news { display: flex; gap: .55rem; padding: .4rem 0; border-top: 1px solid var(--sand); font-size: .85rem; font-weight: 600; line-height: 1.4; }
.news:first-of-type { border-top: 0; }
.news small { color: var(--mute); flex: none; font-weight: 800; font-size: .72rem; padding-top: .1rem; }

/* ---------- roster / players ---------- */
.sumrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .4rem 0; }
.kvi { background: var(--cream); border-radius: .7rem; padding: .45rem .55rem; min-width: 0; }
.card .kvi { background: var(--cream); }
.sheet .kvi { background: var(--paper); }
.kvi small { display: block; font-size: .7rem; color: var(--mute); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kvi b { display: block; font-size: .98rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kvi.hl b { color: var(--coral); }
.prow { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; }
.prow.starter { box-shadow: inset .25rem 0 0 var(--coral); }
.prow.empty { color: var(--mute); font-weight: 800; gap: .6rem; }
.pinfo { flex: 1; min-width: 0; }
.pinfo b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo small { display: block; font-size: .75rem; color: var(--mute); font-weight: 700; line-height: 1.35; }
.pright { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pright small { font-size: .72rem; color: var(--mute); font-weight: 800; }
.ovr { font-weight: 900; }
.ovr.big { font-size: 1.5rem; line-height: 1; color: var(--navy); }
.rolepill { background: var(--sand); border-radius: .6rem; padding: .2rem .5rem; font-size: .75rem; }
.phead { display: flex; align-items: center; gap: .9rem; margin-bottom: .5rem; }
.phead small { display: block; color: var(--mute); font-weight: 700; font-size: .8rem; margin-top: .15rem; }
.big { font-size: 1.35rem; font-weight: 900; display: block; }
.potline { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.potline small { margin: 0; }
.actgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .5rem; }
.actgrid .btn { font-size: .85rem; padding: .45rem .5rem; }
.confirmhead { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.confirmhead small { display: block; color: var(--mute); font-weight: 700; font-size: .8rem; }
.minirow { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; margin: .5rem 0; }
.mini { display: flex; flex-direction: column; align-items: center; gap: .1rem; background: var(--paper); border-radius: .7rem; padding: .4rem .2rem; min-width: 0; }
.mini small { font-size: .65rem; color: var(--mute); font-weight: 800; }
.mini b { font-size: .7rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ovr { font-size: .95rem; color: var(--coral); }
.bigmoney { font-size: 2rem; font-weight: 900; margin: .2rem 0 .5rem; }
.bigmoney.neg, .neg { color: var(--coral); }
.pos { color: var(--navy); }

/* ---------- market ---------- */
.banner { display: flex; flex-direction: column; gap: .15rem; background: var(--sand); }
.banner.open { background: var(--coral); color: var(--cream); }
.banner small { font-weight: 700; font-size: .8rem; opacity: .85; }
.chiprow { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .1rem; }
.chiprow::-webkit-scrollbar { display: none; }
.fchip { flex: none; background: var(--paper); color: var(--navy); min-height: 2.75rem; padding: .35rem .85rem; font-size: .85rem; }
.fchip.on { background: var(--navy); color: var(--cream); }

/* ---------- ops ---------- */
.fin { display: flex; flex-direction: column; gap: .2rem; }
.finrow { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 700; padding: .2rem 0; }
.finrow span { color: var(--mute); }
.finrow.total { border-top: 2px solid var(--sand); margin-top: .2rem; padding-top: .45rem; }
.finrow.total span { color: var(--navy); font-weight: 900; }
.sprow { display: flex; align-items: center; gap: .7rem; }
.spmark { width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--gold); color: var(--navy); font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex: none; }
.spcard { margin-top: .5rem; background: var(--paper); }
.coachrow { display: flex; align-items: center; gap: .7rem; }
.sheet .coachrow { margin-bottom: .45rem; }
.facrow { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--sand); }
.facrow:first-of-type { border-top: 0; }
.pips { display: flex; gap: .25rem; margin-top: .3rem; }
.pips i { width: 1.1rem; height: .45rem; border-radius: .25rem; background: var(--sand); }
.pips i.on { background: var(--coral); }
.pips.ap i { width: .9rem; height: .9rem; border-radius: 50%; }
.pips.ap i.on { background: var(--gold); }
.maxed { font-weight: 900; color: var(--gold); }
.bag { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.bagitem { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: var(--cream); border-radius: .8rem; padding: .45rem .2rem; min-height: 5.6rem; }
.bagitem img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.bagitem small { font-size: .65rem; font-weight: 800; color: var(--mute); text-align: center; line-height: 1.2; }
.bagitem b { font-size: .9rem; }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: .4rem 0; }
.iteminfo { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.iteminfo img { width: 5rem; height: 5rem; object-fit: contain; }

/* ---------- fans ---------- */
.fanhead { display: flex; align-items: center; gap: .8rem; }
.ico.huge { width: 3rem; height: 3rem; }
.bignum { font-size: 2rem; font-weight: 900; line-height: 1.05; }
.fanhead small { color: var(--mute); font-weight: 800; font-size: .78rem; }
.aps { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.act { display: flex; align-items: center; gap: .7rem; }
.acticon { width: 2.6rem; height: 2.6rem; flex: none; border-radius: .8rem; position: relative; }
.a-meet { background: var(--coral); border-radius: 50%; }
.a-stream { background: var(--navy); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.a-merch { background: var(--gold); border-radius: .5rem; }
.a-rest { background: #8fb8a8; border-radius: 50% 50% .4rem .4rem; }
.a-social { background: var(--coral); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.effs { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.effs span { background: var(--cream); border-radius: .5rem; padding: .1rem .4rem; font-size: .68rem; font-weight: 800; }
.actbtn { flex: none; }
.actbtn .btn { min-width: 4.8rem; }
.trophies { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .5rem; }
.trophy { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: var(--paper); border-radius: .8rem; padding: .5rem .3rem; text-align: center; }
.trophy .ico { width: 2rem; height: 2rem; }
.trophy small { font-size: .65rem; color: var(--mute); font-weight: 800; }
.trophy b { font-size: .72rem; line-height: 1.2; }

/* ---------- sheets ---------- */
.sheet-back { position: absolute; inset: 0; background: rgba(31, 42, 68, .45); display: flex; align-items: flex-end; animation: fadeIn .18s; z-index: 20; }
.sheet-back.out { opacity: 0; transition: opacity .18s; }
.sheet { width: 100%; max-height: 90%; background: var(--cream); border-radius: 1.4rem 1.4rem 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; animation: slideUp .26s cubic-bezier(.2, 1.2, .4, 1); }
.sheet.center { margin: auto 1rem; border-radius: 1.4rem; width: calc(100% - 2rem); animation: popIn .25s cubic-bezier(.2, 1.4, .4, 1); }
.sheet-back:has(.center) { align-items: center; }
.shead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.stitle { font-size: 1.2rem; font-weight: 900; }
.sbody { overflow-y: auto; flex: 1; scrollbar-width: none; min-height: 0; }
.sact { display: flex; gap: .5rem; padding-top: .8rem; }
.sact .btn { flex: 1; }

/* ---------- overlays: broadcast, results, champion, assistant ---------- */
.bc { position: absolute; inset: 0; background: var(--cream); display: flex; flex-direction: column; padding: calc(.7rem + env(safe-area-inset-top)) .8rem calc(.8rem + env(safe-area-inset-bottom)); gap: .5rem; z-index: 10; }
.bchead { display: flex; align-items: center; justify-content: space-between; }
.bcteam { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 5rem; font-weight: 900; }
.bcscore { text-align: center; }
.bcscore small { display: block; font-size: .72rem; color: var(--mute); font-weight: 800; }
.bcscore b { font-size: 2.2rem; font-weight: 900; }
.bcgame { display: flex; justify-content: space-between; align-items: center; font-weight: 900; }
.bcgame small { color: var(--mute); }
.bckills { font-size: 1.1rem; }
.bcmapwrap { position: relative; flex: 1; min-height: 10rem; }
.bcmap { width: 100%; height: 100%; display: block; }
.bcbanner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; background: var(--navy); color: var(--cream); font-weight: 900; font-size: 1.3rem; padding: .7rem 1.3rem; border-radius: 1rem; white-space: nowrap; transition: all .25s cubic-bezier(.2, 1.5, .4, 1); }
.bcbanner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bcbanner.win { background: var(--coral); }
.bcgraph { width: 100%; height: 4.2rem; display: block; flex: none; }
.ticker { flex: none; height: 4.6rem; overflow: hidden; display: flex; flex-direction: column; gap: .2rem; }
.tk { display: flex; gap: .5rem; font-size: .8rem; font-weight: 700; align-items: center; animation: popIn .2s; }
.tk small { color: var(--mute); width: 2.4rem; flex: none; }
.tk.s0 span { color: var(--navy); } .tk.s1 span { color: var(--coral); }
.bcstrip { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; }
.bcp { display: flex; flex-direction: column; align-items: center; background: var(--paper); border-radius: .6rem; padding: .3rem .1rem; min-width: 0; }
.bcp small { font-size: .62rem; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcp b { font-size: .75rem; }
.bcctl { flex: none; display: flex; gap: .5rem; justify-content: center; }
.bcctl .btn { min-width: 6rem; }
.result, .champ { position: absolute; inset: 0; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 1.5rem 1.4rem calc(1.5rem + env(safe-area-inset-bottom)); z-index: 12; overflow-y: auto; }
.result.win { background: var(--cream); }
.result.lose { background: #e9e5de; }
.rtitle { font-size: 2.6rem; font-weight: 900; letter-spacing: .04em; animation: slam .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.result.win .rtitle, .champ .rtitle { color: var(--coral); }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } }
.rscore { display: flex; align-items: center; gap: 1rem; }
.rscore b { font-size: 2rem; font-weight: 900; }
.rcomp { color: var(--mute); font-weight: 800; }
.rchar { display: flex; justify-content: center; }
.mvp { display: flex; align-items: center; gap: .7rem; max-width: 20rem; }
.kda { font-size: 1.1rem; }
.rgain { display: flex; gap: .9rem; font-weight: 900; font-size: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.rgain span { display: inline-flex; align-items: center; gap: .25rem; }
.result .btn.wide, .champ .btn.wide { max-width: 20rem; }
.result .kv { width: 100%; max-width: 22rem; }
.champ { background: var(--navy); color: var(--cream); }
.champcup { width: 8rem; height: 8rem; animation: slam .6s cubic-bezier(.2, 1.6, .4, 1) both, float2 3s 1s ease-in-out infinite; }
@keyframes float2 { 50% { transform: translateY(-8px); } }
.champcup svg { width: 100%; height: 100%; }
.champcomp { font-size: 1.2rem; }
.champteam { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; font-weight: 900; }
.assist { position: absolute; inset: 0; background: rgba(31, 42, 68, .35); display: flex; align-items: flex-end; z-index: 15; padding: 1rem .8rem calc(5rem + env(safe-area-inset-bottom)); animation: fadeIn .2s; }
.asbox { display: flex; align-items: flex-end; gap: .4rem; width: 100%; }
.bubble { flex: 1; background: var(--cream); border-radius: 1.2rem 1.2rem 1.2rem .3rem; padding: .9rem; display: flex; flex-direction: column; gap: .4rem; animation: popIn .3s cubic-bezier(.2, 1.4, .4, 1); margin-bottom: 1.2rem; }
.bubble small { color: var(--coral); font-weight: 900; font-size: .8rem; }
.bubble p { font-weight: 700; font-size: .95rem; line-height: 1.5; }
.bubble .btn { align-self: flex-end; }

/* ---------- toasts, subtitles, intro ---------- */
#toasts { position: absolute; left: 0; right: 0; top: calc(7.6rem + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: .35rem; pointer-events: none; z-index: 40; padding: 0 1rem; }
.toast { background: var(--navy); color: var(--cream); padding: .55rem 1rem; border-radius: 1rem; font-weight: 800; font-size: .88rem; max-width: 100%; text-align: center; animation: popIn .25s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .35s, transform .35s; }
.toast.good { background: var(--coral); }
.toast.out { opacity: 0; transform: translateY(-8px); }
#subtitle { position: absolute; left: 1rem; right: 1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); text-align: center; color: var(--cream); background: rgba(31, 42, 68, .82); border-radius: .8rem; padding: .45rem .8rem; font-weight: 800; font-size: .92rem; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 41; }
#subtitle.show { opacity: 1; }
#intro { position: absolute; inset: 0; background: var(--navy) url(assets/cover-bg.webp) center / cover; z-index: 50; }
#intro[hidden] { display: none; }
#intro video { width: 100%; height: 100%; object-fit: cover; display: block; }
#intro .skip { position: absolute; bottom: calc(1.5rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-width: 7rem; }
.yearsum .stars .ico { width: 1.6rem; height: 1.6rem; }
.help .ptext { margin-bottom: .8rem; }
