/* Global CSS Variables and Base Styles */
:root {
  --bg: #0b0f14;
  --muted: #111827;
  --card: #0f172a;
  --text: #e5e7eb;
  --sub: #9ca3af;
  --brand: #E47150;
  --brand2: #5b9fc7;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --ring: rgba(228, 113, 80, 0.35);
}

* {
  box-sizing: border-box;
}

@keyframes subtleWave {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: 
    linear-gradient(180deg, 
      #0b0f14 0%, 
      #0e131a 10%,
      #0b0f14 20%,
      #0e131a 30%,
      #0b0f14 40%,
      #0e131a 50%,
      #0b0f14 60%,
      #0e131a 70%,
      #0b0f14 80%,
      #0e131a 90%,
      #0b0f14 100%);
  background-size: 100% 2000%;
  animation: subtleWave 120s ease-in-out infinite;
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

/* Navigation Styles */
.nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 36px;
  background: #000;
  border-radius: 999px;
  margin: 12px auto 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav a {
  opacity: 0.9;
  transition: opacity 0.2s, text-decoration 0.2s;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav a.active {
  opacity: 1;
  text-decoration: underline;
  color: var(--brand);
}

/* Footer Styles */
.foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--muted);
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

.note {
  margin-top: 4px;
  opacity: 0.7;
}

/* Basic Card Style (minimal - page-specific styles should override) */
.card {
  background: var(--card);
  border-radius: 8px;
  padding: 20px;
}

/* Neon Sign Styles */
.neon-sign {
  background: linear-gradient(135deg, #0a0e15, #050810);
  border: 6px solid #1a1f2e;
  border-radius: 12px;
  padding: 20px;
  box-shadow:
    0 0 2px #000,
    0 0 30px rgba(228, 113, 80, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.8),
    inset 0 -2px 4px rgba(255, 255, 255, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.43;
}

.neon-sign::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #71717a 20%, #52525b 40%, #3f3f46 60%, #27272a 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.8),
    inset 0 -2px 3px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(255, 255, 255, 0.1);
  border: 2px solid #18181b;
  z-index: 20;
}

.neon-sign::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #71717a 20%, #52525b 40%, #3f3f46 60%, #27272a 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.8),
    inset 0 -2px 3px rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 2px rgba(255, 255, 255, 0.1);
  border: 2px solid #18181b;
  z-index: 20;
}

.neon-emoji {
  display: inline-block;
  transition:
    filter 0.5s,
    text-shadow 0.5s;
}

.neon-emoji.active {
  text-shadow:
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 30px currentColor;
  filter: brightness(1.2);
  animation: neonFlicker 4s infinite;
}

.neon-emoji.explosive {
  animation: neonFlickerExplosion 1.6s infinite;
  text-shadow:
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 45px currentColor;
  filter: brightness(1.4);
}

.neon-emoji.inactive {
  text-shadow: 0 0 3px currentColor;
  filter: brightness(0.3);
  opacity: 0.4;
}

@keyframes neonFlicker {
  0%,
  18%,
  22%,
  24%,
  40%,
  42%,
  43%,
  70%,
  72%,
  75%,
  100% {
    opacity: 1;
  }
  19%,
  21%,
  23%,
  41%,
  71%,
  74% {
    opacity: 0.25;
  }
  20%,
  41.5%,
  73.5% {
    opacity: 0.6;
  }
}

@keyframes neonFlickerExplosion {
  0%,
  12%,
  25%,
  38%,
  51%,
  64%,
  77%,
  90%,
  100% {
    opacity: 1;
  }
  6%,
  19%,
  32%,
  45%,
  58%,
  71%,
  84%,
  97% {
    opacity: 0.5;
  }
  9%,
  22%,
  35%,
  48%,
  61%,
  74%,
  87% {
    opacity: 0.75;
  }
}

