/* ============================================================
   HIGH SCHOOL GRIDIRON - shared frame, type, surfaces
   ============================================================ */

:root {
  --ink:        #efe3c4;
  --ink-dim:    #c7b795;
  --ink-faint:  rgba(239, 227, 196, 0.45);
  --crimson:    #b3342f;
  --crimson-dk: #6d1d1a;
  --crimson-dp: #3f1210;
  --green:      #10281c;
  --green-2:    #2f6b4a;
  --amber:      #f2b354;
  --indigo:     #0b1a2a;
  --night:      #060d16;
  --paper:      #e7d4a9;
  --paper-2:    #d8c091;
  --paper-dk:   #b99a65;
  --ink-brown:  #3a2415;
  --ink-brown2: #5c3a22;
  --slate:      #1a2225;

  --display: 'Big Shoulders Stencil', 'Arial Narrow', sans-serif;
  --text:    'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --num:     'Saira Condensed', 'Arial Narrow', sans-serif;

  --pad: clamp(14px, 2.4vw, 42px);
  --topbar-h: clamp(44px, 7vh, 66px);
  --bottom-h: clamp(74px, 11vh, 104px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #050a10;
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #050a10;
}

#field-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050b12;
}
#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

img { -webkit-user-drag: none; user-select: none; }

/* subtle film grain over everything */
.grain {
  position: absolute;
  inset: -10%;
  z-index: 71;
  pointer-events: none;
  opacity: 0.075;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 44%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.28) 78%, rgba(0,0,0,0.62) 100%);
}

/* painted stencil corner brackets, one image turned to each corner */
.corner-frame {
  position: absolute;
  inset: 0;
  z-index: 72;
  pointer-events: none;
}
.cf {
  position: absolute;
  width: clamp(74px, 7.4vw, 128px);
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.55));
}
.cf-tl { top: 0; left: 0; }
.cf-tr { top: 0; right: 0; transform: scaleX(-1); }
.cf-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.cf-br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ============================================================
   TOP BAR + TABS
   ============================================================ */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(4,9,14,0.92) 0%, rgba(4,9,14,0.55) 58%, rgba(4,9,14,0) 100%);
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 1vw, 14px);
  height: 100%;
  padding-top: 0.7vh;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(239,227,196,0.66);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(13px, 1.45vw, 21px);
  letter-spacing: 0.08em;
  padding: 4px clamp(8px, 1.4vw, 20px);
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  transition: color 160ms ease;
}
.tab:nth-child(n+2)::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(3px, 0.5vw, 8px));
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(239,227,196,0.22);
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--ink);
  background: linear-gradient(180deg, #9e2e2a 0%, #7c211e 100%);
  border: 1px solid rgba(239,227,196,0.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 4px 10px rgba(0,0,0,0.45);
  transform: rotate(-0.4deg);
  padding-top: 5px;
}
.tab em {
  font-family: var(--text);
  font-style: normal;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--amber);
  opacity: 0.8;
  align-self: flex-start;
  margin-top: 3px;
}

.sound-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9,16,20,0.55);
  border: 1px solid rgba(239,227,196,0.24);
  color: var(--ink-dim);
  font-family: var(--display);
  font-size: clamp(9px, 0.85vw, 12px);
  letter-spacing: 0.1em;
  padding: 5px 10px;
  cursor: pointer;
  transform: rotate(0.3deg);
}
.sound-switch:hover { color: var(--ink); border-color: rgba(239,227,196,0.5); }
.sound-switch .lamp {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(242,179,84,0.85);
}
.sound-switch.off .lamp { background: #4a4134; box-shadow: none; }
.sound-switch.off { color: rgba(239,227,196,0.45); }

/* ============================================================
   PLAQUES + BUTTONS
   ============================================================ */

.plaque-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 42px);
  min-height: 46px;
  padding: 0 clamp(16px, 2vw, 30px);
  border: 2px solid #7c5a31;
  outline: 1px solid rgba(40,24,10,0.7);
  outline-offset: 2px;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #eddcb4 0%, #dcc28d 62%, #c9a974 100%);
  color: #2d1a0d;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 26px);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  box-shadow: 0 10px 20px -9px rgba(0,0,0,0.9), inset 0 0 18px rgba(104,66,24,0.18);
  cursor: pointer;
  transform: rotate(-0.35deg);
  transition: transform 120ms ease, filter 160ms ease;
}
.plaque-btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(62,38,16,0.24);
  pointer-events: none;
}
.plaque-btn .arrow {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #7c211e;
  margin-left: 6px;
  transition: transform 140ms ease;
}
.plaque-btn:hover:not(:disabled) { transform: translateY(-2px) rotate(-0.35deg); filter: brightness(1.045); }
.plaque-btn:hover:not(:disabled) .arrow { transform: translateX(3px); }
.plaque-btn:active:not(:disabled) { transform: translateY(1px) rotate(-0.35deg); }
.plaque-btn:disabled { opacity: 0.38; cursor: default; filter: grayscale(0.4); }
.plaque-btn.big { min-height: clamp(50px, 7vh, 62px); font-size: clamp(19px, 2.1vw, 30px); }

.text-btn {
  background: transparent;
  border: 0;
  color: rgba(239,227,196,0.58);
  font-family: var(--text);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 6px 10px;
  text-transform: uppercase;
}
.text-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   TITLE SCREEN
   ============================================================ */

#screen-title { background: transparent; }

.title-bg { position: absolute; inset: 0; }
.title-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.02);
  filter: saturate(0.94) contrast(1.03);
}
.title-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3,7,11,0.78) 0%, rgba(3,7,11,0.44) 38%, rgba(3,7,11,0.06) 68%, rgba(3,7,11,0.3) 100%),
    linear-gradient(0deg, rgba(4,8,12,0.9) 0%, rgba(4,8,12,0.04) 42%, rgba(4,8,12,0.32) 100%);
}

