/* ==========================================================================
   Bubble Shooter & Block Redux — Dark Arcade Showcase
   AmsterdamSoft LLC
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Core Dark Surfaces */
  --bg-void: #05040b;
  --bg-deep: #090714;
  --bg-card: #100d21;
  --bg-card-elevated: #16122c;
  --bg-card-hover: #1c1738;
  --bg-glass: rgba(14, 11, 29, 0.82);
  --bg-pill: rgba(255, 255, 255, 0.06);

  /* Typography Colors */
  --text-primary: #f6f4ff;
  --text-secondary: #b9b2d8;
  --text-muted: #7f78a3;

  /* Redux Signature Gradients & Game Accents */
  --redux-pink: #ff6b9d;
  --redux-violet: #a97aff;
  --redux-periwinkle: #7b72ef;
  --redux-mint: #5ce693;
  --redux-gold: #ffe285;
  --redux-amber: #ffbf3c;
  --redux-crimson: #ff4757;
  --redux-magenta: #f038ff;
  --redux-cyan: #38d8ff;

  /* Borders & Hairlines */
  --border-subtle: rgba(169, 122, 255, 0.14);
  --border-bright: rgba(169, 122, 255, 0.34);
  --border-bezel: #241f3d;

  /* Dimensions & Spacing */
  --max-width: 1220px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-phone: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 28px rgba(123, 114, 239, 0.16);
  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-padding-top: 88px; /* clears the sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background-color: var(--bg-void);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 18% 0%, rgba(123, 114, 239, 0.16), transparent 65%),
    radial-gradient(950px 580px at 85% 8%, rgba(255, 107, 157, 0.12), transparent 65%),
    radial-gradient(1000px 700px at 50% 52%, rgba(92, 230, 147, 0.07), transparent 70%),
    var(--bg-void);
  color: var(--text-primary);
  line-height: 1.62;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

/* Ambient Background Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--redux-gold);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--redux-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
  .dock-item:hover,
  .dock-item:hover img,
  .hero-phone:hover,
  .phone-frame:hover,
  .feature-card:hover,
  .store-btn:hover {
    transform: none;
  }
}

/* ==========================================================================
   Sticky Dark Glass Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-link:hover {
  color: var(--text-primary);
}

.brand-orbs {
  display: inline-grid;
  grid-template-columns: repeat(2, 11px);
  gap: 3px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-orbs span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.brand-orbs span:nth-child(1) {
  background: radial-gradient(circle at 32% 30%, #ffe680, #f59f00);
  box-shadow: 0 0 8px rgba(255, 210, 63, 0.55);
}
.brand-orbs span:nth-child(2) {
  background: radial-gradient(circle at 32% 30%, #ff7a8a, #d91e36);
}
.brand-orbs span:nth-child(3) {
  background: radial-gradient(circle at 32% 30%, #78ff9c, #17b84b);
  border-radius: 3px;
}
.brand-orbs span:nth-child(4) {
  background: radial-gradient(circle at 32% 30%, #a59eff, #5246d9);
  border-radius: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(95deg, #ffffff 0%, #dcd6ff 55%, #ffe285 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(169, 122, 255, 0.14);
}

/* ==========================================================================
   Main Container & Hero Section
   ========================================================================== */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 72px;
  flex: 1;
  min-width: 0;
}

