/* ==========================================================================
   PlayArMr — Shared Design System (Inspired by Max Leiter + Cyberpunk Terminal)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root,
[data-theme="dark"] {
  /* Fonts */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Mono', Consolas, monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ==========================================================================
     DARK THEME PALETTE (EXACT HEX VALUES):
       Primary:      #A855F7
       Secondary:    #17144A
       Accent:       #06B6D4
       Muted:        #18181B
       Destructive:  #EF4444
       Border:       #27272A
       Card:         #0F0F12
       Background:   #09090B
     ========================================================================== */
  --primary: #A855F7;
  --secondary: #17144A;
  --accent: #06B6D4;
  --muted: #18181B;
  --destructive: #EF4444;
  --border: #27272A;
  --card: #0F0F12;
  --background: #09090B;

  /* Mapped Theme Variables */
  --bg: #09090B;
  --bg-alpha: rgba(9, 9, 11, 0.90);
  --bg-alt: #18181B;
  --bg-window: #0F0F12;
  --bg-card: #0F0F12;
  --bg-card-hover: rgba(23, 20, 74, 0.50); /* Deep indigo secondary surface */
  --bg-input: #18181B;

  /* Terminal Surface Tokens */
  --bg-terminal: #09090B;
  --bg-terminal-header: #0F0F12;
  --bg-terminal-cli: #18181B;

  --border-subtle: #27272A;
  --border-hover: #A855F7;
  --border-pink: #A855F7;

  /* High-legibility neutral text */
  --fg: #F4F4F5;
  --fg-dim: #A1A1AA;
  --fg-faint: #71717A;

  /* Accent Mappings:
     Primary: #A855F7 (Purple)
     Secondary Accent: #06B6D4 (Cyan)
     Destructive: #EF4444 (Red)
     NO green in dark theme
  */
  --cyan: #06B6D4;
  --pink: #A855F7;
  --green: #A855F7;
  --yellow: #06B6D4;
  --orange: #A855F7;
  --purple: #A855F7;
  --red: #EF4444;
  --blue: #06B6D4;

  --selection: rgba(168, 85, 247, 0.25);
  --shadow-window: 0 20px 50px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--border);

  --badge-bg: rgba(23, 20, 74, 0.65); /* Deep indigo */
  --badge-border: #27272A;
  --badge-fg: #06B6D4; /* Cyan accent */

  --crt-scanline: rgba(6, 182, 212, 0.015);
  --crt-opacity: 0.40;
}

[data-theme="light"] {
  /* ==========================================================================
     Clean Modern Technical Light Theme
     Reference Palette:
       Primary:     #3B82F6 (Vivid medium blue)
       Secondary:   #E5E7EB (Cool light gray)
       Accent:      #DDEEFF (Very pale / light blue)
       Muted:       #F5F7F9 (Very light cool gray)
       Destructive: #FF3338 (Vivid red)
       Border:      #D9DEE5 (Cool medium-light gray)
       Card:        #FFFFFF (Clean white)
       Background:  #FAFBFC (Near-white / very slightly cool white)
       Foreground:  #0F172A (Deep technical slate)
     ========================================================================== */
  --primary: #3B82F6;
  --secondary: #E5E7EB;
  --accent: #DDEEFF;
  --muted: #F5F7F9;
  --destructive: #FF3338;
  --card: #FFFFFF;
  --background: #FAFBFC;

  --bg: #FAFBFC;
  --bg-alpha: rgba(250, 251, 252, 0.92);
  --bg-alt: #F5F7F9;
  --bg-window: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-input: #F5F7F9;

  /* Terminal Surface Tokens: Distinct cool technical contrast */
  --bg-terminal: #F0F4F8;
  --bg-terminal-header: #E5E7EB;
  --bg-terminal-cli: #E5EDF7;

  --border: #D9DEE5;
  --border-subtle: rgba(217, 222, 229, 0.7);
  --border-hover: #3B82F6;
  --border-pink: #D9DEE5;

  --fg: #0F172A;
  --fg-dim: #475569;
  --fg-faint: #64748B;

  /* Palette Tokens */
  --primary-blue: #3B82F6;
  --icy-aqua: #DDEEFF;
  --deep-ink: #0F172A;
  --graphite: #475569;
  --soft-bg: #FAFBFC;

  --cyan: #3B82F6;
  --pink: #3B82F6;
  --green: #10B981;
  --yellow: #F59E0B;
  --orange: #F97316;
  --purple: #8B5CF6;
  --red: #FF3338;
  --blue: #3B82F6;

  --accent: #3B82F6;
  --selection: rgba(59, 130, 246, 0.20);
  --shadow-window: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px var(--border);

  --badge-bg: #DDEEFF;
  --badge-border: #D9DEE5;
  --badge-fg: #1D4ED8;

  --crt-scanline: rgba(15, 23, 42, 0.012);
  --crt-opacity: 0.45;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--selection);
  color: var(--fg);
}

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── CRT Scanlines Shader (Dark Mode) ────────────────────────────── */
:root:not([data-theme="light"]) body.crt-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    var(--crt-scanline) 0px,
    var(--crt-scanline) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: var(--crt-opacity);
}