.title-score {
  position: absolute;
  z-index: 30;
  top: clamp(6px, 1.2vh, 14px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(310px, 36vw, 560px);
  aspect-ratio: 1024 / 415;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.65));
  opacity: 0.96;
}
.sb-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
}
.sb-inner {
  position: absolute;
  inset: 4.4% 2% 4% 2%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.sb-bay {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4%;
}
.sb-label {
  font-family: var(--display);
  font-size: clamp(8px, 0.9vw, 14px);
  letter-spacing: 0.16em;
  color: var(--ink);
  opacity: 0.85;
  text-shadow: 0 1px 2px #000;
}
.sb-value {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 3.8vw, 60px);
  line-height: 0.95;
  margin-top: 3%;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(242,179,84,0.28), 0 2px 3px #000;
}
.sb-mid { justify-content: flex-start; }
.sb-clock {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.2vw, 50px);
  line-height: 1;
  margin-top: 3%;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(242,179,84,0.28), 0 2px 3px #000;
}
.sb-qtr {
  font-family: var(--display);
  font-size: clamp(8px, 0.8vw, 12px);
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin-top: 1%;
}
.sb-crest {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  height: 27%;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.8));
}

.title-crest {
  position: absolute;
  z-index: 20;
  left: var(--pad);
  top: calc(var(--topbar-h) + 1.1vh);
}
.title-crest img {
  width: clamp(52px, 5.8vw, 92px);
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.72));
}

.title-copy {
  position: absolute;
  z-index: 20;
  left: var(--pad);
  top: 31%;
  width: min(57vw, 820px);
  max-width: calc(100vw - 2 * var(--pad));
}
.kicker {
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(9px, 1vw, 14px);
  letter-spacing: 0.24em;
  color: var(--amber);
  margin: 0 0 1.4vh;
  text-shadow: 0 1px 3px #000;
}
.kicker span { opacity: 0.55; margin: 0 6px; }
.title-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 0.78;
  letter-spacing: 0.005em;
  text-shadow: 0 4px 0 rgba(80,20,16,0.35), 0 14px 30px rgba(0,0,0,0.75);
}
.h1-top {
  display: block;
  font-size: clamp(22px, 3.2vw, 48px);
  letter-spacing: 0.26em;
  color: var(--amber);
  margin-bottom: 0.6vh;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.h1-main {
  display: block;
  font-size: clamp(58px, 9.4vw, 156px);
  color: #f2e6c7;
}
.title-lede {
  max-width: 38ch;
  margin: 2.2vh 0 0;
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(13px, 1.3vw, 19px);
  line-height: 1.45;
  color: rgba(239,227,196,0.86);
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}
.title-actions { margin-top: 3.2vh; }
.how-to {
  margin: 2.6vh 0 0;
  max-width: 48ch;
  font-family: var(--text);
  font-size: clamp(10px, 0.95vw, 13px);
  line-height: 1.5;
  color: rgba(239,227,196,0.55);
}
.how-to b {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-right: 7px;
}

.title-qb {
  position: absolute;
  z-index: 12;
  right: 4vw;
  bottom: 0;
  height: 82vh;
  pointer-events: none;
}
.title-qb img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)) saturate(0.95);
  opacity: 0.97;
}
.title-foot {
  position: absolute;
  z-index: 20;
  right: var(--pad);
  bottom: calc(2.2vh + env(safe-area-inset-bottom));
  font-family: var(--display);
  font-size: clamp(9px, 0.85vw, 12px);
  letter-spacing: 0.18em;
  color: rgba(239,227,196,0.55);
}

/* ============================================================
   WEEK SCREEN
   ============================================================ */

#screen-week { background: #080e12; }

.week-bg { position: absolute; inset: 0; }
.week-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: brightness(1.16) contrast(1.03) saturate(1.06);
}
.week-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,8,12,0.62) 0%, rgba(4,8,12,0.16) 38%, rgba(4,8,12,0.07) 62%, rgba(4,8,12,0.64) 100%),
    linear-gradient(180deg, rgba(4,8,12,0.76) 0%, rgba(4,8,12,0.03) 26%, rgba(4,8,12,0.08) 62%, rgba(4,8,12,0.88) 100%);
}

.week-main {
  position: absolute;
  top: calc(var(--topbar-h) + 1.2vh);
  bottom: calc(var(--bottom-h) + 1vh);
  left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 24vw) minmax(0, 1fr) minmax(160px, 20vw);
  gap: clamp(10px, 2vw, 32px);
  padding: 0 var(--pad);
  align-items: stretch;
}

