/* Start 'Em — hybrid: light app shell (Sunday Light), broadcast type + roll banner (Broadcast),
   lineup on a real football field (Stadium Night). The amber scoreboard is the signature. */
:root {
  --page: #ECEFF4;
  --surface: #FFFFFF;
  --line: #DCE2EB;
  --line-2: #E9EDF3;
  --ink: #0B1220;
  --ink-2: #48566B;
  --ink-3: #7B889C;
  --solid: #0B1220;   /* dark buttons/bars; stays dark-ish in dark mode */
  --on-yel: #0B1220;  /* text on yellow, same in both themes */
  --navy: #0D1A2B;
  --navy-2: #182A43;
  --turf: #17603A;
  --turf-2: #1A6B41;
  --chalk: rgba(255, 255, 255, .55);
  --yel: #FFD93D;
  --bulb: #FFD93D;
  --bulb-dim: #2A2010;
  --go: #12B76A;
  --go-ink: #087443;
  --close: #D99B00;
  --miss: #E5383B;
  --qb: #EF4E5A; --rb: #10A37F; --wr: #2F6FEB; --te: #EE8A00; --flex: #7C4DDB;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --dots: "Doto", "Courier New", monospace;
  --shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 12px 32px -16px rgba(11, 18, 32, .28);
  --slant: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--wr); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { margin: 0; }
.disp { font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: -.005em; }

