/* Shared layout for all three looks. Colors and type live in look-*.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Motion off (html.still) or the device's reduced motion: jumps instead of smooth scrolling. */
html.still { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.45 var(--f-body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
small { font-size: .78em; }
:root { --pg: #ff5a6e; --sg: #ffa53a; --sf: #2fd3b5; --pf: #3b9bff; --c: #a46bff; --util: #8a96a8; --up: #3ddc84; --down: #ff5468; --maxw: 1240px; --gut: 16px; }
@media (min-width: 760px) { :root { --gut: 28px; } }

/* background layer (used by B and C) */
#bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#bg .orb, #bg .grain { display: none; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); transition: opacity .6s ease, visibility .6s; cursor: pointer; }
#loader img { width: min(42vw, 200px); filter: drop-shadow(0 0 30px var(--glow)); animation: logoIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
#loader .load-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
#loader .load-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: bar 1.1s ease both; }
#loader .load-text { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
#loader.gone { opacity: 0; visibility: hidden; }
@keyframes logoIn { from { opacity: 0; transform: scale(.82); filter: drop-shadow(0 0 0 transparent) blur(6px); } }
@keyframes bar { from { transform: scaleX(0); } }

/* top bar */
#topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 64px; padding: 0 var(--gut); background: var(--bar-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
#loader picture, .brand picture { display: contents; } /* WebP logo wrapper: lays out as the bare img did */
.tabs { display: flex; gap: 4px; flex: 1; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--on-text); background: var(--on-bg); }
#motion { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.week-pill { font-size: 13px; color: var(--muted); white-space: nowrap; }
.week-pill b { color: var(--accent); }

/* bottom tab bar (phones) */
#tabbar { display: none; }
@media (max-width: 759px) {
  #topbar { height: 56px; gap: 10px; }
  #topbar .tabs { display: none; }
  .brand span { font-size: 16px; }
  .brand img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(255,122,26,.5)); }
  #tabbar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--bar-bg); border-top: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
  #tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); border-radius: 12px; }
  #tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  #tabbar a.on { color: var(--accent); }
  main { padding-bottom: 96px !important; }
}

