/* ══════════════════════════════════════════════════════════════════
   NEON COAST: launch-week look, over light and dark
   Loaded after north.css on every page. public/theme.js sets
   <html data-festive="neon"> until 23 Nov 2026 (on unless the person turns
   it off at the foot of the nav), then drops it on its own.

   Original art, ours: a dusk coast with palms, pastel art-deco hotels, a
   city on the water, a pink convertible and the crew, Ace (bucket hat, gold chain)
   and Nova (cap, phone, the bag). Lavender dusk by day (scene-light.svg),
   neon night after dark (scene-dark.svg). The scene sits behind the page:
   a veil keeps the reading side calm and lets the crew show on the right.
   Only token values change, so every page follows; nothing moves.
   ══════════════════════════════════════════════════════════════════ */

/* ── By day: lavender dusk, plum ink, hot pink and teal ── */
:root[data-festive="neon"][data-theme="light"] {
  --ink-rgb: 42, 20, 70;
  --shade-rgb: 90, 30, 80;

  --ws-page: #f1e6f3;
  --color-background: #fcf8fc;
  --color-bg-page: #fcf8fc;
  --color-white: #fffdff;
  --color-gray-1: #fdf9fd;
  --color-surface-stripe: #f8f0f8;
  --ws-tint-accent: #f8f0f8;
  --ws-surface-sunk: #f6eef7;
  --ws-surface-press: #ecdfee;
  --color-gray-2: #efe4f1;
  --ws-well: #efe4f1;
  --color-dropdown-bg: #fdf9fd;
  --ws-sidebar-hover: #ecdcef;
  --ws-sidebar-press: #e4d0e8;
  --ws-menu-hover: #f7eff8;
  --ws-menu-line: #e8dcec;
  --color-nav-hover-bg: rgba(42, 20, 70, 0.05);
  --ws-chart-foot: #f6eef7;
  --ws-scrim: rgba(30, 10, 50, 0.35);

  --color-brand-navy: #2a1446;
  --color-tertiary-dark-blue: #2a1446;
  --color-text-heading: #2a1446;
  --color-bg-dark: #2a1446;
  --color-text-primary: #3a2550;
  --color-text-body: #574766;
  --color-gray-7: #574766;
  --color-gray-8: #2a1a38;
  --color-text-muted: #85718c;
  --color-gray-6: #85718c;
  --color-gray-5: #b5a3b8;
  --color-brand-mid-blue: #0b7d78;
  --color-text-interactive: #0b7d78;

  --color-brand-salmon: #ff3d7f;
  --color-button-grad-start: #ff6a9a;
  --color-button-grad-end: #ff3d7f;
  --color-button-border: #d42a66;

  --color-gray-stroke: #ecdfee;
  --color-border-default: #ecdfee;
  --ws-edge: #ecdfee;
  --color-gray-3: #dfcbe3;
  --color-border-hairline: #dfcbe3;
  --ws-edge-card: #dfcbe3;
  --ws-edge-chip: #d6bfdc;
  --ws-edge-tray: #d6bfdc;
  --ws-edge-slot: #e7d8ea;
  --ws-chart-cell-edge: #e7d8ea;

  --ws-tint-needs: #ffe8ee;
  --ws-word-needs: #c2185b;
  --ws-card-tint-blue: #f3e9fb;
  --ws-chart-under-half: #ff3d7f;
  --ws-chart-salmon-fade: #ffc6d8;
  --ws-chart-under-half-tint: #ffd6e3;
  --ws-chart-navy-light: #6b3fa0;
  --ws-chart-navy-fade: #d9c8ef;
  --ws-chart-empty: #fdf9fd;
  --ws-chart-dot: #efe3f0;

  --ws-shadow-hairline: 0 0 0 0.5px #dfcbe3;
  --ws-shadow-lift: 0 4px 8px rgba(90, 30, 80, 0.07), 0 8px 24px rgba(90, 30, 80, 0.1);
  --shadow-card-default: 0 1px 2px rgba(90, 30, 80, 0.05), 0 4px 8px rgba(90, 30, 80, 0.07);
  --shadow-card-hover: 0 0 0 1px rgba(255, 61, 127, 0.25), 0 8px 24px rgba(255, 61, 127, 0.14);
  --ws-ring-selected: 0 0 0 2px rgba(42, 20, 70, 0.55);
  --ws-card-ring-lit: 0 0 0 2px rgba(42, 20, 70, 0.3);
  --ws-card-ring-person: inset 0 0 0 1px rgba(42, 20, 70, 0.12);
  --ws-focus-inset: inset 0 0 0 2px #0b7d78;
  --shadow-focus-ring: 0 0 0 3px rgba(255, 61, 127, 0.3);

  --gold: #ff3d7f;
  --gold-light: #ff6a9a;
  --ink: #2a1446;
  --paper: #fcf8fc;
  --warm-white: #fffdff;
  --rule: #ecdfee;
  --muted: #85718c;
  --body-text: #574766;

  /* North's names */
  --nx-frame-top: #ece0f4;
  --nx-glass: rgba(252, 248, 252, 0.9);
  --nx-glass-edge: #e6d6ea;
  --nx-band-a: rgba(255, 61, 127, 0.08);
  --nx-band-b: rgba(252, 248, 252, 0);
  --nx-pill: #fffdff;
  --nx-pill-shadow: 0 1px 2px rgba(90, 30, 80, 0.08), 0 0 0 0.5px rgba(90, 30, 80, 0.06);
  --nx-label: #5e4a6a;
  --nx-sec: #85718c;
  --nx-tint: rgba(42, 20, 70, 0.05);
  --nx-well: #eee2f0;
  --nx-edge: #dfcbe3;
  --nx-edge-hover: #b9a0c4;
  --nx-field: #fffdff;
  --nx-tip-shadow: 0 16px 32px -20px rgba(90, 30, 80, 0.45);
  --nx-pop-shadow: 0 12px 32px -16px rgba(90, 30, 80, 0.35);
  --nx-mute: #95819a;

  /* The scene and the veils over it */
  --nn-scene: url("/neon/scene-light.svg");
  --nn-veil-read: rgba(252, 248, 252, 0.93);
  --nn-veil-show: rgba(252, 248, 252, 0.5);
  --nn-veil-frame: rgba(244, 236, 247, 0.86);
  --nn-title-a: #ff3d7f;
  --nn-title-b: #ff7a3d;
}