.week-left {
  position: relative;
  min-width: 0;
}
.crest {
  position: absolute;
  top: 0;
  left: clamp(0px, 1vw, 12px);
  width: clamp(48px, 5.6vw, 92px);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.75));
}
.portrait-wrap {
  position: absolute;
  left: 50%;
  bottom: -2vh;
  height: 94%;
  overflow: hidden;
  transform: translateX(-50%);
}
.portrait-wrap img {
  height: 126%;
  width: auto;
  object-fit: contain;
  object-position: top;
  filter: drop-shadow(0 20px 28px rgba(0,0,0,0.7)) saturate(0.96);
}
.portrait-caption {
  position: absolute;
  bottom: 1.4vh;
  left: clamp(0px, 1vw, 12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 9px;
  border-left: 2px solid var(--amber);
  text-shadow: 0 1px 4px #000;
}
.pc-label {
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
#condition {
  font-family: var(--display);
  font-size: clamp(12px, 1.2vw, 17px);
  letter-spacing: 0.1em;
  color: var(--amber);
}

.week-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.week-center::-webkit-scrollbar { display: none; }

.week-live {
  position: relative;
  flex: 0 0 auto;
  width: clamp(250px, 23vw, 330px);
  aspect-ratio: 16 / 9;
  margin: 0 auto clamp(7px, 1.1vh, 14px);
  background: #050b10;
  border: 2px solid #74522f;
  outline: 1px solid rgba(40,24,10,0.8);
  outline-offset: 2px;
  box-shadow: 0 18px 30px -16px rgba(0,0,0,0.95), inset 0 0 22px rgba(0,0,0,0.6);
  transform: rotate(-0.25deg);
  z-index: 1;
}
.week-live canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.week-live-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(4,9,12,0.42) 0%, rgba(4,9,12,0.04) 42%, rgba(4,9,12,0.22) 100%);
}
.week-live-frame {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(239,227,196,0.32);
  pointer-events: none;
}
.week-live-frame::before,
.week-live-frame::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid rgba(239,227,196,0.5);
  top: -5px;
}
.week-live-frame::before { left: -5px; border-right: 0; border-bottom: 0; }
.week-live-frame::after { right: -5px; border-left: 0; border-bottom: 0; }
.week-live-label {
  position: absolute;
  left: 7px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--display);
  font-size: clamp(7px, 0.66vw, 9px);
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(4,9,12,0.66);
  border: 1px solid rgba(239,227,196,0.18);
  padding: 2px 6px;
  text-shadow: 0 1px 2px #000;
}
.live-sep { opacity: 0.55; }
.live-lamp {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 6px rgba(179,52,47,0.8);
}
.week-head { text-align: center; margin-bottom: clamp(10px, 2vh, 22px); }
.week-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(9px, 0.95vw, 13px);
  letter-spacing: 0.2em;
  color: var(--amber);
  text-shadow: 0 1px 3px #000;
}
.week-kicker .dot { opacity: 0.5; }
.week-title {
  margin: 0.6vh 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(50px, 7.6vw, 126px);
  line-height: 0.8;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-shadow: 0 5px 0 rgba(74,20,16,0.3), 0 14px 30px rgba(0,0,0,0.8);
}
.week-vs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1vh;
  font-family: var(--display);
  font-size: clamp(12px, 1.3vw, 19px);
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-shadow: 0 1px 3px #000;
}
.vs-tag {
  font-family: var(--text);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--crimson);
  border: 1px solid rgba(239,227,196,0.35);
  padding: 2px 5px;
  transform: rotate(-2deg);
}
.week-flavor {
  margin: 1.2vh auto 0;
  max-width: 60ch;
  font-family: var(--text);
  font-size: clamp(11px, 1.02vw, 15px);
  line-height: 1.4;
  color: rgba(239,227,196,0.72);
  text-shadow: 0 1px 4px #000;
}

.choice-label {
  font-family: var(--display);
  font-size: clamp(9px, 0.85vw, 12px);
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin-bottom: 6px;
  align-self: flex-start;
  padding-left: 3px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1.1vw, 16px);
  width: 100%;
  max-width: 1040px;
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid rgba(58,36,21,0.58);
  background:
    radial-gradient(ellipse at 28% 4%, rgba(255,253,241,0.8), rgba(255,253,241,0) 58%),
    radial-gradient(ellipse at 82% 94%, rgba(96,58,22,0.14), rgba(96,58,22,0) 55%),
    linear-gradient(178deg, #f3e5c1 0%, #e7d3a7 56%, #d4b989 100%);
  color: var(--ink-brown);
  padding: clamp(7px, 0.8vw, 12px);
  min-height: clamp(180px, 27vh, 282px);
  cursor: pointer;
  box-shadow:
    0 22px 30px -20px rgba(0,0,0,0.95),
    0 2px 0 rgba(255,248,225,0.35) inset,
    0 0 22px rgba(90,58,22,0.14) inset;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 170ms cubic-bezier(.2,.7,.3,1), box-shadow 170ms ease, filter 170ms ease;
  overflow: hidden;
}
.choice-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(74,46,22,0.18);
  pointer-events: none;
}
.choice-card:nth-child(1) { --tilt: -0.5deg; }
.choice-card:nth-child(2) { --tilt: 0.35deg; }
.choice-card:nth-child(3) { --tilt: -0.25deg; }
.choice-card:nth-child(4) { --tilt: 0.5deg; }
.choice-card:hover {
  transform: translateY(-5px) rotate(var(--tilt, 0deg));
  box-shadow: 0 26px 32px -20px rgba(0,0,0,0.98), 0 0 30px rgba(242,179,84,0.2) inset;
  filter: brightness(1.03);
}
.choice-card.chosen {
  transform: translateY(-7px) rotate(var(--tilt, 0deg));
  box-shadow: 0 0 0 3px rgba(242,179,84,0.9), 0 26px 34px -18px rgba(0,0,0,1), 0 0 40px rgba(242,179,84,0.28);
}
.choice-card.chosen::before {
  content: "SET";
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--crimson);
  border: 1px solid rgba(239,227,196,0.5);
  padding: 2px 5px;
  transform: rotate(3deg);
}
.choice-card.dim { opacity: 0.55; filter: saturate(0.7); }

