/* The Haircut Tab — ported 1:1 from design/Haircut Tab.dc.html.
   Every value is the prototype's. The only change: the prototype's 44px tool bar is
   gone, so offsets that compensated for it now use --top-off (0, or 44px with ?debug=1). */

@font-face { font-family: 'Bungee'; src: url('/fonts/bungee.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Luckiest Guy'; src: url('/fonts/luckiest-guy.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #1b1b1b;
  --chalk: #FBF8EF;
  --grass: #4CAF3D;
  --grass-2: #43A034;
  --sky: #6EC6F0;
  --sky-panel: #9ED8F5;
  --dirt: #C9772E;
  --wood: #B9773A;
  --board: #1F5A34;
  --board-cell: #143d23;
  --board-edge: #0d2a17;
  --red: #E23B2E;
  --mustard: #F6C531;
  --blue: #2A6FB8;
  --blue-dark: #1E5799;
  --skin: #C68E62;
  --bevel: inset 0 4px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(0,0,0,.18), 0 5px 0 var(--ink);
  --bevel-down: inset 0 4px 0 rgba(255,255,255,.6), 0 1px 0 var(--ink);
  --top-off: 0px;
  --pad-l: 14px;
  --pad-r: 88px;
  color-scheme: light;
}
@media (min-width: 900px) {
  :root { --pad-l: 304px; --pad-r: 24px; }
}
.is-debug { --top-off: 44px; }

html, body { margin: 0; padding: 0; background: var(--sky); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: var(--red); text-decoration: underline; }
a:hover { color: var(--ink); }
input, button { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page {
  min-height: 100vh;
  font-family: Fredoka, sans-serif;
  color: var(--ink);
  background-color: var(--grass);
  background-image: repeating-linear-gradient(180deg, var(--grass) 0 80px, var(--grass-2) 80px 160px);
}

/* ---------- Debug bar (?debug=1) ---------- */
.debug-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: 59;
  background: #2a2a2a; color: var(--chalk);
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-size: 13px;
}
.debug-bar-label { font-family: Bungee; font-size: 11px; }
.debug-bar input { flex: 1; accent-color: var(--mustard); }
.debug-bar-count { font-family: Bungee; width: 52px; text-align: right; }

/* ---------- Sky header ---------- */
.sky {
  position: relative; overflow: hidden;
  padding: calc(var(--top-off) + 40px) var(--pad-r) 22px var(--pad-l);
  background-color: var(--sky);
  background-image: repeating-linear-gradient(45deg, transparent 0 15px, rgba(255,255,255,.32) 15px 17px), repeating-linear-gradient(-45deg, transparent 0 15px, rgba(255,255,255,.32) 15px 17px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.bunting { position: absolute; top: var(--top-off); left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 4px; }
.pennant { width: 26px; height: 30px; clip-path: polygon(0 0, 100% 0, 50% 100%); border-top: 3px solid var(--ink); background: var(--red); }
.pennant:nth-child(4n+2) { background: var(--chalk); }
.pennant:nth-child(4n+3) { background: var(--blue); }
.pennant:nth-child(4n+4) { background: var(--mustard); }
.pennant:nth-child(n+15) { display: none; }
@media (min-width: 900px) { .pennant:nth-child(n+15) { display: block; } }
.cloud { position: absolute; border-radius: 999px; background: var(--chalk); border: 3px solid var(--ink); box-shadow: inset 0 -6px 0 #d8eef8; opacity: .95; }
.cloud--a { top: calc(var(--top-off) + 14px); left: 6%; width: 90px; height: 30px; }
.cloud--b { top: calc(var(--top-off) + 52px); right: 8%; width: 120px; height: 36px; }
.logo { position: relative; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1002 / 531; display: block; filter: drop-shadow(4px 6px 0 rgba(27,27,27,.85)); transform: rotate(-2deg); }
.sign-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.plank-sign {
  margin: 0; font-weight: 400;
  border: 4px solid var(--ink); border-radius: 8px; padding: 8px 14px 4px;
  background-color: var(--wood); background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 14px, rgba(0,0,0,.25) 14px 16px);
  box-shadow: 3px 4px 0 var(--ink);
  font-family: 'Luckiest Guy'; font-size: 22px; line-height: 1; color: var(--mustard);
  -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--ink); transform: rotate(1deg);
}
.account-pill { font-family: Bungee; font-size: clamp(9px, 2.6vw, 12px); white-space: nowrap; letter-spacing: .02em; background: var(--chalk); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px 3px; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- The Wall: scoreboard + sponsor ad, LED ticker along the bottom ---------- */
.wall {
  position: relative; background-color: var(--board);
  border-top: 8px solid var(--mustard); border-bottom: 5px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 58px, rgba(0,0,0,.28) 58px 61px), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px);
  padding: 22px var(--pad-r) 0 var(--pad-l);
}
.wall-mark { position: absolute; top: 8px; right: var(--pad-r); font-family: Bungee; font-size: 22px; color: var(--mustard); opacity: .9; text-shadow: 2px 2px 0 var(--board-edge); display: none; }
.wall-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; align-items: stretch; }
@media (min-width: 900px) {
  .wall-mark { display: inline; }
  .wall-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); padding-top: 18px; }
}
.ticker-row { max-width: 1000px; margin: 20px auto 0; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.ticker { flex: 1; min-width: 0; height: 34px; background: #111; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; display: flex; align-items: center; box-shadow: inset 0 0 0 2px #333; }
.ticker-track { display: flex; white-space: nowrap; font-family: Bungee; font-size: 14px; color: var(--mustard); text-shadow: 0 0 6px rgba(246,197,49,.6); }
.ticker-track span { padding-right: 40px; }

/* Sponsor billboard bolted to the wall. */
.sponsor { position: relative; background: var(--chalk); border: 5px solid var(--ink); border-radius: 6px; box-shadow: 6px 7px 0 rgba(0,0,0,.45); padding: 12px; display: flex; }
.rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #9aa3a8; border: 2px solid var(--ink); }
.rivet--tl { top: 6px; left: 6px; }
.rivet--tr { top: 6px; right: 6px; }
.rivet--bl { bottom: 6px; left: 6px; }
.rivet--br { bottom: 6px; right: 6px; }
.sponsor-inner { flex: 1; border: 3px solid var(--red); outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; padding: 20px 16px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; background-image: repeating-linear-gradient(90deg, rgba(42,111,184,.06) 0 2px, transparent 2px 22px); }
.sponsor-by { font-family: 'Luckiest Guy'; font-size: 22px; line-height: 1; color: var(--blue); -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--ink); transform: rotate(-2deg); }
.sponsor-logo { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 3862.74 / 854.22; }
.sponsor-official { font-family: Bungee; font-size: 10px; letter-spacing: .1em; color: var(--red); text-wrap: balance; }
.sponsor-rule { width: 70%; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 16px); }
.sponsor-hit { display: flex; align-items: center; gap: 12px; }
.bullseye { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle, var(--red) 0 18%, var(--chalk) 18% 38%, var(--red) 38% 60%, var(--chalk) 60% 80%, var(--red) 80%); box-shadow: 3px 3px 0 var(--ink); }
.sponsor-hit-text { font-family: 'Luckiest Guy'; font-size: 20px; line-height: .95; text-align: left; color: var(--ink); }
.sponsor-fine { font-size: 11px; font-weight: 600; line-height: 1.3; opacity: .8; }

