/* ─────────────────────────────────────────────────
   didthemetswin.com
   Home whites with pinstripes, a Mets-blue scoreboard
   hero, and one loud thing: the answer, set like a
   jersey numeral with an orange drop shadow.
───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
    --blue:        #002D72;   /* Mets blue */
    --blue-deep:   #001E4E;
    --orange:      #FF5910;   /* Mets orange, large type and fills only */
    --orange-ink:  #C2410C;   /* orange that passes AA as small text on white */
    --orange-soft: rgba(255, 89, 16, 0.12);
    --paper:       #F5F7FB;   /* home whites */
    --stripe:      rgba(0, 45, 114, 0.065);
    --panel:       #FFFFFF;
    --ink:         #0B1B3A;
    --muted:       #52618A;
    --faint:       #98A3BE;
    --rule:        #DCE2EE;
    --loss:        #002D72;
    --loss-soft:   rgba(0, 45, 114, 0.09);
    --apple:       #D52B1E;
    --leaf:        #2E8B3E;

    --display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
    --text:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper:      #061230;   /* road navy */
        --stripe:     rgba(255, 255, 255, 0.028);
        --panel:      #0C1C42;
        --ink:        #EDF1FA;
        --muted:      #9DABCB;
        --faint:      #5F6F98;
        --rule:       #1B2D5A;
        --orange-ink: #FF8A4C;
        --loss:       #93AAE0;
        --loss-soft:  rgba(147, 170, 224, 0.13);
    }
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--paper);
    background-image: linear-gradient(90deg, var(--stripe) 1px, transparent 1px);
    background-size: 26px 100%;
    color: var(--ink);
    font-family: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.num { font-variant-numeric: tabular-nums; }

