:root {
  color-scheme: dark;
  --bg: #160e0e; /* Brightened warm charcoal-chocolate base */
  --panel: #241414; /* Brightened solid red-black panel */
  --panel-solid: #2a1717; /* Brightened alternative solid panel */
  --ink: #ffffff; /* Crisp white for maximum contrast */
  --muted: #dcd0d0; /* Increased brightness for metadata text */
  
  /* Unified Red-Gold color palette - Brightened and more vibrant */
  --accent-red: #cc1818;     /* Vibrant rich crimson */
  --accent-red-glow: rgba(204, 24, 24, 0.45);
  --accent-gold: #ffd54f;    /* Radiant warm gold-yellow */
  --accent-gold-glow: rgba(255, 213, 79, 0.35);
  --accent-orange: #ff8f00;  /* Vibrant warm amber/orange */
  --accent-darkred: #801010; /* Rich warm dark red */
  
  --line: rgba(204, 24, 24, 0.25); /* Brighter border lines */
  --line-active: #ffd54f;
  
  /* Semantic mappings using our simplified red-gold palette */
  --teal: #ffd54f;
  --gold: #ffd54f;
  --red: #cc1818;
  --green: #c0d860; /* Slightly brighter natural green */
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(168, 16, 16, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(248, 224, 120, 0.05) 0%, transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: var(--ink);
  font-family: 'Nunito', Inter, sans-serif;
  line-height: 1.6;
}

/* Fixed Background Image and Overlay */
.fixed-body-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/images/nika_vs_saturn_rainbow_logo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  pointer-events: none;
}