.warning-track { height: 22px; background: var(--dirt); border-bottom: 4px solid var(--ink); background-image: radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.6px); background-size: 8px 8px; }

/* ---------- Content grid ---------- */
.content { padding: 26px var(--pad-r) 0 var(--pad-l); }
.grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }

/* ---------- Scoreboard ---------- */
.scoreboard {
  position: relative; border: 5px solid var(--ink); border-radius: 14px; background: var(--board);
  box-shadow: inset 0 0 0 6px var(--wood), 6px 7px 0 rgba(0,0,0,.45);
  padding: 16px 12px 14px; color: var(--chalk); text-align: center; overflow: hidden;
}
@media (min-width: 900px) { .scoreboard { padding: 22px 20px 18px; } }
.bulbs { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.bulb { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--board-edge); background: var(--board-edge); }
.bulb.is-lit { background: var(--mustard); box-shadow: 0 0 8px var(--mustard); }
.sb-eyebrow { font-family: Bungee; font-size: 13px; letter-spacing: .12em; color: var(--chalk); }
.sb-pct { font-family: Bungee; font-size: clamp(84px, 24vw, 150px); line-height: 1; color: var(--mustard); text-shadow: 0 0 18px rgba(246,197,49,.35), 4px 4px 0 var(--board-edge); }
.sb-pct-sign { font-size: .45em; }
.sb-sub { font-size: 18px; font-weight: 600; margin-top: 2px; }
.sb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sb-tile { background: var(--board-cell); border: 3px solid var(--board-edge); border-radius: 8px; padding: 8px 6px 6px; }
.sb-tile-label { font-family: Bungee; font-size: 10px; letter-spacing: .08em; opacity: .85; }
.sb-tile-value { font-family: Bungee; font-size: 34px; line-height: 1; color: var(--chalk); }
.sb-tile-value--balance { color: var(--mustard); }
.linescore { margin-top: 14px; display: grid; grid-template-columns: 42px repeat(8, minmax(0,1fr)) 24px; gap: 3px; align-items: center; font-family: Bungee; font-size: 12px; }
@media (min-width: 900px) { .linescore { grid-template-columns: 54px repeat(8, minmax(0,1fr)) 30px; } }
.ls-head { font-size: 10px; opacity: .8; }
.ls-name, .ls-head--first { text-align: left; }
.ls-cell { height: 26px; border: 2px solid var(--board-edge); background: var(--board-cell); border-radius: 3px; display: grid; place-items: center; color: rgba(251,248,239,.3); }
.ls-cell.is-some { color: var(--chalk); }
.ls-cell.is-full { color: var(--mustard); }
.ls-cell--total { color: var(--mustard); }
.ls-cell--barber { color: rgba(251,248,239,.35); }
.ls-cell--barber-total { color: rgba(251,248,239,.5); }
.ls-caption { font-size: 11px; font-weight: 600; margin-top: 6px; opacity: .85; letter-spacing: .04em; }
.ls-caption-desk { display: none; }
@media (min-width: 900px) { .ls-caption-desk { display: inline; } }
.paid-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-14deg); border: 6px double var(--red); color: var(--red); background: rgba(251,248,239,.92); font-family: Bungee; font-size: clamp(30px, 8vw, 46px); padding: 6px 16px; border-radius: 8px; white-space: nowrap; }