/* ── After dark: neon night, pink and cyan ── */
:root[data-festive="neon"][data-theme="dark"] {
  --ink-rgb: 255, 236, 246;
  --shade-rgb: 0, 0, 0;

  --ws-page: #0b0618;
  --color-background: #120a24;
  --color-bg-page: #120a24;
  --color-white: #1a1030;
  --color-gray-1: #1a1030;
  --color-surface-stripe: #1a1030;
  --ws-tint-accent: #1a1030;
  --ws-surface-sunk: #21153b;
  --ws-surface-press: #2a1c48;
  --color-gray-2: #241740;
  --ws-well: #0d0720;
  --ws-field: #0d0720;
  --color-dropdown-bg: #1f1438;
  --ws-sidebar-hover: #160d2b;
  --ws-sidebar-press: #1c1234;
  --ws-menu-hover: #241740;
  --ws-menu-line: #2e2050;
  --color-nav-hover-bg: rgba(255, 236, 246, 0.04);
  --ws-chart-foot: #0f0820;
  --ws-scrim: rgba(4, 2, 10, 0.62);

  --color-brand-navy: #fff0f7;
  --color-tertiary-dark-blue: #fff0f7;
  --color-text-heading: #fff0f7;
  --color-bg-dark: #fff0f7;
  --color-text-primary: #f0dcea;
  --color-text-body: #d0bdd0;
  --color-gray-7: #d0bdd0;
  --color-gray-8: #f6e8f0;
  --color-text-muted: #a08daf;
  --color-gray-6: #a08daf;
  --color-gray-5: #6e5d80;
  --color-brand-mid-blue: #5cf2e8;
  --color-text-interactive: #5cf2e8;

  --color-brand-salmon: #ff4fa0;
  --color-button-grad-start: #ff79b8;
  --color-button-grad-end: #ff4fa0;
  --color-button-border: #d43a85;

  --color-gray-stroke: #2a1d48;
  --color-border-default: #2a1d48;
  --ws-edge: #2a1d48;
  --color-gray-3: #36265a;
  --color-border-hairline: #36265a;
  --ws-edge-card: #36265a;
  --ws-edge-chip: #432f6b;
  --ws-edge-tray: #432f6b;
  --ws-edge-slot: #2c1f4a;
  --ws-chart-cell-edge: #2c1f4a;

  --ws-word-needs: #ff8fb8;
  --ws-word-positive: #4fe0c8;
  --color-stat-positive: #3cd0b8;
  --ws-tint-needs: #351a35;
  --ws-tint-live: #0f2a33;
  --ws-card-tint-blue: #221a40;
  --ws-card-tint-done: #0f2a2e;

  --ws-chart-under-half: #ff4fa0;
  --ws-chart-past-half: #b39bf5;
  --ws-chart-finished: #2fc4ac;
  --ws-chart-empty: #241740;
  --ws-chart-dot: #241740;
  --ws-chart-navy-light: #c39bf5;
  --ws-chart-navy-fade: #3b2a5e;
  --ws-chart-salmon-fade: #5a2246;
  --ws-chart-under-half-tint: #5a2a4a;

  --ws-shadow-hairline: 0 0 0 0.5px #4a3570;
  --ws-shadow-lift: 0 0 0 0.5px rgba(255, 236, 246, 0.08), 0 6px 14px rgba(0, 0, 0, 0.36), 0 16px 40px rgba(0, 0, 0, 0.46);
  --shadow-card-hover: 0 0 0 0.5px rgba(92, 242, 232, 0.35), 0 6px 16px rgba(0, 0, 0, 0.35), 0 10px 36px rgba(255, 79, 160, 0.18);
  --shadow-dropdown: 0 0 0 0.5px rgba(255, 236, 246, 0.08), 0 8px 17px rgba(0, 0, 0, 0.3), 0 30px 30px rgba(0, 0, 0, 0.26), 0 68px 41px rgba(0, 0, 0, 0.16);
  --ws-ring-selected: 0 0 0 2px rgba(255, 240, 247, 0.7);
  --ws-card-ring-lit: 0 0 0 2px rgba(92, 242, 232, 0.4);
  --ws-card-ring-person: inset 0 0 0 1px rgba(255, 240, 247, 0.14);
  --ws-focus-inset: inset 0 0 0 2px #5cf2e8;
  --shadow-focus-ring: 0 0 0 3px rgba(255, 79, 160, 0.45);

  --gold: #ff4fa0;
  --gold-light: #ff79b8;
  --ink: #fff0f7;
  --paper: #120a24;
  --warm-white: #1a1030;
  --rule: #2a1d48;
  --muted: #a08daf;
  --body-text: #d0bdd0;

  --nx-frame-top: #140a2c;
  --nx-glass: rgba(18, 10, 36, 0.86);
  --nx-glass-edge: #2a1d48;
  --nx-band-a: rgba(255, 79, 160, 0.08);
  --nx-band-b: rgba(18, 10, 36, 0);
  --nx-pill: #21153b;
  --nx-pill-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(255, 236, 246, 0.08);
  --nx-label: #c9b6d6;
  --nx-sec: #a08daf;
  --nx-tint: rgba(255, 236, 246, 0.06);
  --nx-well: #2c1f4a;
  --nx-edge: #36265a;
  --nx-edge-hover: #5a4585;
  --nx-field: #150c2b;
  --nx-tip-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.75);
  --nx-pop-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --nx-mute: #a18fb0;

  --nn-scene: url("/neon/scene-dark.svg");
  --nn-veil-read: rgba(16, 9, 32, 0.92);
  --nn-veil-show: rgba(16, 9, 32, 0.5);
  --nn-veil-frame: rgba(11, 6, 24, 0.8);
  --nn-title-a: #ff6fb0;
  --nn-title-b: #ffc94d;
}