/* ── masthead ── */
.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: var(--blue);
    color: #fff;
}
.wordmark {
    font-weight: 800;
    font-stretch: 78%;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.masthead-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

/* ── Bobby Bonilla Day ── */
.bonilla-banner {
    background: var(--blue-deep);
    color: #FFC7A8;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── LED ribbon board (wins only) ── */
.ribbon {
    background: #030817;
    height: 0;
    overflow: hidden;
    transition: height 0.45s ease;
}
.ribbon.visible { height: 44px; }
.ribbon-track {
    display: flex;
    width: max-content;
    filter: drop-shadow(0 0 5px rgba(255, 89, 16, 0.55));
}
.ribbon-copy {
    display: flex;
    align-items: center;
    height: 44px;
    white-space: nowrap;
}
.ribbon-item, .ribbon-sep {
    font-weight: 800;
    font-stretch: 68%;
    font-size: 1.4rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #FF7A2E;
    -webkit-mask-image: radial-gradient(circle at center, #000 1.05px, transparent 1.35px);
            mask-image: radial-gradient(circle at center, #000 1.05px, transparent 1.35px);
    -webkit-mask-size: 3px 3px;
            mask-size: 3px 3px;
}
.ribbon-sep { color: #FFD166; padding: 0 22px; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── hero ── */
.hero {
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 44px 20px 46px;
    border-bottom: 6px solid var(--orange);
    overflow: hidden;
}
.hero-question {
    font-weight: 700;
    font-stretch: 85%;
    font-size: clamp(1.35rem, 4.2vw, 2rem);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.94);
}
.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 89, 16, 0.2);
    color: #FFC2A1;
    font-size: 0.85rem;
    font-weight: 700;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.hero-answer {
    font-family: var(--display);
    font-size: clamp(6.5rem, 29vw, 14.5rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0.055em 0.055em 0 var(--orange);
    margin: 14px 0 20px;
    transform-origin: 50% 0;
}
.hero-answer.is-loading { color: rgba(255, 255, 255, 0.18); text-shadow: none; }
.hero-answer.revealed { animation: flip 0.75s cubic-bezier(0.2, 0.75, 0.25, 1.15) both; }
@keyframes flip {
    0%   { transform: perspective(700px) rotateX(-92deg); opacity: 0; }
    55%  { opacity: 1; }
    100% { transform: none; opacity: 1; }
}

.hero-sub {
    max-width: 34em;
    margin: 0 auto;
    font-size: 1.06rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
    text-wrap: balance;
}
.hero-sub b { color: #fff; font-weight: 700; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.hero-btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.hero-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.hero-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── layout ── */
.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 16px 72px;
}
.block { margin-top: 38px; }
.content > .block:first-child { margin-top: 0; }   /* off-season countdown leads the page */
#offseason-block:not([hidden]) + .season-strip { margin-top: 38px; }
.block-title {
    font-weight: 800;
    font-stretch: 80%;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 12px;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 20px;
}
.panel + .panel { margin-top: 12px; }
.panel.list { padding-top: 4px; padding-bottom: 4px; }

/* ── season strip ── */
.season-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 10px;
    overflow: hidden;
}
.tile { padding: 15px 18px 16px; border-left: 1px solid var(--rule); min-width: 0; }
.tile:first-child { border-left: none; }
.tile-k { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.tile-v {
    font-family: var(--display);
    font-size: 1.65rem;
    line-height: 1.15;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tile-v.is-win  { color: var(--orange); }
.tile-v.is-loss { color: var(--loss); }
.tile-v .slash  { color: var(--faint); }
.tile-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── score card ── */
.sc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--loss-soft);
    color: var(--ink);
}
.chip.win  { background: var(--orange-soft); color: var(--orange-ink); }
.chip.loss { background: var(--loss-soft); color: var(--loss); }
.chip.live { background: var(--orange); color: #fff; }
.chip.live .live-dot { background: #fff; }

.sc-team {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}
.sc-team + .sc-team { border-top: 1px solid var(--rule); }
.logo { width: 40px; height: 40px; object-fit: contain; }
.sc-name { min-width: 0; }
.sc-city { display: block; font-size: 0.8rem; color: var(--muted); }
.sc-nick {
    display: block;
    font-weight: 800;
    font-stretch: 80%;
    font-size: 1.45rem;
    line-height: 1.1;
}
.sc-rec { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.sc-score {
    font-family: var(--display);
    font-size: 2.6rem;
    line-height: 1;
}
.sc-score.dim { color: var(--faint); }

.linescore-wrap { overflow-x: auto; margin-top: 14px; -webkit-overflow-scrolling: touch; }
.linescore {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}
.linescore th, .linescore td { padding: 6px 4px; text-align: center; min-width: 26px; }
.linescore th { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.linescore td:first-child, .linescore th:first-child { text-align: left; font-weight: 800; padding-left: 0; }
.linescore .rhe { border-left: 1px solid var(--rule); font-weight: 800; }
.linescore .rhe + .rhe { border-left: none; }
.linescore tbody tr + tr td { border-top: 1px solid var(--rule); }
.linescore td.scored { color: var(--orange-ink); font-weight: 800; }
.linescore td.x { color: var(--faint); }

/* live situation */
.live-grid {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}
.diamond { width: 92px; height: auto; }
.diamond .base   { fill: none; stroke: var(--faint); stroke-width: 3; }
.diamond .base.on { fill: var(--orange); stroke: var(--orange); }
.diamond .out    { fill: none; stroke: var(--faint); stroke-width: 2.5; }
.diamond .out.on { fill: var(--ink); stroke: var(--ink); }
.live-count { font-weight: 800; font-stretch: 85%; font-size: 1.1rem; }
.live-who { font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.live-who b { color: var(--ink); font-weight: 650; }
.last-play { font-size: 0.9rem; margin-top: 8px; line-height: 1.45; }

.wp-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.wp-head b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.wp-bar { height: 8px; border-radius: 99px; background: var(--loss-soft); margin-top: 6px; overflow: hidden; }
.wp-fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width 0.6s ease; }

/* ── recap ── */
.recap-panel { margin-top: 12px; }
.sub + .sub { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sub-title {
    font-weight: 750;
    font-stretch: 85%;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.sub-title small { font-weight: 500; font-stretch: 100%; font-size: 0.85rem; color: var(--muted); margin-left: 6px; }

.verdict { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-bottom: 14px; }
.meter { display: flex; gap: 4px; grid-row: span 2; }
.meter i { width: 9px; height: 34px; border-radius: 3px; background: var(--rule); }
.meter.pain i.on { background: var(--loss); }
.meter.joy  i.on { background: var(--orange); }
.verdict-name { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.verdict-text { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

.wp-chart { width: 100%; height: auto; overflow: visible; }
.wp-chart .grid   { stroke: var(--rule); stroke-width: 1; }
.wp-chart .mid    { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; }
.wp-chart .line   { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.wp-chart .up     { fill: var(--orange); opacity: 0.85; }
.wp-chart .down   { fill: var(--loss); opacity: 0.22; }
.wp-chart .lbl    { font-size: 11px; fill: var(--muted); font-family: var(--text); }
.wp-chart .lbl-b  { font-size: 11px; fill: var(--ink); font-weight: 700; font-family: var(--text); }
.wp-chart .mark   { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.wp-chart .now    { fill: var(--orange); animation: pulse 1.6s ease-in-out infinite; }

.swings { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.swings li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.swings .d { font-family: var(--display); font-size: 1rem; }
.swings .d.up { color: var(--orange-ink); }
.swings .d.down { color: var(--loss); }

.recap-headline { font-weight: 800; font-stretch: 90%; font-size: 1.3rem; line-height: 1.25; text-wrap: balance; }
.recap-blurb { font-size: 0.95rem; line-height: 1.55; color: var(--muted); margin-top: 8px; max-width: 62ch; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    cursor: pointer;
}
.link-btn:hover { border-color: var(--ink); }

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-top: 16px;
}
.player video, .player img { width: 100%; height: 100%; object-fit: cover; }
.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    border: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 10, 30, 0.92));
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.player-start .play {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--orange);
    display: grid;
    place-items: center;
    margin-right: 12px;
}
.player-start .play::before {
    content: '';
    border-left: 13px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
}
.player-start .t { font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.player-start .d { font-size: 0.8rem; opacity: 0.8; }
.hl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hl {
    display: block;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}
.hl img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--rule); }
.hl span { display: block; font-size: 0.78rem; line-height: 1.35; margin-top: 6px; color: var(--muted); }
.hl[aria-current="true"] img { outline: 3px solid var(--orange); outline-offset: -3px; }

.perf {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
}
.perf + .perf { border-top: 1px solid var(--rule); }
.headshot { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--rule); }
.perf-name { font-weight: 700; font-size: 1rem; line-height: 1.2; min-width: 0; }
.perf-name small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.perf-line { font-size: 0.9rem; font-variant-numeric: tabular-nums; text-align: right; }
.perf-line b { font-weight: 800; }
.opp-best { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.opp-best b { color: var(--ink); font-weight: 650; }
.decisions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.decisions b { color: var(--ink); font-weight: 700; margin-right: 4px; }

.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.moment { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.moment-v { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.moment-v.up   { color: var(--orange); }
.moment-v.down { color: var(--loss); }
.moment-k { font-size: 0.8rem; line-height: 1.4; color: var(--muted); margin-top: 4px; }

.cmp-head { display: flex; justify-content: space-between; font-weight: 800; font-stretch: 85%; font-size: 0.9rem; margin-bottom: 2px; }
.cmp-head .them { color: var(--muted); }
.cmp-row { padding: 7px 0; }
.cmp-top { display: grid; grid-template-columns: 80px 1fr 80px; align-items: baseline; margin-bottom: 6px; }
.cmp-val { font-family: var(--display); font-size: 1.05rem; color: var(--faint); }
.cmp-val.lead { color: var(--ink); }
.cmp-val:last-child { text-align: right; }
.cmp-name { text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.cmp-bars { display: flex; gap: 3px; height: 5px; }
.cmp-bars i { display: block; height: 100%; border-radius: 2px; }
.cmp-bars .us   { background: var(--orange); }
.cmp-bars .them { background: var(--rule); }

/* ── off-season ── */
.countdown { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.countdown-n {
    font-family: var(--display);
    font-size: clamp(3.2rem, 13vw, 5rem);
    line-height: 1;
    color: var(--blue);
    text-shadow: 0.05em 0.05em 0 var(--orange);
}
@media (prefers-color-scheme: dark) { .countdown-n { color: #fff; } }
.countdown-l { font-size: 1.05rem; line-height: 1.45; max-width: 26em; }
.facts { margin-top: 18px; }
.fact {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 4px 16px;
    padding: 12px 0;
    border-top: 1px solid var(--rule);
}
.fact dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.fact dd { font-size: 0.95rem; line-height: 1.5; }
.leaders { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.leaders span { white-space: nowrap; }
.leaders b { font-weight: 700; }

/* ── rows (up next + results) ── */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
}
.row + .row { border-top: 1px solid var(--rule); }
a.row:hover .row-opp { color: var(--orange-ink); }
.row-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.row-right { text-align: right; flex-shrink: 0; }
.row .logo { width: 28px; height: 28px; flex-shrink: 0; }
.pill {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}
.pill.w { background: var(--orange-soft); color: var(--orange-ink); }
.pill.l { background: var(--loss-soft); color: var(--loss); }
.pill.t { background: var(--rule); color: var(--muted); }
.row-opp {
    font-weight: 700;
    font-stretch: 88%;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.row-opp .ha { font-weight: 500; color: var(--muted); margin-right: 4px; }
.row-ctx {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-score { font-family: var(--display); font-size: 1.1rem; line-height: 1.2; }
.row-date { font-size: 0.8rem; color: var(--muted); }
.row-when { font-weight: 700; font-stretch: 88%; font-size: 0.98rem; line-height: 1.25; }
.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-ink);
    margin-left: 6px;
    vertical-align: 1px;
}
.more-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--rule);
    background: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}
.more-btn:hover { color: var(--ink); }

/* ── standings ── */
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.standings th { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-align: right; padding: 0 6px 8px; }
.standings th:first-child { text-align: left; padding-left: 0; }
.standings td { text-align: right; padding: 9px 6px; border-top: 1px solid var(--rule); }
.standings td:first-child { text-align: left; padding-left: 0; }
.standings .team { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.standings .team img { width: 24px; height: 24px; object-fit: contain; }
.standings tr.us td { font-weight: 800; }
.standings tr.us td:first-child { box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
.standings .clinch { display: block; font-size: 0.75rem; line-height: 1.2; color: var(--muted); font-weight: 500; }
.standings td, .standings th { white-space: nowrap; }

/* ── season at a glance ── */
.season-chart { width: 100%; height: auto; overflow: visible; }
.season-chart .zero { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; }
.season-chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.season-chart .up   { fill: var(--orange); opacity: 0.85; }
.season-chart .down { fill: var(--loss); opacity: 0.22; }
.season-chart .lbl  { font-size: 11px; fill: var(--muted); font-family: var(--text); }
.season-chart .lbl-b { font-size: 11px; fill: var(--ink); font-weight: 700; font-family: var(--text); }
.season-chart .mark { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.season-cap { font-size: 0.9rem; color: var(--muted); margin: 10px 0 18px; line-height: 1.5; }
.season-cap b { color: var(--ink); }
.months { display: grid; gap: 7px; }
.month { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.month-k { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.month-r { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.sq-row { display: flex; flex-wrap: wrap; gap: 3px; }
.sq {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: block;
}
.sq.w { background: var(--orange); }
.sq.l { background: var(--loss); opacity: 0.8; }
.sq.t { background: var(--faint); }
.sq:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ── states ── */
.skel {
    background: linear-gradient(90deg, var(--rule) 25%, var(--paper) 50%, var(--rule) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { text-align: center; padding: 26px 12px; font-size: 0.95rem; color: var(--muted); }

/* ── footer ── */
.footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 16px calc(40px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
}
.footer-mark { font-weight: 800; font-stretch: 80%; font-size: 1rem; }
.footer-fine { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── confetti + Home Run Apple ── */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 998; }

.apple-stage {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.apple-caption {
    font-family: var(--display);
    font-size: clamp(2rem, 8vw, 3.4rem);
    color: #fff;
    text-shadow: 0.06em 0.06em 0 var(--orange), 0 6px 30px rgba(0, 20, 60, 0.6);
    opacity: 0;
    margin-bottom: -10px;
}
.apple-svg { width: min(58vw, 250px); height: auto; overflow: visible; transform: translateY(110%); }
.apple-body  { fill: var(--apple); stroke: #8C1A10; stroke-width: 3; }
.apple-shine { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; opacity: 0.45; }
.apple-stem  { fill: none; stroke: #5B3A1C; stroke-width: 8; stroke-linecap: round; }
.apple-leaf  { fill: var(--leaf); }
.apple-word  { font-family: var(--display); font-size: 19px; fill: #fff; letter-spacing: 1px; }
.apple-word-big { font-size: 25px; }
.hat-crown { fill: #0A1430; }
.hat-band  { fill: var(--orange); }
.hat-brim  { fill: #14244C; }
.hat-hole  { fill: #02050D; }
.apple-rise { transform: translateY(200px); }

.apple-stage.show .apple-svg     { animation: hat 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.apple-stage.show .apple-rise    { animation: rise 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.apple-stage.show .apple-caption { animation: caption 4.8s ease forwards; }
@keyframes hat {
    0%   { transform: translateY(110%); }
    12%  { transform: translateY(0); }
    86%  { transform: translateY(0); }
    100% { transform: translateY(110%); }
}
@keyframes rise {
    0%, 14% { transform: translateY(200px); }
    36%     { transform: translateY(-10px); }
    42%     { transform: translateY(0); }
    74%     { transform: translateY(0); }
    88%, 100% { transform: translateY(200px); }
}
@keyframes caption {
    0%, 30% { opacity: 0; transform: translateY(12px); }
    40%, 72% { opacity: 1; transform: none; }
    84%, 100% { opacity: 0; }
}

/* ── toast + install ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 1001;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 20, 60, 0.3);
}

.install {
    position: fixed;
    z-index: 1000;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 44px 14px 14px;
    background: var(--blue);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 20, 60, 0.45);
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.install.in { transform: translateY(0); opacity: 1; }
.install-icon { width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0; }
.install-body { flex: 1; min-width: 0; }
.install-title { font-weight: 800; font-stretch: 85%; font-size: 1.05rem; line-height: 1.2; margin-bottom: 3px; }
.install-text { font-size: 0.8rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.install-text b { color: #fff; }
.install-text svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.install-add {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.install-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

/* ── small screens ── */
@media (max-width: 600px) {
    .masthead { padding-left: 16px; padding-right: 16px; }
    .hero { padding: 34px 16px 36px; }
    .season-strip { grid-template-columns: repeat(2, 1fr); }
    .tile:nth-child(3) { border-left: none; }
    .tile:nth-child(n + 3) { border-top: 1px solid var(--rule); }
    .panel { padding: 16px; }
    .sc-nick { font-size: 1.2rem; }
    .sc-score { font-size: 2.2rem; }
    .moments { grid-template-columns: repeat(2, 1fr); }
    .hl-list { grid-template-columns: repeat(2, 1fr); }
    .perf { grid-template-columns: 40px 1fr; }
    .perf-line { grid-column: 2; text-align: left; }
    .fact { grid-template-columns: 1fr; }
    .live-grid { grid-template-columns: 76px 1fr; gap: 14px; }
    .diamond { width: 76px; }
    .cmp-top { grid-template-columns: 64px 1fr 64px; }
    .sq { width: 12px; height: 12px; }
    .linescore { font-size: 0.88rem; }
    .linescore th, .linescore td { min-width: 0; padding: 6px 2px; }
    .linescore .rhe { padding-left: 6px; }
    .sub-title small { display: block; margin: 2px 0 0; }
    .player-start .t { font-size: 0.9rem; }
    .month { grid-template-columns: 32px 1fr; }
    .month-r { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-answer.revealed { animation: none; }
    .ribbon-track { animation: none !important; }
    .live-dot, .wp-chart .now { animation: none; }
    .install { transition: opacity 0.2s ease; transform: none; }
    .apple-stage.show .apple-svg,
    .apple-stage.show .apple-rise { animation: none; transform: none; }
    .apple-stage.show .apple-caption { animation: none; opacity: 1; }
}