/* ---------- The matchup: Andre vs Sam ---------- */
.matchup { border: 4px solid var(--ink); border-radius: 14px; background: var(--chalk); box-shadow: 5px 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.matchup-scene { position: relative; height: 210px; background: var(--sky-panel); overflow: hidden; border-bottom: 4px solid var(--ink); }
@media (min-width: 900px) { .matchup-scene { height: 250px; } }
.scene-cloud { position: absolute; border-radius: 999px; background: var(--chalk); border: 3px solid var(--ink); }
.scene-cloud--a { left: 8%; top: 14px; width: 56px; height: 20px; }
.scene-cloud--b { right: 10%; top: 26px; width: 44px; height: 16px; }
.scene-grass { position: absolute; left: -20%; right: -20%; bottom: -50px; height: 96px; background: var(--grass); border-top: 4px solid var(--ink); border-radius: 50%; }
.scene-box { position: absolute; left: 12%; bottom: 4px; width: 30%; height: 22px; background: var(--dirt); border: 4px solid var(--ink); border-radius: 50%; }
.scene-mound { position: absolute; right: 8%; bottom: 4px; width: 32%; height: 30px; background: var(--dirt); border: 4px solid var(--ink); border-radius: 50% 50% 40% 40%; }
/* Figures: scale .5 at 24% / 78% on phones, .6 at 27% / 74% from 900px (matchup.js mirrors these). */
.fig { position: absolute; bottom: 2px; width: 200px; height: 250px; margin-left: -100px; transform: scale(.5); transform-origin: 50% 100%; }
.fig--andre { left: 24%; }
.fig--sam { left: 78%; }
@media (min-width: 900px) { .fig { transform: scale(.6); } .fig--andre { left: 27%; } .fig--sam { left: 74%; } }
.andre-pose, .sam-pose, .sam-mirror, .sam-windup { position: absolute; inset: 0; transform-origin: 50% 100%; }
.andre-pose { transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
[data-mood="trophy"] .andre-pose { transform: translateY(-4px) scale(1.03); }
.sam-mirror { transform: scaleX(-1); }
.sam-pose { transition: transform .5s cubic-bezier(.3,1.5,.5,1); transform: rotate(-2deg); }
[data-sam-mood="nervous"] .sam-pose { transform: rotate(2deg); }
[data-sam-mood="panic"] .sam-pose { transform: rotate(-5deg) translateX(-4px); }
[data-sam-mood="done"] .sam-pose { transform: translateY(10px) rotate(4deg) scale(.97); }
.pitch-ball { position: absolute; left: 70%; bottom: 60px; width: 14px; height: 14px; margin: 0 0 -7px -7px; border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink); opacity: 0; z-index: 3; box-shadow: inset -3px -2px 0 rgba(0,0,0,.12); }
.pow { position: absolute; left: 40%; bottom: 80px; transform: translate(-50%,50%); font-family: 'Luckiest Guy'; font-size: 26px; color: var(--mustard); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 2px 0 var(--ink); opacity: 0; z-index: 4; white-space: nowrap; pointer-events: none; }
[data-mood="trophy"] .pitch-ball, [data-mood="trophy"] .pow { display: none; }
.vs-badge { position: absolute; left: 50%; top: 44%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--red); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; font-family: 'Luckiest Guy'; font-size: 22px; color: var(--mustard); -webkit-text-stroke: 1px var(--ink); transform: rotate(-8deg); padding-top: 4px; }
.mascot { position: absolute; inset: 0; transform-origin: 50% 100%; }
.matchup-cards { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-bottom: 3px solid var(--ink); }
.mu-side { padding: 10px 12px 8px; border-right: 3px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.mu-side--sam { border-right: 0; text-align: right; align-items: flex-end; }
.mu-role { font-family: Bungee; font-size: 10px; letter-spacing: .06em; color: var(--blue); }
.mu-side--sam .mu-role { color: var(--red); }
.mu-name { margin: 0; font-weight: 400; font-family: 'Luckiest Guy'; font-size: 28px; line-height: 1; color: var(--blue); -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--ink); }
.mu-side--sam .mu-name { color: var(--red); }
.mu-mood { font-size: 12px; font-weight: 700; }
.mu-stat { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.mu-side--sam .mu-stat { flex-direction: row-reverse; }
.mu-stat b { font-family: Bungee; font-size: 26px; line-height: 1; color: var(--ink); }
.mu-stat span { font-family: Bungee; font-size: 10px; letter-spacing: .04em; }
.matchup-talk { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pbp { background: #fff; border: 3px solid var(--ink); border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty; box-shadow: 3px 3px 0 var(--ink); }
.pbp-label { display: block; font-family: Bungee; font-size: 10px; letter-spacing: .08em; color: var(--blue); margin-bottom: 2px; }
.sam-quote { align-self: flex-end; max-width: 88%; background: #FFF3C4; border: 3px solid var(--ink); border-radius: 14px 14px 4px 14px; padding: 9px 12px; font-size: 15px; font-weight: 600; font-style: italic; line-height: 1.35; text-wrap: pretty; box-shadow: 3px 3px 0 var(--ink); }
.sam-quote-by { font-style: normal; font-weight: 700; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; background: var(--chalk); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; }
.chip--inning { background: var(--mustard); }

/* ---------- Mascot (200x250 coordinate box; shared by the card and the meter riders) ---------- */
.m { position: absolute; }
.m-shadow { left: 45px; top: 232px; width: 110px; height: 14px; border-radius: 50%; background: rgba(0,0,0,.2); }
.m-leg { top: 196px; width: 20px; height: 40px; background: var(--blue); border: 4px solid var(--ink); border-radius: 6px; }
.m-leg--l { left: 76px; }
.m-leg--r { left: 104px; }
.m-shoe { top: 226px; width: 36px; height: 18px; background: var(--red); border: 4px solid var(--ink); border-radius: 60% 60% 40% 40%; }
.m-shoe--l { left: 64px; }
.m-shoe--r { left: 100px; }
.m-bat { left: 136px; top: 40px; width: 20px; height: 140px; background: #D9A35B; border: 4px solid var(--ink); border-radius: 14px 14px 4px 4px; transform: rotate(16deg); transform-origin: 50% 100%; background-image: linear-gradient(90deg, transparent 0 55%, rgba(0,0,0,.12) 55%); }
.m-torso { left: 58px; top: 140px; width: 84px; height: 66px; background: var(--chalk); border: 4px solid var(--ink); border-radius: 26px 26px 12px 12px; }
.m-sleeve { top: 146px; width: 30px; height: 30px; background: var(--chalk); border: 4px solid var(--ink); border-radius: 50%; }
.m-sleeve--l { left: 48px; }
.m-sleeve--r { left: 122px; }
.m-arms { left: 50px; top: 164px; width: 100px; height: 26px; background: var(--skin); border: 4px solid var(--ink); border-radius: 14px; }
.m-arms-crease { left: 70px; top: 170px; width: 60px; height: 4px; background: rgba(0,0,0,.18); border-radius: 2px; }
.m-fist { left: 132px; top: 160px; width: 28px; height: 28px; background: var(--skin); border: 4px solid var(--ink); border-radius: 45%; }
.m-fist-crease { left: 138px; top: 168px; width: 16px; height: 3px; background: rgba(0,0,0,.35); border-radius: 2px; }
.m-bat-knob { left: 136px; top: 183px; width: 20px; height: 10px; background: #D9A35B; border: 3px solid var(--ink); border-radius: 50%; transform: rotate(16deg); }
.m-trophy-cup { left: 118px; top: 112px; width: 48px; height: 42px; background: var(--mustard); border: 4px solid var(--ink); border-radius: 4px 4px 24px 24px; }
.m-trophy-stem { left: 134px; top: 150px; width: 16px; height: 16px; background: var(--mustard); border: 4px solid var(--ink); }
.m-trophy-base { left: 124px; top: 162px; width: 36px; height: 10px; background: var(--dirt); border: 4px solid var(--ink); border-radius: 3px; }
/* Andre keeps the bat until 40/40, then holds the trophy. */
.m-trophy-cup, .m-trophy-stem, .m-trophy-base { display: none; }
[data-mood="trophy"] .m-trophy-cup, [data-mood="trophy"] .m-trophy-stem, [data-mood="trophy"] .m-trophy-base { display: block; }
[data-mood="trophy"] .m-bat, [data-mood="trophy"] .m-fist, [data-mood="trophy"] .m-fist-crease, [data-mood="trophy"] .m-bat-knob { display: none; }
.m-ear { top: 84px; width: 22px; height: 28px; background: var(--skin); border: 4px solid var(--ink); border-radius: 50%; }
.m-ear--l { left: 30px; }
.m-ear--r { left: 148px; }
.m-face { left: 38px; top: 24px; width: 124px; height: 124px; background: var(--skin); border: 4px solid var(--ink); border-radius: 50%; }
.m-beard { left: 56px; top: 116px; width: 88px; height: 38px; background: #221915; border: 4px solid var(--ink); border-radius: 22% 22% 50% 50% / 30% 30% 70% 70%; }
.m-mouth { left: 88px; top: 126px; width: 24px; height: 10px; background: #8a3a30; border: 3px solid var(--ink); border-radius: 0 0 14px 14px; transform: rotate(-7deg); background-image: linear-gradient(var(--chalk) 0 40%, transparent 40%); }
.m-stache { left: 80px; top: 113px; width: 40px; height: 11px; background: #120d0b; border: 3px solid var(--ink); border-radius: 12px 12px 6px 6px; }
.m-nose { left: 90px; top: 94px; width: 20px; height: 18px; background: #B0744A; border: 3px solid var(--ink); border-radius: 50%; }
.m-eye { top: 82px; width: 12px; height: 14px; background: var(--ink); border-radius: 50%; }
.m-eye--l { left: 70px; }
.m-eye--r { left: 118px; }
.m-glint { top: 84px; width: 4px; height: 4px; background: var(--chalk); border-radius: 50%; }
.m-glint--l { left: 73px; }
.m-glint--r { left: 121px; }
.m-brow { top: 74px; width: 24px; height: 6px; background: #120d0b; border-radius: 4px; }
.m-brow--l { left: 64px; transform: rotate(-8deg); }
[data-mood="cocky"] .m-brow--l { transform: rotate(-22deg); }
.m-brow--r { left: 112px; transform: rotate(8deg); }
.m-cap { left: 36px; top: 10px; width: 128px; height: 62px; background: var(--blue); border: 4px solid var(--ink); border-radius: 64px 64px 10px 10px; }
.m-cap-seam { left: 98px; top: 14px; width: 4px; height: 54px; background: rgba(0,0,0,.22); }
.m-cap-button { left: 92px; top: 3px; width: 16px; height: 12px; background: var(--blue); border: 3px solid var(--ink); border-radius: 50%; }
.m-brim { left: 28px; top: 60px; width: 144px; height: 20px; background: var(--blue-dark); border: 4px solid var(--ink); border-radius: 50%; }

/* Sam: Andre's build, mirrored in the scene. Light skin, full ginger beard, glove, blue sneakers. */
.s-skin { background: #F2C4A0; }
.s-nose { background: #E3A47E; }
.s-shoe { background: var(--blue); box-shadow: inset 0 -5px 0 var(--chalk); }
.s-arms { background: #F2C4A0; display: none; }
.s-forearm { left: 128px; top: 150px; width: 22px; height: 34px; background: #F2C4A0; border: 4px solid var(--ink); border-radius: 11px; }
.s-beard { left: 44px; top: 98px; width: 112px; height: 64px; background: #C9622B; border: 4px solid var(--ink); border-radius: 30% 30% 50% 50% / 30% 30% 70% 70%; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.s-mouth { left: 84px; top: 128px; width: 32px; height: 8px; background: #7a2a24; border: 3px solid var(--ink); border-radius: 0 0 14px 14px; }
[data-sam-mood="panic"] .s-mouth { left: 90px; width: 20px; height: 20px; border-radius: 50%; }
[data-sam-mood="done"] .s-mouth { border-radius: 14px 14px 0 0; }
.s-stache { left: 72px; top: 110px; width: 56px; height: 16px; background: #B4541F; border: 4px solid var(--ink); border-radius: 16px 16px 10px 10px; }
.s-brow { background: #A8481B; }
.s-brow.m-brow--l { transform: rotate(-10deg); }
.s-brow.m-brow--r { transform: rotate(10deg); }
[data-sam-mood="smug"] .s-brow.m-brow--l { transform: rotate(14deg); }
[data-sam-mood="smug"] .s-brow.m-brow--r { transform: rotate(-14deg); }
[data-sam-mood="done"] .s-brow.m-brow--l { transform: rotate(-18deg); }
[data-sam-mood="done"] .s-brow.m-brow--r { transform: rotate(18deg); }
.s-sweat { display: none; background: #9fdcff; border: 3px solid var(--ink); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; }
.s-sweat--1 { left: 30px; top: 56px; width: 14px; height: 20px; }
.s-sweat--2 { left: 156px; top: 64px; width: 12px; height: 17px; }
[data-sam-mood="nervous"] .s-sweat, [data-sam-mood="panic"] .s-sweat { display: block; }
.s-glove { left: 112px; top: 138px; width: 50px; height: 52px; transform: scale(1.25); transform-origin: 20% 90%; }
.s-glove > div { position: absolute; }
.s-glove-mitt { left: 4px; top: 0; width: 42px; height: 48px; background: #8B4A22; border: 4px solid var(--ink); border-radius: 20px 20px 16px 16px; }
.s-glove-pocket { left: 12px; top: 8px; width: 26px; height: 28px; background: #C47A3D; border: 3px solid var(--ink); border-radius: 12px 12px 10px 10px; }
.s-glove-seam { left: 24px; top: 2px; width: 2px; height: 14px; background: var(--ink); }
.s-glove-thumb { left: -6px; top: 20px; width: 18px; height: 26px; background: #8B4A22; border: 4px solid var(--ink); border-radius: 10px 4px 4px 12px; transform: rotate(-18deg); }
.s-glove-lace { left: 8px; top: 40px; width: 34px; height: 10px; background: #6E3818; border: 3px solid var(--ink); border-radius: 4px; background-image: repeating-linear-gradient(90deg, transparent 0 5px, #E8C49A 5px 7px); }
.s-parm { left: 40px; top: 144px; width: 26px; height: 74px; background: #F2C4A0; border: 4px solid var(--ink); border-radius: 12px; transform-origin: 50% 12px; transform: rotate(20deg); }
.s-hball { position: absolute; left: -1px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink); }
.s-dropped-glove { display: none; left: 144px; top: 218px; width: 46px; height: 30px; background: #8B4A22; border: 4px solid var(--ink); border-radius: 20px 20px 10px 10px; transform: rotate(14deg); }
.s-dropped-pocket { position: absolute; left: 8px; top: 4px; width: 22px; height: 14px; background: #C47A3D; border: 3px solid var(--ink); border-radius: 10px; }
/* Defeated at 40/40: arms crossed, glove on the ground. */
[data-sam-mood="done"] .s-dropped-glove, [data-sam-mood="done"] .s-arms { display: block; }
[data-sam-mood="done"] .s-forearm, [data-sam-mood="done"] .s-glove, [data-sam-mood="done"] .s-parm { display: none; }

/* ---------- The Haircut-O-Meter ----------
   Three modes: slim (<900px, default), expanded (<900px + .is-expanded), desktop (>=900px).
   --level is pos(display) as a %, --heat the liquid colour; meter.js owns both. */
.meter {
  --level: 5%;
  --heat: hsl(200 82% 58%);
  --level-transition: none;
  position: fixed; z-index: 30; top: var(--top-off); bottom: 0; height: auto;
  left: auto; right: 0; width: 78px; padding: 10px 8px 12px 0;
  background: transparent; cursor: pointer; display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.meter:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
@media (max-width: 899.98px) {
  .meter.is-expanded { top: 0; left: 0; right: 0; width: 100%; z-index: 85; background: var(--sky); cursor: default; padding: calc(var(--top-off) + 12px) 20px 20px; }
}
@media (min-width: 900px) {
  .meter { left: 0; right: auto; width: 280px; padding: 14px 12px 16px 14px; cursor: default; }
}
.meter-nail { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #7a4f2a; border: 2px solid var(--ink); }
.meter-nail--tl { top: 6px; left: 6px; }
.meter-nail--tr { top: 6px; right: 6px; }
.meter-nail--bl { bottom: 6px; left: 6px; }
.meter-nail--br { bottom: 6px; right: 6px; }
.meter-frame {
  position: relative; flex: 1; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink);
  background-color: var(--wood);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 38px, rgba(0,0,0,.28) 38px 41px), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 3px, rgba(0,0,0,.05) 3px 7px);
}
.full-only { display: none; }
.slim-only { display: contents; }
@media (max-width: 899.98px) {
  .meter.is-expanded .full-only { display: contents; }
  .meter.is-expanded .slim-only { display: none; }
}
@media (min-width: 900px) {
  .meter .full-only { display: contents; }
  .meter .slim-only { display: none; }
}
.meter-togo-row { position: absolute; top: 37px; left: 0; right: 0; display: flex; justify-content: center; }
.meter-togo { font-family: Bungee; font-size: 10px; letter-spacing: .06em; background: var(--ink); color: var(--mustard); border-radius: 999px; padding: 3px 9px 2px; }
.meter-title { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-family: 'Luckiest Guy'; font-size: 19px; line-height: 1; color: var(--mustard); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 2px 0 var(--ink); letter-spacing: .02em; }
.meter-readout { position: absolute; top: 8px; left: 5px; right: 5px; z-index: 5; background: var(--chalk); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); text-align: center; padding: 4px 0 3px; line-height: 1; }
.meter-readout-pct { font-family: Bungee; font-size: 15px; color: var(--red); }
.meter-readout-count { font-size: 10px; font-weight: 700; margin-top: 2px; }
.meter-readout-tap { font-family: Bungee; font-size: 8px; margin-top: 3px; background: var(--mustard); border-top: 2px solid var(--ink); padding-top: 2px; margin-bottom: -3px; border-radius: 0 0 7px 7px; }
.danger-sign { position: absolute; top: 38px; right: 10px; z-index: 3; background: var(--red); color: var(--chalk); border: 3px solid var(--ink); border-radius: 6px; padding: 3px 7px; font-family: Bungee; font-size: 11px; transform: rotate(6deg); box-shadow: 2px 2px 0 var(--ink); }
.meter:not(.is-danger) .danger-sign { display: none; }

.meter-jiggle { position: absolute; top: 84px; bottom: 36px; left: calc(50% - 13px); width: 26px; }
@media (max-width: 899.98px) { .meter.is-expanded .meter-jiggle { top: 76px; bottom: 58px; left: calc(50% - 50px); width: 50px; } }
@media (min-width: 900px) { .meter-jiggle { top: 76px; bottom: 58px; left: 70px; width: 50px; } }
.meter-cap { position: absolute; top: -12px; left: -4px; right: -4px; height: 14px; background: var(--red); border: 3px solid var(--ink); border-radius: 6px 6px 3px 3px; z-index: 2; }
.meter-tube { position: absolute; inset: 0; border: 4px solid var(--ink); border-radius: 999px 999px 10px 10px; background: rgba(251,248,239,.7); overflow: hidden; box-shadow: inset 5px 0 0 rgba(255,255,255,.7); }
.meter-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: var(--level); background: var(--heat); transition: var(--level-transition); overflow: hidden; border-top: 3px solid var(--ink); }
.liquid-shine { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: rgba(255,255,255,.45); }
.liquid-comb { position: absolute; top: 10px; left: 18%; width: 62%; height: 7px; background: var(--ink); border-radius: 2px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px); border-top: 3px solid var(--ink); }
.liquid-clip { position: absolute; width: 2px; border-radius: 2px; background: #5a3a1e; }
.liquid-clip--1 { top: 30px; left: 30%; height: 8px; }
.liquid-clip--2 { top: 46px; left: 62%; height: 7px; background: var(--dirt); }
.liquid-clip--3 { top: 70px; left: 45%; height: 9px; }
.liquid-bubble { position: absolute; bottom: 4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); }
.liquid-bubble--1 { left: 22%; width: 7px; height: 7px; }
.liquid-bubble--2 { left: 58%; width: 5px; height: 5px; }
.liquid-bubble--3 { left: 40%; width: 9px; height: 9px; }
.liquid-bubble--4 { left: 70%; width: 6px; height: 6px; }
.tick { position: absolute; right: 0; width: 5px; height: 2px; background: var(--ink); }
.tick--major { width: 10px; }
@media (max-width: 899.98px) { .meter.is-expanded .tick { width: 8px; } .meter.is-expanded .tick--major { width: 16px; } }
@media (min-width: 900px) { .tick { width: 8px; } .tick--major { width: 16px; } }
.sweat { position: absolute; background: #9fdcff; border: 2px solid var(--ink); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; }
.sweat--1 { top: 22%; left: -12px; width: 8px; height: 11px; }
.sweat--2 { top: 38%; right: -12px; width: 7px; height: 10px; }
.sweat--3 { top: 12%; right: -10px; width: 6px; height: 9px; }
.meter:not(.is-sweating) .sweat { display: none; }
.meter-decade { position: absolute; right: calc(100% + 3px); transform: translateY(50%); font-family: Bungee; font-size: 9px; color: var(--chalk); text-shadow: 1px 1px 0 var(--ink); }
.rider { position: absolute; bottom: var(--level); transition: var(--level-transition); border-radius: 50%; border: 3px solid var(--ink); overflow: hidden; box-shadow: 2px 2px 0 var(--ink); }
.rider--slim { left: 50%; transform: translate(-50%,50%); width: 36px; height: 36px; z-index: 4; background: var(--sky-panel); }
.rider--full { right: calc(100% + 8px); transform: translateY(50%); width: 52px; height: 52px; background: var(--chalk); }
.rider-scene { position: absolute; inset: 0; background: var(--sky-panel); overflow: hidden; }
.rider-head { position: absolute; width: 200px; height: 250px; transform-origin: 0 0; }
.rider--slim .rider-head { left: -5px; top: -3px; transform: scale(.2); }
.rider--full .rider-head { left: -7.7px; top: -4.6px; transform: scale(.307); }
.meter-label { position: absolute; left: calc(100% + 4px); transform: translateY(50%); transition: opacity .25s; display: flex; align-items: center; }
.meter-label-line { width: 8px; height: 2px; background: var(--ink); }
/* Plaques: upcoming = cream/blue number, reached = mustard/red number, 40 = red/mustard until reached. */
.meter-plaque { white-space: nowrap; display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--ink); background: var(--chalk); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 6px 2px; box-shadow: 2px 2px 0 var(--ink); }
.meter-label-n { font-family: Bungee; font-size: 10px; color: var(--blue); }
.meter-label[data-n="40"] .meter-plaque { background: var(--red); color: var(--chalk); }
.meter-label[data-n="40"] .meter-label-n { color: var(--mustard); }
.meter-label.is-reached .meter-plaque { background: var(--mustard); color: var(--ink); }
.meter-label.is-reached .meter-label-n { color: var(--red); }
.meter-bubble { position: absolute; left: calc(100% + 6px); bottom: var(--level); transform: translateY(50%); transition: var(--level-transition); z-index: 4; background: var(--chalk); border: 3px solid var(--ink); border-radius: 12px; padding: 4px 9px 3px; box-shadow: 3px 3px 0 var(--ink); text-align: center; line-height: 1.05; }
.meter-bubble-notch { position: absolute; left: -9px; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: var(--chalk); border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.meter-bubble-pct { font-family: Bungee; font-size: 20px; color: var(--red); }
.meter-bubble-count { font-size: 11px; font-weight: 700; }
.meter-bulb { position: absolute; bottom: 6px; left: calc(50% - 23px); width: 46px; height: 46px; border-radius: 50%; background: var(--chalk); border: 4px solid var(--ink); box-shadow: inset -7px -7px 0 rgba(0,0,0,.12), 3px 3px 0 var(--ink); overflow: hidden; z-index: 3; }
.bulb-shine { position: absolute; left: 22%; top: 16%; width: 22%; height: 14%; border-radius: 50%; background: rgba(255,255,255,.7); transform: rotate(-30deg); }
@media (max-width: 899.98px) { .meter.is-expanded .meter-bulb { bottom: 12px; left: calc(50% - 67px); width: 84px; height: 84px; } }
@media (min-width: 900px) { .meter-bulb { bottom: 12px; left: 53px; width: 84px; height: 84px; } }
.stitch { position: absolute; top: 6%; bottom: 6%; width: 56%; border-radius: 50%; }
.stitch--l { left: -34%; border-right: 3px dashed var(--red); }
.stitch--r { right: -34%; border-left: 3px dashed var(--red); }
.stitch--thin.stitch--l { border-right-width: 2px; }
.stitch--thin.stitch--r { border-left-width: 2px; }
.meter-back { display: none; margin-top: 14px; align-self: center; font-family: 'Luckiest Guy'; font-size: 22px; padding: 14px 30px 10px; border: 4px solid var(--ink); border-radius: 14px; background: var(--mustard); color: var(--ink); cursor: pointer; box-shadow: var(--bevel); }
.meter-back:active { transform: translateY(4px) scale(1.02,.95); box-shadow: var(--bevel-down); }
@media (max-width: 899.98px) { .meter.is-expanded .meter-back { display: block; } }

/* ---------- Base paths ---------- */
.bases { border: 4px solid var(--ink); border-radius: 14px; background: var(--chalk); box-shadow: 5px 6px 0 var(--ink); overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; }
.diamond { position: relative; aspect-ratio: 1; width: 100%; border-right: 0; border-bottom: 4px solid var(--ink); background: var(--grass); background-image: repeating-linear-gradient(45deg, var(--grass) 0 22px, var(--grass-2) 22px 44px); }
.diamond-dirt { position: absolute; left: 21.7%; top: 21.7%; width: 56.6%; height: 56.6%; transform: rotate(45deg); background: var(--dirt); border: 4px solid var(--ink); }
.diamond-infield { position: absolute; left: 32%; top: 32%; width: 36%; height: 36%; transform: rotate(45deg); background: var(--grass-2); border: 3px solid var(--ink); }
.diamond-mound { position: absolute; left: 50%; top: 50%; width: 16%; height: 16%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--dirt); border: 3px solid var(--ink); }
.base { position: absolute; width: 9%; height: 9%; transform: translate(-50%,-50%) rotate(45deg); background: var(--chalk); border: 3px solid var(--ink); }
.base.is-reached { background: var(--mustard); }
.base--1 { left: 86%; top: 50%; }
.base--2 { left: 50%; top: 14%; }
.base--3 { left: 14%; top: 50%; }
.base--4 { left: 50%; top: 86%; }
.base-label { position: absolute; transform: translate(-50%,-50%); font-family: Bungee; font-size: 9px; color: var(--chalk); text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; }
.base-label--1 { left: 86%; top: 62%; }
.base-label--2 { left: 50%; top: 4%; }
.base-label--3 { left: 14%; top: 62%; }
.base-label--4 { left: 50%; top: 97%; }
.runner { position: absolute; left: 50%; top: 86%; transform: translate(-50%,-60%); transition: left .6s ease, top .6s ease; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); background: var(--blue); box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; font-family: Bungee; font-size: 9px; color: var(--chalk); }
.bases-text { padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bases-eyebrow { font-family: Bungee; font-size: 12px; letter-spacing: .1em; }
.bases-line { margin: 0; font-weight: 400; font-family: 'Luckiest Guy'; font-size: 28px; line-height: 1; text-wrap: balance; }
.bases-explain { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }

/* ---------- Player stat card ---------- */
.statcard { grid-column: 1 / -1; border: 4px solid var(--ink); border-radius: 18px; background: var(--mustard); box-shadow: 5px 6px 0 var(--ink); padding: 10px; }
.statcard-inner { border: 4px solid var(--ink); border-radius: 12px; background: var(--chalk); overflow: hidden; }
.statcard-head { background: var(--blue); color: var(--chalk); border-bottom: 4px solid var(--ink); padding: 12px 16px 9px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.statcard-title { margin: 0; font-weight: 400; font-family: 'Luckiest Guy'; font-size: 26px; text-shadow: 2px 2px 0 var(--ink); }
.statcard-season { font-family: Bungee; font-size: 11px; }
.statcard-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px; border-bottom: 3px solid var(--ink); font-size: 13px; font-weight: 600; }
.statcard-stats b { font-family: Bungee; }
.statcard-stats .stat-hits { color: var(--red); }
.balls { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px 8px; padding: 16px; }
@media (min-width: 520px) { .balls { grid-template-columns: repeat(8, minmax(0,1fr)); } }
@media (min-width: 900px) { .balls { grid-template-columns: repeat(10, minmax(0,1fr)); } }
.ball-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ball { position: relative; display: block; width: 100%; max-width: 50px; aspect-ratio: 1; padding: 0; margin: 0; border-radius: 50%; background: var(--chalk); border: 3px solid var(--ink); box-shadow: inset -4px -4px 0 rgba(0,0,0,.12); overflow: hidden; cursor: pointer; color: var(--ink); font: inherit; }
.ball:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ball-hit { position: absolute; inset: 0; display: grid; place-items: center; font-family: Bungee; font-size: 12px; color: var(--ink); transform: rotate(-14deg); }
.ball-empty { width: 100%; max-width: 50px; aspect-ratio: 1; border-radius: 50%; border: 3px dashed rgba(27,27,27,.35); display: grid; place-items: center; font-family: Bungee; font-size: 13px; color: rgba(27,27,27,.45); }
.ball-date { font-size: 10px; font-weight: 700; white-space: nowrap; }
.ball-date:empty { height: 13px; }
/* Tap-to-read bubble for a used ball (title tooltips never show on phones). */
.ball-tip { position: absolute; z-index: 5; max-width: min(260px, calc(100% - 24px)); background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); padding: 7px 10px; font-size: 13px; font-weight: 600; line-height: 1.3; text-wrap: pretty; pointer-events: none; }
.ball-tip-n { font-family: Bungee; font-size: 11px; color: var(--red); }

/* ---------- Footer: home plate ---------- */
.home { position: relative; overflow: hidden; margin: 44px calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1); background: var(--grass); border-top: 5px solid var(--ink); padding: 0 16px 26px; display: flex; flex-direction: column; align-items: center; }
.home-field { position: relative; width: 100%; max-width: 420px; height: 200px; }
.home-dirt { position: absolute; left: 50%; top: -140px; width: 440px; height: 330px; margin-left: -220px; border-radius: 50%; background: var(--dirt); border: 5px solid var(--ink); background-image: radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.6px); background-size: 8px 8px; }
.foul-line { position: absolute; left: 50%; top: -110px; width: 6px; height: 240px; margin-left: -3px; background: var(--chalk); transform-origin: 50% 100%; }
.foul-line--l { transform: rotate(-45deg); }
.foul-line--r { transform: rotate(45deg); }
.batters-box { position: absolute; left: 50%; top: 44px; width: 56px; height: 96px; border: 5px solid var(--chalk); }
.batters-box--l { margin-left: -104px; }
.batters-box--r { margin-left: 48px; }
.plate-outline { position: absolute; left: 50%; top: 60px; width: 84px; height: 76px; margin-left: -42px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 52%, 50% 100%, 0 52%); }
.plate { position: absolute; left: 50%; top: 66px; width: 72px; height: 63px; margin-left: -36px; background: var(--chalk); clip-path: polygon(0 0, 100% 0, 100% 52%, 50% 100%, 0 52%); box-shadow: inset 0 -6px 0 rgba(0,0,0,.1); }
.plate-label { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); font-family: Bungee; font-size: 11px; color: var(--ink); letter-spacing: .06em; }
.credits { position: relative; margin-top: -6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.credit-title { font-family: 'Luckiest Guy'; font-size: 26px; line-height: 1; color: var(--mustard); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 3px 0 var(--ink); }
.credit-sub { font-size: 15px; font-weight: 700; color: var(--chalk); text-shadow: 1px 1px 0 var(--ink); }

/* Small pill buttons (Lock, sound toggle). */
.pill-btn { font-size: 13px; font-weight: 700; background: var(--chalk); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; color: var(--ink); }
.credits .pill-btn { margin-top: 6px; }

/* ---------- Banner + toast ---------- */
.down-banner { position: fixed; z-index: 75; top: calc(var(--top-off) + 12px); left: var(--pad-l); right: var(--pad-r); margin: 0 auto; width: max-content; max-width: calc(100% - var(--pad-l) - var(--pad-r)); background: var(--red); color: var(--chalk); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); padding: 8px 14px; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; transform: rotate(-1deg); }
.down-banner b { font-family: Bungee; font-weight: 400; color: var(--mustard); }
.admin-page .down-banner { left: 16px; right: 16px; max-width: calc(100% - 32px); }
.toast { position: fixed; left: 50%; top: calc(var(--top-off) + 12px); transform: translateX(-50%) rotate(-1deg); z-index: 70; background: var(--mustard); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 var(--ink); padding: 10px 16px; font-size: 17px; font-weight: 700; white-space: nowrap; }

/* ---------- PAID IN FULL celebration ---------- */
.celebrate { position: fixed; inset: 0; z-index: 90; background: rgba(27,27,27,.6); display: grid; place-items: center; padding: 20px; font-family: Fredoka, sans-serif; color: var(--ink); }
.trophy-card { width: 100%; max-width: 360px; border: 5px solid var(--ink); border-radius: 20px; background: var(--chalk); box-shadow: 6px 8px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.trophy-window { width: 100%; height: 200px; border: 4px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--mustard); }
.trophy-sky { position: relative; width: 100%; height: 100%; background: var(--sky); background-image: repeating-conic-gradient(from 0deg at 50% 70%, rgba(255,255,255,.35) 0 10deg, transparent 10deg 20deg); }
.trophy-cup { position: absolute; left: 50%; top: 26px; width: 96px; height: 80px; margin-left: -48px; background: var(--mustard); border: 5px solid var(--ink); border-radius: 6px 6px 48px 48px; box-shadow: inset -10px 0 0 rgba(0,0,0,.12); display: grid; place-items: center; font-family: Bungee; font-size: 22px; color: var(--ink); }
.trophy-handle { position: absolute; top: 38px; width: 36px; height: 40px; left: 50%; border: 5px solid var(--ink); }
.trophy-handle--l { margin-left: -82px; border-right: 0; border-radius: 20px 0 0 20px; }
.trophy-handle--r { margin-left: 46px; border-left: 0; border-radius: 0 20px 20px 0; }
.trophy-stem { position: absolute; left: 50%; top: 104px; width: 24px; height: 30px; margin-left: -12px; background: var(--mustard); border: 5px solid var(--ink); }
.trophy-base { position: absolute; left: 50%; top: 130px; width: 84px; height: 24px; margin-left: -42px; background: var(--dirt); border: 5px solid var(--ink); border-radius: 4px; }
.trophy-plinth { position: absolute; left: 50%; top: 152px; width: 110px; height: 16px; margin-left: -55px; background: #8a5a2b; border: 5px solid var(--ink); border-radius: 4px; }
.trophy-stamp { border: 6px double var(--red); color: var(--red); font-family: Bungee; font-size: 34px; padding: 4px 14px; border-radius: 8px; transform: rotate(-6deg); }
.trophy-line { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.victory-btn { font-family: 'Luckiest Guy'; font-size: 22px; padding: 12px 28px 8px; border: 4px solid var(--ink); border-radius: 14px; background: var(--grass); color: var(--chalk); text-shadow: 2px 2px 0 var(--ink); cursor: pointer; box-shadow: inset 0 4px 0 rgba(255,255,255,.4), inset 0 -5px 0 rgba(0,0,0,.18), 0 5px 0 var(--ink); }
.victory-btn:active { transform: translateY(4px) scale(1.02,.95); box-shadow: inset 0 4px 0 rgba(255,255,255,.4), 0 1px 0 var(--ink); }

/* ---------- /punch (admin) ---------- */
.admin-page { min-height: 100vh; font-family: Fredoka, sans-serif; color: var(--ink); background-color: var(--grass); }
.admin { min-height: 100vh; padding: calc(var(--top-off) + 16px) 16px 20px; display: flex; flex-direction: column; align-items: center; background-color: var(--dirt); background-image: radial-gradient(rgba(0,0,0,.13) 1px, transparent 1.6px); background-size: 9px 9px; }
.admin-logo { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1002 / 531; display: block; margin-bottom: 12px; filter: drop-shadow(3px 4px 0 rgba(27,27,27,.85)); transform: rotate(-2deg); }
.admin-main { width: 100%; max-width: 440px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.lockscreen { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 12px; }
.padlock { display: flex; flex-direction: column; align-items: center; }
.padlock-shackle { width: 52px; height: 40px; border: 9px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; margin-bottom: -4px; }
.padlock-body { width: 84px; height: 66px; background: var(--mustard); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.padlock-hole { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.padlock-slot { width: 6px; height: 14px; background: var(--ink); margin-top: -3px; }
.mound-title { margin: 0; font-family: 'Luckiest Guy'; font-weight: 400; font-size: 32px; color: var(--chalk); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 3px 3px 0 var(--ink); text-align: center; line-height: 1; }
.auth-pill { font-size: 14px; font-weight: 600; background: var(--chalk); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.pin-dots { display: flex; gap: 14px; margin: 6px 0; }
.pin-dot { width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--ink); background: var(--chalk); }
.pin-dot.is-filled { background: var(--red); }
.pin-error { min-height: 24px; font-size: 17px; font-weight: 700; color: var(--red); background: var(--chalk); padding: 0 10px; border-radius: 6px; }
.pin-error:empty { background: transparent; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 300px; }
.keypad.is-locked-out { opacity: .55; }
.key { height: 66px; font-family: Bungee; font-size: 26px; border: 4px solid var(--ink); border-radius: 14px; background: var(--chalk); cursor: pointer; color: var(--ink); box-shadow: inset 0 4px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(0,0,0,.15), 0 5px 0 var(--ink); }
.key--fn { font-size: 16px; background: var(--sky); }
.key:active { transform: translateY(4px) scale(1.03,.94); box-shadow: var(--bevel-down); }
.keypad.is-locked-out .key { cursor: not-allowed; }
.keypad.is-locked-out .key:active { transform: none; box-shadow: inset 0 4px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(0,0,0,.15), 0 5px 0 var(--ink); }
.unlocked { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-bar-actions { display: flex; gap: 8px; }
.admin-tag { font-family: Bungee; font-size: 12px; background: var(--ink); color: var(--mustard); border-radius: 6px; padding: 4px 8px; }
.admin-board { border: 5px solid var(--ink); border-radius: 14px; background: var(--board); box-shadow: inset 0 0 0 6px var(--wood), 5px 6px 0 var(--ink); padding: 18px; color: var(--chalk); text-align: center; }
.ab-eyebrow { font-family: Bungee; font-size: 12px; letter-spacing: .12em; }
.ab-count { font-family: Bungee; font-size: 84px; line-height: 1; color: var(--mustard); text-shadow: 4px 4px 0 var(--board-edge); }
.ab-total { font-size: .4em; color: var(--chalk); }
.ab-sub { font-size: 16px; font-weight: 600; }
.thermo { position: relative; margin: 14px 6px 2px 22px; height: 26px; border: 4px solid var(--ink); border-radius: 0 999px 999px 0; background: rgba(251,248,239,.8); overflow: visible; }
.thermo-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: hsl(200 82% 58%); border-right: 3px solid var(--ink); transition: width .5s cubic-bezier(.3,1.6,.5,1), background .5s; }
.thermo-ball { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--chalk); border: 4px solid var(--ink); overflow: hidden; }
.fields { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; }
.field input { height: 48px; border: 3px solid var(--ink); border-radius: 10px; padding: 0 12px; font-size: 16px; background: var(--chalk); color: var(--ink); width: 100%; min-width: 0; }
.field input[type="date"] { padding: 0 8px; font-size: 15px; }
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.admin-spacer { flex: 1; min-height: 20px; }
.swing { width: 100%; height: 150px; font-family: 'Luckiest Guy'; font-size: 54px; line-height: 1; color: var(--chalk); -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 4px 0 var(--ink); border: 5px solid var(--ink); border-radius: 24px; background: var(--red); cursor: pointer; box-shadow: inset 0 7px 0 rgba(255,255,255,.4), inset 0 -10px 0 rgba(0,0,0,.2), 0 9px 0 var(--ink); }
.swing:active:not(:disabled) { transform: translateY(7px) scale(1.02,.95); box-shadow: inset 0 7px 0 rgba(255,255,255,.4), inset 0 -4px 0 rgba(0,0,0,.2), 0 2px 0 var(--ink); }
.swing.is-full { background: #9a9a9a; }
.swing:disabled { cursor: default; }
.undo-row { display: flex; justify-content: center; min-height: 34px; align-items: center; }
.undo-link { background: none; border: 0; font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); }
.undo-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: var(--chalk); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px; }
.undo-confirm-text { font-size: 14px; font-weight: 600; }
.void-btn, .keep-btn { font-size: 14px; font-weight: 700; border: 3px solid var(--ink); border-radius: 8px; padding: 5px 10px; cursor: pointer; background: var(--chalk); color: var(--ink); }
.void-btn { background: var(--red); color: var(--chalk); }
button:disabled { cursor: default; }
