/* Dark: the app's palette (Databuddy's, src/styles/app/shell.css) for the page, its cards and its words.
   The green art turns to night: the same pixel waves and films, cooled and lowered, so a bright lime
   panel never sits on a black page. Our green stays for the words that carry the point and the button. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --sky:#19191d;--white:#1e1e23;--ink:#e7e8eb;--ink-2:#a5a6ad;--ink-3:#94959c;--line:#323239;--line-2:#3b3b45;--nv-d:#9BCF4A;
  --night:hue-rotate(38deg) saturate(.85) brightness(.36);--night-ground:#0b1210;
  --ring-dark:inset 0 0 0 1px #3b3b45,0 1px 3px rgba(0,0,0,.1);
  /* The films' night: the banners' greens a step brighter, so the art reads on the page rather than
     sinking into it; white as moonlight and the globe's sea a deep teal, never the grey a filter makes. */
  --film-pale:#498754;--film-green:#1D762B;--film-deep:#13501E;--film-ink:#09170E;--film-white:#BFD0BC;
  --film-air:#2B4B46;--film-sea:#223F3B;--film-blue:#1A322F;--film-navy:#132622;
  --github-ink:#e7e8eb;
  /* links in the house blue, lifted so they read on the dark page */
  --blue-dk:#7FCDF0;
  /* read by the cookie banner and its dialog, which live in their own shadow root (/consent.js) */
  --card:#1e1e23;--hair:#3b3b45;--t2:#a5a6ad;--scrim:rgba(0,0,0,.5);--cb-ground:#1e1e23;--cb-line:#3b3b45;--cb-text:#a5a6ad;--cb-ink:#e7e8eb;
}
::view-transition-old(root),::view-transition-new(root){animation-duration:.3s;animation-timing-function:ease}
:root[data-theme="dark"] body::before{background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1.4px)}

/* ── the night art: every panel that wears the pixel waves, and the hero's forest over them ── */
:root[data-theme="dark"] :is(.hero-row .hero-panel,.rv-shot,.fm,.auth-right){position:relative;isolation:isolate;background:var(--night-ground)}
:root[data-theme="dark"] :is(.hero-row .hero-panel,.rv-shot,.fm,.auth-right)::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url('/assets/hero-ground-pixel.png') center/cover no-repeat;image-rendering:pixelated;filter:var(--night)}
:root[data-theme="dark"] :is(.hero-aside,.foot-card){background:var(--night-ground)}
:root[data-theme="dark"] :is(.hero-aside,.foot-card)::before{opacity:1;filter:var(--night)}
/* The footer's art is blue: the night's hue turn, made for the green art, would push it to purple. */
:root[data-theme="dark"] .foot-card{--night-ground:#0a1118}
:root[data-theme="dark"] .foot-card::before{filter:saturate(.85) brightness(.36)}
:root[data-theme="dark"] #herofilm{filter:var(--night)}
/* the icons draw in one or two inks of their own, so the films' night level as a filter is their night */
:root[data-theme="dark"] canvas[data-glyph]{filter:hue-rotate(38deg) saturate(.85) brightness(.6)}
:root[data-theme="dark"] :is(.hero-row .hero-panel,.hero-aside,.foot-card){box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
:root[data-theme="dark"] .hero-row .hero-panel h1{color:var(--ink)}
:root[data-theme="dark"] .hero-row .hero-panel .hl{color:var(--nv-d);text-shadow:none}
:root[data-theme="dark"] .foot-mark .shield .tick{stroke:var(--night-ground)}
/* A print is dark lines on light paper: at night it glows faintly rather than turning into a negative. */
:root[data-theme="dark"] .foot-scene{color:#64BDF2}
:root[data-theme="dark"] .foot-call em{color:#64BDF2}
:root[data-theme="dark"] .foot-print{filter:brightness(1.25);opacity:.5}
:root[data-theme="dark"] .foot-scene canvas{opacity:.5}

/* ── trusted by: the marks are drawn dark, so they turn light ── */
:root[data-theme="dark"] .t-mark span{color:var(--ink)}
:root[data-theme="dark"] .tlogo > img{filter:invert(1) hue-rotate(180deg)}

/* ── cards: the app's dark card, a hairline ring instead of the light bevel ── */
:root[data-theme="dark"] :is(.bt,#faq .faq-duo>div:last-child){box-shadow:var(--ring-dark)}
:root[data-theme="dark"] #faq .faq-duo>div:last-child{background:var(--white)}
:root[data-theme="dark"] .fm-win{--t1:#c8c9ce;--t2:#a5a6ad;--hair:#3b3b45;--ground:#19191d;
  --card:#1e1e23;--strong:#e7e8eb;--frame:#1e1e23;--hover:rgba(255,255,255,.05);
  --ring:var(--ring-dark);box-shadow:0 0 0 1px rgba(255,255,255,.06),0 24px 48px -20px rgba(0,0,0,.6)}

/* ── the sign-in card ── */
:root[data-theme="dark"] .auth-overlay{background:rgba(0,0,0,.6)}
:root[data-theme="dark"] .auth-modal{box-shadow:0 0 0 1px #3b3b45,0 40px 90px -30px rgba(0,0,0,.8)}
:root[data-theme="dark"] .auth-btn{background:#2a2a31;color:var(--ink);box-shadow:var(--ring-dark)}
:root[data-theme="dark"] .auth-btn:hover{background:#323239}
:root[data-theme="dark"] .auth-btn:active{background:#3b3b45}
:root[data-theme="dark"] .auth-email-form input{background:#2a2a31;color:var(--ink);border-color:#3b3b45}
:root[data-theme="dark"] .auth-email-form button:disabled{background:rgba(118,185,0,.14);color:var(--nv-d);box-shadow:inset 0 0 0 1px rgba(118,185,0,.3)}
:root[data-theme="dark"] .auth-line{color:var(--ink)}
:root[data-theme="dark"] .auth-line em{color:var(--nv-d);text-shadow:none}
:root[data-theme="dark"] .auth-close{background:rgba(30,30,35,.88);color:var(--ink);box-shadow:0 0 0 1px #3b3b45}
:root[data-theme="dark"] .auth-close:hover{background:#2a2a31}

/* The player window keeps being a screen at night: the dashboard's own night greys, the same ones
   the drawn dashboard uses. */
:root[data-theme="dark"] .rp{--t1:#c8c9ce;--t2:#a5a6ad;--hair:#3b3b45;--ground:#19191d;--card:#1e1e23;--soft:#2a2a31;
  --faint:#4a4a52;--strong:#e7e8eb;--good:#4FBE85;--bad:#F97066;--wait:#E8B44A}
:root[data-theme="dark"] .rp-win{box-shadow:0 0 0 1px rgba(255,255,255,.08),0 24px 48px -24px rgba(0,0,0,.6)}
:root[data-theme="dark"] .rp-us{background:rgba(118,185,0,.16);color:#9BCF4A}
:root[data-theme="dark"] .rp-head{box-shadow:0 0 0 3px #9BCF4A}
:root[data-theme="dark"] .rp-played{background:#9BCF4A}