@media (max-width: 380px) { #topbar .brand { gap: 7px; } #topbar .brand span { font-size: 14px; } }

/* preview-only look switcher */
#look-switch { position: fixed; z-index: 60; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(10,10,14,.85); border: 1px solid rgba(255,255,255,.18); font: 600 12px/1 Inter, system-ui, sans-serif; color: #cfd6df; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#look-switch span { padding: 0 8px; opacity: .7; }
#look-switch a { padding: 7px 10px; border-radius: 999px; }
#look-switch a.on { background: #fff; color: #111; }
@media (max-width: 759px) { #look-switch { bottom: calc(76px + env(safe-area-inset-bottom)); right: 8px; } #look-switch span { display: none; } }

/* page */
main { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gut) 60px; outline: none; }
/* The page box holds a full screen while a page draws, so the footer under it does not jump (CLS, AB114). */
main#app { min-height: 100vh; min-height: 100svh; }
main.enter > * { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
main.enter > *:nth-child(2) { animation-delay: .06s; } main.enter > *:nth-child(3) { animation-delay: .12s; } main.enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
h1, h2 { margin: 4px 0 0; }
.h-xl { font-size: clamp(34px, 6vw, 64px); line-height: 1; }
.h-l { font-size: clamp(22px, 3vw, 32px); line-height: 1.1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lede { color: var(--muted); max-width: 640px; font-size: 16px; margin: 12px 0 0; }
.nowrap { white-space: nowrap; }
.note { color: var(--muted); font-size: 13px; margin: 12px 2px 0; }

.hero { position: relative; padding: 28px 0 22px; }
.stage3d { display: none; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; }
.btn-main { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }

.sec { margin-top: 26px; padding: var(--sec-pad); background: var(--sec-bg); border: var(--sec-border); border-radius: var(--r-card); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.1; }
.more { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* avatars and faces */
.av { position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--card2); border: 1.5px solid var(--line); }
.av b { font-size: 12px; font-weight: 800; color: var(--muted); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-s { width: 28px; height: 28px; } .av-s b { font-size: 10px; }
.av-l { width: 64px; height: 64px; } .av-xl { width: 96px; height: 96px; }
.face { flex: none; display: inline-block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--card2); }
.face { position: relative; display: inline-grid; place-items: center; }
.face b { font-size: 11px; font-weight: 800; color: var(--muted); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.face.xs { width: 24px; height: 24px; } .face.s { width: 34px; height: 34px; } .face.m { width: 56px; height: 56px; }

/* movement chips */
.mv { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.mv-up { color: var(--up); background: color-mix(in srgb, var(--up) 16%, transparent); }
.mv-down { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); }
.mv-same, .mv-new { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }

/* home */
.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .tiles4 { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.stat-tile > span { display: grid; min-width: 0; }
.stat-tile small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.stat-tile b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile em { font-style: normal; color: var(--accent); font-size: 13px; font-weight: 700; }
.mini-list { display: grid; gap: 6px; }
.mini-list .tl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.mini-list .rk { width: 22px; font-weight: 800; font-size: 18px; color: var(--accent); text-align: center; }
.mini-list .nm { flex: 1; display: grid; min-width: 0; } .mini-list .nm small { color: var(--muted); }
.mini-list .sc { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pick-team { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-team a { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* rankings table */
.sum-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.sum-tiles > div { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; }
.sum-tiles small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.sum-tiles em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }
@media (max-width: 900px) { .sum-tiles { grid-template-columns: repeat(2, 1fr); } }
.table { display: grid; }
.rows { position: relative; display: grid; gap: var(--row-gap); }
.row { display: grid; grid-template-columns: 34px 52px minmax(180px, 2.2fr) 1.4fr 56px 1.4fr 70px 84px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-row); background: var(--row-bg); border: var(--row-border); font-variant-numeric: tabular-nums; will-change: transform; }
.row:hover { background: var(--row-hover); }
.row-h { background: none !important; border: 0 !important; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding-top: 0; padding-bottom: 6px; }
.c-rk { font-weight: 800; font-size: 18px; text-align: center; color: var(--accent); }
.c-tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-tm .nm { display: grid; min-width: 0; } .c-tm .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .c-tm .nm small { color: var(--muted); }
.c-sc { display: grid; gap: 4px; } .c-sc b { font-size: 17px; }
.bar { display: block; height: 5px; border-radius: 5px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 5px; background: var(--bar-fill); }
.c-nx, .c-po { display: grid; font-size: 13.5px; } .c-nx small, .c-po small { color: var(--muted); font-size: 11px; }
.c-nx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { overflow: visible; } .spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; } .spark circle { fill: var(--accent); }
@media (max-width: 759px) {
  .row { grid-template-columns: 34px 1fr 50px 50px; grid-template-areas: "rk tm sc po" "mv tm sc po"; gap: 2px 8px; padding: 8px 10px; }
  .row .c-rk { grid-area: rk; } .row .c-mv { grid-area: mv; justify-self: center; } .row .c-tm { grid-area: tm; } .row .c-sc { grid-area: sc; text-align: right; } .row .c-po { grid-area: po; }
  .row .mv { min-width: 30px; font-size: 10.5px; padding: 1px 4px; }
  .row-h { grid-template-areas: "rk tm sc po"; } .row-h .c-mv { display: none; }
  .sec { padding: 14px; }
  .row .c-rec, .row .c-nx, .row .c-hi { display: none; }
  .row-h .c-mv { font-size: 0; }
  .c-rk { font-size: 16px; }
  .c-sc .bar { display: none; }
  .c-po { text-align: right; }
}

/* collectible cards */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
@media (max-width: 520px) { .cgrid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.ccard { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 14px 14px; border-radius: 18px; background: var(--cc-bg); border: 1px solid var(--cc-border); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; }
.ccard .cc-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.cc-top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.cc-rank { font-weight: 900; font-size: 22px; color: var(--accent); }
.cc-av { margin-top: 18px; }
.cc-name { font-weight: 800; font-size: 16px; line-height: 1.15; }
.cc-mgr { color: var(--muted); font-size: 12px; }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cc-stats span { display: grid; } .cc-stats b { font-size: 15px; } .cc-stats small { color: var(--muted); font-size: 10.5px; }
.cc-star { display: flex; gap: 8px; align-items: center; width: 100%; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: var(--card2); text-align: left; font-size: 12.5px; font-weight: 700; }
.cc-star span { display: grid; } .cc-star small { color: var(--muted); font-weight: 500; font-size: 10.5px; }
@media (max-width: 520px) { .cc-star { display: none; } .cc-name { font-size: 14px; } .av-l { width: 52px; height: 52px; } }

/* awards */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .awards { grid-template-columns: 1fr 1fr; gap: 8px; } }
.award { position: relative; display: grid; gap: 6px; padding: 14px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.award small { color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding-right: 28px; }
.aw-ic { position: absolute; top: 10px; right: 12px; font-size: 20px; }
.aw-who { display: flex; align-items: center; gap: 8px; min-width: 0; } .aw-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.aw-big { font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.award em { font-style: normal; color: var(--muted); font-size: 12px; }
.award.good .aw-big { color: var(--good-c); } .award.bad .aw-big { color: var(--bad-c); }

/* position tiles */
.ptiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 759px) { .ptiles { grid-template-columns: repeat(5, 150px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .ptile { scroll-snap-align: start; } }
.ptile { --pc: var(--util); position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 8px 12px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 34%, var(--card)) 0%, var(--card) 70%); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); }
.ptile .face { width: 64px; height: 64px; border: 2px solid var(--pc); margin-bottom: 6px; background: #0003; }
.pt-pos { font-weight: 900; color: var(--pc); font-size: 13px; letter-spacing: .06em; }
.ptile b { font-size: 14px; } .ptile small { color: var(--muted); font-size: 11px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-pts { font-size: 26px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ptile em { font-style: normal; color: var(--muted); font-size: 12px; }
.pos-pg { --pc: var(--pg); } .pos-sg { --pc: var(--sg); } .pos-sf { --pc: var(--sf); } .pos-pf { --pc: var(--pf); } .pos-c { --pc: var(--c); } .pos-util { --pc: var(--util); }

/* smart board, lock list, max bars */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card2); margin-bottom: 12px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.slist, .llist, .mlist { display: grid; gap: var(--row-gap); }
.srow, .lrow, .mrow { display: grid; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-row); background: var(--row-bg); border: var(--row-border); font-variant-numeric: tabular-nums; }
.srow { grid-template-columns: 26px 42px 28px minmax(140px, 1.6fr) repeat(4, 1fr); }
.lrow { grid-template-columns: 26px 28px minmax(140px, 1.6fr) repeat(3, 1fr) 1.4fr; }
.mrow { grid-template-columns: 26px 28px minmax(160px, 1.3fr) 2fr 60px; }
.s-rk, .m-rk { font-weight: 800; color: var(--accent); text-align: center; }
.s-nm, .m-nm { display: grid; min-width: 0; } .s-nm b, .m-nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .s-nm small, .m-nm small { color: var(--muted); font-size: 11.5px; }
.s-sc, .s-x { display: grid; text-align: right; } .s-sc b { font-size: 18px; color: var(--accent); } .s-sc small, .s-x small { color: var(--muted); font-size: 10.5px; }
.l-best { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; } .l-best span { display: grid; } .l-best small { color: var(--muted); font-weight: 500; }
.l-best .face b, .l-best small { font-size: 12px; } /* the 12 px floor on phones (AB367, AB356) */
.m-bar { position: relative; height: 14px; border-radius: 8px; background: var(--track); }
.m-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; }
.m-true { background: var(--max-true); } .m-pts { background: var(--bar-fill); } .m-sl { width: 3px; border-radius: 2px !important; background: var(--text); z-index: 2; top: -3px !important; bottom: -3px !important; }
.m-pc { text-align: right; font-weight: 800; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; } .legend i { width: 14px; height: 8px; border-radius: 4px; display: inline-block; }
.lg-pts { background: var(--bar-fill); } .lg-true { background: var(--max-true); } .lg-sl { width: 3px !important; height: 12px !important; background: var(--text); }
.lg-cnt { background: var(--accent); } .lg-best { border: 2px solid var(--up); background: none; }
@media (max-width: 759px) {
  .srow { grid-template-columns: 22px 36px 28px 1fr 56px 60px; } .srow .s-x:nth-of-type(n+2) { display: none; }
  .srow .s-x:nth-last-child(-n+2) { display: none; }
  .lrow { grid-template-columns: 22px 28px 1fr 64px 60px; } .lrow .l-best, .hide-s { display: none !important; }
  .mrow { grid-template-columns: 22px 28px 1fr 54px; } .mrow .m-bar { grid-column: 2 / 5; grid-row: 2; }
}

/* matchups */
.matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 12px; }
.match { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; }
.mside { display: grid; gap: 4px; padding: 12px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.mside.r { text-align: right; } .mside.r .ms-top { flex-direction: row-reverse; } .mside.r .ms-picks { justify-content: flex-end; }
.mside.won { background: var(--won-bg); border-color: var(--won-border); }
.ms-top { display: flex; gap: 8px; align-items: center; min-width: 0; } .ms-top > span { display: grid; min-width: 0; } .ms-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; } .ms-top small { color: var(--muted); font-size: 11px; }
.ms-pts { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ms-max, .ms-best { color: var(--muted); font-size: 12px; }
.ms-picks { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.vs { display: grid; place-content: center; text-align: center; font-weight: 900; font-size: 13px; color: var(--accent); } .vs small { color: var(--muted); font-size: 10px; font-weight: 600; }
@media (max-width: 520px) { .ms-pts { font-size: 21px; } .ms-best { display: none; } .match { grid-template-columns: 1fr 34px 1fr; } }

/* team page */
.back { display: inline-block; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
/* AB598 option C: the avatar sits above the team name at its own size, at every width (the name never sits beside it) */
.team-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; }
.team-head > .av { grid-column: 1; justify-self: start; }
.team-head > div:not(.team-hist) { grid-column: 1; min-width: 0; }
.team-head > .team-hist { grid-column: 2; grid-row: 1 / span 2; }
.team-head .kicker { display: flex; gap: 10px; align-items: center; }
.team-hist { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 12px; }
.team-hist .spark { width: 140px; height: 46px; }
@media (max-width: 759px) { .team-head { grid-template-columns: minmax(0, 1fr); gap: 10px; } .team-head .av-xl { width: 64px; height: 64px; } .team-head > .team-hist { grid-column: 1 / -1; grid-row: auto; justify-items: start; } }
.dash { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .dash { grid-template-columns: repeat(2, 1fr); } }
.dtile { position: relative; display: grid; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.dtile small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.dtile b { font-size: 28px; font-weight: 900; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.dtile em { font-style: normal; color: var(--muted); font-size: 12px; }
.ring { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0); -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); }
.plist { display: grid; gap: 6px; }
.prow { display: grid; grid-template-columns: 40px 34px minmax(150px, 1.4fr) 2.4fr 76px 92px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-row); background: var(--row-bg); border: var(--row-border); }
.prow.bench { opacity: .78; }
.pp { --pc: var(--util); display: inline-grid; place-items: center; height: 24px; border-radius: 6px; font-size: 11px; font-weight: 900; color: #0b0d12; background: var(--pc); }
.p-nm { display: grid; min-width: 0; } .p-nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .p-nm small { color: var(--muted); font-size: 11.5px; }
.inj { color: var(--down); font-weight: 700; } .inmax { color: var(--up); font-weight: 700; }
.games { display: flex; flex-wrap: wrap; gap: 5px; }
.g { display: grid; text-align: center; min-width: 46px; padding: 3px 6px; border-radius: 8px; background: var(--card2); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; border: 2px solid transparent; }
.g small { font-weight: 500; font-size: 9.5px; color: var(--muted); }
.g.cnt { background: var(--accent); color: var(--on-accent); } .g.cnt small { color: inherit; opacity: .75; }
.g.best { border-color: var(--up); }
.g.none { color: var(--muted); font-weight: 500; }
.p-pts, .p-lock { display: grid; text-align: right; } .p-pts b { font-size: 17px; } .p-pts small, .p-lock small { color: var(--muted); font-size: 10.5px; }
@media (max-width: 759px) {
  .prow { grid-template-columns: 34px 34px 1fr 60px; gap: 8px; }
  .prow .games { grid-column: 1 / -1; grid-row: 2; padding-left: 0; }
}
.hl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 759px) { .hl2 { grid-template-columns: 1fr; } }
.hl { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.hl > span { display: grid; } .hl small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; } .hl em { font-style: normal; color: var(--muted); font-size: 13px; }
.hl.good b { color: var(--good-c); } .hl.bad b { color: var(--bad-c); }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 759px) { .slots { grid-template-columns: repeat(2, 1fr); } }
.slot { --pc: var(--util); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); min-width: 0; flex-wrap: wrap; }
.slot .pp { padding: 0 6px; } .slot b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; } .slot em { font-style: normal; font-size: 12px; color: var(--muted); width: 100%; }
.ltable { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.lt-h, .lt-r { display: grid; grid-template-columns: minmax(170px, 2fr) repeat(4, 1fr); gap: 10px; padding: 8px 12px; align-items: center; }
.lt-h { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.lt-r { background: var(--row-bg); border: var(--row-border); border-radius: var(--r-row); }
.lt-r > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.lt-r.gone { opacity: .6; }
.lt-r .up { color: var(--up); font-weight: 800; } .lt-r .down { color: var(--down); font-weight: 800; }
@media (max-width: 759px) { .lt-h, .lt-r { grid-template-columns: 1fr 40px 54px 54px; } .lt-h span:nth-child(3), .lt-r span:nth-child(3) { display: none; } }

/* league */
.ltiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ltile { padding: 18px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.ltile b { font-size: 18px; } .ltile p { color: var(--muted); margin: 6px 0 12px; font-size: 14px; }
.soon { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--card); border: 1px solid var(--line); }
.big-num { font-size: clamp(64px, 13vw, 150px); line-height: .9; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 8px 0 6px; }

@media (prefers-reduced-motion: reduce) { main.enter > * { animation: none; } #loader img { animation: none; } }
html.still main.enter > * { animation: none; }
@media (max-width: 440px) { .week-pill { display: none; } }