/* ── The scene behind everything ── */
/* The frame (behind the sidebar): the scene, softened. */
:root[data-festive="neon"] body.ws-app {
  background:
    linear-gradient(var(--nn-veil-frame), var(--nn-veil-frame)) fixed,
    var(--nn-scene) right bottom / cover no-repeat fixed,
    var(--ws-page);
}
/* The page: calm wherever you read, the crew showing through in the bottom-right corner. */
:root[data-festive="neon"] .ws-main {
  background:
    radial-gradient(ellipse 52% 72% at 100% 100%, var(--nn-veil-show) 0, var(--nn-veil-show) 45%, var(--nn-veil-read) 100%) fixed,
    var(--nn-scene) right bottom / cover no-repeat fixed,
    var(--color-bg-page);
}
/* Phones: the page is the whole width, so it stays calm all the way across. */
@media (max-width: 900px) {
  :root[data-festive="neon"] .ws-main { background: linear-gradient(var(--nn-veil-read), var(--nn-veil-read)) fixed, var(--nn-scene) right bottom / cover no-repeat fixed, var(--color-bg-page); }
}

/* Page titles and the wordmark in a tall poster face, lit like the sunset. */
:root[data-festive="neon"] :is(.ws-topbar__title, .nx-hello__title) {
  font-family: "Anton", var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--nn-title-a), var(--nn-title-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-festive="neon"] .ws-topbar__title { font-size: 30px; line-height: 34px; }
:root[data-festive="neon"] .ws-wordmark {
  background: linear-gradient(90deg, var(--nn-title-a), var(--nn-title-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pieces painted in navy elsewhere, in plum. */
:root[data-festive="neon"] .eg-north { background: linear-gradient(135deg, #3b1764, #2a1446 60%); color: #fff; }
:root[data-festive="neon"][data-theme="dark"] .cm-away-chip { border-color: #4a3570; }
:root[data-festive="neon"][data-theme="dark"] .eg-edge { stroke: #4a3570; }

/* ── The card and the switch at the foot of the nav ── */
.nn-box { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.nn-box + .ws-theme { margin-top: 0; }
.nn-card {
  display: flex; align-items: center; gap: var(--space-sm);
  margin: 0 0 var(--space-xxs); padding: var(--space-sm);
  border-radius: var(--ws-radius-card);
  background: var(--color-bg-page);
  box-shadow: var(--ws-shadow-hairline);
}
.nn-card[hidden] { display: none; }
.nn-card__art { flex: none; width: 40px; height: 40px; border-radius: 8px; display: block; overflow: hidden; }
.nn-card__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.nn-card__words b { font-size: var(--ws-text-body); font-weight: 600; color: var(--color-text-heading); }
.nn-card__words span { font-size: var(--ws-text-dense); color: var(--color-text-muted); }
.nn-card__stars { display: flex; gap: 1px; font-size: 11px; color: #f5b400; }
.ws-theme .ws-segmented__item[data-festive-pick] { width: auto; padding: 0 var(--space-xs); font-size: var(--ws-text-dense); font-weight: 500; }
html.in-orin .nn-box { display: none !important; }
@media (min-width: 901px) { html.nx-rail .nn-box { display: none !important; } }
