/* "Night City": the dark, neon-noir theme for robimoller.com.
   Everything is scoped to html[data-theme="night"] so it is inert unless a page opted in (fragments/night.html)
   AND the visitor is on the night theme. The day theme ("Working Draft", home.css) is never modified.

   Direction: neon noir. Near-black blue, one hot amber, one cool teal, magenta only as a glitch fringe.
   Neon is a light source (glow on interactive things and a few signs), never decoration on body text.
   Body text stays a soft neutral; accent colours are for short labels and controls. */

html[data-theme="night"] {
  --nc-bg: #070a10;
  --nc-bg-deep: #04060b;
  --nc-surface: #0d121c;
  --nc-surface-2: #111827;
  --nc-line: #1d2636;
  --nc-line-hot: #3a2f22;
  --nc-ink: #dde3ee;
  --nc-ink-2: #9aa5b8;
  --nc-ink-3: #7c879b;
  --nc-amber: #ffa23e;
  --nc-amber-dim: rgba(255, 162, 62, 0.28);
  --nc-teal: #2fd4c4;
  --nc-teal-dim: rgba(47, 212, 196, 0.28);
  --nc-magenta: #ff3d7f;
  --nc-display: 'Chakra Petch', 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --nc-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Re-point the day theme's tokens so home.css restyles itself */
  --wd-bg: var(--nc-bg);
  --wd-surface: var(--nc-surface);
  --wd-ink: var(--nc-ink);
  --wd-ink-secondary: var(--nc-ink-2);
  --wd-ink-tertiary: var(--nc-ink-3);
  --wd-accent: var(--nc-amber);
  --wd-ink-accent: var(--nc-teal);
  --wd-hairline: var(--nc-line);
  --wd-radius: 0px;
  --wd-font-display: var(--nc-display);
  --wd-font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  color-scheme: dark;
}

/* Shared HUD corner brackets: use as  background: var(--nc-brackets)  on a pseudo-element (see page skins) */
html[data-theme="night"] {
  --nc-bk: var(--nc-amber-dim);
  --nc-brackets:
    linear-gradient(var(--nc-bk), var(--nc-bk)) top left / 14px 1px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) top left / 1px 14px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) top right / 14px 1px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) top right / 1px 14px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--nc-bk), var(--nc-bk)) bottom right / 1px 14px no-repeat;
  --nc-notch: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* Zero-specificity base for pages that have little styling of their own: any page rule wins over these */
:where(html[data-theme="night"]) :where(a) { color: var(--nc-teal); }
:where(html[data-theme="night"]) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--nc-display); color: var(--nc-ink); }
:where(html[data-theme="night"]) :where(input, textarea, select) {
  background: var(--nc-bg-deep); color: var(--nc-ink); border: 1px solid var(--nc-line); border-radius: 0; font-family: inherit;
}
:where(html[data-theme="night"]) :where(hr) { border: 0; border-top: 1px solid var(--nc-line); }
:where(html[data-theme="night"]) :where(code, pre, kbd) { font-family: var(--nc-mono); }

/* Elements that only exist in the night theme */
.nc-only { display: none !important; }
html[data-theme="night"] .nc-only { display: block !important; }
html[data-theme="night"] .nc-only.nc-flex { display: flex !important; }

html[data-theme="night"] body {
  background: var(--nc-bg);
  color: var(--nc-ink);
}
html[data-theme="night"] ::selection { background: var(--nc-amber); color: #120b02; }
html[data-theme="night"] :focus-visible { outline: 2px solid var(--nc-teal); outline-offset: 2px; }
html[data-theme="night"] { scrollbar-color: var(--nc-amber-dim) var(--nc-bg); }

/* ---------- Atmosphere: scanlines, grain, vignette (static; nothing flickers) ---------- */
html[data-theme="night"] body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.22) 3px);
  opacity: 0.35;
}
html[data-theme="night"] body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
/* film grain: its own layer at very low opacity so it never lifts the blacks */
html[data-theme="night"]::after {
  content: "";
  position: fixed; inset: 0; z-index: 9996; pointer-events: none; opacity: 0.06;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
html[data-theme="night"] .header {
  background: rgba(7, 10, 16, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--nc-line);
  color: var(--nc-ink);
}
html[data-theme="night"] .header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nc-amber-dim) 20%, var(--nc-teal-dim) 70%, transparent);
  pointer-events: none;
}
html[data-theme="night"] .header .avatar img {
  border-radius: 0;
  border: 1px solid var(--nc-amber-dim);
  box-shadow: 0 0 14px -2px var(--nc-amber-dim);
  filter: saturate(0.85) contrast(1.05);
}
html[data-theme="night"] .header .navigation a {
  font-family: var(--nc-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nc-ink-2);
  transition: color 140ms ease, text-shadow 140ms ease;
}
html[data-theme="night"] .header .navigation a:hover,
html[data-theme="night"] .header .navigation a:focus-visible {
  color: var(--nc-amber);
  text-shadow: 0 0 12px var(--nc-amber-dim);
  transform: none;
}
html[data-theme="night"] .header .socials a,
html[data-theme="night"] .header .socials .logout-btn {
  color: var(--nc-ink-3);
  transition: color 140ms ease, text-shadow 140ms ease;
}
html[data-theme="night"] .header .socials a:hover,
html[data-theme="night"] .header .socials .logout-btn:hover {
  color: var(--nc-teal);
  text-shadow: 0 0 12px var(--nc-teal-dim);
  background: none;
  transform: none;
}
html[data-theme="night"] .rm-dropdown-content {
  background: rgba(10, 14, 22, 0.96);
  border: 1px solid var(--nc-line);
  border-radius: 0;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,162,62,0.06);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
