:root {
  --orange: #FF5F05;
  --orange-deep: #E84A27;
  --navy: #13294B;
  --navy-2: #1d3a66;
  --navy-3: #0b1a33;
  --cream: #fff7ef;
  --wood: #f3d9b1;
  --wood-2: #e9c48f;
  --ink: #13294B;
  --muted: #5b6b85;
  --win: #1f9d55;
  --loss: #d64545;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(11, 26, 51, .14);
  --g-S: linear-gradient(135deg, #ffd700, #ff9a00 60%, #ff5f05);
  --g-A: #1f9d55;
  --g-B: #2f80c8;
  --g-C: #d9a400;
  --g-D: #e8771f;
  --g-F: #d64545;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  /* hardwood floor */
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, var(--wood) 0 22px, var(--wood-2) 22px 23px);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 120%, var(--navy-2), var(--navy) 55%, var(--navy-3));
  color: #fff;
  padding: 28px 16px 22px;
  text-align: center;
  overflow: hidden;
  border-bottom: 6px solid var(--orange);
}
.court-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background:
    radial-gradient(circle at 50% 100%, transparent 0 118px, #fff 118px 121px, transparent 121px),
    radial-gradient(circle at 50% 100%, transparent 0 300px, #fff 300px 303px, transparent 303px);
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.ball { font-size: 44px; display: inline-block; animation: bounce 1.6s cubic-bezier(.3,.0,.5,1) infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }
h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 11vw, 72px);
  letter-spacing: 2px;
  line-height: .95;
  margin: 4px 0 6px;
  text-shadow: 3px 3px 0 var(--orange);
}
h1 span { color: var(--orange); text-shadow: 3px 3px 0 #000; }
.tag { margin: 0 0 16px; opacity: .85; font-size: 14px; }

.scoreboard {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: #000; border: 3px solid #333; border-radius: 12px; padding: 10px;
  box-shadow: inset 0 0 20px rgba(255,95,5,.25);
}
.sb-cell { min-width: 0; }
.sb-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #9fb3d1; }
.sb-val {
  font-family: "Bebas Neue", monospace; font-size: clamp(24px, 7vw, 36px); color: var(--orange);
  text-shadow: 0 0 8px rgba(255,95,5,.8); line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-sub { font-size: 11px; color: #ccd; line-height: 1.3; }

/* ---------- Tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 4px;
  padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--navy); box-shadow: 0 -4px 14px rgba(0,0,0,.3);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto; min-width: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; color: #cfdbef; border: 0; border-radius: 10px;
  padding: 6px 10px; font: 600 12px Inter, sans-serif; cursor: pointer;
  font-size: 18px;
}
.tabs button span { font-size: 11px; }
.tabs button[aria-selected="true"] { background: var(--orange); color: #fff; }

main { max-width: 900px; margin: 0 auto; padding: 16px; }
.panel { display: none; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h2 {
  font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 1px;
  margin: 8px 0 12px; color: var(--navy);
}
h2 small { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 16px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; gap: 12px; }
.lb-row {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  border-left: 8px solid var(--navy);
}
.lb-row.r1 { border-left-color: var(--orange); background: linear-gradient(90deg, #fff1e6, #fff 60%); }
.lb-rank { font-family: "Bebas Neue"; font-size: 40px; text-align: center; line-height: 1; }
.lb-name { font-weight: 800; font-size: 20px; }
.lb-detail { color: var(--muted); font-size: 12px; }
.lb-pts { font-family: "Bebas Neue"; font-size: 42px; color: var(--orange-deep); line-height: 1; text-align: right; }
.lb-pts small { display: block; font-family: Inter; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.bar { height: 6px; border-radius: 3px; background: #e7ecf4; margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--orange)); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: "Bebas Neue"; font-size: 30px; color: var(--orange); font-weight: 400; line-height: 1.1; }
.stat span { font-size: 12px; opacity: .85; }

/* ---------- Pick chips ---------- */
.pick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font: 800 13px Inter; color: var(--navy); background: #e7ecf4; border: 2px solid transparent;
}
.pick.right { background: var(--win); color: #fff; }
.pick.wrong { background: var(--loss); color: #fff; opacity: .9; text-decoration: line-through; }
.result-pill { display: inline-block; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.result-pill.W { background: var(--win); color: #fff; }
.result-pill.L { background: var(--loss); color: #fff; }
.result-pill.tbd { background: #e7ecf4; color: var(--muted); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); -webkit-overflow-scrolling: touch; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th, td { padding: 8px 6px; text-align: center; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-weight: 600; font-size: 12px; z-index: 2; }
tbody tr:nth-child(even) td { background: #fafbfd; }
td.game { text-align: left; white-space: normal; min-width: 104px; }
@media (max-width: 420px) {
  th, td { padding: 7px 2px; }
  thead th { font-size: 11px; }
  .result-pill { font-size: 10px; padding: 3px 5px; }
  .pick { width: 25px; height: 25px; font-size: 12px; }
  td.game { min-width: 86px; }
  td.game .opp { font-size: 12px; }
  td.game .meta { font-size: 10px; }
}
td.game .opp { font-weight: 700; }
td.game .meta { color: var(--muted); font-size: 11px; }
tr.next td { box-shadow: inset 0 0 0 9999px rgba(255,95,5,.07); }
tfoot td { font-weight: 800; background: #fff1e6; }

/* grades matrix */
.grades-table th:first-child, .grades-table td:first-child {
  position: sticky; left: 0; z-index: 3; text-align: left; background: #fff; box-shadow: 2px 0 4px rgba(0,0,0,.06);
}
.grades-table thead th:first-child { background: var(--navy); z-index: 4; }
.grades-table tbody tr:nth-child(even) td:first-child { background: #fafbfd; }
.grades-table th.gh { min-width: 54px; font-size: 11px; line-height: 1.2; }
.grades-table th.gh .res { display: block; font-weight: 800; }
.grades-table th.gh .res.W { color: #7fe0a8; }
.grades-table th.gh .res.L { color: #ff9b9b; }
.grades-table tr.staff td { background: #fff7ef !important; }
.grades-table tr.staff-first td { border-top: 3px solid var(--orange); }

.g {
  display: inline-block; min-width: 34px; padding: 3px 6px; border-radius: 8px;
  font-weight: 800; font-size: 13px; color: #fff; background: #9aa6b8;
}
.g.S { background: var(--g-S); color: #3a1700; box-shadow: 0 0 10px rgba(255,170,0,.7); }
.g.A { background: var(--g-A); }
.g.B { background: var(--g-B); }
.g.C { background: var(--g-C); color: #2b2100; }
.g.D { background: var(--g-D); }
.g.F { background: var(--g-F); }
.g.dnp { background: transparent; color: #a8b2c3; font-weight: 600; font-size: 11px; }
.g.joke { background: #ede7ff; color: #5b3fb3; font-weight: 600; font-size: 11px; white-space: normal; max-width: 110px; }
.g.big { font-size: 22px; min-width: 56px; padding: 6px 10px; border-radius: 12px; font-family: "Bebas Neue"; font-weight: 400; letter-spacing: 1px; }

.avg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.avg-card {
  background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; position: relative; overflow: hidden;
}
.avg-card .num {
  position: absolute; right: -6px; bottom: -14px; font-family: "Bebas Neue"; font-size: 64px; color: rgba(19,41,75,.06);
}
.avg-card .who { font-weight: 800; font-size: 14px; line-height: 1.15; }
.avg-card .sub { font-size: 11px; color: var(--muted); }
.avg-card.staff { background: #fff7ef; }

/* ---------- Game log ---------- */
.log-list { display: grid; gap: 14px; }
.game-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; color: #fff; background: var(--navy);
}
.gc-head.W { background: linear-gradient(90deg, var(--navy), #1b4d3a); }
.gc-head.L { background: linear-gradient(90deg, var(--navy), #5a1f2a); }
.gc-head .opp { font-weight: 800; font-size: 16px; }
.gc-head .date { font-size: 11px; opacity: .8; }
.gc-score { font-family: "Bebas Neue"; font-size: 30px; line-height: 1; text-align: right; white-space: nowrap; }
.gc-score small { display: block; font-family: Inter; font-size: 11px; letter-spacing: 1px; }
.gc-body { padding: 14px 16px; display: grid; gap: 12px; }
.vibes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.vibe { background: #f4f6fa; border-radius: 12px; padding: 10px; min-width: 0; }
.vibe .lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.vibe .val { font-weight: 700; margin-top: 4px; word-wrap: break-word; }
.bev { font-size: 18px; letter-spacing: 1px; }
.mini-grades { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-grades .mg { display: inline-flex; align-items: center; gap: 4px; background: #f4f6fa; border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12px; font-weight: 600; }
.mini-grades .g { min-width: 28px; font-size: 12px; padding: 2px 6px; border-radius: 999px; }
.notes { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; }
.star { font-size: 13px; }
.picks-line { font-size: 12px; color: var(--muted); }
.picks-line b.ok { color: var(--win); }
.picks-line b.no { color: var(--loss); }

details.upcoming { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-top: 16px; }
details.upcoming summary { font-weight: 800; cursor: pointer; }
.up-list { list-style: none; padding: 0; margin: 10px 0 0; }
.up-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e3e8f0; font-size: 14px; }
.up-list li span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }

.empty {
  text-align: center; padding: 30px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty .big { font-size: 48px; }

/* ---------- Questions ---------- */
.q-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.q-head h3 { margin: 0; }
.q-worth { font-size: 11px; color: var(--muted); white-space: nowrap; }
.q-answers { display: grid; gap: 6px; }
.q-ans { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; background: #f4f6fa; border-radius: 10px; padding: 8px 10px; }
.q-ans .who { font-weight: 800; font-size: 13px; }
.q-ans .txt { font-size: 14px; word-break: break-word; }
.q-ans .pts { font-weight: 800; font-size: 12px; color: var(--muted); }
.q-ans .pts.got { color: #fff; background: var(--win); padding: 2px 8px; border-radius: 999px; }
.q-actual { margin-top: 10px; font-size: 13px; }
.q-actual b { color: var(--orange-deep); }
.badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #e7ecf4; color: var(--muted); }
.badge.final { background: var(--navy); color: #fff; }

footer { max-width: 900px; margin: 10px auto 40px; padding: 0 16px; font-size: 12px; color: #5a4630; }
footer .ilfoot { font-family: "Bebas Neue"; font-size: 24px; color: var(--navy); text-align: center; }

@media (min-width: 640px) {
  .tabs { justify-content: center; }
  .tabs button { flex: 0 0 auto; flex-direction: row; gap: 6px; }
  .tabs button span { font-size: 13px; }
  th, td { padding: 9px 10px; }
}

/* ---------- Michigan State fan theme (friendThemes: "msu") ---------- */
:root { --msu: #18453B; --msu-2: #2c6e5c; --msu-light: #e6f0ec; }
.spartan-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font: 800 10px Inter, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  background: var(--msu); color: #fff; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.lb-row.f-msu {
  border-left-color: var(--msu);
  background: repeating-linear-gradient(135deg, var(--msu-light) 0 14px, #fff 14px 28px);
}
.lb-row.f-msu .lb-name { color: var(--msu); }
.lb-row.f-msu .lb-pts { color: var(--msu); }
.lb-row.f-msu .bar > i { background: linear-gradient(90deg, var(--msu), #8fd1b5); }
thead th.f-msu { background: var(--msu); }
td.pc.f-msu { background: var(--msu-light) !important; }
td.pc.f-msu .pick:not(.right):not(.wrong) { background: #fff; color: var(--msu); border-color: var(--msu); }
tfoot td.pc.f-msu { color: var(--msu); }
tr.rival td { background: #f3f8f6 !important; }
tr.rival td:first-child { box-shadow: inset 4px 0 0 var(--msu); }
.fname.f-msu { color: var(--msu); font-weight: 800; }
.q-ans.f-msu { background: var(--msu-light); border-left: 4px solid var(--msu); }
.q-ans.f-msu .who { color: var(--msu); }
.q-ans.f-msu .who::after { content: " 🛡️"; }

.ph { margin: 12px 0 6px; font-size: 14px; }
h2.past { margin-top: 24px; }

.cmp { font-weight: 600; }
.cmp.hit { color: var(--win); font-weight: 800; }
.cmp.miss { color: var(--loss); }
.cmp-table td, .cmp-table th { white-space: normal; }

/* ---------- watermelon corner + Exhibit A ---------- */
.melon-card { background: linear-gradient(135deg, #fff, #f1fbf4); }
.melon-row { display: flex; align-items: center; gap: 14px; }
.melon { width: 130px; flex: 0 0 130px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.melon-pct { font-family: "Bebas Neue", Impact, sans-serif; font-size: 34px; color: #2e7d32; line-height: 1; }
.award { margin-top: 12px; padding: 10px 12px; border: 2px dashed #2e7d32; border-radius: 12px; background: #fff; }
.award-sub { font-size: 11px; color: var(--muted); }
.award-name { font-weight: 800; font-size: 15px; margin-top: 4px; color: #1b5e20; }
.exhibit { border-top: 6px solid #ff3b5c; }
.exhibit .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exhibit img { width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: var(--shadow); }
.exhibit .caption { font-style: italic; margin: 12px 0 0; font-size: 14px; }
@media (max-width: 380px) { .melon-row { flex-direction: column; align-items: flex-start; } }

/* ---------- characters (sports cards) ---------- */
.avatar { flex: 0 0 auto; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.avatar svg, .avatar img { width: 100%; height: 100%; display: block; }
.avatar.on-fire { box-shadow: 0 0 18px rgba(255, 110, 0, .75), var(--shadow); }
.avatar .flames .f2 { transform-origin: 50% 100%; animation: flick 0.8s ease-in-out infinite alternate-reverse; }
@keyframes flick { from { transform: scaleY(1) translateY(0); } to { transform: scaleY(1.09) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .avatar .flames path { animation: none; } }
.lb-row { grid-template-columns: 44px 54px 1fr auto !important; }
.locker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.locker-card { background: #f7f9fc; border-radius: 16px; padding: 12px; text-align: center; }
.locker-card .avatar { margin: 0 auto 8px; }
.locker-name { font-weight: 800; }
.locker-credits { font-size: 22px; font-family: "Bebas Neue", Impact, sans-serif; color: var(--orange-deep); }
.locker-sub { font-size: 12px; color: var(--muted); }
.shop-list { list-style: none; padding: 0; margin: 0; }
.shop-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #e3e8f0; padding: 6px 0; font-size: 14px; }

/* ---------- spotlight: sparkling S grades ---------- */
.g.sparkle { position: relative; overflow: visible; color: #3a1700;
  background: linear-gradient(110deg, #ffd54f 0%, #fff8e1 25%, #ffb300 50%, #fff8e1 75%, #ffd54f 100%);
  background-size: 300% 100%; animation: shimmer 2.2s linear infinite;
  box-shadow: 0 0 12px rgba(255, 193, 7, .95), 0 0 2px #fff inset; }
.g.sparkle::after { content: "✦"; position: absolute; top: -7px; right: -5px; font-size: 11px; color: #fff; text-shadow: 0 0 4px #ffd54f, 0 0 8px #ffb300; animation: twinkle 1.1s ease-in-out infinite; }
.g.sparkle::before { content: "✦"; position: absolute; bottom: -6px; left: -4px; font-size: 8px; color: #fff; text-shadow: 0 0 4px #ffd54f; animation: twinkle 1.1s ease-in-out infinite .55s; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .g.sparkle, .g.sparkle::before, .g.sparkle::after { animation: none; } }
.spot-banner { background: linear-gradient(90deg, #fff3c4, #ffe082); border: 2px solid #ffb300; color: #3a1700; font-weight: 600; border-radius: 12px; padding: 8px 12px; font-size: 14px; }

/* ---------- Motion (sliding tab highlight, split-flap scoreboard) ---------- */
.tab-ink {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none;
  background: var(--orange); border-radius: 10px; box-shadow: 0 2px 10px rgba(255,95,5,.45);
  transition: transform .45s cubic-bezier(.65,0,.35,1), width .45s cubic-bezier(.65,0,.35,1), height .45s cubic-bezier(.65,0,.35,1);
}
.tabs.has-ink button { position: relative; z-index: 1; transition: color .3s ease; }
.tabs.has-ink button[aria-selected="true"] { background: transparent; }
.sb-val { perspective: 240px; }
.sb-val .flap { display: inline-block; text-align: center; overflow: hidden; vertical-align: top; }
.sb-val.flipping .flap {
  background: linear-gradient(#1a1a1a 0 48%, #000 48% 52%, #222 52%); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.sb-val .flap.tick { animation: flap .14s ease-out; }
@keyframes flap { from { transform: rotateX(-85deg); filter: brightness(1.7); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .tab-ink { transition: none; }
  .sb-val .flap.tick { animation: none; }
}

/* ---------- Hype package (data.json → hype; removed by app.js after hype.until) ---------- */
.hype { max-width: 900px; margin: 0 auto; padding: 18px 16px 0; overflow-x: clip; perspective: 900px; }
.paper {
  --paper: #fbf3e3; --rule: #13294B;
  position: relative; background: var(--paper); color: #1a1a1a;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(160,120,60,.12), transparent 50%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px);
  border-radius: 4px; padding: 12px 14px 14px;
  box-shadow: 0 1px 0 #e7dbc4, 0 3px 0 #efe4cf, 0 5px 0 #e2d4ba, 0 14px 26px rgba(11,26,51,.32);
  font-family: Georgia, "Times New Roman", serif;
  transform-origin: 50% 40%;
  animation: paper-drop 1.15s cubic-bezier(.18,.9,.3,1.08) both, paper-thud .32s ease-out 1.42s;
}
.np-top { display: flex; justify-content: space-between; gap: 8px; font: 600 10px/1.2 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5a4a35; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.np-top span:nth-child(2) { text-align: center; }
.np-top span:last-child { text-align: right; }
.np-mast { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 900; font-size: clamp(32px, 10.5vw, 64px); line-height: 1.05; text-align: center; color: var(--navy); padding: 6px 0 2px; letter-spacing: -.01em; }
.np-dateline { border-top: 3px double var(--rule); border-bottom: 3px double var(--rule); text-align: center; font: italic 12px/1.3 Georgia, serif; padding: 4px 0; color: #3d3226; }
.np-head { margin: 12px 0 6px; text-align: center; line-height: .92; }
.np-head span {
  display: inline-block; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 900;
  font-size: clamp(44px, 14.2vw, 104px); letter-spacing: -.02em; color: #111;
  text-shadow: 3px 3px 0 var(--orange);
  animation: headline-stamp .5s cubic-bezier(.3,1.5,.5,1) 1.12s both;
}
.np-dek { margin: 4px 0 10px; font-style: italic; font-size: 15px; line-height: 1.35; text-align: center; color: #2b2b2b; padding: 0 4px 10px; border-bottom: 1px solid var(--rule); }
.np-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.np-photo { margin: 0; padding-right: 12px; border-right: 1px solid var(--rule); }
.np-photo svg { display: block; width: 100%; height: auto; border: 1px solid #1a1a1a; filter: contrast(1.05) saturate(.9); }
.np-photo figcaption { font: italic 11px/1.3 Georgia, serif; color: #4a3f33; margin-top: 4px; }
.np-col { padding-left: 12px; font-size: 13px; line-height: 1.35; min-width: 0; }
.np-col h4 { margin: 0 0 3px; font: 800 10px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); border-bottom: 1px solid #c9b99c; padding-bottom: 3px; }
.np-game { margin: 0 0 10px; overflow-wrap: anywhere; }
.np-final { display: inline-block; margin-top: 3px; padding: 1px 6px; color: #fff; font-family: Inter, system-ui, sans-serif; font-size: 12px; border-radius: 3px; }
.np-final.W { background: var(--win); } .np-final.L { background: var(--loss); }
.np-picks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8px; }
.np-picks li { font-family: Inter, system-ui, sans-serif; font-size: 12px; padding: 1px 0; break-inside: avoid; }
.np-picks b { font-weight: 800; }
.np-picks b.ok { color: var(--win); } .np-picks b.no { color: var(--loss); text-decoration: line-through; }

.hype-banner {
  margin-top: 12px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px;
  border-left: 6px solid var(--orange); box-shadow: var(--shadow); text-align: center;
  animation: banner-in .45s ease-out 1.55s both;
}
.hb-main { font-weight: 800; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.hb-clock { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 1px; color: var(--orange); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-sub { font-size: 12px; color: #c6d2e6; margin-top: 2px; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255,59,59,.7); animation: live-pulse 1.4s infinite; }
.ret-badge { display: inline-block; margin-left: 3px; padding: 1px 5px; border-radius: 4px; background: var(--navy); color: #fff; border: 1px solid var(--orange); font: 800 9px/1.4 Inter, system-ui, sans-serif; letter-spacing: .08em; vertical-align: middle; transform: rotate(-4deg); white-space: nowrap; }
.mini-grades .mg .ret-badge { margin: 0 4px 0 0; }
.grades-table td .ret-badge { margin-left: 4px; }

@keyframes paper-drop {
  0% { transform: translateY(-140px) rotate(-700deg) scale(.08); opacity: 0; }
  12% { opacity: 1; }
  78% { transform: translateY(6px) rotate(4deg) scale(1.03); }
  100% { transform: none; opacity: 1; }
}
@keyframes paper-thud { 0% { transform: none; } 30% { transform: translateY(3px) scale(.992); } 60% { transform: translateY(-1px) rotate(-.4deg); } 100% { transform: none; } }
@keyframes headline-stamp {
  0% { transform: scale(2.6) rotate(-9deg); opacity: 0; filter: blur(3px); }
  55% { opacity: 1; filter: none; }
  80% { transform: scale(.96) rotate(1deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes banner-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
@media (min-width: 640px) {
  .paper { padding: 16px 22px 20px; }
  .np-dek { font-size: 18px; }
  .np-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 370px) {
  .np-top { font-size: 9px; }
  .np-cols { grid-template-columns: 1fr 1fr; }
  .np-photo { padding-right: 8px; } .np-col { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .paper, .np-head span, .hype-banner, .live-dot { animation: none; }
}

/* ---------- tab bar pinned to the bottom of the screen ---------- */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

footer .disclaimer { text-align: center; font-size: 11px; opacity: .75; margin-top: 4px; }