:root:not([data-theme="light"]) body.crt-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 65%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* ── CRT Scanlines Shader (Light Mode): Subtle neutral scanlines, NO vignette ── */
[data-theme="light"] body.crt-active::before {
  display: block !important;
  content: "" !important;
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(20, 17, 15, 0.022) 0px,
    rgba(20, 17, 15, 0.022) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.85;
}

[data-theme="light"] body.crt-active::after,
[data-theme="light"] body::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Menubar / Header (Max Leiter Inspired)
   ========================================================================== */

.menubar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 44px;
  background-color: var(--bg-alpha);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  transition: border-color 0.25s, background-color 0.25s;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.menubar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-dim);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  color: var(--fg-dim);
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.breadcrumbs .sep {
  color: var(--fg-faint);
}

.breadcrumbs .current {
  color: var(--fg);
  font-weight: 500;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.menubar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--fg-dim);
  font-size: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
}

.menubar-btn:hover {
  color: var(--fg);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.menubar-btn .kbd-shortcut {
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(125, 125, 125, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--fg-dim);
}

.menubar-clock {
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  padding-left: 0.4rem;
  border-left: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Constellation Grid Ambient Background
   ========================================================================== */

.constellation-grid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   Desktop Layout Container
   ========================================================================== */

.desktop-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* ── Left Desktop Applications Bar ──────────────────────────────── */
.desktop-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .desktop-apps {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 1024px) {
  .desktop-apps {
    position: sticky;
    top: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.5rem;
  }
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@media (min-width: 1024px) {
  .app-icon {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
  }
}

.app-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.app-icon:active {
  transform: translateY(0);
}

.app-icon-symbol {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  transition: all 0.2s;
  flex-shrink: 0;
}

.app-icon:hover .app-icon-symbol {
  border-color: var(--border-hover);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
  color: var(--primary);
}

.app-icon-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-icon-ext {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.65rem;
  color: var(--fg-dim);
}

/* ==========================================================================
   Desktop Main Workspace / Widgets
   ========================================================================== */

.desktop-workspace {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.widgets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Standard Window / Card Chrome ──────────────────────────────── */
/* Base Window Card Shell (Max Leiter inspired clean surfaces) */
.window-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.window-card:hover {
  border-color: var(--border-hover);
}

.window-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot.red    { background: var(--destructive); }
.window-dot.yellow { background: #27272A; }
.window-dot.green  { background: var(--accent); }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.window-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

.window-body {
  padding: 1.25rem 1.5rem;
}

/* ==========================================================================
   Hero Terminal & Glitch ASCII
   ========================================================================== */

.hero-terminal {
  grid-column: 1 / -1;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
}

.hero-terminal .window-header {
  background: var(--bg-terminal-header);
  border-bottom: 1px solid var(--border);
}

.ascii-container {
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
}

.ascii-art {
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.4vw, 13px);
  line-height: 1.15;
  color: var(--green);
  position: relative;
  white-space: pre;
  user-select: none;
  animation: ascii-flicker 8s steps(1, end) infinite;
}

.ascii-art::before,
.ascii-art::after {
  content: attr(data-ascii);
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: pre;
  overflow: hidden;
  opacity: 0;
}

.ascii-art::before {
  color: var(--cyan);
  text-shadow: -2px 0 var(--cyan);
  animation: ascii-glitch-cyan 6s infinite steps(1, end);
}

.ascii-art::after {
  color: var(--pink);
  text-shadow: 2px 0 var(--pink);
  animation: ascii-glitch-pink 6s infinite steps(1, end);
}

@keyframes ascii-flicker {
  0%, 92%, 96%, 100% { opacity: 1; }
  93% { opacity: 0.88; }
  94% { opacity: 0.65; }
}

@keyframes ascii-glitch-cyan {
  0%, 86%, 89%, 100% {
    opacity: 0;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
  87% {
    opacity: 0.8;
    transform: translateX(-3px);
    clip-path: inset(20% 0 60% 0);
  }
  88% {
    opacity: 0.6;
    transform: translateX(-2px);
    clip-path: inset(50% 0 20% 0);
  }
}

@keyframes ascii-glitch-pink {
  0%, 74%, 77%, 100% {
    opacity: 0;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
  75% {
    opacity: 0.75;
    transform: translateX(3px);
    clip-path: inset(60% 0 15% 0);
  }
}

/* Prompt Line */
.prompt-group {
  margin: 0.75rem 0 0.5rem;
}

.prompt-line-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.prompt-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.seg-user { color: var(--cyan); font-weight: 600; }
.seg-at   { color: var(--fg-dim); }
.seg-host { color: var(--pink); font-weight: 600; }
.seg-in   { color: var(--fg-faint); font-size: 0.75rem; }
.seg-dir  { color: var(--yellow); }
.seg-branch { color: var(--purple); font-weight: 500; }
.seg-ok   { color: var(--green); }

.prompt-cmd-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg);
}

.prompt-arrow {
  color: var(--purple);
  font-weight: bold;
}

.prompt-cmd {
  color: var(--fg);
  font-weight: 500;
}

/* Whoami info block */
.whoami-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
}

.whoami-key {
  color: var(--cyan);
  font-weight: 500;
  white-space: nowrap;
}

.whoami-val {
  color: var(--fg);
  word-break: break-word;
}

.terminal-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1rem 0;
}

/* Interactive Terminal CLI Prompt */
.interactive-cli {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  margin-top: 0.75rem;
  transition: border-color 0.2s;
}

.interactive-cli:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.interactive-cli input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
}

.interactive-cli input::placeholder {
  color: var(--fg-faint);
  font-size: 0.8125rem;
}

.cli-output {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg);
  display: none;
}