.card-art {
  height: clamp(84px, 13vh, 132px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
  padding: 5px 7px;
  border: 1px solid rgba(40,24,10,0.28);
  background:
    radial-gradient(ellipse at 50% 36%, rgba(242,179,84,0.18), rgba(10,16,12,0.92) 68%),
    linear-gradient(180deg, #20281f 0%, #38301f 100%);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.55);
}
.card-art img {
  max-width: 92%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 7px rgba(62,38,16,0.28));
  transition: transform 220ms ease;
}
.choice-card:hover .card-art img { transform: scale(1.035); }
.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.62vw, 24px);
  line-height: 0.95;
  letter-spacing: 0.045em;
  margin: 0;
  color: #2d4337;
}
.card-copy {
  margin: 5px 0 0;
  font-family: var(--text);
  font-size: clamp(10px, 0.98vw, 14px);
  line-height: 1.24;
  font-weight: 500;
  color: #4d301c;
}
.card-fx {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  font-family: var(--num);
  font-weight: 700;
  font-size: clamp(9px, 0.82vw, 12px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fx-up { color: #245436; }
.fx-down { color: #8d241f; }

.choice-result {
  width: 100%;
  max-width: 1040px;
  min-height: 3.6vh;
  margin-top: 7px;
  font-family: var(--text);
  font-size: clamp(10px, 1vw, 14px);
  line-height: 1.3;
  color: var(--amber);
  text-align: left;
  padding-left: 3px;
  text-shadow: 0 1px 4px #000;
  opacity: 0;
  transition: opacity 240ms ease;
}
.choice-result.show { opacity: 1; }

/* right rail */
.week-rail {
  align-self: center;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: clamp(8px, 1vw, 14px) clamp(9px, 1.1vw, 16px);
  background: linear-gradient(180deg, rgba(7,14,11,0.72), rgba(7,14,11,0.5));
  border: 1px solid rgba(239,227,196,0.18);
  box-shadow: 0 20px 34px -24px rgba(0,0,0,0.95), inset 0 0 26px rgba(0,0,0,0.32);
  transform: rotate(0.25deg);
}
.week-rail::-webkit-scrollbar { display: none; }
.rail-head {
  font-family: var(--display);
  font-size: clamp(9px, 0.8vw, 12px);
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(239,227,196,0.14);
}
.stat-row {
  display: grid;
  grid-template-columns: clamp(28px, 2.6vw, 40px) 1fr;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
}
.stat-icon {
  width: 100%;
  height: clamp(26px, 2.5vw, 38px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.55));
}
.stat-body { min-width: 0; }
.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.stat-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(9px, 0.85vw, 12px);
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.stat-num {
  font-family: var(--num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(10px, 0.9vw, 13px);
  color: var(--ink-dim);
}
.meter {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}
.meter i {
  display: block;
  height: clamp(4px, 0.55vh, 7px);
  flex: 1;
  background: rgba(239,227,196,0.1);
  border: 1px solid rgba(239,227,196,0.16);
  transition: background 340ms ease, box-shadow 340ms ease;
}
.meter i.on {
  background: var(--ink);
  border-color: rgba(239,227,196,0.7);
  box-shadow: 0 0 5px rgba(239,227,196,0.22);
}
.meter i.warn.on { background: var(--crimson); border-color: rgba(239,227,196,0.5); box-shadow: none; }
.stat-row .delta {
  font-family: var(--num);
  font-weight: 700;
  font-size: 10px;
  margin-left: 3px;
  opacity: 0;
  transition: opacity 300ms ease;
}
.stat-row .delta.show { opacity: 1; }
.rail-note {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(239,227,196,0.14);
}
.rail-note-head {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.rail-note p {
  margin: 3px 0 0;
  font-family: var(--text);
  font-size: clamp(9px, 0.82vw, 11.5px);
  line-height: 1.3;
  color: rgba(239,227,196,0.62);
}

/* bottom bar */
.week-bottom {
  position: absolute;
  z-index: 30;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--pad) env(safe-area-inset-bottom);
  background: linear-gradient(0deg, rgba(3,7,11,0.95) 22%, rgba(3,7,11,0.5) 70%, rgba(3,7,11,0) 100%);
}
.season-strip {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1vw, 14px);
  min-width: 0;
}
.season-label {
  font-family: var(--display);
  font-size: clamp(9px, 0.85vw, 13px);
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.season-chips {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}
.chip {
  width: clamp(26px, 2.5vw, 38px);
  height: clamp(36px, 4.6vh, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239,227,196,0.17);
  background: rgba(5,10,12,0.45);
  line-height: 1;
  transform: rotate(var(--ct, 0deg));
}
.chip .cw {
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(239,227,196,0.4);
}
.chip .cr {
  font-family: var(--num);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 20px);
  color: rgba(239,227,196,0.32);
  margin-top: 2px;
}
.chip.win .cr { color: var(--ink); }
.chip.loss .cr { color: #e06a66; }
.chip.win { border-color: rgba(239,227,196,0.4); background: rgba(239,227,196,0.06); }
.chip.loss { border-color: rgba(179,52,47,0.5); background: rgba(120,30,26,0.12); }
.chip.now {
  border-color: var(--amber);
  background: rgba(242,179,84,0.1);
  box-shadow: 0 0 0 1px rgba(242,179,84,0.4) inset;
}
.chip.now .cr { color: var(--amber); }
.bottom-actions { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); }
.week-bottom .plaque-btn { min-width: clamp(150px, 16vw, 240px); }

#advance {
  background:
    radial-gradient(ellipse at 28% 12%, rgba(255,255,255,0.07), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #19221c 0%, #0a1210 100%);
  color: var(--ink);
  border-color: rgba(239,227,196,0.42);
  outline-color: rgba(0,0,0,0.7);
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(242,179,84,0.12);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,1), inset 0 0 20px rgba(0,0,0,0.55);
}
#advance::after { border-color: rgba(239,227,196,0.18); }
#advance .arrow { border-left-color: var(--ink); }
#advance:hover:not(:disabled) { filter: brightness(1.22); }
#advance:disabled { opacity: 0.42; filter: grayscale(0.2); }

/* ============================================================
   SNAP SCREEN
   ============================================================ */

#screen-snap { background: transparent; }

.field-ui {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.field-ui button { pointer-events: auto; }

.snap-score {
  position: absolute;
  top: clamp(6px, 1.4vh, 16px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 36vw, 540px);
  z-index: 25;
}
.score-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 415;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.75));
}
.snap-score .sb-inner { inset: 4.6% 2% 4.4% 2%; }
.snap-score .sb-value { font-size: clamp(30px, 3.6vw, 56px); margin-top: 2%; }
.snap-score .sb-clock { font-size: clamp(23px, 2.7vw, 42px); }
.snap-score .sb-label { font-size: clamp(7px, 0.75vw, 11px); letter-spacing: 0.12em; }
.snap-score .sb-crest { top: 0; height: 18%; }

