/* Dark theme — public pages (landing, terms, sign-in). Loaded after theme-dark.css, only on pages marked
   [SiteThemed] while the SuperAdmin has the site theme on Dark.
     Landing  = "broadcast": every section is a segment with its own scene behind it, a title strip and a
                big on-screen stat. Moving scenes when data-motion="on" (slow devices / reduced motion get
                the still pictures: dt-theme.js switches data-motion to "off").
     Sign-in  = "split": a themed still picture with a line from the landing page, the form in glass.
     Terms and the other sign-in pages: glass over the still aurora. */

/* ---- Landing: page, header, type ---- */
html[data-theme="dark"] .lp {
    background: transparent;
    color: var(--dash-text);
    --lp-glass: rgba(6, 8, 12, 0.5);
    --lp-edge: var(--glass-edge);
    --lp-float: var(--float-1);
    --lp-float-hi: var(--float-2);
}

html[data-theme="dark"] .lp a { color: #7FD3FF; }
html[data-theme="dark"] .lp a:hover { color: #B5E6FF; }

html[data-theme="dark"] .lp-header {
    background: linear-gradient(90deg, rgba(6, 8, 12, 0.6), rgba(6, 8, 12, 0.35) 55%, rgba(6, 8, 12, 0.55));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .lp .lp-brand,
html[data-theme="dark"] .lp .lp-brand:hover,
html[data-theme="dark"] .lp .lp-link-plain { color: #F2F4F7; }
html[data-theme="dark"] .lp .lp-link-plain:hover { color: #7FD3FF; }
html[data-theme="dark"] .lp-nav a { color: #C3CAD4; }
html[data-theme="dark"] .lp-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #FFFFFF; }
html[data-theme="dark"] .lp-lang { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.2); color: #F2F4F7; }
html[data-theme="dark"] .lp-lang option { background: #10141A; color: #F2F4F7; }

html[data-theme="dark"] .lp-h1,
html[data-theme="dark"] .lp-h2,
html[data-theme="dark"] .lp-h2-big { color: #F7F9FB; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] .lp-lede,
html[data-theme="dark"] .lp-body,
html[data-theme="dark"] .lp-band-caption,
html[data-theme="dark"] .lp-col p,
html[data-theme="dark"] .lp-ratio-label { color: #C3CAD4; }
html[data-theme="dark"] .lp-hero,
html[data-theme="dark"] .lp-row,
html[data-theme="dark"] .lp-section,
html[data-theme="dark"] .lp-band,
html[data-theme="dark"] .lp-closing { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65); }

/* the title strip takes over from the eyebrow pill and the step labels */
html[data-theme="dark"] .lp-eyebrow,
html[data-theme="dark"] .lp-step { display: none; }

/* ---- Buttons: glossy cyan primary, frosted secondary ---- */
html[data-theme="dark"] .lp .lp-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #F2F4F7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 20px -10px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .lp .lp-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(127, 211, 255, 0.5); color: #FFFFFF; }

html[data-theme="dark"] .lp .lp-btn-primary,
html[data-theme="dark"] .lp .lp-btn-dark,
html[data-theme="dark"] .lp .lp-closing .lp-btn-primary {
    background: linear-gradient(180deg, #5CC4F2 0%, #2FA8E0 50%, #1F8CC2 100%);
    border-color: transparent;
    color: #04121A;
    text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -8px rgba(47, 168, 224, 0.75);
}

html[data-theme="dark"] .lp .lp-btn-primary:hover,
html[data-theme="dark"] .lp .lp-btn-dark:hover,
html[data-theme="dark"] .lp .lp-closing .lp-btn-primary:hover {
    background: linear-gradient(180deg, #7DD2F7 0%, #3DB3E8 50%, #2496CC 100%);
    color: #04121A;
}

/* ---- Sections become broadcast segments ---- */
html[data-theme="dark"] .lp-hero,
html[data-theme="dark"] .lp-band,
html[data-theme="dark"] .lp-row,
html[data-theme="dark"] .lp-section,
html[data-theme="dark"] .lp-closing {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 86vh;
    padding: 120px 56px 100px;
}

/* "safe": when the hero is taller than the screen it starts at the top instead of hiding under the header */
html[data-theme="dark"] .lp-hero { min-height: calc(100vh - 80px); justify-content: safe center; padding-top: 72px; }

/* a soft dark pool behind the hero text, so it reads over the big balls */
html[data-theme="dark"] .lp-hero .lp-scene::after {
    background:
        radial-gradient(ellipse 52% 46% at 50% 46%, rgba(3, 5, 8, 0.62), rgba(3, 5, 8, 0) 72%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 90px),
        linear-gradient(180deg, rgba(3, 5, 8, 0.2), rgba(3, 5, 8, 0.45));
}
html[data-theme="dark"] .lp-section { justify-content: center; }

/* glowing line between segments */
html[data-theme="dark"] .lp-hero::after,
html[data-theme="dark"] .lp-band::after,
html[data-theme="dark"] .lp-row::after,
html[data-theme="dark"] .lp-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 168, 224, 0.7), transparent);
    box-shadow: 0 0 14px rgba(47, 168, 224, 0.6);
}

/* the scene behind each segment, fading into its neighbours */
html[data-theme="dark"] .lp-scene {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #05070A center / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

html[data-theme="dark"] .lp-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 90px),
        linear-gradient(180deg, rgba(3, 5, 8, 0.2), rgba(3, 5, 8, 0.45));
}

html[data-theme="dark"] .lp-scene[data-scene="dash"]      { background-image: url("../img/scenes/dash-still.svg"); }
html[data-theme="dark"] .lp-scene[data-scene="draws"]     { background-image: url("../img/scenes/draws-still.svg"); }
html[data-theme="dark"] .lp-scene[data-scene="analytics"] { background-image: url("../img/scenes/analytics-still.svg"); }
html[data-theme="dark"] .lp-scene[data-scene="patterns"]  { background-image: url("../img/scenes/patterns-still.svg"); }
html[data-theme="dark"] .lp-scene[data-scene="draw"]      { background-image: url("../img/scenes/draw-still.svg"); }
html[data-theme="dark"] .lp-scene[data-scene="profile"]   { background-image: url("../img/scenes/profile-still.svg"); }

html[data-motion="on"] .lp-scene[data-scene="dash"]      { background-image: url("../img/scenes/dash.svg"); }
html[data-motion="on"] .lp-scene[data-scene="draws"]     { background-image: url("../img/scenes/draws.svg"); }
html[data-motion="on"] .lp-scene[data-scene="analytics"] { background-image: url("../img/scenes/analytics.svg"); }
html[data-motion="on"] .lp-scene[data-scene="patterns"]  { background-image: url("../img/scenes/patterns.svg"); }
html[data-motion="on"] .lp-scene[data-scene="draw"]      { background-image: url("../img/scenes/draw.svg"); }
html[data-motion="on"] .lp-scene[data-scene="profile"]   { background-image: url("../img/scenes/profile.svg"); }

/* the ticket desk is bright: shade it more so the picks card reads */
html[data-theme="dark"] .lp-scene[data-scene="draw"]::after {
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 90px),
        linear-gradient(180deg, rgba(3, 5, 8, 0.4), rgba(3, 5, 8, 0.58));
}

/* title strip ("01 | FREQUENCY") */
html[data-theme="dark"] .lp-lower {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 4px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none;
}

html[data-theme="dark"] .lp-hero .lp-lower { align-self: center; }

html[data-theme="dark"] .lp-lower-no {
    background: linear-gradient(180deg, #5CC4F2, #1F8CC2);
    color: #04121A;
    font-weight: 600;
    padding: 8px 12px;
}

html[data-theme="dark"] .lp-lower-no:empty { display: none; }

html[data-theme="dark"] .lp-lower-label {
    background: rgba(6, 8, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #DFF4FF;
    padding: 8px 14px;
}

html[data-theme="dark"] .lp-lower-no + .lp-lower-label { border-left: 0; }
html[data-theme="dark"] .lp-lower-no:empty + .lp-lower-label { border-left: 3px solid #2FA8E0; }

/* big on-screen stat, top right of a segment */
html[data-theme="dark"] .lp-stat {
    display: block;
    position: absolute;
    top: 64px;
    right: 56px;
    text-align: right;
    pointer-events: none;
}

html[data-theme="dark"] .lp-stat b {
    display: block;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 88px;
    line-height: 0.9;
    color: #F7F9FB;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .lp-stat small { font-size: 0.34em; font-weight: 500; color: #C3CAD4; margin-left: 4px; }

html[data-theme="dark"] .lp-stat span {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #93A0AE;
}

/* stacked segments (below the light page's 1180px breakpoint): smaller and tucked into the corner */
@media (max-width: 1180px) {
    html[data-theme="dark"] .lp-stat { top: 34px; right: 24px; }
    html[data-theme="dark"] .lp-stat b { font-size: 64px; }
}

/* ---- Glass surfaces (card style "defined edges", as in the app) ---- */
html[data-theme="dark"] .lp-card,
html[data-theme="dark"] .lp-col,
html[data-theme="dark"] .lp-band-inner {
    background: var(--glass-sheen), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--float-1);
}

html[data-theme="dark"] .lp-col { box-shadow: inset 0 3px 0 #2FA8E0, var(--float-1); }
html[data-theme="dark"] .lp-col:hover { box-shadow: inset 0 3px 0 #2FA8E0, var(--float-2); }
html[data-theme="dark"] .lp-col h3,
html[data-theme="dark"] .lp-card-label { color: #F2F4F7; }

/* the results band: no more tilted panel — the grid sits in its own glass card */
html[data-theme="dark"] .lp-band,
html[data-theme="dark"] .lp-band:hover {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

html[data-theme="dark"] .lp-band-inner { border-radius: 20px; max-width: 1240px; width: 100%; margin: 0 auto; }
html[data-theme="dark"] .lp-band-date { color: #93A0AE; }

/* closing: no indigo panel — the aurora segment carries it */
html[data-theme="dark"] .lp-closing {
    border-radius: 0;
    background: none;
    box-shadow: none;
    justify-content: center;
}

html[data-theme="dark"] .lp-closing .lp-lede { color: #C3CAD4; }

/* ---- Numbers in the dark tones (teal → cyan; the signal number amber) ---- */
html[data-theme="dark"] .lp-cell { background: rgba(255, 255, 255, 0.06); }

html[data-theme="dark"] .lp-cell-on {
    background: color-mix(in srgb, var(--tone-hi) calc(var(--t) * 100%), var(--tone-lo));
    color: #F2F4F7;
    text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 8px -2px rgba(47, 168, 224, 0.6);
}

html[data-theme="dark"] .lp-cell-on.dark { color: #06121C; }

html[data-theme="dark"] .lp-cell-signal {
    background: linear-gradient(180deg, #FFC778, #E8932C);
    color: #2A1604;
    box-shadow: 0 0 14px rgba(245, 169, 74, 0.7);
}

html[data-theme="dark"] .lp-bar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone-hi) calc(var(--t) * 100%), #4FBBE8), var(--tone-lo));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 10px -3px rgba(47, 168, 224, 0.6);
}

html[data-theme="dark"] .lp-bar-hot {
    background: linear-gradient(180deg, #FFC778, #E8932C);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 14px -3px rgba(245, 169, 74, 0.8);
}

/* ring and its legend (the swatches carry their light colour inline, hence !important) */
html[data-theme="dark"] .lp-ring-track { stroke: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .lp-ring-0 { stroke: #8FDCFF; }
html[data-theme="dark"] .lp-ring-1 { stroke: #4FBBE8; }
html[data-theme="dark"] .lp-ring-2 { stroke: #2A8EC2; }
html[data-theme="dark"] .lp-ring-3 { stroke: #1B5578; }
html[data-theme="dark"] .lp-swatch-0 { background: #8FDCFF !important; }
html[data-theme="dark"] .lp-swatch-1 { background: #4FBBE8 !important; }
html[data-theme="dark"] .lp-swatch-2 { background: #2A8EC2 !important; }
html[data-theme="dark"] .lp-swatch-3 { background: #1B5578 !important; }

html[data-theme="dark"] .lp-tile {
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.3), transparent 50%), rgba(30, 40, 54, 0.75);
    color: #DDE3EA;
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .lp-tile-result {
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.4), transparent 50%),
                color-mix(in srgb, var(--tone-hi) calc(var(--t) * 100%), var(--tone-lo));
    color: #F2F4F7;
}

html[data-theme="dark"] .lp-tile-result.dark { color: #06121C; }

html[data-theme="dark"] .lp-tile-match {
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.4), transparent 50%), #1F9D5B;
    color: #FFFFFF;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 0 14px rgba(31, 157, 91, 0.7);
}

html[data-theme="dark"] .lp-rule { background: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .lp-tag { color: #9FDCF8; }
html[data-theme="dark"] .lp-hits { background: rgba(31, 157, 91, 0.16); color: #8FE0B0; box-shadow: 0 0 14px -4px rgba(31, 157, 91, 0.6); }

/* ---- Footer ---- */
html[data-theme="dark"] .lp-footer {
    margin-top: 0;
    background: rgba(3, 5, 8, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .lp-footer-links a,
html[data-theme="dark"] .lp .lp-footer-langs a { color: #93A0AE; }
html[data-theme="dark"] .lp-footer-links a:hover,
html[data-theme="dark"] .lp .lp-footer-langs a:hover,
html[data-theme="dark"] .lp .lp-footer-langs a[aria-current="page"] { color: #F2F4F7; }

/* ---- Reveal (animated only): strips slide in, stats and cards rise as a segment comes into view ---- */
html.dt-reveal[data-motion="on"] [data-dt-reveal] .lp-lower { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.dt-reveal[data-motion="on"] [data-dt-reveal] .lp-stat { opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s; }
html.dt-reveal[data-motion="on"] [data-dt-reveal] .lp-card,
html.dt-reveal[data-motion="on"] [data-dt-reveal] .lp-band-inner,
html.dt-reveal[data-motion="on"] [data-dt-reveal] .lp-cols { opacity: 0; translate: 0 26px; transition: opacity 0.8s ease 0.2s, translate 0.8s ease 0.2s; }
html.dt-reveal[data-motion="on"] [data-dt-reveal].dt-in .lp-lower,
html.dt-reveal[data-motion="on"] [data-dt-reveal].dt-in .lp-stat { opacity: 1; transform: none; }
html.dt-reveal[data-motion="on"] [data-dt-reveal].dt-in .lp-card,
html.dt-reveal[data-motion="on"] [data-dt-reveal].dt-in .lp-band-inner,
html.dt-reveal[data-motion="on"] [data-dt-reveal].dt-in .lp-cols { opacity: 1; translate: none; }

@media (max-width: 860px) {
    html[data-theme="dark"] .lp-hero,
    html[data-theme="dark"] .lp-band,
    html[data-theme="dark"] .lp-row,
    html[data-theme="dark"] .lp-section,
    html[data-theme="dark"] .lp-closing { min-height: 0; padding: 72px 20px 64px; }
    /* the big stats are decoration: on a phone they would only push the content down */
    html[data-theme="dark"] .lp-stat { display: none; }
}

/* ---- Sign-in, terms and the other account pages ---- */
html[data-theme="dark"] .auth-page {
    position: relative;
    isolation: isolate;
    background: #05070A url("../img/scenes/profile-still.svg") center / cover no-repeat fixed;
}

html[data-theme="dark"] .auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 90px),
        linear-gradient(180deg, rgba(3, 5, 8, 0.15), rgba(3, 5, 8, 0.45));
}

html[data-theme="dark"] .auth-title { color: #F7F9FB; }

/* Log in / Create account: split — themed picture on the left, the form on the right */
html[data-theme="dark"] .auth-page:has(.auth-aside) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    padding: 0;
}

html[data-theme="dark"] .auth-page:has(.auth-aside) > .auth-card {
    align-self: center;
    justify-self: center;
    margin: 40px 28px;
}

html[data-theme="dark"] .auth-aside {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 44px 48px;
    background: #05070A center / cover no-repeat;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .auth-aside[data-scene="dash"]  { background-image: url("../img/scenes/dash-still.svg"); }
html[data-theme="dark"] .auth-aside[data-scene="draws"] { background-image: url("../img/scenes/draws-still.svg"); }

html[data-theme="dark"] .auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 5, 8, 0.3), rgba(3, 5, 8, 0.1) 40%, rgba(3, 5, 8, 0.78));
}

html[data-theme="dark"] .auth-aside > * { position: relative; z-index: 1; }

html[data-theme="dark"] .auth-aside-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    color: #F2F4F7;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
}

html[data-theme="dark"] .auth-aside-quote { max-width: 520px; display: flex; flex-direction: column; gap: 10px; }

html[data-theme="dark"] .auth-aside-eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9FDCF8;
}

html[data-theme="dark"] .auth-aside-title {
    margin: 0;
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 500;
    color: #FFFFFF;
}

html[data-theme="dark"] .auth-aside-body { margin: 0; font-size: 16px; line-height: 1.6; color: #C3CAD4; }

/* terms: long text, so a more solid glass for comfortable reading */
html[data-theme="dark"] .legal-card {
    background: var(--glass-sheen), rgba(8, 11, 16, 0.86);
}

@media (max-width: 860px) {
    html[data-theme="dark"] .auth-page:has(.auth-aside) { grid-template-columns: minmax(0, 1fr); }
    html[data-theme="dark"] .auth-aside { position: relative; height: auto; min-height: 240px; padding: 22px 22px 26px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    html[data-theme="dark"] .auth-aside-title { font-size: 28px; }
    html[data-theme="dark"] .auth-page:has(.auth-aside) > .auth-card { margin: 24px 16px 40px; justify-self: stretch; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="dark"] [data-dt-reveal] .lp-lower,
    html[data-theme="dark"] [data-dt-reveal] .lp-stat,
    html[data-theme="dark"] [data-dt-reveal] .lp-card,
    html[data-theme="dark"] [data-dt-reveal] .lp-band-inner,
    html[data-theme="dark"] [data-dt-reveal] .lp-cols { opacity: 1 !important; transform: none !important; translate: none !important; }
}

/* ---- How it works (/how-it-works): the same broadcast segments; the demos inside the glass cards ---- */
html[data-theme="dark"] .hw {
    --hw-tile-bg: rgba(30, 40, 54, 0.75);
    --hw-tile-ink: #DDE3EA;
}

html[data-theme="dark"] .hw-ball {
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 50%), linear-gradient(180deg, #4FBBE8, #1F7FB2);
    color: #04121A;
    text-shadow: none;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 0 10px -3px rgba(47, 168, 224, 0.7);
}

html[data-theme="dark"] .hw-ball-hot {
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.4), transparent 50%), linear-gradient(180deg, #FFC778, #E8932C);
    color: #2A1604;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 0 14px rgba(245, 169, 74, 0.7);
}

/* step rail: a dark glass strip with the cyan of the title strips */
html[data-theme="dark"] .hw-rail { position: sticky; }
html[data-theme="dark"] .hw-rail ol {
    background: rgba(6, 8, 12, 0.62);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}
html[data-theme="dark"] .lp .hw-rail a { color: #C3CAD4; }
html[data-theme="dark"] .lp .hw-rail a:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
html[data-theme="dark"] .lp .hw-rail a[aria-current="step"] { background: rgba(47, 168, 224, 0.18); color: #DFF4FF; }
html[data-theme="dark"] .hw-rail b { border-color: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .hw-rail a[aria-current="step"] b { background: linear-gradient(180deg, #5CC4F2, #1F8CC2); border-color: transparent; color: #04121A; }

html[data-theme="dark"] .hw-points { color: #C3CAD4; }
html[data-theme="dark"] .hw-points li::before,
html[data-theme="dark"] .hw-trust li::before { border-color: #8FE0B0; }
html[data-theme="dark"] .hw-trust { color: #C3CAD4; }

html[data-theme="dark"] .hw-replay { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.2); color: #C3CAD4; text-shadow: none; }
html[data-theme="dark"] .hw-replay:hover { color: #FFFFFF; border-color: #2FA8E0; }
html[data-theme="dark"] .hw-replay:focus-visible,
html[data-theme="dark"] .lp .hw-btn-danger:focus-visible,
html[data-theme="dark"] .lp .hw-rail a:focus-visible { outline-color: #7FD3FF; }

/* 1 · sign-up fields */
html[data-theme="dark"] .hw-field-label { color: #F2F4F7; }
html[data-theme="dark"] .hw-field small { color: #93A0AE; }
html[data-theme="dark"] .hw-input { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.2); color: #F2F4F7; }
html[data-theme="dark"] .hw-input.hw-typing { border-color: #2FA8E0; box-shadow: 0 0 0 3px rgba(47, 168, 224, 0.25); }

/* 2 · draws */
html[data-theme="dark"] .hw-draw-new { background: rgba(47, 168, 224, 0.12); }
html[data-theme="dark"] .hw-draw-date { color: #93A0AE; }
html[data-theme="dark"] .hw-draw-new .hw-draw-date,
html[data-theme="dark"] .hw-note { color: #9FDCF8; }

/* 3 · frequency chart */
html[data-theme="dark"] .hw-bar-track { border-bottom-color: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .hw-bar {
    background: linear-gradient(180deg, #4FBBE8, #1B5578);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 10px -3px rgba(47, 168, 224, 0.6);
}
html[data-theme="dark"] .hw-bar-hot {
    background: linear-gradient(180deg, #FFC778, #E8932C);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 14px -3px rgba(245, 169, 74, 0.8);
}
html[data-theme="dark"] .hw-bar span { color: #93A0AE; }
html[data-theme="dark"] .hw-bar-hot span { color: #FFD9A3; }
html[data-theme="dark"] .hw-axis { color: #C3CAD4; }
html[data-theme="dark"] .hw-callout { background: rgba(245, 169, 74, 0.14); color: #F2F4F7; }

/* 5 · delete demo */
html[data-theme="dark"] .hw-profile { background: rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .hw-profile > div { border-bottom-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .hw-profile dt { color: #93A0AE; }
html[data-theme="dark"] .hw-profile dd { color: #F2F4F7; }
html[data-theme="dark"] .hw-gone b { color: #8FE0B0; }
html[data-theme="dark"] .hw-gone span { color: #93A0AE; }
html[data-theme="dark"] .hw-confirm { color: #C3CAD4; }
html[data-theme="dark"] .lp .hw-btn-danger { background: rgba(242, 130, 122, 0.12); border-color: rgba(242, 130, 122, 0.4); color: #F6A8A1; text-shadow: none; }
html[data-theme="dark"] .lp .hw-btn-danger:hover { background: rgba(242, 130, 122, 0.2); }
html[data-theme="dark"] .lp .hw-btn-solid { background: #D2443A; border-color: #D2443A; color: #FFFFFF; }
html[data-theme="dark"] .lp .hw-btn-solid:hover { background: #E0554B; }

@media (max-width: 860px) {
    html[data-theme="dark"] .hw-rail { position: static; }
}

/* ---- Public menu ---- */
html[data-theme="dark"] .lp-nav a[aria-current="page"] { background: rgba(47, 168, 224, 0.18); color: #DFF4FF; }
html[data-theme="dark"] .lp-menu > summary { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .lp-menu > summary:focus-visible { outline-color: #7FD3FF; }
html[data-theme="dark"] .lp-burger,
html[data-theme="dark"] .lp-burger::before,
html[data-theme="dark"] .lp-burger::after { background: #F2F4F7; }
html[data-theme="dark"] .lp-menu[open] .lp-burger { background: transparent; }
html[data-theme="dark"] .lp-menu-panel { background: rgba(6, 8, 12, 0.92); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.9); }
html[data-theme="dark"] .lp .lp-menu-panel a { color: #F2F4F7; }
html[data-theme="dark"] .lp .lp-menu-panel a:hover { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .lp .lp-menu-panel a[aria-current="page"] { background: rgba(47, 168, 224, 0.18); color: #DFF4FF; }

/* ---- Who it's for (/who-its-for) ---- */
html[data-theme="dark"] .lp .wf-jump a { background: rgba(6, 8, 12, 0.55); border-color: rgba(255, 255, 255, 0.18); color: #C3CAD4; box-shadow: none; }
html[data-theme="dark"] .lp .wf-jump a:hover { border-color: #2FA8E0; color: #FFFFFF; }
html[data-theme="dark"] .wf-quote { color: #F7F9FB; border-left-color: #2FA8E0; }
html[data-theme="dark"] .wf-cap { color: #C3CAD4; }

html[data-theme="dark"] .wf-pk span { color: #93A0AE; }
html[data-theme="dark"] .wf-pk b { color: #8FE0B0; }
html[data-theme="dark"] .wf-pk i { background: rgba(30, 40, 54, 0.75); border-color: rgba(255, 255, 255, 0.16); color: #DDE3EA; text-shadow: none; }
html[data-theme="dark"] .wf-pk i.wf-hit { background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.4), transparent 50%), #1F9D5B; color: #FFFFFF; box-shadow: 0 0 10px rgba(31, 157, 91, 0.6); }

html[data-theme="dark"] .wf-heat span { color: #C3CAD4; }
html[data-theme="dark"] .wf-heat i { background: color-mix(in srgb, #8FDCFF calc(var(--t) * 100%), #1B5578); box-shadow: 0 0 8px -3px rgba(47, 168, 224, 0.6); }
html[data-theme="dark"] .wf-heat i.wf-off { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
html[data-theme="dark"] .wf-heat .wf-axis { color: #93A0AE; }

html[data-theme="dark"] .wf-names code { background: rgba(47, 168, 224, 0.16); color: #DFF4FF; }
html[data-theme="dark"] .wf-names em { color: #93A0AE; }
html[data-theme="dark"] .wf-pair b { color: #F2F4F7; }
html[data-theme="dark"] .wf-bar { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .wf-bar i { background: linear-gradient(90deg, #1F8CC2, #5CC4F2); }
html[data-theme="dark"] .wf-pair-top .wf-bar i { background: linear-gradient(90deg, #E8932C, #FFC778); }

html[data-theme="dark"] .wf-week span { color: #C3CAD4; }
html[data-theme="dark"] .wf-week .wf-day { color: #93A0AE; }
html[data-theme="dark"] .wf-week i { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .wf-week i.wf-out { background: linear-gradient(180deg, #FFC778, #E8932C); box-shadow: 0 0 10px -3px rgba(245, 169, 74, 0.8); }
html[data-theme="dark"] .wf-week i.wf-some { background: rgba(232, 147, 44, 0.4); }

html[data-theme="dark"] .wf-matrix {
    background: var(--glass-sheen), var(--glass-tint);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-color: var(--glass-edge);
    box-shadow: var(--float-1);
}
html[data-theme="dark"] .wf-matrix th,
html[data-theme="dark"] .wf-matrix td { border-bottom-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .wf-matrix thead th { color: #9FDCF8; }
html[data-theme="dark"] .wf-matrix tbody th { color: #F2F4F7; }
html[data-theme="dark"] .wf-matrix td { color: #C3CAD4; }

html[data-theme="dark"] .wf-not div { border-color: rgba(255, 255, 255, 0.22); background: rgba(6, 8, 12, 0.45); }
html[data-theme="dark"] .wf-not b { color: #F2F4F7; }
html[data-theme="dark"] .wf-not span { color: #C3CAD4; }