.hero {
  text-align: center;
  padding: 56px 0 44px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(169, 122, 255, 0.12);
  border: 1px solid rgba(169, 122, 255, 0.28);
  color: #d6c5ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--redux-mint);
  box-shadow: 0 0 10px var(--redux-mint);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.grad-bubble,
.grad-block {
  white-space: nowrap;
}

.grad-bubble {
  background: linear-gradient(95deg, #c28eff 0%, #ff6b9d 50%, #ffe285 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-block {
  background: linear-gradient(95deg, #7ef2a6 0%, #7b88ff 52%, #ff73e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  color: var(--text-secondary);
  max-width: 690px;
  margin: 0 auto 28px;
}

/* Tilted Cross-Promo Dock (matches the in-game gamesStrip!) */
.promo-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 38px;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  min-width: 112px;
}

.dock-item img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  transition: transform var(--transition);
}

.dock-item[data-tilt="-8"] img { transform: rotate(-6deg); }
.dock-item[data-tilt="6"]  img { transform: rotate(5deg); }
.dock-item[data-tilt="-6"] img { transform: rotate(-5deg); }
.dock-item[data-tilt="8"]  img { transform: rotate(6deg); }
.dock-item[data-tilt="-4"] img { transform: rotate(-4deg); }

.dock-item:hover {
  transform: translateY(-5px);
  background: rgba(169, 122, 255, 0.12);
  border-color: var(--border-bright);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

.dock-item:hover img {
  transform: rotate(0deg) scale(1.06);
}

.dock-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.dock-tag {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* Fanned Phone Showcase in Hero */
.hero-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  margin: 10px auto 34px;
  padding: 20px 0;
}

.hero-phone {
  display: block;
  flex: 0 0 auto;
  border: 8px solid #1e1a34;
  border-radius: 32px;
  background: #000000;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.hero-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.hp-center {
  width: 28%;
  z-index: 3;
  border-color: #2f2852;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.92), 0 0 38px rgba(255, 210, 63, 0.18);
}

.hp-mid-left,
.hp-mid-right {
  width: 24%;
  z-index: 2;
  opacity: 0.84;
}

.hp-far-left,
.hp-far-right {
  width: 20%;
  z-index: 1;
  opacity: 0.58;
  border-width: 6px;
  border-radius: 26px;
}

.hp-mid-left  { margin-right: -6%; transform: rotate(-4deg) translateY(8px); }
.hp-mid-right { margin-left:  -6%; transform: rotate( 4deg) translateY(8px); }
.hp-far-left  { margin-right: -5%; transform: rotate(-8deg) translateY(20px); }
.hp-far-right { margin-left:  -5%; transform: rotate( 8deg) translateY(20px); }

.hero-phone:hover {
  z-index: 5;
  opacity: 1;
  transform: translateY(-6px) scale(1.03);
  border-color: var(--redux-violet);
}

/* Quick Promise Pills */
.promise-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.promise-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.promise-pill strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   Category Headers & Vantage Callout Banner
   ========================================================================== */
.category-section {
  padding-top: 52px;
}

.category-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.category-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--redux-gold);
}

.category-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.category-header p {
  color: var(--text-secondary);
  max-width: 720px;
  font-size: 1.02rem;
}

.contrast-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.contrast-card {
  background: linear-gradient(145deg, rgba(22, 18, 44, 0.9), rgba(13, 10, 27, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contrast-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--redux-mint);
}

.contrast-card.alt .contrast-badge {
  color: var(--redux-pink);
}

.contrast-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contrast-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Full Game Showcase Cards
   ========================================================================== */
.game-showcase {
  background: linear-gradient(165deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.game-showcase::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--game-glow, rgba(169, 122, 255, 0.16)) 0%, transparent 70%);
  pointer-events: none;
}

#orbital      { --game-glow: rgba(255, 210, 63, 0.18); }
#spinner      { --game-glow: rgba(255, 71, 87, 0.18); }
#blockblaster { --game-glow: rgba(92, 230, 147, 0.16); }
#blockbuster  { --game-glow: rgba(240, 56, 255, 0.18); }

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.game-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.game-icon-wrap {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.game-icon-lg {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.game-icon-lg.secondary-icon {
  width: 74px;
  height: 74px;
  align-self: flex-end;
  margin-left: -18px;
  border: 2px solid var(--bg-card-elevated);
}

.game-titles .game-subkicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--redux-gold);
  margin-bottom: 4px;
}

.game-titles h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.game-titles .title-addon {
  color: var(--redux-pink);
  font-weight: 600;
}

.compare-table .in-app {
  color: var(--text-muted);
  font-weight: 400;
}

.game-titles .game-tagline {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-top: 4px;
}

/* Platform Tags */
.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.platform-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
}