.hud-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.4vh;
  padding: 0 0.6vw;
}
.down-plate {
  position: relative;
  width: clamp(110px, 12vw, 190px);
  aspect-ratio: 429 / 173;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,0.6));
}
.down-plate img { width: 100%; height: 100%; object-fit: fill; }
.down-plate span {
  position: absolute;
  inset: 18% 8% 18% 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 21px);
  letter-spacing: 0.06em;
  color: #40140f;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.field-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 1px;
}
.def-read {
  font-family: var(--display);
  font-size: clamp(9px, 0.9vw, 13px);
  letter-spacing: 0.16em;
  color: var(--amber);
  text-shadow: 0 1px 4px #000;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.drive-plate {
  position: relative;
  width: clamp(130px, 14vw, 230px);
  aspect-ratio: 451 / 105;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.55));
}
.drive-plate img {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  object-fit: fill;
}
.drive-fill {
  position: absolute;
  z-index: 1;
  left: 5%;
  top: 20%;
  height: 60%;
  width: 0%;
  background: linear-gradient(90deg, rgba(242,179,84,0.55), rgba(242,179,84,0.9));
  box-shadow: 0 0 10px rgba(242,179,84,0.5);
  transition: width 500ms cubic-bezier(.2,.7,.3,1);
}
.timeout-plate {
  position: relative;
  width: clamp(74px, 8.4vw, 130px);
  aspect-ratio: 437 / 132;
  opacity: 0.82;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.5));
}
.timeout-plate img { width: 100%; height: 100%; object-fit: fill; }
.timeout-plate span {
  position: absolute;
  inset: 36% 40% 32% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #3d120e;
}

.snap-toast {
  position: absolute;
  top: 29%;
  left: 50%;
  transform: translateX(-50%) rotate(-0.5deg);
  font-family: var(--display);
  font-size: clamp(15px, 1.7vw, 26px);
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(5,10,14,0.62);
  border: 1px solid rgba(239,227,196,0.22);
  padding: 5px 14px;
  opacity: 0;
  transition: opacity 280ms ease;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
.snap-toast.show { opacity: 1; }

.commentary {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(188px, 27vh, 250px) + 8px);
  transform: translateX(-50%);
  max-width: min(88vw, 760px);
  text-align: center;
  font-family: var(--text);
  font-weight: 500;
  font-size: clamp(11px, 1.05vw, 16px);
  line-height: 1.3;
  color: var(--ink);
  background: rgba(4,9,12,0.68);
  padding: 5px 12px;
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.commentary.show { opacity: 1; }

/* outcome stamp */
.stamp-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 35;
}
.stamp {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(54px, 10.4vw, 176px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
  border: clamp(4px, 0.6vw, 9px) solid var(--ink);
  padding: clamp(4px, 0.7vw, 12px) clamp(16px, 2.4vw, 46px);
  text-shadow: 0 4px 0 rgba(0,0,0,0.34), 0 16px 30px rgba(0,0,0,0.55);
  box-shadow: 0 0 30px rgba(0,0,0,0.35), inset 0 0 24px rgba(0,0,0,0.18);
  transform: rotate(-6deg) scale(1.7);
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(239,227,196,0.2));
  white-space: nowrap;
}
.stamp.bad { color: #e8a7a1; border-color: #d77a72; }
.stamp.good { color: #efe3c4; border-color: #efe3c4; }
.stamp.gold { color: var(--amber); border-color: var(--amber); }
.stamp.small { font-size: clamp(34px, 6vw, 96px); border-width: clamp(3px, 0.42vw, 6px); padding: clamp(3px, 0.5vw, 8px) clamp(12px, 1.6vw, 28px); }
.stamp.hit {
  animation: stampHit 420ms cubic-bezier(.2,.9,.25,1) forwards;
}
@keyframes stampHit {
  0%   { opacity: 0; transform: rotate(-11deg) scale(2.3); filter: blur(1px); }
  58%  { opacity: 1; transform: rotate(-6deg) scale(0.94); filter: blur(0); }
  72%  { transform: rotate(-6deg) scale(1.02); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}
.stamp.out { animation: stampOut 520ms ease forwards; }
@keyframes stampOut {
  from { opacity: 1; transform: rotate(-6deg) scale(1); }
  to   { opacity: 0; transform: rotate(-5deg) scale(1.04); }
}

/* play dock */
.play-dock {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 16px var(--pad) calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(3,7,10,0.95) 30%, rgba(3,7,10,0.62) 66%, rgba(3,7,10,0) 100%);
  pointer-events: auto;
  transition: opacity 220ms ease;
}
.play-dock.locked { pointer-events: none; }
.play-dock.locked .play-row,
.play-dock.locked .kick-row { opacity: 0.55; filter: saturate(0.75); }
.play-dock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto 4px;
  font-family: var(--display);
  font-size: clamp(9px, 0.82vw, 12px);
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.pd-drive { color: var(--ink-dim); }
.play-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(5px, 0.9vw, 14px);
  max-width: 980px;
  margin: 0 auto;
  transition: opacity 180ms ease;
}
.play-tile {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  aspect-ratio: 1;
  cursor: pointer;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.6));
  transition: transform 150ms cubic-bezier(.2,.7,.3,1), filter 150ms ease;
  min-width: 0;
}
.play-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 150ms ease;
}
.play-tile:hover { transform: translateY(-5px); filter: drop-shadow(0 0 16px rgba(242,179,84,0.55)) drop-shadow(0 12px 16px rgba(0,0,0,0.7)); }
.play-tile:hover img { filter: brightness(1.12); }
.play-tile:active { transform: translateY(1px) scale(0.985); }
.play-tile .pt-label {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: clamp(7.5px, 0.78vw, 12px);
  letter-spacing: 0.08em;
  color: #f0e3c4;
  background: rgba(4,10,13,0.66);
  border: 1px solid rgba(239,227,196,0.13);
  padding: 1px 5px;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
}
.play-tile .pt-tag {
  position: absolute;
  top: 6%;
  right: 5%;
  font-family: var(--text);
  font-weight: 700;
  font-size: clamp(7px, 0.62vw, 9px);
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(4,10,13,0.72);
  padding: 1px 4px;
  opacity: 0.82;
  transition: opacity 140ms ease;
}
.play-tile:hover .pt-tag { opacity: 1; }
.play-tile.picked {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 20px rgba(242,179,84,0.75)) drop-shadow(0 12px 16px rgba(0,0,0,0.7));
  animation: tileLift 260ms ease;
}
@keyframes tileLift {
  0% { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(-4px) scale(1); }
}
.play-tile.picked img { filter: brightness(1.2); }