html[data-theme="night"] .rm-dropdown-content a {
  color: var(--nc-ink-2);
  font-family: var(--nc-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-theme="night"] .rm-dropdown-content a:hover {
  background: rgba(255,162,62,0.07);
  color: var(--nc-amber);
}

/* theme switch + palette hint, injected by night.js */
.nc-hdr-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 1px solid transparent; cursor: pointer;
  color: #444444; font: inherit; font-size: 1.05rem; padding: 6px; border-radius: 6px; /* matches the day header's social icons */
}
html[data-theme="night"] .nc-hdr-btn { color: var(--nc-ink-3); border-radius: 0; }
html[data-theme="night"] .nc-hdr-btn:hover { color: var(--nc-teal); text-shadow: 0 0 12px var(--nc-teal-dim); }
.nc-kbd-hint {
  font-family: var(--nc-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  border: 1px solid var(--nc-line); padding: 3px 7px; color: var(--nc-ink-3);
}
@media (max-width: 760px) { .nc-kbd-hint { display: none; } }

/* ---------- Hero ---------- */
.nc-hero {
  position: relative;
  min-height: clamp(520px, 82vh, 780px);
  overflow: hidden;
  border-bottom: 1px solid var(--nc-line);
  background: var(--nc-bg-deep);
  isolation: isolate;
}
.nc-hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2;
}
.nc-hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(7,10,16,0.95) 0%, rgba(7,10,16,0.55) 32%, rgba(7,10,16,0) 62%),
    linear-gradient(to right, rgba(7,10,16,0.7), rgba(7,10,16,0) 55%);
}
.nc-hero-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 4.5rem;
}
.nc-eyebrow {
  font-family: var(--nc-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--nc-teal); margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.nc-dot {
  width: 7px; height: 7px; background: var(--nc-teal); box-shadow: 0 0 10px var(--nc-teal);
  animation: nc-pulse 2.4s ease-in-out infinite;
}
@keyframes nc-pulse { 50% { opacity: 0.35; } }
.nc-title {
  font-family: var(--nc-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 6.4rem); line-height: 0.95; letter-spacing: 0.01em;
  margin: 0 0 1rem; color: #f4f1ea;
  text-shadow: 0 0 40px rgba(255,162,62,0.18);
  position: relative; display: inline-block;
}
.nc-sub {
  max-width: 34rem; margin: 0 0 1.75rem;
  font-size: 1.1rem; line-height: 1.55; color: var(--nc-ink-2);
}
.nc-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.nc-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--nc-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85rem 1.3rem; cursor: pointer; text-decoration: none;
  color: var(--nc-ink); background: rgba(13,18,28,0.6); border: 1px solid var(--nc-line);
  transition: color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.nc-btn:hover { border-color: var(--nc-teal); color: var(--nc-teal); }
.nc-btn--primary { color: #140b02; background: var(--nc-amber); border-color: var(--nc-amber); font-weight: 600; }
.nc-btn--primary:hover { color: #140b02; background: #ffb766; border-color: #ffb766; box-shadow: 0 0 28px -4px var(--nc-amber-dim); }
.nc-btn kbd {
  font-family: inherit; font-size: 0.7rem; padding: 1px 6px; border: 1px solid currentColor; opacity: 0.75;
}

.nc-hud {
  position: absolute; right: 1.25rem; bottom: 1.1rem; z-index: 1;
  font-family: var(--nc-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--nc-ink-3); text-align: right; line-height: 1.8;
}
.nc-hud b { color: var(--nc-amber); font-weight: 500; }
@media (max-width: 640px) { .nc-hud { display: none; } .nc-hero-inner { padding-bottom: 3rem; } }

/* hero corner brackets */
.nc-hero::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 1;
  --c: var(--nc-amber-dim);
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 22px no-repeat;
}

/* ---------- Chromatic glitch: one short burst on hover, never looping ---------- */
@media (prefers-reduced-motion: no-preference) {
  .nc-glitch:hover { animation: nc-glitch 420ms steps(2, end) 1; }
}
@keyframes nc-glitch {
  0%   { text-shadow: 3px 0 var(--nc-magenta), -3px 0 var(--nc-teal); transform: translate(0); }
  20%  { text-shadow: -4px 0 var(--nc-magenta), 4px 0 var(--nc-teal); transform: translate(-2px, 1px); }
  40%  { text-shadow: 2px 0 var(--nc-magenta), -2px 0 var(--nc-teal); transform: translate(2px, -1px); }
  60%  { text-shadow: -3px 0 var(--nc-magenta), 3px 0 var(--nc-teal); transform: translate(0); }
  100% { text-shadow: 0 0 40px rgba(255,162,62,0.18); transform: translate(0); }
}

/* ---------- Sections (home.css tokens do most of the work; this adds the structure) ---------- */
html[data-theme="night"] body { counter-reset: nc-sec; }
html[data-theme="night"] .wd-section-header { text-align: left; margin-bottom: 2.4rem; border-bottom: 1px solid var(--nc-line); padding-bottom: 1.1rem; position: relative; }
html[data-theme="night"] .wd-section-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 1px;
  background: var(--nc-amber); box-shadow: 0 0 12px var(--nc-amber);
}
html[data-theme="night"] .wd-section-header h2 {
  counter-increment: nc-sec;
  font-family: var(--nc-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 2rem;
}
html[data-theme="night"] .wd-section-header h2::before {
  content: "0" counter(nc-sec) " / ";
  font-family: var(--nc-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--nc-amber);
  vertical-align: middle; margin-right: 0.4rem;
}
html[data-theme="night"] .wd-section-header p {
  font-family: var(--nc-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nc-ink-3);
}

/* App cards: HUD brackets, hot border on hover */
html[data-theme="night"] .wd-app-card {
  position: relative;
  background: linear-gradient(180deg, var(--nc-surface-2), var(--nc-surface) 40%);
  border: 1px solid var(--nc-line);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
html[data-theme="night"] .wd-app-card::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  --c: var(--nc-amber-dim);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat;
}
html[data-theme="night"] .wd-app-card:hover {
  border-color: var(--nc-amber);
  box-shadow: 0 0 0 1px rgba(255,162,62,0.18), 0 18px 50px -20px rgba(255,162,62,0.35);
}
html[data-theme="night"] .wd-app-card h3 { font-family: var(--nc-display); text-transform: uppercase; letter-spacing: 0.05em; }
html[data-theme="night"] .wd-icon-badge { border-radius: 0; border: 1px solid currentColor; box-shadow: 0 0 18px -6px currentColor; }
html[data-theme="night"] .wd-icon-badge--momentum { background: rgba(110, 160, 255, 0.1); color: #7aa8ff; }
html[data-theme="night"] .wd-icon-badge--kanimono { background: rgba(110, 160, 255, 0.1); color: #6fb0ff; }
html[data-theme="night"] .wd-icon-badge--nounii { background: rgba(255, 107, 87, 0.1); color: #ff7a66; }
html[data-theme="night"] .wd-tag {
  font-family: var(--nc-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--nc-teal); border-color: var(--nc-teal-dim);
}
html[data-theme="night"] .wd-carousel { background: var(--nc-bg-deep); border-top: 1px solid var(--nc-line); border-bottom: 1px solid var(--nc-line); }
/* light app screenshots would glare on the dark page: dim them until hovered */
html[data-theme="night"] .wd-carousel img { filter: brightness(0.8) saturate(0.9) contrast(1.04); border-color: var(--nc-line); transition: filter 200ms ease; }
html[data-theme="night"] .wd-carousel img:hover { filter: none; }
html[data-theme="night"] #apps .wd-section-header { max-width: 1000px; margin-left: auto; margin-right: auto; }
html[data-theme="night"] .wd-feature-list .fa-check { color: var(--nc-teal); }
html[data-theme="night"] .wd-btn {
  font-family: var(--nc-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--nc-amber); border: 1px solid var(--nc-amber-dim);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
html[data-theme="night"] .wd-btn:hover { background: var(--nc-amber); color: #140b02; border-color: var(--nc-amber); }

/* Photography + video */
html[data-theme="night"] .wd-photo-item { background: var(--nc-surface); border-color: var(--nc-line); }
html[data-theme="night"] .wd-photo-item img { filter: saturate(0.88) contrast(1.06); transition: filter 220ms ease; border-radius: 0; }
html[data-theme="night"] .wd-photo-item:hover img { filter: none; }
html[data-theme="night"] .wd-photo-overlay { background: linear-gradient(to top, rgba(4,6,11,0.85), rgba(4,6,11,0) 60%); border-radius: 0; }
html[data-theme="night"] .wd-panel-section { background: var(--nc-surface); border-radius: 0; border-color: var(--nc-line); }
html[data-theme="night"] .wd-video-card { background: var(--nc-surface-2); }
html[data-theme="night"] .wd-video-thumb img { filter: brightness(0.82) saturate(0.9); transition: filter 200ms ease; }
html[data-theme="night"] .wd-video-card:hover .wd-video-thumb img { filter: none; }
html[data-theme="night"] .wd-video-play { background: rgba(4,6,11,0.35); }
html[data-theme="night"] .wd-video-play-circle { background: rgba(255,162,62,0.92); color: #140b02; border-radius: 0; }
html[data-theme="night"] .wd-video-card:hover .wd-video-play-circle { background: var(--nc-teal); color: #04100e; }
html[data-theme="night"] .wd-video-title { font-family: var(--nc-display); letter-spacing: 0.02em; }
html[data-theme="night"] .wd-video-modal-panel { border: 1px solid var(--nc-amber-dim); }
html[data-theme="night"] .wd-modal-close, html[data-theme="night"] .lightbox-close { border-radius: 0; }
html[data-theme="night"] .wd-modal-close { background: var(--nc-amber); color: #140b02; }
html[data-theme="night"] .lightbox-image { border-radius: 0; }

/* Footer */
html[data-theme="night"] .wd-footer { border-top: 1px solid var(--nc-line); font-family: var(--nc-mono); font-size: 0.78rem; letter-spacing: 0.06em; }
html[data-theme="night"] .wd-social a:hover { color: var(--nc-teal); text-shadow: 0 0 14px var(--nc-teal-dim); }
.nc-status { font-family: var(--nc-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nc-ink-3); margin: 0 0 1.2rem; }
.nc-status b { color: var(--nc-teal); font-weight: 500; }
.nc-cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--nc-teal); vertical-align: -0.15em; margin-left: 0.3em; animation: nc-blink 1.1s steps(1) infinite; }
@keyframes nc-blink { 50% { opacity: 0; } }

/* ---------- Command palette ---------- */
.nc-pal-wrap {
  position: fixed; inset: 0; z-index: 10001; display: none;
  align-items: flex-start; justify-content: center; padding: 14vh 1rem 1rem;
  background: rgba(2, 4, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nc-pal-wrap.is-open { display: flex; }
.nc-pal {
  width: 100%; max-width: 40rem; max-height: 70vh; display: flex; flex-direction: column;
  background: #0a0e16; border: 1px solid var(--nc-amber-dim, rgba(255,162,62,0.28));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9), 0 0 60px -20px rgba(255,162,62,0.25);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; color: #dde3ee;
}
.nc-pal-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-bottom: 1px solid #1d2636; }
.nc-pal-top span { color: #ffa23e; }
.nc-pal input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #dde3ee;
  font: inherit; font-size: 0.95rem; letter-spacing: 0.02em;
}
.nc-pal input::placeholder { color: #7c879b; }
.nc-pal ul { list-style: none; margin: 0; padding: 0.4rem 0; overflow: auto; }
.nc-pal li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 1rem; cursor: pointer; font-size: 0.85rem; border-left: 2px solid transparent;
}
.nc-pal li small { color: #7c879b; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; flex: none; }
.nc-pal li[aria-selected="true"] { background: rgba(255,162,62,0.08); border-left-color: #ffa23e; color: #ffb766; }
.nc-pal li mark { background: none; color: #2fd4c4; text-decoration: underline; text-underline-offset: 3px; }
.nc-pal-empty { padding: 1.2rem 1rem; color: #7c879b; font-size: 0.85rem; }
.nc-pal-foot { display: flex; gap: 1.2rem; padding: 0.55rem 1rem; border-top: 1px solid #1d2636; color: #7c879b; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Boot sequence ---------- */
.nc-boot {
  position: fixed; inset: 0; z-index: 10002; background: #04060b; color: #2fd4c4;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  transition: opacity 360ms ease;
}
.nc-boot.is-done { opacity: 0; pointer-events: none; }
.nc-boot pre { margin: 0; font: inherit; font-size: clamp(0.78rem, 2.4vw, 0.95rem); line-height: 1.9; letter-spacing: 0.04em; white-space: pre-wrap; max-width: 40rem; width: 100%; }
.nc-boot .amber { color: #ffa23e; }
.nc-boot .dim { color: #7c879b; }
.nc-boot button {
  position: absolute; right: 1.25rem; bottom: 1.25rem; background: none; cursor: pointer;
  border: 1px solid #1d2636; color: #9aa5b8; font: inherit; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.55rem 0.9rem;
}
.nc-boot button:hover { color: #ffa23e; border-color: #ffa23e; }

@media (prefers-reduced-motion: reduce) {
  .nc-dot, .nc-cursor { animation: none; }
  .nc-boot { transition: none; }
}