.bg-dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(9, 6, 6, 0.75) 0%, rgba(9, 6, 6, 0.95) 75%, #090606 100%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip:focus {
  left: 1rem;
  z-index: 20;
  background: var(--panel-solid);
  padding: 0.5rem 0.75rem;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #090505;
  border-bottom: 1px solid rgba(168, 16, 16, 0.2);
  margin-bottom: 1rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header nav a {
  position: relative;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
  transition: width 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.site-header nav a:hover::after {
  width: 100%;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
  color: #000;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(168, 16, 16, 0.35);
}

.brand-logo-img {
  width: auto;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Site Footer */
.site-footer {
  background: rgba(14, 8, 8, 0.8);
  border-top: 1px solid rgba(168, 16, 16, 0.2);
  margin-top: 4rem;
  padding: 3rem 0;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer p {
  color: var(--muted);
  max-width: 400px;
  margin-top: 0.5rem;
}

.site-disclaimer {
  max-width: 100% !important;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0.85;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.site-disclaimer strong {
  color: var(--accent-gold);
}

.footer-logo-img {
  width: auto;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.site-footer nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-footer nav a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

/* Layout Main Container */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.page-header {
  padding: 0.75rem 0 1.25rem;
}

/* Hero Section with logo background */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 2.5rem;
  background-image: 
    linear-gradient(to right, rgba(9, 5, 5, 1) 0%, rgba(9, 5, 5, 0.95) 45%, rgba(9, 5, 5, 0.7) 70%, rgba(9, 5, 5, 0.25) 100%),
    url('/images/nika_vs_saturn_rainbow_logo.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border-radius: 16px;
  border: 1px solid rgba(168, 16, 16, 0.25);
  box-shadow: var(--shadow), inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.hero-text-block {
  z-index: 2;
}

/* Custom CTA styles */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  cursor: pointer;
}

.cta-btn:hover {
  text-decoration: none;
}

.primary-cta {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(216, 112, 24, 0.35);
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 112, 24, 0.5);
}

.secondary-cta {
  background: #1c1010;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(248, 224, 120, 0.2);
  color: #ffffff;
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  margin: 0;
  max-width: 980px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.rainbow-text {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.eyebrow {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.breadcrumb ol {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--accent-gold);
}

.breadcrumb-sep {
  color: var(--muted);
  opacity: 0.55;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  /* max-width: 760px; */
  margin: 1.25rem 0 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.meta,
.source-box {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Grid Layouts */
.grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  gap: 1.5rem;
  align-items: start;
}

/* Cards & Containers */
.card,
.stat,
.related,
.source-box,
.table-wrap,
.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card p,
.stat p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.section {
  margin: 3.5rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.compact-list {
  padding-left: 1.25rem;
}

.compact-list li {
  margin: 0.5rem 0;
}

/* Card Hover Glow Styles - Mapped to simplified Red-Gold */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(25, 12, 12, 0.75);
}

.card.glow-orange:hover,
.card.glow-cyan:hover,
.source-box.glow-orange:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(248, 224, 120, 0.15);
}
.card.glow-orange::before,
.card.glow-cyan::before {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

.card.glow-green:hover,
.card.glow-purple:hover {
  border-color: var(--accent-red);
  box-shadow: 0 12px 30px rgba(168, 16, 16, 0.25);
}
.card.glow-green::before,
.card.glow-purple::before {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-darkred));
}

/* Card Link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  transition: all 0.2s ease;
}

.card-link:hover {
  color: #ffffff;
  gap: 0.5rem;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(2px);
}

/* Latest Update Card Specifics */
.latest-update-card {
  z-index: 2;
  border-color: rgba(248, 224, 120, 0.2);
  background: rgba(25, 18, 10, 0.65);
}

.latest-update-card::before {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
}

.latest-update-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(248, 224, 120, 0.15);
}

.update-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--accent-gold);
  color: #000000;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.update-date {
  color: var(--accent-gold) !important;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.update-title {
  font-size: 1.2rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.update-text {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.button-link {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.button-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  text-decoration: none;
}

/* Codes Snapshot Cards */
.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  border-left: 3px solid var(--line);
  padding: 1.25rem;
}

.stat h3 {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: fit-content;
  margin: 0;
  letter-spacing: 0.05em;
}

.stat p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.stat:has(.status-active) {
  border-left-color: var(--accent-gold);
}
.stat:has(.status-expired) {
  border-left-color: var(--accent-red);
}
.stat:has(.status-unconfirmed) {
  border-left-color: var(--accent-orange);
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
  width: fit-content;
}

.status-active {
  background: rgba(248, 224, 120, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(248, 224, 120, 0.2);
}

.status-expired {
  background: rgba(168, 16, 16, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(168, 16, 16, 0.2);
}

.status-unconfirmed {
  background: rgba(216, 112, 24, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(216, 112, 24, 0.2);
}

/* Rarity Badges */
.rarity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.rarity-common {
  background: rgba(168, 152, 152, 0.15);
  color: var(--muted);
  border: 1px solid rgba(168, 152, 152, 0.25);
}

.rarity-uncommon {
  background: rgba(176, 200, 80, 0.12);
  color: var(--green);
  border: 1px solid rgba(176, 200, 80, 0.25);
}

.rarity-rare {
  background: rgba(216, 112, 24, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(216, 112, 24, 0.25);
}

.rarity-legendary {
  background: rgba(248, 224, 120, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(248, 224, 120, 0.25);
}

.rarity-mythical {
  background: rgba(168, 16, 16, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(168, 16, 16, 0.25);
}

/* Fruit Thumbnail Elements */
.fruit-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 4.75rem;
  overflow: hidden;
  border: 1px solid rgba(168, 16, 16, 0.15);
  border-radius: 8px;
  background: #140808;
  color: white;
  font-weight: 900;
}

.fruit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fruit-thumb[data-rarity="Common"] {
  background: #1f1414;
}

.fruit-thumb[data-rarity="Uncommon"] {
  background: #1d2110;
}

.fruit-thumb[data-rarity="Rare"] {
  background: #2b170c;
}

.fruit-thumb[data-rarity="Legendary"] {
  background: #2d230d;
}

.fruit-thumb[data-rarity="Mythical"] {
  background: #2e0b0b;
}

/* Tables styling */
.table-wrap {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compact-table {
  min-width: 0;
}

th,
td {
  border-bottom: 1px solid rgba(168, 16, 16, 0.12);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(168, 16, 16, 0.02);
}

td code {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.fruit-table th:first-child,
.fruit-table td:first-child {
  width: 6rem;
}

.fruit-table .tag {
  margin-left: 0.35rem;
}

/* Images */
.feature-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(168, 16, 16, 0.15);
}

.fruit-card-image {
  aspect-ratio: 1 / 1;
  background: #100808;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(168, 16, 16, 0.1);
  transition: transform 0.3s ease;
}

.card:hover .fruit-card-image {
  transform: scale(1.04);
}

/* Responsiveness */
@media (max-width: 780px) {
  .site-header-inner,
  .site-footer-inner,
  .hero,
  .two-col {
    display: block;
  }

  .site-header nav,
  .site-footer nav {
    margin-top: 1rem;
  }

  .site-header nav {
    gap: 1rem;
  }

  .section-heading {
    display: grid;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero {
    background-image: 
      linear-gradient(to bottom, rgba(9, 5, 5, 0.85) 0%, rgba(9, 5, 5, 0.98) 70%, rgba(9, 5, 5, 1) 100%),
      url('/images/nika_vs_saturn_rainbow_logo.png');
    background-position: center top;
    background-size: 100% auto;
    padding: 2rem 1.25rem;
  }

  .latest-update-card {
    margin-top: 2rem;
  }
}