.platform-chip.highlight {
  background: rgba(92, 230, 147, 0.12);
  border-color: rgba(92, 230, 147, 0.3);
  color: #98f7bd;
}

.game-copy p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.game-copy p strong {
  color: var(--text-primary);
}

/* Mode Pills / Mini Cards inside each Game */
.modes-box {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
}

.mode-card {
  background: rgba(5, 4, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}

.mode-card .mode-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--redux-gold);
  margin-bottom: 5px;
}

.mode-card.breaker-highlight {
  border-color: rgba(240, 56, 255, 0.35);
  background: linear-gradient(145deg, rgba(240, 56, 255, 0.09), rgba(5, 4, 11, 0.65));
}

.mode-card.breaker-highlight .mode-name {
  color: #ff85ff;
}

.mode-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.48;
}

/* Feature Bullets */
.game-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
  margin: 18px 0 24px;
}

.game-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.game-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--redux-violet);
  box-shadow: 0 0 8px var(--redux-violet);
}

/* Store Action Buttons */
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.store-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-btn.apple {
  background: linear-gradient(135deg, rgba(169, 122, 255, 0.24), rgba(123, 114, 239, 0.16));
  border-color: rgba(169, 122, 255, 0.45);
}

.store-btn.google {
  background: linear-gradient(135deg, rgba(92, 230, 147, 0.18), rgba(56, 216, 255, 0.12));
  border-color: rgba(92, 230, 147, 0.38);
}



.store-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* An App Store button still waiting for its App ID (see main.js). */
.store-btn.pending {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   Interactive Screenshot Stage (Right Column of Game Card)
   ========================================================================== */
.screenshot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-frame {
  appearance: none;
  display: block;
  padding: 0;
  width: 100%;
  max-width: 285px;
  border: 9px solid var(--border-bezel);
  border-radius: 36px;
  background: #000000;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: transform var(--transition), border-color var(--transition);
}

.phone-frame:hover {
  transform: translateY(-4px);
  border-color: var(--redux-violet);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  display: block;
}

.shot-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.shot-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 4, 11, 0.6);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.shot-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
}

.shot-tab.active {
  background: var(--redux-periwinkle);
  border-color: var(--redux-violet);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(123, 114, 239, 0.45);
}

/* ==========================================================================
   Shared Engine & Player Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
}

.feature-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(169, 122, 255, 0.14);
  color: var(--redux-gold);
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.compare-table th {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--redux-gold);
  background: rgba(255, 255, 255, 0.03);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(169, 122, 255, 0.06);
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
}

.compare-table td {
  color: var(--text-secondary);
}

/* ==========================================================================
   Support & Legal Content Pages
   ========================================================================== */
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 36px;
  box-shadow: var(--shadow-card);
}

.doc-card h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.doc-card .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.doc-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--redux-gold);
  margin: 28px 0 10px;
}

.doc-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 6px;
}

.doc-card p,
.doc-card li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.doc-card ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.faq-item {
  background: rgba(5, 4, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.faq-item h3 {
  margin-top: 0;
  color: var(--redux-gold);
  font-size: 0.98rem;
}

.faq-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Lightbox Modal for Screenshots
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 2, 8, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
    pointer-events: none;
  visibility: hidden;
  /* Stays visible while fading out; visible at once on open so Close can take focus. */
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s;
}

.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 28px;
  border: 6px solid #2b244d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 4, 11, 0.85);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--redux-gold);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 920px) {
  /* The nav wraps here, so a sticky header would take too much of the screen. */
  html {
    scroll-padding-top: 16px;
  }
  .site-header {
    position: static;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-stage {
    order: -1;
  }
  .contrast-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
    justify-content: center;
  }
  .main-nav ul {
    justify-content: center;
  }
  main {
    padding: 0 16px 56px;
  }
  .game-showcase {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .doc-card {
    padding: 24px 18px;
  }
  .dock-item {
    min-width: 92px;
    padding: 8px;
  }
  .dock-item img {
    width: 54px;
    height: 54px;
  }
}