.kick-row {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 7px;
}
.kick-row.show { display: flex; }
.kick-row .plaque-btn { min-height: 40px; font-size: clamp(13px, 1.25vw, 18px); background: linear-gradient(180deg, #e9d6ab, #c9a974); }
.kick-note {
  font-family: var(--text);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.dock-hint {
  text-align: center;
  margin-top: 3px;
  font-family: var(--text);
  font-size: clamp(8px, 0.72vw, 10px);
  letter-spacing: 0.18em;
  color: rgba(239,227,196,0.4);
}

/* loading overlay */
.snap-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(8,17,25,0.9), rgba(3,7,11,0.98));
  transition: opacity 450ms ease;
  pointer-events: auto;
}
.snap-loading.gone { opacity: 0; pointer-events: none; }
.load-plate { text-align: center; }
.load-title {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 92px);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-shadow: 0 8px 20px rgba(0,0,0,0.7);
}
.load-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--text);
  font-size: clamp(9px, 0.9vw, 12px);
  letter-spacing: 0.22em;
  color: var(--amber);
}
.load-bar {
  width: min(320px, 60vw);
  height: 3px;
  margin: 18px auto 0;
  background: rgba(239,227,196,0.16);
  overflow: hidden;
}
.load-bar i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--amber);
  animation: loadSlide 1.1s ease-in-out infinite;
}
@keyframes loadSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

/* ============================================================
   POSTGAME
   ============================================================ */

#screen-post { background: #070d10; }
.post-bg { position: absolute; inset: 0; }
.post-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; filter: saturate(0.85) brightness(0.8); }
#screen-post .week-shade { background: linear-gradient(180deg, rgba(4,8,12,0.94) 0%, rgba(4,8,12,0.72) 40%, rgba(4,8,12,0.9) 100%); }