.cli-output.active {
  display: block;
}

/* Fastfetch Spec Display */
.fastfetch-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.35rem 0;
}

.fastfetch-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
  white-space: pre;
  user-select: none;
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.fastfetch-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ff-key {
  color: var(--cyan);
  font-weight: 600;
  display: inline-block;
  min-width: 80px;
}

.ff-val {
  color: var(--fg);
}

[data-theme="light"] .fastfetch-logo {
  text-shadow: none;
}

[data-theme="light"] .fastfetch-logo span {
  color: var(--primary-blue) !important;
}

[data-theme="light"] .ff-key {
  color: var(--primary-blue);
}

[data-theme="light"] .ff-val {
  color: var(--fg);
}

/* ==========================================================================
   Widget Sections: Writing & Projects (Max Leiter Style)
   ========================================================================== */

.widget-card-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.widget-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg-dim);
  padding: 0.5rem 1.25rem 0.25rem;
}

.widget-list {
  list-style: none;
}

.widget-item {
  border-bottom: 1px solid var(--border-subtle);
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item-link {
  display: block;
  padding: 0.95rem 1.25rem;
  transition: all 0.2s;
  color: inherit;
}

.widget-item-link:hover {
  background: var(--bg-card-hover);
}

.widget-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.widget-item-title {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.15s;
}

.widget-item-link:hover .widget-item-title {
  color: var(--cyan);
}

.widget-item-arrow {
  color: var(--fg-dim);
  font-size: 0.875rem;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.widget-item-link:hover .widget-item-arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

.widget-item-desc {
  font-size: 0.8125rem;
  color: var(--fg-dim);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

.widget-footer-link {
  display: block;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  transition: all 0.2s;
  background: var(--bg-alt);
}

.widget-footer-link:hover {
  color: var(--cyan);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   GitHub Activity Heatmap Widget
   ========================================================================== */

.heatmap-widget {
  grid-column: 1 / -1;
}

.heatmap-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  color: var(--fg-dim);
  font-size: 0.8125rem;
}

.heatmap-summary strong {
  color: var(--green);
  font-size: 1rem;
  font-weight: 600;
}

.heatmap-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.heatmap-months {
  display: flex;
  margin-left: 28px;
  height: 16px;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--fg-dim);
  width: fit-content;
}

.heatmap-month-label {
  display: inline-block;
  font-size: 0.6875rem;
}

.heatmap-body {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: fit-content;
}

.heatmap-days {
  width: 22px;
  flex: 0 0 22px;
  height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1px 0;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  color: var(--fg-dim);
  line-height: 1;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 3px;
  width: fit-content;
}

.heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s, filter 0.15s;
  cursor: pointer;
  position: relative;
}

.heat-cell[data-level="0"] { background: var(--muted); border-color: var(--border); }
.heat-cell[data-level="1"] { background: var(--secondary); border-color: var(--border); }
.heat-cell[data-level="2"] { background: rgba(6, 182, 212, 0.40); border-color: rgba(6, 182, 212, 0.55); }
.heat-cell[data-level="3"] { background: rgba(168, 85, 247, 0.65); border-color: rgba(168, 85, 247, 0.8); }
.heat-cell[data-level="4"] {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

[data-theme="light"] .heat-cell[data-level="0"] { background: #E5E7EB; border-color: #D9DEE5; }
[data-theme="light"] .heat-cell[data-level="1"] { background: #DDEEFF; border-color: #BFDBFE; }
[data-theme="light"] .heat-cell[data-level="2"] { background: #93C5FD; border-color: #60A5FA; }
[data-theme="light"] .heat-cell[data-level="3"] { background: #3B82F6; border-color: #2563EB; }
[data-theme="light"] .heat-cell[data-level="4"] { background: #1D4ED8; border-color: #1E40AF; box-shadow: 0 0 6px rgba(59, 130, 246, 0.35); }

.heat-cell[data-future="true"] {
  visibility: hidden;
  pointer-events: none;
}

.heat-cell:hover:not([data-future="true"]) {
  transform: scale(1.4);
  z-index: 5;
  filter: brightness(1.2);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 0.85rem;
  font-size: 0.6875rem;
  color: var(--fg-dim);
}

.heatmap-legend .heat-cell {
  cursor: default;
}

/* ==========================================================================
   Command Palette (⌘K / Ctrl+K)
   ========================================================================== */

.palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.palette-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.palette-modal {
  width: 100%;
  max-width: 580px;
  background: var(--bg-window);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 20px rgba(168, 85, 247, 0.15);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-overlay.open .palette-modal {
  transform: scale(1) translateY(0);
}

.palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.palette-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.palette-input::placeholder {
  color: var(--fg-dim);
}

.palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}

.palette-category {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 0.5rem 0.75rem 0.25rem;
  letter-spacing: 0.05em;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}

.palette-item:hover,
.palette-item.selected {
  background: var(--bg-card-hover);
  color: var(--cyan);
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.palette-item-badge {
  font-size: 0.6875rem;
  color: var(--fg-dim);
}

/* ==========================================================================
   About Modal
   ========================================================================== */

.about-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.about-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.about-modal {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.about-modal-overlay.open .about-modal {
  transform: scale(1);
}

.about-content {
  padding: 1.5rem;
  line-height: 1.7;
}

.about-content h2 {
  font-size: 1.25rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--fg);
  font-size: 0.875rem;
}

/* ==========================================================================
   Article / Blog Specific Styles
   ========================================================================== */

.article-container {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  margin: 0.75rem 0;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--fg-dim);
}

.article-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--fg);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body h2::before {
  content: "## ";
  color: var(--fg-dim);
  font-weight: 400;
  font-family: var(--font-mono);
}

.formula-box {
  display: block;
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.article-highlight {
  color: var(--yellow);
  font-weight: 500;
}

.article-accent {
  color: var(--cyan);
  font-weight: 500;
}

/* ==========================================================================
   Utility & Responsive
   ========================================================================== */

.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--cyan);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Clean Modern Technical: Light Theme Component Styles
   Theme Palette:
     Primary:     #3B82F6 (Vivid medium blue)
     Secondary:   #E5E7EB (Cool light gray)
     Accent:      #DDEEFF (Very pale / light blue)
     Muted:       #F5F7F9 (Very light cool gray)
     Destructive: #FF3338 (Vivid red)
     Border:      #D9DEE5 (Cool medium-light gray)
     Card:        #FFFFFF (Clean white)
     Background:  #FAFBFC (Near-white)
     Foreground:  #0F172A (Deep technical slate)
   ========================================================================== */

/* ── Light Theme: Menubar ────────────────────────────────────────── */
[data-theme="light"] .menubar {
  background-color: rgba(250, 251, 252, 0.92);
  border-bottom-color: #D9DEE5;
}

[data-theme="light"] .menubar-brand {
  color: #0F172A;
}

[data-theme="light"] .status-dot {
  background: #3B82F6;
  box-shadow: 0 0 0 2px #DDEEFF, 0 0 8px rgba(59, 130, 246, 0.5);
}

[data-theme="light"] .breadcrumbs {
  color: #475569;
}

[data-theme="light"] .breadcrumbs a {
  color: #475569;
}

[data-theme="light"] .breadcrumbs a:hover {
  color: #3B82F6;
}

[data-theme="light"] .breadcrumbs .current {
  color: #0F172A;
}

[data-theme="light"] .menubar-btn {
  background: #FFFFFF;
  border-color: #D9DEE5;
  color: #475569;
}

[data-theme="light"] .menubar-btn:hover {
  background: #F5F7F9;
  border-color: #3B82F6;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .menubar-btn .kbd-shortcut {
  background: #E5E7EB;
  border-color: #D9DEE5;
  color: #475569;
}

[data-theme="light"] .menubar-clock {
  color: #475569;
  border-left-color: #D9DEE5;
}

/* ── Light Theme: Desktop Applications Sidebar ────────────────────── */
[data-theme="light"] .app-icon-symbol {
  background: #FFFFFF;
  border-color: #D9DEE5;
  color: #3B82F6;
}

[data-theme="light"] .app-icon:hover {
  background: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .app-icon:hover .app-icon-symbol {
  background: #3B82F6;
  color: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .app-icon-label {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .app-icon:hover .app-icon-label {
  color: #0F172A;
}

[data-theme="light"] .app-icon-ext {
  color: #3B82F6;
}

/* ── Light Theme: Main PlayArMr Terminal Window ──────────────────── */
[data-theme="light"] .hero-terminal {
  background: #F0F4F8;
  border-color: #D9DEE5;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.07), 0 0 0 1px #D9DEE5;
}

[data-theme="light"] .hero-terminal:hover {
  border-color: #3B82F6;
  box-shadow: 0 8px 28px -4px rgba(59, 130, 246, 0.14), 0 0 0 1px #3B82F6;
}

[data-theme="light"] .hero-terminal .window-header {
  background: #E5E7EB;
  border-bottom-color: #D9DEE5;
}

[data-theme="light"] .hero-terminal .window-title {
  color: #0F172A;
  font-weight: 600;
}

[data-theme="light"] .hero-terminal .window-tag {
  color: #1D4ED8;
  background: #DDEEFF;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}

[data-theme="light"] .hero-terminal .ascii-art {
  color: #0F172A;
  text-shadow: 0 0 1px rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .hero-terminal .ascii-art::before {
  color: #3B82F6;
  text-shadow: -1.5px 0 rgba(59, 130, 246, 0.65);
}

[data-theme="light"] .hero-terminal .ascii-art::after {
  color: #64748B;
  text-shadow: 1.5px 0 rgba(100, 116, 139, 0.5);
}

[data-theme="light"] .hero-terminal .prompt-line-top {
  color: #475569;
}

[data-theme="light"] .hero-terminal .seg-user {
  color: #3B82F6;
  font-weight: 600;
}

[data-theme="light"] .hero-terminal .seg-at {
  color: #64748B;
}

[data-theme="light"] .hero-terminal .seg-host {
  color: #0F172A;
  font-weight: 600;
}

[data-theme="light"] .hero-terminal .seg-in {
  color: #64748B;
}

[data-theme="light"] .hero-terminal .seg-dir {
  color: #3B82F6;
}

[data-theme="light"] .hero-terminal .seg-branch {
  color: #475569;
}

[data-theme="light"] .hero-terminal .seg-ok {
  color: #10B981;
}

[data-theme="light"] .hero-terminal .prompt-arrow {
  color: #3B82F6;
}

[data-theme="light"] .hero-terminal .prompt-cmd {
  color: #0F172A;
  font-weight: 600;
}

[data-theme="light"] .hero-terminal .whoami-key {
  color: #3B82F6;
  font-weight: 600;
}

[data-theme="light"] .hero-terminal .whoami-val {
  color: #0F172A;
}

[data-theme="light"] .hero-terminal .terminal-divider {
  border-top-color: #D9DEE5;
}

[data-theme="light"] .hero-terminal .interactive-cli {
  background: #E5EDF7;
  border-color: #D9DEE5;
}

[data-theme="light"] .hero-terminal .interactive-cli:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .hero-terminal .interactive-cli input {
  color: #0F172A;
}

[data-theme="light"] .hero-terminal .interactive-cli input::placeholder {
  color: #64748B;
}

[data-theme="light"] .hero-terminal .cursor-blink {
  background: #3B82F6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .hero-terminal .cli-output {
  color: #0F172A;
}

[data-theme="light"] .hero-terminal .cli-output a {
  color: #3B82F6;
  text-decoration: underline;
}

/* ── Light Theme: Technical Cards & Widgets ───────────────────────── */
[data-theme="light"] .window-card {
  background: #FFFFFF;
  border-color: #D9DEE5;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 0 0 1px #D9DEE5;
}

[data-theme="light"] .window-card:hover {
  border-color: #3B82F6;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12), 0 0 0 1px #3B82F6;
}

[data-theme="light"] .window-card .window-header,
[data-theme="light"] .widget-card-header {
  background: #F5F7F9;
  border-bottom-color: #D9DEE5;
}

[data-theme="light"] .widget-title {
  color: #0F172A;
}

[data-theme="light"] .widget-subtitle {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .widget-item {
  border-bottom-color: #E5E7EB;
}

[data-theme="light"] .widget-item-link:hover {
  background: #F8FAFC;
}

[data-theme="light"] .widget-item-title {
  color: #0F172A;
}

[data-theme="light"] .widget-item-link:hover .widget-item-title {
  color: #3B82F6;
}

[data-theme="light"] .widget-item-desc {
  color: #475569;
}

[data-theme="light"] .widget-item-arrow {
  color: #3B82F6;
}

[data-theme="light"] .tag-pill {
  background: #DDEEFF;
  border-color: #D9DEE5;
  color: #1D4ED8;
}

[data-theme="light"] .widget-footer-link {
  background: #F5F7F9;
  border-top-color: #D9DEE5;
  color: #475569;
}

[data-theme="light"] .widget-footer-link:hover {
  background: #FFFFFF;
  color: #3B82F6;
}

/* ── Light Theme: GitHub Activity Heatmap ─────────────────────────── */
[data-theme="light"] .heatmap-summary {
  color: #475569;
}

[data-theme="light"] .heatmap-summary strong {
  color: #0F172A;
}

[data-theme="light"] .heatmap-months,
[data-theme="light"] .heatmap-days {
  color: #64748B;
}

[data-theme="light"] .heatmap-legend {
  color: #64748B;
}

/* ── Light Theme: Command Palette ─────────────────────────────────── */
[data-theme="light"] .palette-overlay {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .palette-modal {
  background: #FFFFFF;
  border-color: #D9DEE5;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px #D9DEE5;
}

[data-theme="light"] .palette-input-wrap {
  background: #F5F7F9;
  border-bottom-color: #D9DEE5;
}

[data-theme="light"] .palette-input {
  color: #0F172A;
}

[data-theme="light"] .palette-input::placeholder {
  color: #64748B;
}

[data-theme="light"] .palette-category {
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .palette-item {
  color: #0F172A;
}

[data-theme="light"] .palette-item:hover,
[data-theme="light"] .palette-item.selected {
  background: #DDEEFF;
  color: #1D4ED8;
}

[data-theme="light"] .palette-item-badge {
  color: #475569;
}

/* ── Light Theme: About Modal ─────────────────────────────────────── */
[data-theme="light"] .about-modal {
  background: #FFFFFF;
  border-color: #D9DEE5;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px #D9DEE5;
}

[data-theme="light"] .about-modal .window-header {
  background: #F5F7F9;
  border-bottom-color: #D9DEE5;
}

[data-theme="light"] .about-modal .window-title {
  color: #0F172A;
}

[data-theme="light"] .about-content h2 {
  color: #0F172A;
}

[data-theme="light"] .about-content p {
  color: #334155;
}

[data-theme="light"] .about-content a {
  color: #3B82F6;
}

[data-theme="light"] .about-content a:hover {
  color: #1D4ED8;
}

/* ── Light Theme: Article / Blog Typography ───────────────────────── */
[data-theme="light"] .article-title {
  color: #0F172A;
}

[data-theme="light"] .article-meta {
  color: #475569;
}

[data-theme="light"] .article-body {
  color: #1E293B;
}

[data-theme="light"] .article-body h2 {
  color: #3B82F6;
}

[data-theme="light"] .article-body h2::before {
  color: #94A3B8;
}

[data-theme="light"] .formula-box {
  background: #F0F4F8;
  color: #0F172A;
  border-left: 3px solid #3B82F6;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .article-highlight {
  color: #0F172A;
  border-bottom: 1px dashed #3B82F6;
}

[data-theme="light"] .article-accent {
  color: #3B82F6;
}

/* ==========================================================================
   Bad Apple Theme Transition Overlay
   ========================================================================== */
.theme-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #09090B;
  color: #A855F7;
  opacity: 1;
  transition: opacity 0.15s ease-out, background-color 0.1s linear, color 0.1s linear;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Direction 1: starting in dark mode (from-dark) */
.theme-transition-overlay.from-dark {
  background-color: #09090B;
  color: #A855F7;
}
.theme-transition-overlay.from-dark.inverted {
  background-color: #FAFBFC;
  color: #0F172A;
}

/* Direction 2: starting in light mode (from-light) */
.theme-transition-overlay.from-light {
  background-color: #FAFBFC;
  color: #0F172A;
}
.theme-transition-overlay.from-light.inverted {
  background-color: #09090B;
  color: #A855F7;
}

.theme-transition-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(6, 182, 212, 0.02) 0px,
    rgba(6, 182, 212, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

.theme-transition-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.75rem;
  background: #0F0F12;
  border: 1px solid #27272A;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(168, 85, 247, 0.2);
  max-width: 92vw;
  max-height: 94vh;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.1s linear;
}

.theme-transition-overlay.from-dark.inverted .theme-transition-box,
.theme-transition-overlay.from-light:not(.inverted) .theme-transition-box {
  background: #FFFFFF;
  border: 1px solid #3B82F6;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 25px rgba(59, 130, 246, 0.25);
}

.theme-transition-overlay.from-light.inverted .theme-transition-box {
  background: #0F0F12;
  border: 1px solid #27272A;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(168, 85, 247, 0.2);
}

.theme-transition-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.theme-transition-hud.hud-top {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.theme-transition-hud.hud-bottom {
  border-top: 1px solid currentColor;
  padding-top: 0.4rem;
  margin-top: 0.6rem;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  opacity: 0.85;
}

.hud-tag {
  color: var(--primary);
  font-weight: 600;
}

.theme-transition-overlay.from-dark.inverted .hud-tag,
.theme-transition-overlay.from-light:not(.inverted) .hud-tag {
  color: #3B82F6;
}

.theme-transition-overlay.from-light.inverted .hud-tag {
  color: var(--primary);
}

.hud-fps {
  font-size: 0.65rem;
  opacity: 0.7;
}

.hud-rom {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.theme-transition-ascii {
  font-family: var(--font-mono);
  font-size: clamp(7.5px, 1.7vw, 12.5px);
  line-height: 1.12;
  white-space: pre;
  overflow: hidden;
  text-align: center;
  margin: 0;
  padding: 0.25rem 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theme-transition-overlay.from-dark .theme-transition-ascii,
.theme-transition-overlay.from-light.inverted .theme-transition-ascii {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 20px rgba(6, 182, 212, 0.3);
}

.theme-transition-overlay.from-dark.inverted .theme-transition-ascii,
.theme-transition-overlay.from-light:not(.inverted) .theme-transition-ascii {
  text-shadow: 0 0 1px rgba(20, 17, 15, 0.4);
}

.hud-telemetry {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hud-skip {
  font-size: 0.62rem;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .theme-transition-overlay {
    display: none !important;
  }
}
