/* Stats on the dusk ground (docs/DUSK-ROLLOUT-PLAN.md §3). Same structure and content as the light page; only the skin changes.
   The dark token block in stats.css (validated chart colours) is reused as-is; here: the ground, the frosted sections, brass instead of blue. */
.st.st--dusk {
  --st-paper: transparent; --st-surface: rgba(255, 255, 255, .08); --st-surface-2: rgba(255, 255, 255, .12);
  --st-line: rgba(255, 255, 255, .14); --st-line-2: rgba(255, 255, 255, .22); --st-grid: rgba(255, 255, 255, .09);
  --st-ink: #FFFFFF; --st-ink-2: rgba(255, 255, 255, .8); --st-quiet: rgba(255, 255, 255, .62);
  --st-accent: #C9A14A; --st-accent-soft: rgba(201, 161, 74, .18); --st-brass: #C9A14A; --st-brass-ink: #E2C27A; --st-brass-soft: rgba(201, 161, 74, .18);
  --st-mute: rgba(255, 255, 255, .28);
  padding-left: 16px; padding-right: 16px;
}
.st--dusk .st-celltext--s1, .st--dusk .st-celltext--s2 { fill: #F3EEE2; }
.st--dusk .st-celltext--s3, .st--dusk .st-celltext--s4, .st--dusk .st-celltext--s5 { fill: #0B0F0D; }
.st--dusk .st-tip { background: #F4EFE4; color: #10241A; }
.st--dusk .st-dot { stroke: #13331F; }
.st--dusk .st-cell--empty { stroke: rgba(255, 255, 255, .18); }

/* Header: the grass band, same as Home's Index band, full width with the edges melting into the ground. */
.st--dusk .st-grass { margin: 10px -16px 6px; padding: 40px 16px 30px; border-radius: 0; box-shadow: none; text-shadow: none;
  background: linear-gradient(rgba(6, 36, 14, .5), rgba(6, 36, 14, .5)), url(/img/grass.jpg) center / 460px auto;
  -webkit-mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.st--dusk .st-grass-k, .st--dusk .st-grass-d { text-shadow: none; }
.st--dusk .st-grass-idx { font-size: clamp(76px, 25vw, 96px); text-shadow: 0 2px 6px rgba(0, 30, 10, .45); }
.st--dusk .st-grass-idx::after { content: ''; display: block; width: 64px; height: 2px; margin-top: 6px; background: #C9A14A; }
.st--dusk .st-ht { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }

/* Sections: one frosted card, whatever the ground used to be. */
.st--dusk .st-g, .st--dusk .st-g-blue, .st--dusk .st-g-green, .st--dusk .st-g-sand, .st--dusk .st-g-fair {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.st--dusk .st-kicker, .st--dusk .st-label, .st--dusk .st-table thead th { font-size: 13px; letter-spacing: .1em; color: var(--st-quiet); }
.st--dusk .st-insight { color: #fff; }

/* Controls. */
.st--dusk .st-seg { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.st--dusk .st-seg > button[aria-pressed="true"] { background: #F4EFE4; color: #10241A; }
.st--dusk .st-btn { background: #F4EFE4; color: #10241A; border-color: #F4EFE4; }
.st--dusk .st-btn--quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.st--dusk .st-select { background-color: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.st--dusk .st-select option { color: #10241A; }
.st--dusk .st-link, .st--dusk .st-tabletoggle { color: #E2C27A; text-decoration-color: rgba(226, 194, 122, .5); }
.st--dusk .st-tabletoggle { color: var(--st-quiet); }
.st--dusk .st-back { color: #E2C27A; }

/* Best badges: a brass outline, the gold dot stays. */
.st--dusk .st-pb { background: transparent; color: #E2C27A; border: 1px solid rgba(201, 161, 74, .6); }
.st--dusk .st-flag--E { background: transparent; }
.st--dusk .st-peek { background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.st--dusk .st-sample-note { text-shadow: 0 0 10px #13331F; color: #fff; }
.st--dusk .st-card .st-logo .crest { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }

/* The moving icon beside "Stats": five bars rise, a curve draws over them and settles on a lit gold point; then a small light runs
   along the curve every few seconds. Once per visit, about 3 seconds; still picture under reduced motion. */
.st-top { justify-content: flex-start; gap: 10px; }
.st-motion { width: 46px; height: 28px; flex: none; overflow: visible; margin-top: 4px; }
.st-motion .b { fill: url(#stmBar); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: stm-rise 650ms cubic-bezier(.16, 1, .3, 1) forwards; }
.st-motion .b4 { fill: url(#stmGold); }
.st-motion .b0 { animation-delay: 100ms; } .st-motion .b1 { animation-delay: 200ms; } .st-motion .b2 { animation-delay: 300ms; }
.st-motion .b3 { animation-delay: 400ms; } .st-motion .b4 { animation-delay: 500ms; }
.st-motion .ar { fill: url(#stmArea); opacity: 0; animation: stm-fade 900ms ease-out 1300ms forwards; }
.st-motion .ln { fill: none; stroke: url(#stmLine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px rgba(240, 213, 148, .45)); animation: stm-draw 1400ms cubic-bezier(.65, 0, .35, 1) 650ms forwards; }
.st-motion .dot { fill: #fff; stroke: #E2C27A; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: stm-pop 450ms cubic-bezier(.34, 1.56, .64, 1) 2000ms forwards; }
.st-motion .ring { fill: none; stroke: #F0D594; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: stm-ring 900ms ease-out 2150ms forwards; }
.st-motion .spark { fill: #fff; filter: drop-shadow(0 0 3px #fff); }
@keyframes stm-rise { to { transform: scaleY(1); } }
@keyframes stm-draw { to { stroke-dashoffset: 0; } }
@keyframes stm-fade { to { opacity: 1; } }
@keyframes stm-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes stm-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
@media (prefers-reduced-motion: reduce) {
  .st-motion .b { animation: none; transform: none; } .st-motion .ar { animation: none; opacity: 1; } .st-motion .ln { animation: none; stroke-dashoffset: 0; }
  .st-motion .dot { animation: none; opacity: 1; } .st-motion .ring, .st-motion .spark { display: none; }
}

/* Stats cards are back on the green (Luke, 2026-10-12): the 10-11 white-card layer is removed; texture and extra colour to come. */