.post-wrap {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--topbar-h) + 2vh) var(--pad) calc(3vh + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.post-kicker {
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.26em;
  color: var(--amber);
}
.post-stamp {
  margin-top: 0.6vh;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 136px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 5px 0 rgba(60,16,12,0.4), 0 18px 36px rgba(0,0,0,0.75);
  transform: rotate(-2deg);
}
.post-stamp.loss { color: #e49791; }
.post-stamp.win { color: #f1e4c5; }
.post-score {
  margin-top: 1.2vh;
  font-family: var(--num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(16px, 1.62vw, 24px);
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.post-title {
  margin: 1.8vh 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 48px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  max-width: 22ch;
  text-shadow: 0 6px 18px rgba(0,0,0,0.7);
}
.post-copy {
  margin: 1.4vh auto 0;
  max-width: 62ch;
  font-family: var(--text);
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 1.45;
  color: rgba(239,227,196,0.7);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  width: min(980px, 100%);
  margin-top: 2.6vh;
}
.post-card {
  text-align: left;
  padding: clamp(9px, 1vw, 15px);
  background: rgba(8,15,18,0.72);
  border: 1px solid rgba(239,227,196,0.16);
  box-shadow: 0 18px 30px -22px rgba(0,0,0,1), inset 0 0 22px rgba(0,0,0,0.25);
}
.pc-head {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--amber);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(239,227,196,0.12);
  margin-bottom: 7px;
}
.post-line { display: flex; flex-direction: column; gap: 4px; }
.pl-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--text);
  font-size: clamp(10px, 0.9vw, 13px);
  color: rgba(239,227,196,0.75);
}
.pl-row b { font-family: var(--num); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.post-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ps-item {
  font-family: var(--text);
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(239,227,196,0.7);
}
.ps-item b { font-family: var(--num); color: var(--ink); }
.ps-item .up { color: #9ccf9a; }
.ps-item .down { color: #e4938c; }
.post-season { font-family: var(--num); font-weight: 600; font-size: clamp(15px, 1.5vw, 23px); color: var(--ink); letter-spacing: 0.05em; }
.post-season small { display: block; font-family: var(--text); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-faint); margin-top: 3px; }
.post-actions { margin-top: 3vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.post-hint { margin: 0; font-family: var(--text); font-size: 10px; letter-spacing: 0.12em; color: rgba(239,227,196,0.42); }

/* ============================================================
   WIPE, TOAST
   ============================================================ */

#wipe {
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  transform: translateX(-104%);
  background:
    repeating-linear-gradient(176deg, rgba(240,230,200,0.05) 0px, rgba(240,230,200,0.05) 2px, rgba(0,0,0,0) 3px, rgba(0,0,0,0) 17px),
    repeating-linear-gradient(2deg, rgba(0,0,0,0.22) 0px, rgba(0,0,0,0.22) 6px, rgba(0,0,0,0) 7px, rgba(0,0,0,0) 23px),
    linear-gradient(90deg, #0b1a13 0%, #0c1c15 62%, #12251b 100%);
  box-shadow: 0 0 80px rgba(0,0,0,0.9);
  transition: transform 560ms cubic-bezier(.72,.02,.32,1);
}
#wipe .wipe-chalk {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 80px 7px at 20% 18%, rgba(245,238,216,0.5), rgba(245,238,216,0) 70%),
    radial-gradient(ellipse 140px 10px at 66% 36%, rgba(245,238,216,0.34), rgba(245,238,216,0) 70%),
    radial-gradient(ellipse 90px 6px at 38% 64%, rgba(245,238,216,0.34), rgba(245,238,216,0) 70%),
    radial-gradient(ellipse 120px 8px at 78% 82%, rgba(245,238,216,0.3), rgba(245,238,216,0) 70%);
  filter: blur(1px);
}
#wipe .wipe-edge {
  position: absolute;
  top: 0; bottom: 0; right: -4px;
  width: 12px;
  background: linear-gradient(90deg, rgba(242,179,84,0) 0%, rgba(242,179,84,0.55) 50%, rgba(242,179,84,0) 100%);
  filter: blur(3px);
}
#wipe.cover { transform: translateX(0); }
#wipe.reveal { transform: translateX(104%); }

#toast {
  position: absolute;
  z-index: 95;
  left: 50%;
  bottom: calc(var(--bottom-h) + 18px);
  transform: translateX(-50%) translateY(8px) rotate(-0.4deg);
  background: rgba(6,12,15,0.92);
  border: 1px solid rgba(239,227,196,0.32);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: 0.08em;
  padding: 8px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: 88vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-0.4deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .week-main { grid-template-columns: minmax(120px, 20vw) minmax(0, 1fr) minmax(146px, 19vw); }
  .card-copy { font-size: 10px; }
  .week-rail { padding: 7px 9px; }
}

@media (max-width: 900px) {
  .tab em { display: none; }
  .tab { font-size: 14px; }
  .week-main { grid-template-columns: minmax(90px, 15vw) minmax(0, 1fr) minmax(130px, 20vw); gap: 8px; }
  .choices { gap: 6px; }
  .card-title { font-size: 13px; }
  .card-copy { font-size: 9px; }
  .choice-card { min-height: 140px; padding: 6px; }
  .card-art { height: 64px; }
  .week-title { font-size: clamp(40px, 7vw, 74px); }
  .week-flavor { display: none; }
  .title-qb { height: 64vh; opacity: 0.55; }
  .title-copy { width: min(78vw, 640px); top: 30%; }
}

@media (max-width: 720px), (orientation: portrait) {

  :root { --pad: 12px; --bottom-h: 96px; }

  .grain { opacity: 0.06; }
  .cf { width: 58px; }

  .topbar { height: 46px; padding: 0 10px; }
  .tabs { gap: 2px; padding-top: 0; }
  .tab { font-size: 12.5px; padding: 4px 8px; }
  .tab.active { padding-top: 4px; }
  .sound-switch { padding: 4px 7px; }
  .sound-switch .sound-label { display: none; }
  .sound-switch .lamp { width: 9px; height: 9px; }

  /* title */
  .title-score { display: none; }
  .title-crest { top: calc(var(--topbar-h) + 1.4vh); left: var(--pad); }
  .title-crest img { width: 58px; }
  .title-copy {
    top: auto;
    bottom: calc(6vh + env(safe-area-inset-bottom));
    left: var(--pad);
    width: calc(100vw - 2 * var(--pad));
    max-width: none;
  }
  .h1-main { font-size: clamp(50px, 15vw, 88px); }
  .h1-top { font-size: 20px; }
  .title-lede { font-size: 13px; max-width: 34ch; }
  .how-to { display: none; }
  .title-qb { right: -14vw; bottom: 18vh; height: 66vh; opacity: 0.5; }
  .title-foot { display: none; }
  .title-shade { background: linear-gradient(0deg, rgba(3,7,11,0.96) 0%, rgba(3,7,11,0.55) 54%, rgba(3,7,11,0.28) 100%); }

  /* week: stacked and scrollable */
  #screen-week .topbar { background: linear-gradient(180deg, rgba(4,9,14,0.96), rgba(4,9,14,0.82)); }
  .week-main {
    top: 46px;
    bottom: calc(var(--bottom-h) + 4px);
    display: block;
    overflow-y: auto;
    padding: 8px var(--pad) 18px;
    -webkit-overflow-scrolling: touch;
  }
  .week-left {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    height: 26vh;
    min-height: 150px;
    margin-bottom: 2px;
  }
  .week-left .crest { position: absolute; top: 0; left: 0; width: 48px; }
  .portrait-wrap {
    position: absolute;
    left: 46%;
    bottom: 0;
    height: 100%;
    transform: translateX(-50%);
  }
  .portrait-caption { bottom: 0; left: auto; right: 0; }
  .week-center { display: block; }
  .week-live { width: 100%; max-width: 460px; margin: 2px auto 9px; transform: none; }
  .week-head { text-align: left; margin-bottom: 8px; }
  .week-title { font-size: clamp(42px, 12.5vw, 64px); }
  .week-vs { margin-top: 3px; }
  .week-flavor { display: block; margin: 5px 0 0; font-size: 10.5px; max-width: 52ch; }
  .choice-label { margin: 8px 0 5px; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .choice-card { min-height: 168px; padding: 8px; }
  .card-art { height: 76px; }
  .card-title { font-size: 16px; }
  .card-copy { font-size: 10px; }
  .card-fx { font-size: 9px; }
  .choice-result { font-size: 10px; min-height: 24px; }

  .week-rail {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    padding: 9px 11px;
    max-height: none;
    overflow: visible;
    align-self: stretch;
  }
  .rail-head { grid-column: 1 / -1; margin-bottom: 1px; }
  .stat-row { grid-template-columns: 26px 1fr; gap: 5px; }
  .stat-icon { height: 24px; }
  .rail-note { grid-column: 1 / -1; margin-top: 3px; }
  .rail-note p { font-size: 10px; }

  .week-bottom { height: var(--bottom-h); padding: 0 var(--pad) calc(env(safe-area-inset-bottom) + 2px); }
  .season-strip { gap: 5px; }
  .season-label { display: none; }
  .season-chips { gap: 2px; }
  .chip { width: 25px; height: 34px; }
  .chip .cw { font-size: 7px; }
  .chip .cr { font-size: 13px; }
  .week-bottom .plaque-btn { min-width: 0; min-height: 44px; padding: 0 14px; font-size: 16px; gap: 10px; }
  #reset-season { display: none; }

  /* snap */
  .snap-score { top: 5px; width: min(88vw, 480px); }
  .snap-score .sb-value { font-size: clamp(30px, 9vw, 46px); }
  .snap-score .sb-clock { font-size: clamp(23px, 7vw, 38px); }
  .hud-row { gap: 4px; padding: 0 2px; }
  .down-plate { width: 120px; }
  .down-plate span { font-size: 12px; }
  .drive-plate { width: 128px; }
  .timeout-plate { display: none; }
  .field-mid { padding-top: 0; }
  .def-read { font-size: 9px; white-space: normal; line-height: 1.15; max-height: 22px; }
  .play-dock { padding: 14px var(--pad) calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(3,7,10,0.98) 44%, rgba(3,7,10,0.88) 76%, rgba(3,7,10,0) 100%); }
  .play-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; max-width: 480px; }
  .play-tile { aspect-ratio: 1.22; }
  .play-tile .pt-label { font-size: 8.5px; bottom: 4%; }
  .play-dock-head { font-size: 8.5px; margin-bottom: 3px; }
  .dock-hint { display: none; }
  .commentary { bottom: clamp(268px, 41vh, 380px); font-size: 10.5px; max-width: 92vw; }
  .snap-toast { top: 30%; font-size: 13px; padding: 3px 9px; }
  .stamp { font-size: clamp(48px, 15vw, 96px); }
  .kick-row { margin-top: 5px; }
  .kick-row .plaque-btn { min-height: 34px; font-size: 12px; }
  .kick-note { font-size: 8px; }

  /* post */
  .post-wrap { justify-content: flex-start; padding-top: 58px; }
  .post-grid { grid-template-columns: 1fr; width: 100%; margin-top: 16px; }
  .post-stamp { font-size: clamp(50px, 14vw, 86px); }
  .post-title { font-size: clamp(20px, 6vw, 32px); max-width: 28ch; }
  .post-actions { margin-top: 18px; }
  .post-actions .plaque-btn { font-size: 15px; min-height: 46px; }
  #toast { bottom: calc(var(--bottom-h) + 12px); font-size: 11px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root { --bottom-h: 62px; }
  .title-score { display: none; }
  .title-copy { top: 23%; bottom: auto; }
  .title-qb { height: 95vh; right: 2vw; bottom: 0; }
  .title-lede, .how-to { display: none; }
  .h1-main { font-size: clamp(44px, 8vw, 76px); }
  .week-main { top: 48px; bottom: 64px; }
  .week-left { min-height: 0; }
  .week-head { margin-bottom: 2px; }
  .week-title { font-size: clamp(32px, 5vw, 56px); }
  .week-flavor { display: none; }
  .week-live { width: min(34vw, 240px); margin-bottom: 4px; }
  .choice-card { min-height: 118px; }
  .card-art { height: 50px; }
  .card-copy { font-size: 8.5px; }
  .choice-result { min-height: 0; }
  .rail-note { display: none; }
  .week-bottom { height: 62px; }
  .snap-score { width: min(40vw, 340px); }
  .snap-score .sb-value { font-size: 26px; }
  .snap-score .sb-clock { font-size: 22px; }
  .hud-row { margin-top: 0; }
  .down-plate { width: 108px; }
  .drive-plate { width: 120px; }
  .timeout-plate { display: none; }
  .play-dock { padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(3,7,10,0.97) 50%, rgba(3,7,10,0.86) 82%, rgba(3,7,10,0) 100%); }
  .play-dock-head, .dock-hint { display: none; }
  .play-row { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 100%; gap: 3px; }
  .play-tile { aspect-ratio: 1; max-height: 76px; }
  .play-tile .pt-label { font-size: 7px; bottom: 2%; padding: 0 3px; }
  .play-tile .pt-tag { display: none; }
  .kick-row { margin-top: 2px; }
  .kick-row .plaque-btn { min-height: 30px; font-size: 11px; }
  .commentary { bottom: 96px; font-size: 10px; }
  .snap-toast { top: 22%; }
  .chip { height: 30px; width: 24px; }
  .post-wrap { padding-top: 48px; }
  .post-grid { margin-top: 10px; }
  .post-copy { display: none; }
  .post-actions { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp.hit { animation-duration: 1ms; }
  #wipe { transition-duration: 200ms; }
  .load-bar i { animation: none; width: 100%; }
}