/* ---------- app bar ---------- */
.appbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.appbar::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--yel) 0 38%, transparent 38%); }
.appbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
/* header wordmark: the logo's lettering on its own; the full field logo is for icons, previews and social */
.wordmark { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 31px; line-height: 1; text-decoration: none; color: #fff; display: flex; align-items: center; white-space: nowrap; text-shadow: 0 2px 0 #000; }
.wordmark span { color: var(--yel); margin-left: 7px; }
.nav { display: flex; align-items: center; gap: 8px; }
.modetag { font-weight: 600; font-size: 14px; color: #A9B7CB; margin-right: 6px; }
.navbtn { padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 14.5px; color: #DFE6F0; background: rgba(255,255,255,.07); }
.navbtn:hover { background: rgba(255,255,255,.14); }
.navbtn.solid { background: var(--yel); color: var(--on-yel); }
.navbtn.user { background: var(--navy-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--solid); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .01em; padding: 10px 18px; border-radius: 4px; transition: transform .08s, background .15s; }
.btn:hover:not(:disabled) { background: var(--navy-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.yel { background: var(--yel); color: var(--on-yel); }
.btn.yel:hover:not(:disabled) { background: #FFEA7A; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink-3); background: var(--surface); }
.btn.big { padding: 14px 24px; font-size: 20px; }
.btn.slant { clip-path: var(--slant); padding-right: 34px; }
.linkbtn { color: var(--ink-2); text-decoration: underline; font-size: 15px; padding: 4px 0; justify-self: start; }

/* ---------- shared ---------- */
.panel { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.pos { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 24px; padding: 0 10px; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; background: var(--ink-3); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.p-QB { background: var(--qb); } .p-RB { background: var(--rb); } .p-WR { background: var(--wr); } .p-TE { background: var(--te); } .p-FLEX { background: var(--flex); }
.face { flex: none; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: #D8DFE9; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #4B5A70; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.d-best { background: var(--go); } .d-close { background: var(--close); } .d-miss { background: var(--miss); }

/* scoreboard */
.board { position: relative; border-radius: 10px; color: #E9D9B4; background: radial-gradient(circle, #24180A 1.4px, transparent 1.7px) 0 0 / 9px 9px, linear-gradient(#120D06, #0A0703); border: 5px solid #2A2E36; box-shadow: inset 0 0 0 2px #000, 0 18px 36px -18px rgba(11,18,32,.6); }
.bulbs { font-family: var(--dots); font-weight: 900; color: var(--bulb); line-height: .9; letter-spacing: .04em; text-shadow: 0 0 6px rgba(255,217,61,.85), 0 0 22px rgba(255,170,0,.45); }
.bulbs .off { color: var(--bulb-dim); text-shadow: none; opacity: .45; }
.bulbs.bump { animation: bump .5s ease-out; }
@keyframes bump { 30% { transform: scale(1.06); text-shadow: 0 0 12px #FFD27A, 0 0 40px rgba(255,150,0,.9); } }
.lbl { font-family: var(--display); font-weight: 700; font-size: 15px; color: #B9C4D6; letter-spacing: .03em; }

/* football field panel */
.turf {
  position: relative; color: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0 85%, rgba(0,0,0,.25)),
    repeating-linear-gradient(180deg, transparent 0 calc(12.5% - 2px), var(--chalk) calc(12.5% - 2px) 12.5%),
    repeating-linear-gradient(180deg, var(--turf) 0 12.5%, var(--turf-2) 12.5% 25%);
}
.turf::before { /* hash marks down both sides */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.45) 0 2px, transparent 2px 2.5%) 10px 0 / 12px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255,255,255,.45) 0 2px, transparent 2px 2.5%) calc(100% - 10px) 0 / 12px 100% no-repeat;
}
.turf > * { position: relative; }
.turf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 30px 10px; }
.turf-h h2 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.turf-h span { font-weight: 600; font-size: 14px; color: #CFF5DD; }

/* broadcast chyron for the rolled team */
.chy { position: relative; }
.chy .slab { position: relative; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 16px 70px 14px 24px; color: #fff; background: var(--team); clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%); }
.chy .slab::after { content: ""; position: absolute; right: 52px; top: 0; bottom: 0; width: 12px; background: var(--team-2); transform: skewX(-16deg); opacity: .95; }
.chy .yr { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 64px; line-height: .85; }
.chy .tn { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 32px; line-height: 1; text-transform: uppercase; }
.chy .strip { height: 8px; width: 64%; background: var(--yel); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.chy .tag { position: absolute; top: 12px; right: 66px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 3px; }
.chy.enter .slab { animation: wipe .5s cubic-bezier(.2,.8,.2,1); }
.chy.enter .strip { animation: wipe .6s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; padding: 44px 0 26px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(60px, 8.4vw, 116px); line-height: .84; letter-spacing: -.01em; }
.hero h1 .k { display: block; font-size: .36em; font-style: normal; font-weight: 800; color: var(--ink-3); letter-spacing: 0; margin-bottom: 12px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--yel) 62% 92%, transparent 92%); padding-right: .08em; }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 44ch; margin: 20px 0 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.dream { padding-bottom: 14px; }
.dream .turf-h { padding-top: 18px; }
.dream-rec { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 30px 12px; }
.dream-rec .board { padding: 6px 16px 9px; }
.dream-rec .bulbs { font-size: 42px; }
.dream-rec .tot { text-align: right; }
.dream-rec .tot b { display: block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 38px; line-height: 1; }
.dream-rec .tot span { font-size: 13.5px; font-weight: 600; color: #CFF5DD; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; }
.mode { position: relative; text-align: left; background: var(--surface); border-radius: 6px; padding: 0 0 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; overflow: hidden; }
.mode:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 22px 44px -20px rgba(11,18,32,.45); }
.mode:disabled { opacity: .6; cursor: not-allowed; }
.mode .mh { background: var(--accent); color: var(--accent-ink, #fff); padding: 14px 40px 12px 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); margin-right: 26%; }
.mode h3 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 36px; line-height: 1; }
.mode p { margin: 16px 22px 18px; color: var(--ink-2); font-size: 15.5px; }
.mode .foot { margin: auto 22px 0; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.mode .foot em { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff; background: var(--solid); padding: 4px 22px 4px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.mode.daily { --accent: var(--yel); --accent-ink: var(--on-yel); }
.mode.ranked { --accent: var(--wr); }
.mode.casual { --accent: var(--turf); }

.standings { margin: 40px 0 30px; }
.sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sec-h h2 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 40px; line-height: 1; }
.sec-h::after { content: ""; flex: 1; height: 6px; background: var(--yel); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); max-width: 180px; }
.tabs { display: flex; gap: 4px; padding: 6px 12px 0; border-bottom: 1px solid var(--line-2); overflow-x: auto; background: #F7F9FB; }
.tabs button { padding: 10px 14px 11px; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb th { text-align: left; font-weight: 700; color: var(--ink-3); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.lb td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.lb tr:last-child td { border-bottom: 0; }
.lb td.rk { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px; width: 60px; color: var(--ink-3); }
.lb tr:nth-child(-n+3) td.rk { color: var(--ink); }
.lb tbody tr:first-child { background: linear-gradient(90deg, rgba(255,225,77,.28), transparent 60%); }
.lb td.nm { font-weight: 700; }
.lb .num, .lb th.num { text-align: right; }
.lb td.rec { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; }
.lb .grid { letter-spacing: 1px; font-size: 14px; }
.lineup-cell { font-size: 13.5px; color: var(--ink-3); }
.lb-empty { padding: 30px 20px; color: var(--ink-2); text-align: center; }
.lb-note { padding: 12px 16px; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line-2); margin: 0; }
.foot-note { color: var(--ink-3); font-size: 13.5px; padding: 10px 0 50px; }

/* ---------- game ---------- */
.gamehead { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: stretch; margin: 20px 0 18px; }
.gamehead .board { display: grid; grid-template-columns: auto auto auto auto; gap: 6px 28px; padding: 12px 22px 14px; align-items: end; }
.gamehead .cell .bulbs { font-size: 36px; }
.gamehead .cell.total .bulbs { font-size: 52px; }
.progress { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.progress .steps7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.progress .steps7 i { height: 9px; background: var(--line); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.progress .steps7 i.best { background: var(--go); } .progress .steps7 i.close { background: var(--close); } .progress .steps7 i.miss { background: var(--miss); }
.progress .steps7 i.now { background: var(--solid); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.progress .txt { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.progress .txt b { color: var(--ink); }

.play { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; align-items: start; margin-bottom: 60px; }
.list { background: var(--surface); box-shadow: var(--shadow); border-radius: 0 0 6px 6px; overflow: hidden; }
.list .sub { padding: 10px 20px; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.list h4 { padding: 9px 20px 6px; font-family: var(--display); font-weight: 800; font-size: 16px; color: #66758B; background: #F1F4F8; }
.prow { width: 100%; display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; text-align: left; padding: 9px 20px 9px 20px; border-top: 1px solid var(--line-2); box-shadow: inset 5px 0 0 var(--pc, transparent); transition: background .12s; }
.prow:hover:not(:disabled) { background: #F7F9FB; }
.prow[aria-pressed="true"] { background: #FFF9D6; }
.prow:disabled { opacity: .36; cursor: not-allowed; }
.prow .nm { font-weight: 700; font-size: 17px; line-height: 1.2; }
.prow .meta { font-size: 13px; color: var(--ink-3); }
.prow .go { font-family: var(--display); font-weight: 800; font-size: 16px; background: var(--solid); color: #fff; padding: 6px 20px 6px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.prow[aria-pressed="true"] .go { background: var(--yel); color: var(--on-yel); }
.tier { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 3px; white-space: nowrap; }
.tier.elite { background: #FFF1C2; color: #7A5000; }
.tier.starter { background: #DDF6EA; color: var(--go-ink); }
.tier.flex { background: #E5EDFD; color: #1F4FB8; }
.tier.depth { background: #EEF1F5; color: var(--ink-3); }
.list-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; background: var(--solid); color: #fff; font-size: 14.5px; font-weight: 600; }
.spot-picks, .rerolls { display: flex; gap: 8px; flex-wrap: wrap; }
.list-foot .btn { padding: 6px 14px; font-size: 16px; }
.list-foot .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.list-foot .btn.ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px #fff; }

/* lineup slots on the field */
.lineup { padding-bottom: 14px; }
.slot { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; margin: 0 22px 8px; min-height: 60px; background: rgba(0,0,0,.3); box-shadow: inset 5px 0 0 rgba(255,255,255,.3); backdrop-filter: blur(1px); }
.slot .s { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 25px; text-align: center; opacity: .92; }
.slot .p { padding: 9px 0; min-width: 0; }
.slot .nm { font-weight: 700; font-size: 16px; line-height: 1.2; display: flex; align-items: center; gap: 7px; }
.slot .meta { font-size: 13px; color: #CFF5DD; }
.slot .pt { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; padding: 0 18px; }
.slot.f { background: #fff; color: var(--ink); box-shadow: inset 6px 0 0 var(--c), 0 6px 16px -8px rgba(0,0,0,.5); }
.slot.f .meta { color: var(--ink-3); }
.slot.t { width: calc(100% - 44px); text-align: left; background: rgba(255,225,77,.14); box-shadow: inset 0 0 0 2px var(--yel), inset 6px 0 0 var(--yel); cursor: pointer; animation: glow 1.4s ease-in-out infinite; }
.slot.t:hover { background: rgba(255,225,77,.26); }
.slot.t .pt { font-size: 16px; font-style: normal; color: var(--yel); }
@keyframes glow { 50% { background: rgba(255,225,77,.26); } }
.slot.just { animation: land .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes land { from { transform: scale(.96); opacity: .3; } }

/* reveal card */
.reveal-wrap { position: fixed; inset: 0; background: rgba(11, 18, 32, .6); display: grid; place-items: center; z-index: 30; padding: 20px; animation: fade .2s; backdrop-filter: blur(3px); }
@keyframes fade { from { opacity: 0; } }
.card { width: min(390px, 100%); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(11,18,32,.5); animation: flip .6s cubic-bezier(.2,.9,.3,1.1); }
@keyframes flip { from { transform: perspective(900px) rotateY(-90deg); } to { transform: perspective(900px) rotateY(0); } }
.card-top { background: var(--team); color: #fff; padding: 20px 22px; display: flex; gap: 16px; align-items: center; position: relative; }
.card-top::after { content: ""; position: absolute; left: 0; right: 30%; bottom: 0; height: 6px; background: var(--yel); }
.card-top .face { width: 76px; height: 76px; box-shadow: 0 0 0 3px #fff; }
.card-top .nm { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 34px; line-height: .95; }
.card-top .sub { font-size: 14px; opacity: .92; margin-top: 4px; }
.card-pts { text-align: center; padding: 18px 20px 2px; }
.card-pts .big { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 96px; line-height: .9; }
.card-pts .unit { font-weight: 700; color: var(--ink-3); }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px 16px; margin: 10px 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.card-stats div { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.card-stats b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--ink); }
.verdict { margin: 14px 18px 0; padding: 12px 14px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.verdict.best { background: #DDF6EA; color: var(--go-ink); }
.verdict.close { background: #FFF1C2; color: #7A5000; }
.verdict.miss { background: #FDE2E3; color: #9B1C1F; }
.card .btn { display: flex; width: calc(100% - 36px); margin: 16px 18px 20px; padding: 13px; font-size: 20px; }

/* ---------- results: matchup ---------- */
.matchup { margin: 22px 0 18px; }
.mhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px 28px; background: var(--navy); color: #fff; position: relative; }
.mhead::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 40%; background: var(--yel); }
.mside .who { font-weight: 600; font-size: 14.5px; color: #A9B7CB; }
.mside .score { font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(46px, 6vw, 72px); line-height: .95; }
.mside.perf { text-align: right; }
.mside.perf .score { color: #7F92AE; }
.mmid { text-align: center; }
.mmid .board { padding: 10px 22px 12px; display: inline-block; }
.mmid .bulbs { font-size: clamp(56px, 8vw, 92px); }
.mmid .verdict-line { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 21px; margin-top: 10px; color: var(--yel); }
.pctbar { padding: 14px 28px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-2); }
.pctbar .track { height: 12px; background: var(--line-2); overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pctbar .fill { height: 100%; background: linear-gradient(90deg, var(--yel), var(--bulb)); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.pctbar .txt { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.pctbar .txt b { color: var(--ink); }
.mrow { display: grid; grid-template-columns: 1fr auto 70px auto 1fr; gap: 12px; align-items: center; padding: 10px 24px; border-top: 1px solid var(--line-2); }
.mrow:first-of-type { border-top: 0; }
.mrow .pl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mrow .pl.r { flex-direction: row-reverse; text-align: right; }
.mrow .nm { font-weight: 700; line-height: 1.2; display: flex; gap: 7px; align-items: center; }
.mrow .pl.r .nm { justify-content: flex-end; }
.mrow .yr { font-size: 13px; color: var(--ink-3); }
.mrow .pt { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; min-width: 66px; }
.mrow .pt.r { text-align: right; color: var(--ink-3); }
.mrow .pt.same { color: var(--go-ink); }
.mrow .mid { text-align: center; }
.mrow .face { width: 40px; height: 40px; }

.after { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 30px; margin: 24px 0 18px; align-items: start; }
.share-card img { width: 100%; aspect-ratio: 1080 / 1350; border-radius: 8px; display: block; background: var(--navy); box-shadow: 0 24px 50px -20px rgba(11,18,32,.6); transform: rotate(-1.5deg); }
.share-side h3 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 42px; line-height: 1; margin: 6px 0 8px; }
.share-side > p { color: var(--ink-2); margin: 0 0 18px; }
.share-side .btn.big { width: 100%; max-width: 380px; }
.share-more { display: flex; gap: 10px; margin-top: 10px; max-width: 380px; }
.share-more .btn { flex: 1; }
.callouts { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.callout { background: var(--surface); border-radius: 6px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 15px; color: var(--ink-2); }
.callout span { display: block; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink-3); margin-bottom: 2px; }
.callout b { color: var(--ink); }
.callout.good { box-shadow: inset 5px 0 0 var(--go), var(--shadow); }
.callout.bad { box-shadow: inset 5px 0 0 var(--miss), var(--shadow); }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0 70px; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(11, 18, 32, .6); backdrop-filter: blur(4px); animation: fade .2s; overflow-y: auto; }
.sheet { position: relative; width: min(460px, 100%); background: var(--surface); border-radius: 8px; padding: 0 28px 26px; box-shadow: 0 30px 80px rgba(11,18,32,.45); animation: rise .28s cubic-bezier(.2,.9,.3,1); margin: auto; overflow: hidden; }
.sheet.wide { width: min(660px, 100%); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.sheet-top { margin: 0 -28px 20px; padding: 22px 60px 16px 28px; background: var(--navy); color: #fff; position: relative; }
.sheet-top::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 42%; background: var(--yel); }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 28px; line-height: 1; color: #A9B7CB; width: 40px; height: 40px; border-radius: 50%; }
.sheet-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.sheet-h { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; }
.sheet-lede { color: var(--ink-2); margin: 0 0 18px; }
.sheet-sub { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; margin: 24px 0 6px; }
.sheet p { max-width: 62ch; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 32px; background: var(--solid); color: var(--yel); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 20px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.steps b { color: var(--ink); }
.g { font-weight: 700; padding: 0 6px; border-radius: 3px; }
.g.best { background: #DDF6EA; color: var(--go-ink); } .g.close { background: #FFF1C2; color: #7A5000; } .g.miss { background: #FDE2E3; color: #9B1C1F; }
.modes-dl { display: grid; grid-template-columns: 86px 1fr; gap: 8px 14px; margin: 8px 0 0; }
.modes-dl dt { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; }
.modes-dl dd { margin: 0; color: var(--ink-2); }
.fine { font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
.sheet .btn.big { width: 100%; margin-top: 18px; }
.stack { display: grid; gap: 10px; }
.stack label { font-weight: 700; }
.stack input { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 4px; padding: 12px 14px; font: inherit; font-size: 17px; }
.stack input:focus { border-color: var(--wr); outline: none; box-shadow: 0 0 0 4px rgba(47,111,235,.15); }
.stack input#code { letter-spacing: .3em; font-family: var(--display); font-weight: 900; font-size: 30px; }
.btn.google { width: 100%; background: var(--surface); color: #1F1F1F; box-shadow: inset 0 0 0 1.5px var(--line); padding: 13px; font-family: var(--body); font-weight: 600; font-size: 16.5px; }
.btn.google:hover:not(:disabled) { background: #F6F8FB; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { color: var(--ink-3); font-size: 14px; margin: 0; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--solid); color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 600; transition: transform .25s, opacity .25s; z-index: 50; max-width: calc(100% - 40px); opacity: 0; pointer-events: none; box-shadow: inset 5px 0 0 var(--yel), 0 14px 30px rgba(11,18,32,.3); }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .dream { max-width: 540px; }
  .modes { grid-template-columns: 1fr; }
  .gamehead { grid-template-columns: 1fr; }
  .play { grid-template-columns: 1fr; }
  .list-foot { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -10px 24px -10px rgba(11,18,32,.4); }
  .after { grid-template-columns: 1fr; }
  .share-card { max-width: 330px; margin: 0 auto; }
  .share-side { text-align: center; }
  .share-side .btn.big, .share-more { margin-left: auto; margin-right: auto; }
  .callouts { text-align: left; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .appbar .wrap { height: 56px; }
  .wordmark { font-size: 25px; }
  .navbtn { padding: 7px 10px; font-size: 13.5px; }
  .modetag { display: none; }
  .gamehead .board { grid-template-columns: 1fr 1fr 1fr; gap: 4px 14px; padding: 10px 16px 12px; }
  .gamehead .cell.total { grid-column: 1 / -1; }
  .gamehead .cell .bulbs { font-size: 30px; }
  .gamehead .cell.total .bulbs { font-size: 44px; }
  .chy .yr { font-size: 50px; }
  .chy .tn { font-size: 26px; }
  .chy .slab { padding-right: 56px; }
  .chy .tag { display: none; }
  .prow { grid-template-columns: 40px 1fr auto auto; padding: 9px 14px; gap: 10px; }
  .prow .face { width: 40px; height: 40px; }
  .slot { margin: 0 16px 7px; grid-template-columns: 56px 1fr auto; }
  .slot.t { width: calc(100% - 32px); }
  .slot .pt { font-size: 25px; padding: 0 14px; }
  .turf-h { padding: 14px 24px 10px; }
  .mhead { grid-template-columns: 1fr 1fr; padding: 18px; }
  .mmid { grid-column: 1 / -1; order: -1; }
  .mrow { grid-template-columns: 1fr auto 1fr; padding: 10px 12px; gap: 8px; }
  .mrow .pt { display: none; }
  .mrow .face { display: none; }
  .mrow .nm { font-size: 14px; }
  .mrow .yr b { display: inline; }
  .callouts { grid-template-columns: 1fr; }
  .sheet { padding: 0 20px 22px; }
  .sheet-top { margin: 0 -20px 18px; padding: 20px 56px 14px 20px; }
  .modes-dl { grid-template-columns: 1fr; gap: 2px; }
  .modes-dl dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.mrow .yr b { display: none; }
@media (max-width: 640px) { .mrow .yr b { display: inline; color: var(--ink); } }
/* polish */
.appbar { position: relative; }
.slot { grid-template-columns: 74px 1fr auto; }
.slot .s.sm { font-size: 20px; }
.hero h1 .k { line-height: 1.1; }
.navbtn { white-space: nowrap; }
@media (max-width: 640px) { .slot { grid-template-columns: 60px 1fr auto; } .slot .s.sm { font-size: 17px; } }


/* ===================== unified system ===================== */
/* panel header: navy bar, italic title, yellow stripe — used by every panel */
.ph { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 22px 16px; background: var(--navy); color: #fff; }
.ph::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 40%; background: var(--yel); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.ph h2, .ph h3 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; }
.ph .aside { font-weight: 600; font-size: 14px; color: #A9B7CB; }

/* boards: dark scoreboard digits sit on the navy, no separate bezel colour */
.board { background: radial-gradient(circle, #1E2A3D 1.3px, transparent 1.6px) 0 0 / 8px 8px, #07101C; border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border-radius: 6px; }
.bulbs .off { color: #1C2738; opacity: 1; }

/* buttons: primary yellow slant, secondary navy slant, extras outlined */
.btn { border-radius: 3px; }
.btn.yel, .btn.navy { clip-path: var(--slant); padding-right: 34px; border-radius: 0; }
.btn.navy { background: var(--solid); color: #fff; }

/* score bar: scoreboard + progress in one navy unit */
.scorebar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; margin: 20px 0 18px; padding: 14px 18px; background: var(--navy); color: #fff; border-radius: 6px; position: relative; box-shadow: var(--shadow); }
.scorebar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 40%; background: var(--yel); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); border-bottom-left-radius: 6px; }
.scorebar .board { display: grid; grid-template-columns: auto auto auto auto; gap: 4px 26px; padding: 10px 18px 12px; align-items: end; }
.scorebar .cell .bulbs { font-size: 34px; }
.scorebar .cell.total .bulbs { font-size: 50px; }
.scorebar .prog { display: grid; gap: 9px; padding-right: 6px; }
.scorebar .prog .txt { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; color: #A9B7CB; }
.scorebar .prog .txt b { color: #fff; }
.scorebar .steps7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.scorebar .steps7 i { height: 10px; background: #24364F; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.scorebar .steps7 i.best { background: var(--go); } .scorebar .steps7 i.close { background: var(--close); } .scorebar .steps7 i.miss { background: var(--miss); }
.scorebar .steps7 i.now { background: var(--yel); animation: blink 1.4s ease-in-out infinite; }

/* mode cards: same header for all three */
.mode { padding-bottom: 18px; }
.mode .ph { padding: 16px 22px 18px; }
.mode .ph h3 { font-size: 34px; }
.mode .ph .aside { font-family: var(--body); font-style: normal; }
.mode .foot em { background: var(--solid); color: #fff; }
.mode.daily .foot em { background: var(--yel); color: var(--on-yel); }

/* standings */
.standings .panel { border-radius: 6px; }
.tabs { background: #fff; }

/* the field: lineups everywhere */
.turf { border-radius: 6px; }
.turf .ph { background: rgba(7, 16, 28, .55); backdrop-filter: blur(2px); margin-bottom: 14px; }
.lineup, .dream { padding-bottom: 14px; }

/* results: matchup rows on the field */
.matchup { background: transparent; box-shadow: none; overflow: visible; }
.matchup .mhead { border-radius: 6px 6px 0 0; }
.matchup .pctbar { background: #fff; border: 0; }
.matchup .field-rows { padding: 14px 0 12px; border-radius: 0 0 6px 6px; }
.matchup .mrow { margin: 0 22px 8px; background: #fff; border: 0; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); padding: 9px 18px; }
.matchup .mrow .pl:first-child { box-shadow: none; }

/* callouts + share in the same white/stripe language */
.callout { border-radius: 4px; }
.share-side h3 { font-size: 40px; }

@media (max-width: 960px) {
  .scorebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scorebar { padding: 12px; gap: 12px; }
  .scorebar .board { grid-template-columns: 1fr 1fr 1fr; gap: 4px 14px; padding: 10px 14px 12px; }
  .scorebar .cell.total { grid-column: 1 / -1; }
  .scorebar .cell .bulbs { font-size: 28px; }
  .scorebar .cell.total .bulbs { font-size: 42px; }
  .matchup .mrow { margin: 0 12px 7px; padding: 9px 10px; }
  .ph h2, .ph h3 { font-size: 26px; }
}
.matchup .mrow { color: var(--ink); }
.matchup .mrow .pt.r { color: var(--ink-3); }

/* ===== groups, challenges, profile ===== */
.scopes { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px 4px; }
.chip { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); background: #F1F4F8; box-shadow: inset 0 0 0 1.5px var(--line); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--solid); color: #fff; box-shadow: none; }
.chip.add { background: transparent; color: var(--wr); box-shadow: inset 0 0 0 1.5px #C9D8F8; }

.h2h { margin-top: 22px; }
.h2h-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 24px; }
.h2h-side .who { font-weight: 700; color: var(--ink-3); font-size: 14.5px; }
.h2h-side .score { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 52px; line-height: .95; color: var(--ink-3); }
.h2h-side .rec { font-weight: 600; font-size: 14px; color: var(--ink-3); }
.h2h-side.win .score { color: var(--ink); }
.h2h-side.win .who::after { content: "WIN"; margin-left: 8px; font-family: var(--display); font-weight: 800; font-size: 13px; background: var(--yel); color: var(--on-yel); padding: 1px 12px 1px 7px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.h2h-side.r { text-align: right; }
.h2h-mid { text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1.05; max-width: 260px; }
.h2h-mid span { display: block; font-family: var(--body); font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.ch-card { display: flex; gap: 16px; align-items: center; padding: 14px; background: #F4F6FA; border-radius: 6px; margin-bottom: 16px; }
.ch-card .board { padding: 8px 14px 10px; flex: none; }
.ch-card .bulbs { font-size: 40px; }
.ch-card .grid { margin-top: 4px; letter-spacing: 2px; }

.glist { display: grid; gap: 8px; margin-bottom: 18px; }
.gitem { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #F4F6FA; border-radius: 6px; box-shadow: inset 4px 0 0 var(--yel); }
.gitem b { display: block; }
.gitem span { font-size: 13.5px; color: var(--ink-3); }
.gitem code { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink); letter-spacing: .08em; }
.gact { display: flex; align-items: center; gap: 12px; }
.gact .btn { padding: 6px 12px; font-size: 15px; }
.row2 { display: flex; gap: 8px; }
.row2 input { flex: 1; min-width: 0; }
.gbody { padding: 18px 20px 20px; }

.profile { padding-top: 22px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); }
.tile { padding: 16px 18px; border-right: 1px solid var(--line-2); }
.tile:last-child { border-right: 0; }
.tile > span { display: block; font-weight: 600; font-size: 13px; color: var(--ink-3); }
.tile b { display: block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 38px; line-height: 1.05; }
.tile small { font-size: 12.5px; color: var(--ink-3); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 18px; }
.day { aspect-ratio: 1; border-radius: 4px; background: #F1F4F8; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.day b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 17px; color: var(--ink); line-height: 1; }
.day.played { background: #E3E9F2; }
.day.good { background: #D6F3E4; }
.day.hot { background: var(--yel); }
button.day { border: 0; font-family: inherit; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s; }
button.day:hover, button.day:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(11,18,32,.5); outline: none; }
.save-score { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 16px; border-radius: 8px; background: var(--solid); color: #fff; box-shadow: inset 4px 0 0 var(--yel); }
.save-score b { color: var(--yel); }
.save-score > div { flex: 1 1 220px; font-size: 15px; line-height: 1.4; }
.save-score .btn { flex: 0 0 auto; }
.stat-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; user-select: none; }
.stat-switch:hover, .stat-switch:focus-visible { background: rgba(11,18,32,.06); outline: none; }
.ss-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #CBD3DE; transition: background .15s; }
.ss-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.stat-switch[aria-checked="true"] .ss-track { background: var(--rb); }
.stat-switch[aria-checked="true"] .ss-knob { transform: translateX(14px); }
.mode .ph .stat-switch { color: rgba(255,255,255,.85); }
.mode .ph .stat-switch:hover, .mode .ph .stat-switch:focus-visible { background: rgba(255,255,255,.1); }
.mode .ph .ss-track { background: #4A5A72; }
.mode .ph .stat-switch[aria-checked="true"] .ss-track { background: var(--rb); }
html[data-theme="dark"] .ss-track { background: #3A4A61; }
.cal-note { margin: -8px 18px 14px; font-size: 12px; color: var(--ink-3); }
.lb tr.tap { cursor: pointer; }
.daystep { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 6px; }
.ds-label { display: flex; align-items: baseline; gap: 8px; }
.ds-label b { font-size: 17px; font-style: italic; color: var(--ink); }
.ds-label span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.ds-arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; font: 700 22px/1 inherit; font-family: inherit; color: var(--ink); background: #F1F4F8; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.ds-arrow:hover:not(:disabled) { background: var(--solid); color: var(--yel); box-shadow: none; }
.ds-arrow:disabled { opacity: .3; cursor: default; }
html[data-theme="dark"] .ds-arrow { background: #1A273B; }
.lb tr.tap:hover td, .lb tr.tap:focus-visible td { background: rgba(11,18,32,.04); }
html[data-theme="dark"] .lb tr.tap:hover td { background: rgba(255,255,255,.05); }
.sc-sub { margin: -6px 0 14px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.sc-lineup { border-radius: 6px; padding: 10px; margin-bottom: 16px; }
.sc-lineup .slot { margin: 0 0 5px; min-height: 46px; grid-template-columns: 54px 1fr auto; }
.sc-lineup .slot .s { font-size: 19px; } .sc-lineup .slot .s.sm { font-size: 15px; }
.sc-lineup .slot .p { padding: 6px 0; } .sc-lineup .slot .nm { font-size: 15px; gap: 6px; } .sc-lineup .slot .meta { font-size: 12px; }
.sc-lineup .slot .pt { font-size: 22px; padding: 0 12px; }
.sc-acc { white-space: nowrap; }
.sc-lineup .slot:last-child { margin-bottom: 0; }
.sc-actions { margin-bottom: 8px; }
.sc-actions .btn { flex: 1; }
.turf-total { margin: 4px 22px 0; text-align: right; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile:nth-child(3) { border-right: 0; }
  .tile:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .pgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .h2h-body { grid-template-columns: 1fr 1fr; padding: 16px; }
  .h2h-mid { grid-column: 1 / -1; order: -1; max-width: none; font-size: 24px; }
  .h2h-side .score { font-size: 40px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { border-right: 1px solid var(--line-2) !important; border-bottom: 1px solid var(--line-2); }
  .tile:nth-child(2n) { border-right: 0 !important; }
  .tile b { font-size: 32px; }
  .gitem { flex-direction: column; align-items: flex-start; }
}
.prow .usage { display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--ink); background: #EEF2F7; padding: 2px 8px; border-radius: 3px; }
.slot.ghost { cursor: default; }

/* ===== points first, record as a badge ===== */
.season-badge { display: inline-block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 18px; line-height: 1; padding: 6px 20px 6px 11px; background: var(--yel); color: var(--on-yel); clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); white-space: nowrap; }
.season-badge.sm { font-size: 14px; padding: 3px 14px 3px 8px; }
.season-badge.perfect { background: var(--go); color: #fff; }
.mhead { grid-template-columns: 1fr auto; align-items: end; }
.mmain .who { font-weight: 600; font-size: 14.5px; color: #A9B7CB; margin-bottom: 8px; }
.mmain .board { display: inline-block; padding: 10px 20px 12px; }
.mmain .bulbs { font-size: clamp(56px, 9vw, 104px); }
.badge-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.badge-row .verdict-line { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; color: #DDE4EE; }
.mside.perf .who:last-child { margin-top: 6px; color: var(--yel); }
.lb td.pts { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; white-space: nowrap; }
.lb td.pts .season-badge { margin-left: 8px; vertical-align: 3px; }
.h2h-side .rec { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.h2h-side.r .rec { justify-content: flex-end; }

/* share pop-up */
.share-pop { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 22px; align-items: start; }
.share-pop img { width: 100%; border-radius: 6px; box-shadow: 0 16px 36px -14px rgba(11,18,32,.5); }
.share-opts { display: grid; gap: 12px; }
.share-opts .btn.big { width: 100%; }
.share-opts .hint { margin-top: -4px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-app { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13px; padding: 12px 4px 10px; border-radius: 6px; background: #F4F6FA; text-align: center; }
.share-app::before { content: ""; width: 40px; height: 40px; border-radius: 12px; background: var(--ink-3) center / 22px no-repeat; }
.share-app:hover { background: #E9EEF5; }
.share-app.sms::before { background-color: #34C759; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 2.4 1.3 4.5 3.4 6L4.5 21l4.2-2.2c1 .3 2.1.4 3.3.4 5.5 0 10-3.6 10-8.1S17.5 3 12 3z'/%3E%3C/svg%3E"); }
.share-app.wa::before { background-color: #25D366; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.4 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.7-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.4z'/%3E%3C/svg%3E"); }
.share-app.x::before { background-color: #0B1220; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.8 3h3.1l-6.8 7.7L22 21h-6.2l-4.9-6.4L5.3 21H2.2l7.2-8.3L1.8 3h6.4l4.4 5.8L17.8 3zm-1.1 16.2h1.7L7.3 4.7H5.5l11.2 14.5z'/%3E%3C/svg%3E"); }
.share-app.copy::before { background-color: var(--wr); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E"); }
.share-card img { cursor: pointer; }
@media (max-width: 640px) {
  .mhead { grid-template-columns: 1fr; }
  .mside.perf { text-align: left; }
  .share-pop { grid-template-columns: 1fr; }
  .share-pop img { max-width: 220px; margin: 0 auto; display: block; }
}

/* reroll bar under the team banner */
.rbar { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow); }
.rbar.none { display: block; padding: 11px 20px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.rseg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px 10px 20px; }
.rseg + .rseg { border-left: 1px solid var(--line-2); }
.rseg .rk { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--ink-3); }
.rseg b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rseg .btn { padding: 7px 12px; font-size: 15px; gap: 6px; }
.rseg .btn i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--yel); color: var(--on-yel); font-size: 13px; }
.rseg .btn:disabled i { background: var(--line); }
@media (max-width: 640px) {
  .rseg { grid-template-columns: 1fr auto; padding: 9px 12px; gap: 4px 8px; }
  .rseg .rk { grid-column: 1; }
  .rseg b { grid-column: 1; grid-row: 2; font-size: 14px; }
  .rseg .btn { grid-column: 2; grid-row: 1 / 3; padding: 7px 10px; font-size: 14px; }
}
.rseg { grid-template-columns: 1fr auto; }
.rseg .rk { font-family: var(--body); font-weight: 600; font-size: 13.5px; color: var(--ink-2); line-height: 1.25; }
@media (max-width: 640px) {
  .rseg { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; }
  .rseg .rk { grid-column: 1; grid-row: 1; font-size: 12.5px; }
  .rseg .btn { grid-column: 1; grid-row: 2; width: 100%; }
}

/* ===== phone game layout: pinned score + lineup chips ===== */
.mbar { display: none; }
.list h4.filled-pos { display: flex; justify-content: space-between; color: #A3AFBF; }
.list h4.filled-pos span { font-family: var(--body); font-weight: 600; font-size: 13px; }
@media (max-width: 760px) {
  .mbar { display: block; position: sticky; top: 0; z-index: 15; margin: 0 -20px; padding: 8px 12px 10px; background: var(--navy); color: #fff; box-shadow: 0 8px 18px -8px rgba(11,18,32,.5); }
  .mbar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: var(--yel); }
  .mbar-top { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: #A9B7CB; margin-bottom: 8px; }
  .mbar-top b { color: #fff; }
  .mb-pts b { font-family: var(--dots); font-weight: 900; font-size: 24px; color: var(--yel); text-shadow: 0 0 8px rgba(255,190,0,.5); }
  .mb-grid { margin-left: auto; display: flex; gap: 3px; }
  .mb-grid i { width: 14px; height: 8px; background: #24364F; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
  .mb-grid i.best { background: var(--go); } .mb-grid i.close { background: var(--close); } .mb-grid i.miss { background: var(--miss); } .mb-grid i.now { background: var(--yel); }
  .chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .chip-s { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 4px 2px; border-radius: 4px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); text-align: center; line-height: 1.05; color: #fff; }
  .chip-s .cs { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 14px; }
  .chip-s .cn { font-size: 10px; font-weight: 600; color: #8FA0B6; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
  .chip-s .cp { font-family: var(--display); font-weight: 800; font-size: 13px; margin-top: 1px; }
  .chip-s.f { background: #fff; color: var(--ink); box-shadow: inset 0 3px 0 var(--c); }
  .chip-s.f .cn { color: var(--ink-2); }
  .chip-s.t { background: rgba(255,217,61,.22); box-shadow: inset 0 0 0 2px var(--yel); animation: glow 1.4s ease-in-out infinite; }
  .chip-s.t .cn { color: var(--yel); }
  .scorebar, .play > .lineup { display: none !important; }
  .play { margin-top: 12px; }
  .chy .slab { padding: 10px 50px 9px 16px; gap: 10px; align-items: baseline; flex-wrap: nowrap; }
  .chy .yr { font-size: 34px; }
  .chy .tn { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chy .strip { height: 5px; }
  .list .sub { display: none; }
  .list h4 { padding: 7px 14px 5px; font-size: 14px; }
  .prow { padding: 7px 12px; gap: 10px; grid-template-columns: 36px 1fr auto auto; }
  .prow .face { width: 36px; height: 36px; font-size: 12px; }
  .prow .nm { font-size: 15.5px; }
  .prow .usage { font-size: 12px; padding: 1px 6px; }
  .prow .go { padding: 5px 16px 5px 11px; font-size: 15px; }
  .prow .pos { min-width: 38px; font-size: 13px; height: 22px; }
  .rseg .rk { display: none; }
  .rseg { padding: 8px 10px; }
  .rseg .btn { padding: 6px 8px; }
}
.hero h1 { font-size: clamp(54px, 7vw, 100px); }
.dream-rec .bulbs { white-space: nowrap; }
@media (max-width: 640px) { .dream-rec .bulbs { font-size: 34px; } .dream-rec .tot b { font-size: 30px; } }

/* slot-machine roll */
.chy.enter .slab, .chy.enter .strip { animation: none; }
.chy.spinning .yr, .chy.spinning .tn { filter: blur(.6px); opacity: .92; }
.chy.spinning .slab { transition: background-color .05s; }
.chy.landed .slab { animation: landbump .45s cubic-bezier(.2, 1.4, .4, 1); }
.chy.landed .strip { animation: wipe .5s cubic-bezier(.2,.8,.2,1); }
@keyframes landbump { 0% { transform: scale(1.03); } 100% { transform: scale(1); } }
.list { transition: opacity .25s; }
.list.spinning { opacity: .25; pointer-events: none; }
.rbar { transition: opacity .25s; }
.chy.spinning ~ .rbar { opacity: .4; pointer-events: none; }
.list { transition: opacity .3s, transform .3s; }
.list.spinning { opacity: 0; transform: translateY(10px); }

/* slot-machine reels (v2) */
.chy.spinning .yr, .chy.spinning .tn { filter: none; opacity: 1; }
.chy .slab { transition: background-color .35s; }
.reel { display: inline-block; height: 1em; line-height: 1em; overflow: hidden; vertical-align: bottom; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.reel-strip { display: flex; flex-direction: column; will-change: transform; }
.reel-strip span { display: block; height: 1em; line-height: 1em; white-space: nowrap; }
.chy .yr .reel { height: 1em; }
.rbar.spinning { opacity: .35; pointer-events: none; }

/* ===== past Dailies + daily stats ===== */
.archive-bar { display: block; width: 100%; text-align: left; margin: 18px 0 0; padding: 14px 18px; background: var(--surface); border-radius: 6px; box-shadow: inset 5px 0 0 var(--yel), var(--shadow); font-size: 15px; color: var(--ink-2); }
.archive-bar b { color: var(--ink); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 19px; margin-right: 6px; }
.archive-bar:hover { background: #FBFCFE; }
.ar-lede { margin: 16px 20px 6px; color: var(--ink-2); max-width: 70ch; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 14px 20px 20px; }
.ar-day { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 6px; background: #F4F6FA; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .12s, box-shadow .12s; }
.ar-day:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ar-day.done { background: #fff; box-shadow: inset 4px 0 0 var(--go), inset 0 0 0 1.5px var(--line); }
.ar-n { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1; }
.ar-d { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.ar-res { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.ar-res b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; }
.ar-p { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.ar-go { align-self: flex-start; margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 15px; background: var(--solid); color: #fff; padding: 3px 18px 3px 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }

.dstats { margin-top: 22px; }
.ds-top { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding: 20px 24px 10px; }
.ds-beat b { display: block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 72px; line-height: .9; }
.ds-beat span { display: block; max-width: 18ch; color: var(--ink-2); font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.ds-hist { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; align-items: end; height: 120px; }
.hb { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.hb i { display: block; width: 100%; min-height: 3px; background: #D5DDE8; border-radius: 3px 3px 0 0; }
.hb span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.hb.me i { background: var(--yel); box-shadow: 0 0 0 2px var(--ink) inset; }
.hb.me span { color: var(--ink); }
.hcap { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.ds-rare { margin: 6px 24px 0; padding: 10px 14px; background: #FFF6CC; border-radius: 4px; font-size: 15px; box-shadow: inset 4px 0 0 var(--yel); }
.ds-rolls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; padding: 18px 24px 22px; }
.ds-roll { padding-left: 12px; box-shadow: inset 4px 0 0 var(--c); }
.ds-team { font-size: 14.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.ds-team b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 18px; color: var(--ink); margin-right: 4px; }
.ds-picks { display: grid; gap: 4px; }
.ds-bar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border-radius: 3px; background: #F1F4F8; font-size: 14px; overflow: hidden; }
.ds-bar i { position: absolute; inset: 0 auto 0 0; background: #DCE4EF; }
.ds-bar span, .ds-bar em { position: relative; font-style: normal; font-weight: 600; }
.ds-bar em { font-weight: 800; }
.ds-bar.mine i { background: var(--yel); }
.ds-bar.mine span::after { content: " ✓"; }
@media (max-width: 760px) {
  .ds-top { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .ds-beat b { font-size: 56px; }
  .ds-rolls { grid-template-columns: 1fr; padding: 14px 16px 18px; }
  .ds-rare { margin: 6px 16px 0; }
  .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px 16px; }
}

/* ===== ranked ladder ===== */
.tier-badge { display: inline-block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 20px; line-height: 1; padding: 7px 22px 7px 12px; color: #fff; background: var(--tc, #7B889C); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); white-space: nowrap; vertical-align: middle; }
.tier-badge.sm { font-size: 14px; padding: 3px 14px 3px 8px; }
.t-rookie { --tc: #7B889C; }
.t-starter { --tc: #10A37F; }
.t-probowl { --tc: #2F6FEB; }
.t-allpro { --tc: #7C4DDB; }
.t-mvp { --tc: linear-gradient(90deg, #C98A00, #F2B705); }
.t-mvp, .t-hof { background: var(--tc); }
.t-hof { --tc: linear-gradient(90deg, #0B1220, #2A3A55); color: var(--yel); box-shadow: inset 0 -3px 0 var(--yel); }
.srn { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 16px; color: var(--ink); margin-left: 6px; }
.srp { margin-top: 22px; }
.sr-banner { padding: 12px 24px; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 22px; }
.sr-banner.up { background: #FFF3BF; box-shadow: inset 5px 0 0 var(--yel); }
.sr-banner.down { background: #FDE2E3; color: #7A1D21; box-shadow: inset 5px 0 0 var(--miss); }
.sr-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 18px 24px 22px; }
.sr-tier { display: flex; flex-direction: column; gap: 8px; }
.sr-num { font-weight: 700; color: var(--ink-2); }
.sr-num b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 44px; color: var(--ink); line-height: 1; }
.sr-delta { display: inline-block; margin-left: 8px; font-family: var(--display); font-weight: 900; font-size: 20px; padding: 2px 10px; border-radius: 3px; }
.sr-delta.up { background: #DDF6EA; color: var(--go-ink); }
.sr-delta.down { background: #FDE2E3; color: #9B1C1F; }
.sr-track { height: 14px; background: var(--line-2); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); overflow: hidden; }
.sr-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--yel), var(--bulb)); }
.sr-cap { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-top: 6px; }
.tile small .tier-badge { margin-right: 6px; }
@media (max-width: 640px) {
  .sr-body { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .sr-banner { padding: 10px 16px; font-size: 19px; }
}

/* tier colors: bronze, silver, gold, purple, diamond, red */
.t-rookie { --tc: linear-gradient(90deg, #8C5326, #C27C45); color: #fff; box-shadow: none; }
.t-starter { --tc: linear-gradient(90deg, #8C96A3, #C9D1DB); color: #0B1220; box-shadow: none; }
.t-probowl { --tc: linear-gradient(90deg, #C99400, #F5C542); color: #0B1220; box-shadow: none; }
.t-allpro { --tc: linear-gradient(90deg, #5B2DB8, #8E5CF0); color: #fff; box-shadow: none; }
.t-mvp { --tc: linear-gradient(90deg, #1BA9D6, #8EE6FF); color: #0B1220; box-shadow: none; }
.t-hof { --tc: linear-gradient(90deg, #A3141B, #E5383B); color: #fff; box-shadow: inset 0 -3px 0 var(--yel); }
.tier-badge { background: var(--tc); }
.ph .aside .ph-sr { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 20px; color: var(--yel); }
.ph h3 .ph-sr { font-size: .55em; color: var(--yel); margin-left: 6px; vertical-align: 3px; white-space: nowrap; }
/* tier icons */
.tier-badge { display: inline-flex; align-items: center; gap: 7px; }
.tier-badge svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; margin-left: -1px; }
.tier-badge.sm { gap: 5px; }
.t-rookie, .t-allpro, .t-hof { --tb-bg: #7a4520; }
.t-allpro { --tb-bg: #6a3bd0; }
.t-hof { --tb-bg: #c2242b; }
.t-starter { --tb-bg: #b4bdc8; }
.t-probowl { --tb-bg: #e2b02a; }
.t-mvp { --tb-bg: #4cc6ea; }

/* themed Dailies */
.theme-tag { display: inline-block; margin: 14px 22px 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 15px; padding: 3px 16px 3px 9px; background: var(--yel); color: var(--on-yel); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.mode .theme-tag + p { margin-top: 10px; }
.theme-inline { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 16px; color: var(--on-yel); background: var(--yel); padding: 1px 12px 1px 7px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); margin-right: 6px; }
.ar-theme { align-self: flex-start; margin-top: 4px; font-size: 11.5px; font-weight: 700; background: var(--yel); color: var(--on-yel); padding: 1px 7px; border-radius: 3px; }

/* app install + reminders */
.navbtn.app { background: var(--yel); color: var(--on-yel); }
.remind { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px 20px; background: var(--surface); border-radius: 6px; box-shadow: inset 5px 0 0 var(--yel), var(--shadow); }
.remind.in { margin: 0; box-shadow: inset 5px 0 0 var(--yel); background: #FBFCFE; }
.remind b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 20px; margin-right: 6px; }
.remind span { color: var(--ink-2); font-size: 15px; }
.remind .btn { flex: none; }
@media (max-width: 640px) { .remind { flex-direction: column; align-items: stretch; } .navbtn.app ~ .navbtn[data-how], .navbtn.exit ~ .navbtn[data-how] { display: none; } }

/* account dropdown */
.acct-menu { position: fixed; z-index: 60; min-width: 210px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 12px 32px rgba(11,18,32,.28), 0 0 0 1px rgba(11,18,32,.08); padding: 6px; display: grid; animation: am-in .14s ease-out; }
.acct-menu .am-head { padding: 8px 12px 10px; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-menu .am-head b { display: block; font-size: 15px; color: var(--ink); margin-top: 2px; }
.acct-menu button { text-align: left; padding: 10px 12px; border-radius: 5px; font-weight: 600; font-size: 14.5px; color: var(--ink); background: none; }
.acct-menu button:hover, .acct-menu button:focus-visible { background: #F1F4F8; }
.acct-menu .am-out { color: #C62828; }
@keyframes am-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .acct-menu { animation: none; } }

/* ================= dark mode =================
   html[data-theme="dark"] is set before first paint by the inline script in index.html
   (follows the phone/computer setting unless the player picks Light or Dark). */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #070D17;
  --surface: #111B2A;
  --line: #26354B;
  --line-2: #1B2839;
  --ink: #E9EEF5;
  --ink-2: #B3BFCF;
  --ink-3: #8393A9;
  --navy: #0B1626;
  --navy-2: #1B2D47;
  --solid: #24385A;
  --go-ink: #4ADE9B;
  --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 14px 34px -18px rgba(0,0,0,.8);
}
html[data-theme="dark"] .appbar { box-shadow: 0 1px 0 rgba(255,255,255,.05); }
html[data-theme="dark"] .tabs { background: #0E1724; }
html[data-theme="dark"] .list h4 { color: #93A3B9; background: #0E1724; }
html[data-theme="dark"] .prow:hover:not(:disabled) { background: #16233A; }
html[data-theme="dark"] .prow[aria-pressed="true"] { background: rgba(255,217,61,.14); }
html[data-theme="dark"] .prow .usage { background: #1B2A40; }
html[data-theme="dark"] .tier.elite, html[data-theme="dark"] .verdict.close, html[data-theme="dark"] .g.close { background: rgba(255,200,40,.16); color: #FFD27A; }
html[data-theme="dark"] .tier.starter, html[data-theme="dark"] .verdict.best, html[data-theme="dark"] .g.best, html[data-theme="dark"] .sr-delta.up { background: rgba(18,183,106,.18); color: #4ADE9B; }
html[data-theme="dark"] .tier.flex { background: rgba(47,111,235,.2); color: #8FB2FF; }
html[data-theme="dark"] .tier.depth { background: #1B2A40; color: var(--ink-3); }
html[data-theme="dark"] .verdict.miss, html[data-theme="dark"] .g.miss, html[data-theme="dark"] .sr-delta.down { background: rgba(229,56,59,.18); color: #FF8A8C; }
html[data-theme="dark"] .sr-banner.up { background: rgba(255,217,61,.12); }
html[data-theme="dark"] .sr-banner.down { background: rgba(229,56,59,.14); color: #FFB3B4; }
html[data-theme="dark"] .ds-rare { background: rgba(255,217,61,.12); }
html[data-theme="dark"] .ds-bar, html[data-theme="dark"] .day, html[data-theme="dark"] .chip, html[data-theme="dark"] .acct-menu button:hover, html[data-theme="dark"] .acct-menu button:focus-visible { background: #1A273B; }
html[data-theme="dark"] .day.played { background: #22324A; }
html[data-theme="dark"] .ch-card, html[data-theme="dark"] .gitem, html[data-theme="dark"] .ar-day, html[data-theme="dark"] .share-app { background: #16233A; }
html[data-theme="dark"] .share-app:hover { background: #1E2E48; }
html[data-theme="dark"] .ar-day.done { background: var(--surface); }
html[data-theme="dark"] .archive-bar:hover, html[data-theme="dark"] .remind.in { background: #142034; }
html[data-theme="dark"] .btn.google { color: var(--ink); }
html[data-theme="dark"] .btn.google:hover:not(:disabled) { background: #16233A; }
html[data-theme="dark"] .btn.yel:hover:not(:disabled) { background: #FFE566; }
html[data-theme="dark"] .acct-menu { background: var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="dark"] .acct-menu .am-out { color: #FF8A8C; }
html[data-theme="dark"] .sheet-wrap { background: rgba(0,0,0,.6); }
html[data-theme="dark"] .card, html[data-theme="dark"] .sheet { box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); }
/* the white "filled" lineup cards on the turf stay light (they read like stickers on the field) */
html[data-theme="dark"] .slot.f, html[data-theme="dark"] .chip-s.f, html[data-theme="dark"] .matchup .mrow { color: #0B1220; }
html[data-theme="dark"] .matchup .pctbar { background: var(--surface); }
html[data-theme="dark"] .stack input { background: #0C1522; }
html[data-theme="dark"] .stack input::placeholder { color: #5F6F86; }
html[data-theme="dark"] .scorebar .steps7 i, html[data-theme="dark"] .mb-grid i { background: #2A3D5C; }

.theme-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 6px 10px; border-radius: 6px; }
.theme-btn:hover { background: var(--line-2); color: var(--ink); }
.site-foot { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 28px 0 22px; font-size: 13px; }
.site-foot a { color: var(--ink-3); }
html[data-theme="dark"] .hero h1 .hl { background: none; color: var(--yel); }

/* streak + friends strip under the hero buttons */
.pulse { margin-top: 22px; display: grid; gap: 12px; max-width: 760px; }
.pl-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; color: var(--ink-2); }
.pl-streak b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px; color: var(--ink); margin-right: 2px; }
.pl-freeze { font-size: 13.5px; font-weight: 600; color: #2F6FEB; background: rgba(47,111,235,.1); padding: 4px 10px; border-radius: 999px; }
html[data-theme="dark"] .pl-freeze { color: #8FB2FF; background: rgba(47,111,235,.18); }
.pl-friends { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); padding: 12px 14px 14px; }
.pl-fh { font-family: var(--display); font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pl-fh span { font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--ink-3); }
.pl-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pl-row::-webkit-scrollbar { display: none; }
.pl-f { flex: 0 0 auto; display: flex; flex-direction: column; padding: 7px 12px 8px; border-radius: 5px; background: var(--line-2); box-shadow: inset 3px 0 0 var(--go); min-width: 96px; }
.pl-f b { font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-f i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.pl-f.idle { box-shadow: inset 3px 0 0 var(--line); opacity: .8; }
.pl-f.you { box-shadow: inset 3px 0 0 var(--yel); }
.pl-invite { text-align: left; padding: 12px 14px; border-radius: 6px; background: var(--surface); box-shadow: var(--shadow), inset 4px 0 0 var(--yel); font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.pl-invite:hover { color: var(--ink); }
.hero > div, .pulse, .pl-friends { min-width: 0; }
@media (max-width: 640px) {
  .lb th, .lb td { padding-left: 10px; padding-right: 10px; }
  .lb td.rk { width: 40px; }
}

/* results: share right under the score, details below */
.matchup .quick-share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 22px 20px; background: #fff; border-radius: 0 0 6px 6px; }
html[data-theme="dark"] .matchup .quick-share { background: var(--surface); }
.matchup .quick-share .btn { width: 100%; }
.matchup.picks .ph { border-radius: 6px 6px 0 0; }
.matchup.picks .callouts { margin-top: 14px; }
.after .share-side h3 { font-size: 30px; }
@media (max-width: 640px) { .matchup .quick-share { grid-template-columns: 1fr; padding: 4px 16px 16px; } }
.prow .gms { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.prow .usage { white-space: nowrap; }
.play > section, .play > aside, .chy .slab, .chy .tn { min-width: 0; }
/* no headshots: player rows drop the photo column; the reveal card shows a position tile */
.prow, .prow { grid-template-columns: 1fr auto auto; }
@media (max-width: 640px) { .prow { grid-template-columns: 1fr auto auto; } }
.face.mark { background: #fff; color: #0B1220; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: -.01em; }

/* video share */
#makevideo { width: 100%; max-width: 380px; margin: 0 0 10px; gap: 10px; }
@media (max-width: 900px) { #makevideo { margin-left: auto; margin-right: auto; } }
.vid-make .track { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.vid-make .fill { height: 100%; width: 0; background: var(--yel); transition: width .2s linear; }
.vid-wrap { display: grid; gap: 16px; }
.vid-prev { width: 100%; max-height: 60vh; aspect-ratio: 9 / 16; object-fit: contain; background: #0D1A2B; border-radius: 8px; }
.vid-acts { display: grid; gap: 10px; }
.vid-acts .btn { width: 100%; }
@media (max-width: 640px) {
  .cal { gap: 4px; padding: 12px; }
  .day { padding: 4px 5px; font-size: 11px; min-width: 0; }
  .day b { font-size: 14px; }
}
html[data-theme="dark"] .day.good { background: rgba(18,183,106,.22); }
html[data-theme="dark"] .day.hot { background: var(--yel); color: #5A4A16; }
html[data-theme="dark"] .day.hot b { color: var(--on-yel); }
/* standings on phones: anything wider than the screen scrolls inside the panel instead of being cut off */
#lb { overflow-x: auto; }
.show-sm { display: none; }
@media (max-width: 640px) { .lb .show-sm { display: block; margin-top: 5px; } .lb td.nm { line-height: 1.2; } }
/* podium: gold, silver, bronze fades on the top three rows */
.lb tbody tr:nth-child(2) { background: linear-gradient(90deg, rgba(168,178,191,.38), transparent 60%); }
.lb tbody tr:nth-child(3) { background: linear-gradient(90deg, rgba(196,128,72,.30), transparent 60%); }
html[data-theme="dark"] .lb tbody tr:nth-child(2) { background: linear-gradient(90deg, rgba(190,200,214,.22), transparent 60%); }
html[data-theme="dark"] .lb tbody tr:nth-child(3) { background: linear-gradient(90deg, rgba(205,127,50,.24), transparent 60%); }
.matchup .quick-share .again-row { grid-column: 1 / -1; }

/* big screens: scale the whole site down a notch so more fits without scrolling */
@media (min-width: 1100px) {
  html { zoom: .82; }
  .wrap { max-width: 1400px; }
  body { min-height: calc(100vh / .82); }
}
.sheet:focus { outline: none; }

/* computer: lineup stays in view while you scroll the roster */
@media (min-width: 961px) {
  .play > .lineup { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
@media (min-width: 1100px) {
  .play > .lineup { max-height: calc(100vh / .82 - 32px); }
}
/* reveal card while the server answers: points pulse, verdict is a quiet placeholder */
.card-pts .big.pending { opacity: .55; }
.verdict.pending { background: var(--line-2); min-height: 22px; }
.card #next:disabled { opacity: .5; cursor: default; }

/* small phones: long team names wrap instead of getting cut off; header never pushes past the edge */
@media (max-width: 760px) {
  .chy .slab { align-items: center; }
  .chy .tn { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.02; font-size: clamp(16px, 5.2vw, 19px); }
}
.navbtn.user { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .appbar .wrap { gap: 8px; }
  .nav { gap: 6px; min-width: 0; }
  .wordmark { font-size: 23px; }
  .navbtn { padding: 7px 9px; font-size: 13px; }
  .navbtn.user { max-width: 128px; }
}
@media (max-width: 340px) { .navbtn.user { max-width: 92px; } }
html[data-theme="dark"] .matchup .mrow .yr b { color: #0B1220; }
@media (max-width: 380px) { .chy .tn { font-size: 15.5px; } .chy .slab { padding-right: 46px; } }
/* forms in pop-ups: keep the column to the pop-up's width so Join/Create buttons never get pushed off-screen */
.stack { grid-template-columns: minmax(0, 1fr); }
.row2 { min-width: 0; }
#toast { width: max-content; text-align: center; }
.share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .share-pop { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .share-grid { gap: 6px; } .share-app span { font-size: 11px; letter-spacing: -.01em; } }

/* first-game guide */
.guide { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 0 0 0; padding: 12px 14px; background: #FFF6CC; border-left: 5px solid var(--yel); color: #3A2F00; font-size: 14.5px; line-height: 1.4; animation: rise .3s cubic-bezier(.2,.9,.3,1); }
.guide p { margin: 0; flex: 1 1 200px; }
.guide .g-lbl { flex-basis: 100%; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A6A00; }
.guide .g-x { margin-left: auto; align-self: center; padding: 6px 12px; border-radius: 4px; background: #0B1220; color: #fff; font-weight: 700; font-size: 13px; }
html[data-theme="dark"] .guide { background: #2B2610; color: #F4E7B0; }
html[data-theme="dark"] .guide .g-lbl { color: var(--yel); }
html[data-theme="dark"] .guide .g-x { background: var(--yel); color: #0B1220; }
.g-card { margin: 10px 18px 0; font-size: 13.5px; color: var(--ink-2); text-align: center; line-height: 1.5; }
.g-card .gd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin: 0 2px; }
.g-card .gd.best { background: var(--go); } .g-card .gd.close { background: var(--close); } .g-card .gd.miss { background: var(--miss); }
html[data-theme="dark"] .matchup .mrow .yr { color: #56667D; }

/* owner stats page */
.stats-page { padding-top: 18px; padding-bottom: 50px; display: grid; gap: 18px; }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-top: 1px solid var(--line-2); }
.st-tiles div { background: var(--surface); padding: 14px 18px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.st-tiles b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 30px; color: var(--ink); line-height: 1.1; }
.st-funnel { padding: 16px 20px 18px; }
.st-funnel h3 { margin: 0 0 10px; font-size: 15px; }
.st-bar { display: grid; grid-template-columns: 56px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; margin: 5px 0; }
.st-bar i { display: block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--yel) var(--w), var(--line-2) var(--w)); }
.st-bar b { text-align: right; }
.st-note { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; }
.st-table td, .st-table th { white-space: nowrap; }
@media (max-width: 640px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-wrap { overflow-x: auto; }
.lb.st-table tbody tr, html[data-theme="dark"] .lb.st-table tbody tr { background: none; }
.st-funnel { max-width: 720px; }
/* social links in the footer */
.site-foot.social { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: -6px; }
.site-foot.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); text-decoration: none; }
.site-foot.social a:hover { background: var(--solid); color: #fff; }
.site-foot.social svg { width: 16px; height: 16px; fill: currentColor; }
.site-foot.social .handle { font-size: 13px; font-weight: 700; color: var(--ink-3); }
