:root {
  color-scheme: dark;
  --bg-dark: #07070f;
  --bg-panel: rgba(11, 14, 33, 0.85);
  --bg-card: rgba(18, 22, 45, 0.75);
  --primary: #ff0f6b;
  --primary-soft: #ff5c8f;
  --text-bright: #f4f5ff;
  --text-muted: #9aa0c6;
  --border: rgba(255, 15, 107, 0.4);
  --glow: rgba(255, 15, 107, 0.25);
}

/* Header gradient overlay */
.header-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, 
    rgba(7, 7, 15, 0.95) 0%, 
    rgba(7, 7, 15, 0.75) 50%,
    transparent 100%);
  z-index: 99;
  pointer-events: none;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 3rem;
  left: 3rem;
  right: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
  pointer-events: none;
}

.nav-logo {
  pointer-events: auto;
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
  margin-left: 0;
  margin-top: 0;
  box-shadow: 0 0 15px rgba(255, 15, 107, 0.3), 0 0 30px rgba(255, 15, 107, 0.15);
}

.nav-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 15, 107, 0.4), 0 0 40px rgba(255, 15, 107, 0.2);
}

.nav-logo img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: center;
  margin: -20%;
  filter: drop-shadow(0 0 10px rgba(255, 15, 107, 0.4));
}

.nav-menu {
  pointer-events: auto;
  position: relative;
  margin-right: 0;
  margin-top: 0;
}

.nav-toggle {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 15px rgba(255, 15, 107, 0.3), 0 0 30px rgba(255, 15, 107, 0.15);
}

.nav-toggle:hover {
  background: rgba(255, 15, 107, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 15, 107, 0.4), 0 0 40px rgba(255, 15, 107, 0.2);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 180px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: none;
  /* Keep long menus scrollable instead of scrolling the page */
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ONLY show when active class is present - NO HOVER */
.nav-menu.active .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown a img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.nav-dropdown a:hover {
  background: rgba(255, 15, 107, 0.15);
  color: var(--primary);
}

.nav-game-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.nav-divider {
  display: block;
  padding: 0.5rem 1.25rem 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.3rem;
}

/* Mobile Navigation - 2 column layout */
@media (max-width: 768px) {
  .nav-dropdown {
    max-height: 70vh;
    overflow-y: auto;
    grid-template-columns: 1fr 1fr;
    min-width: 280px;
    padding: 0.75rem;
    gap: 0;
    background: rgba(11, 14, 33, 0.98);
  }
  
  /* On mobile, use grid layout when active (override block) */
  .nav-menu.active .nav-dropdown {
    display: grid !important;
  }
  
  .nav-dropdown a {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    white-space: nowrap;
  }
  
  .nav-divider {
    grid-column: 1 / -1;
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.6rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav-divider:first-of-type {
    border-top: none;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .site-nav {
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
  }

  .nav-dropdown {
    min-width: calc(100vw - 2rem);
    right: 0;
    max-height: 75vh;
    background: rgba(11, 14, 33, 0.98);
  }
  
  .nav-dropdown a {
    padding: 0.55rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .nav-divider {
    font-size: 0.55rem;
    padding: 0.4rem 0.6rem 0.2rem;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text-bright);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 15, 107, 0.12), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(92, 84, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #050407, #090e1b 60%);
  overflow-x: hidden;
}

body.alt-page .hero {
  padding-bottom: 2rem;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 10, 100, 0.35), transparent 55%) 20% 30% / 550px 550px no-repeat,
    radial-gradient(circle, rgba(80, 120, 255, 0.25), transparent 60%) 80% 10% / 600px 600px no-repeat;
  filter: blur(10px);
  z-index: 0;
}

.hero {
  position: relative;
  padding: 5rem clamp(1rem, 4vw, 4rem);
  text-align: center;
  z-index: 1;
  /* Reserve space to prevent layout shift when fonts load */
  min-height: 400px;
}

.hero--subpage {
  padding-bottom: 3rem;
}

.tagline {
  font-family: 'Chakra Petch', 'Courier New', monospace;
  letter-spacing: 0.4em;
  color: var(--primary-soft);
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  /* Prevent layout shift */
  line-height: 1.4;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  /* Prevent layout shift by reserving line height */
  line-height: 1.1;
  min-height: 1.1em;
}

.subtitle {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 600;
  margin: 0.5rem 0 2rem;
  color: var(--primary);
  text-transform: uppercase;
  /* Prevent layout shift by reserving line height */
  line-height: 1.1;
  min-height: 1.1em;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.holo-box {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(18, 22, 45, 0.95), rgba(12, 16, 33, 0.75));
  border-radius: 1.15rem;
  backdrop-filter: blur(14px);
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  padding: 1.75rem;
  box-shadow: 0 0 35px rgba(255, 15, 107, 0.08);
  position: relative;
  overflow: hidden;
}

.holo-box::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.holo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.hero-card {
  text-align: left;
}

.hero-card__step {
  font-family: 'Chakra Petch', 'Courier New', monospace;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.15);
  /* Prevent layout shift */
  line-height: 1.2;
}

.hero-card h2 {
  margin: 0.2rem 0;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
}

.game-overview,
.cta-blurb {
  padding: 0 clamp(1rem, 4vw, 4rem) 2.5rem;
  max-width: 900px;
}

.game-overview p,
.cta-blurb p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.social-links {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-bright);
  text-decoration: none;
}

.social-card h4 {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--primary-soft);
}

.social-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.info-grid {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Section title above tiles, not as first tile */
.info-grid > .section-title {
  grid-column: 1 / -1;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--primary-soft);
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
}

.challenge-grid,
.feature-grid {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.challenge-list,
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.challenge-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.challenge-card p {
  margin: 0;
  color: var(--text-muted);
}

.feature-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-soft);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

/* How it works — host screen + player phones (diagram) */
.how-it-works-section {
  --hiw-accent: #22d3ee;
  --hiw-accent-soft: rgba(34, 211, 238, 0.45);
  --hiw-panel-tint: rgba(109, 40, 217, 0.14);
  --hiw-panel-edge: rgba(167, 139, 250, 0.28);
}

.how-it-works-section--blitz {
  --hiw-accent: #22d3ee;
  --hiw-accent-soft: rgba(34, 211, 238, 0.42);
  --hiw-panel-tint: rgba(239, 68, 68, 0.1);
  --hiw-panel-edge: rgba(248, 113, 113, 0.28);
}

.how-it-works-section--party {
  --hiw-accent: #f472b6;
  --hiw-accent-soft: rgba(244, 114, 182, 0.42);
  --hiw-panel-tint: rgba(236, 72, 153, 0.12);
  --hiw-panel-edge: rgba(244, 114, 182, 0.3);
}

.how-it-works-section--family {
  --hiw-accent: #4ade80;
  --hiw-accent-soft: rgba(74, 222, 128, 0.4);
  --hiw-panel-tint: rgba(34, 197, 94, 0.12);
  --hiw-panel-edge: rgba(52, 211, 153, 0.28);
}

.how-it-works-section--team {
  --hiw-accent: #38bdf8;
  --hiw-accent-soft: rgba(56, 189, 248, 0.42);
  --hiw-panel-tint: rgba(14, 165, 233, 0.12);
  --hiw-panel-edge: rgba(56, 189, 248, 0.3);
}

.how-it-works-intro {
  max-width: 40rem;
  margin: 0.65rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.how-it-works-section .section-title h2 {
  background: linear-gradient(100deg, var(--hiw-accent), #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.how-it-works-visual {
  margin-top: 1.5rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.how-it-works-visual__panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: stretch;
  padding: clamp(1.1rem, 2.8vw, 1.85rem);
  border-radius: 1.2rem;
  border: 1px solid var(--hiw-panel-edge);
  background:
    linear-gradient(155deg, var(--hiw-panel-tint), rgba(0, 0, 0, 0.22)),
    rgba(15, 12, 28, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.how-it-works-visual__host {
  border-radius: 0.95rem;
  background: rgba(8, 6, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}

.how-it-works-visual__host-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.how-it-works-visual__host-bezel {
  width: 76px;
  height: 54px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(30, 27, 50, 0.95), rgba(15, 12, 28, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.45);
  position: relative;
}

.how-it-works-visual__host-bezel::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.how-it-works-section--blitz .how-it-works-visual__host-bezel::after {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.08));
}

.how-it-works-section--party .how-it-works-visual__host-bezel::after {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.14), rgba(168, 85, 247, 0.08));
}

.how-it-works-section--family .how-it-works-visual__host-bezel::after {
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.14), rgba(34, 197, 94, 0.08));
}

.how-it-works-section--team .how-it-works-visual__host-bezel::after {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(14, 165, 233, 0.08));
}

.how-it-works-visual__host-stand {
  width: 28px;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0 0 4px 4px;
}

.how-it-works-visual__host-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #f4f4f5;
  letter-spacing: 0.02em;
}

.how-it-works-visual__host-sub {
  font-size: 0.8rem;
  color: rgba(244, 244, 245, 0.52);
  margin-top: 0.3rem;
  max-width: 16rem;
  line-height: 1.4;
}

.how-it-works-visual__room {
  margin-top: 0.95rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hiw-accent);
  background: var(--hiw-accent-soft);
  border: 1px solid var(--hiw-accent);
  box-shadow: 0 0 16px var(--hiw-accent-soft);
}

.how-it-works-visual__players {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  align-items: stretch;
}

.how-it-works-visual__phone {
  flex: 1;
  min-width: 0;
  max-width: 88px;
  background: rgba(10, 8, 22, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.how-it-works-visual__phone-notch {
  width: 28px;
  height: 5px;
  margin: 0 auto 0.15rem;
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, 0.45);
}

.how-it-works-visual__phone-name {
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  color: rgba(250, 250, 250, 0.9);
}

.how-it-works-visual__choices {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.how-it-works-visual__choice {
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  padding: 0.26rem 0.15rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(250, 250, 250, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.how-it-works-visual__choice--active {
  background: var(--hiw-accent-soft);
  color: var(--hiw-accent);
  border-color: var(--hiw-accent);
  box-shadow: 0 0 10px var(--hiw-accent-soft);
}

@media (max-width: 720px) {
  .how-it-works-visual__panel {
    grid-template-columns: 1fr;
  }

  .how-it-works-visual__players {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.4rem;
  }

  .how-it-works-visual__phone {
    max-width: none;
  }
}

.neural-cluster {
  position: relative;
  margin: 1rem clamp(1rem, 4vw, 4rem) 3rem;
  height: 90px;
  opacity: 0.55;
}

.neural-cluster::before,
.neural-cluster::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 15, 107, 0.9),
      rgba(255, 15, 107, 0.9) 2px,
      transparent 2px,
      transparent 28px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 15, 107, 0.25),
      rgba(255, 15, 107, 0.25) 2px,
      transparent 2px,
      transparent 24px
    );
  filter: drop-shadow(0 0 6px rgba(255, 15, 107, 0.4));
  clip-path: polygon(0 0, 35% 0, 40% 25%, 70% 25%, 80% 60%, 100% 60%, 100% 100%, 0 100%);
}

.neural-cluster::after {
  inset: 15px;
  opacity: 0.4;
  clip-path: polygon(0 10%, 30% 10%, 35% 30%, 60% 30%, 70% 65%, 100% 65%, 100% 100%, 0 100%);
}

.neural-cluster--mid {
  transform: translateY(-10px);
}

.neural-cluster--footer {
  transform: translateY(10px);
}

.contact-terms {
  padding: 0 clamp(1rem, 4vw, 4rem) 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-terms.single-column {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.contact-terms.single-column .contact-card,
.contact-terms.single-column .terms-card {
  grid-column: 1 / -1;
}

.privacy-stack,
.terms-stack {
  max-width: 900px;
  margin: 0 auto;
}

/* Product slider */
.products-section {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.product-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Product Section Headers */
.product-section-header {
  grid-column: 1 / -1;
  margin: 3rem 0 1.5rem;
  padding: 1rem 0;
  border-bottom: 2px solid rgba(255, 15, 107, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.product-section-header:first-child {
  margin-top: 0;
}

.product-section-header:hover {
  border-bottom-color: rgba(255, 15, 107, 0.5);
}

.product-section-label {
  display: inline-block;
  font-family: 'Chakra Petch', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-soft);
  background: linear-gradient(135deg, rgba(255, 15, 107, 0.15), rgba(255, 92, 143, 0.1));
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 15, 107, 0.3);
  box-shadow: 0 0 15px rgba(255, 15, 107, 0.2);
}

.product-section-toggle {
  background: transparent;
  border: 1px solid rgba(255, 15, 107, 0.3);
  color: var(--primary-soft);
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.product-section-toggle:hover {
  background: rgba(255, 15, 107, 0.15);
  border-color: rgba(255, 15, 107, 0.5);
  transform: scale(1.05);
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.product-section-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.product-section-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  max-height: 10000px;
}

.product-section-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  gap: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.product-slide {
  border: 2px solid var(--border);
  background: linear-gradient(135deg, rgba(18, 22, 45, 0.95), rgba(12, 16, 33, 0.75));
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.product-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 50%);
  pointer-events: none;
}

.product-slide--toyobox {
  border-color: rgba(102, 126, 234, 0.5);
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.15), inset 0 1px 0 rgba(102, 126, 234, 0.1);
}

.product-slide--toyocook {
  border-color: rgba(217, 119, 6, 0.5);
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.2), rgba(180, 83, 9, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(217, 119, 6, 0.15), inset 0 1px 0 rgba(217, 119, 6, 0.1);
}

.product-slide--toyocoop {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.product-slide--toyoracing {
  border-color: rgba(255, 165, 0, 0.5);
  background: linear-gradient(145deg, rgba(30, 144, 255, 0.2), rgba(10, 92, 143, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.product-slide--toyosnowcrew {
  border-color: rgba(34, 227, 239, 0.5);
  background: linear-gradient(145deg, rgba(34, 119, 239, 0.2), rgba(9, 94, 214, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(34, 119, 239, 0.15), inset 0 1px 0 rgba(34, 227, 239, 0.1);
}

.product-slide--toyopuzzle {
  border-color: rgba(255, 149, 0, 0.5);
  background: linear-gradient(145deg, rgba(122, 154, 63, 0.2), rgba(230, 57, 70, 0.12), rgba(12, 16, 33, 0.9));
  box-shadow: 0 0 40px rgba(122, 154, 63, 0.15), inset 0 1px 0 rgba(255, 149, 0, 0.1);
}

.product-slide--coming {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(40, 40, 60, 0.5), rgba(20, 20, 35, 0.5));
}

.product-slide__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.6rem;
}

.product-slide__content > *:last-child,
.product-slide__content > div:last-child {
  margin-top: auto;
  flex-shrink: 0;
}

.product-title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0 0.5rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-slide__content h3 {
  margin: 0;
  font-size: 1.5rem;
}

.product-slide__content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.product-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(48, 164, 108, 0.2);
  color: #30A46C;
  border: 1px solid rgba(48, 164, 108, 0.4);
}

.product-badge--soon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-bright);
}

.filter-btn.active {
  background: rgba(48, 164, 108, 0.2);
  color: #30A46C;
  border-color: rgba(48, 164, 108, 0.4);
}

@media (max-width: 768px) {
  .product-filters {
    font-size: 0.75rem;
  }
  
  .product-filters span {
    font-size: 0.75rem;
  }
  
  .filter-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }
}

.product-features {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.product-features li {
  margin-bottom: 0.2rem;
}



.product-cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.product-cta {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--primary), #a510ff);
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.product-cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.coming-soon-note {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.8;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
}

.policy-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
}

.policy-content ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.policy-content li {
  margin-bottom: 0.35rem;
}

.policy-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy-stack ul,
.terms-stack ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.privacy-stack li,
.terms-stack li {
  margin-bottom: 0.35rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.privacy-stack h2,
.terms-stack h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.privacy-stack,
.terms-stack {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.section-title span {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.section-title h2 {
  margin: 0.4rem 0 1.2rem;
  font-size: 1.8rem;
}

.section-title h2 {
  margin: 0.4rem 0 1.2rem;
  font-size: 1.8rem;
}

.section-title + p {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 15, 0.6);
  color: var(--text-bright);
  font-size: 1rem;
}

.contact-form button {
  margin-top: 0.3rem;
  padding: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--primary), #a510ff);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.terms-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--primary-soft);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.corner-lines {
  position: fixed;
  width: 280px;
  height: 150px;
  pointer-events: none;
  z-index: 101;
  opacity: 0.85;
}

.corner-lines::before,
.corner-lines::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, var(--primary), rgba(255, 15, 107, 0));
  height: 2px;
  box-shadow: 0 0 8px var(--primary), 0 0 15px rgba(255, 15, 107, 0.5);
}

.corner-lines::after {
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, var(--primary), rgba(255, 15, 107, 0));
  box-shadow: 0 0 8px var(--primary), 0 0 15px rgba(255, 15, 107, 0.5);
}

.corner-lines--left {
  top: 1.5rem;
  left: 1.5rem;
}

.corner-lines--left::before {
  width: 240px;
  top: 0;
  left: 0;
}

.corner-lines--left::after {
  top: 0;
  left: 0;
}

.corner-lines--right {
  top: 1.5rem;
  right: 1.5rem;
  transform: scaleX(-1);
}

.corner-lines--right::before {
  width: 280px;
  top: 0;
  left: 0;
}

.corner-lines--right::after {
  top: 0;
  left: 0;
}

/* Game overview responsive layout - targets inline-styled divs */
@media (max-width: 768px) {
  /* Target the main flex container in game-overview */
  .game-overview > div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  /* Target the logo container with flex-direction column */
  .game-overview > div > div[style*="flex-direction: column"] {
    width: 100% !important;
    max-width: 300px !important;
    align-items: stretch !important;
  }

  /* Target the bordered logo box */
  .game-overview > div > div > div[style*="border:"],
  .game-overview > div > div > div[style*="border :"] {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Make logo images larger on mobile */
  .game-overview img[alt*="Logo"] {
    max-width: 180px !important;
    max-height: 180px !important;
  }

  /* Target the content container */
  .game-overview > div > div[style*="flex: 1"] {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Style any CTA buttons in the logo section */
  .game-overview .product-cta {
    width: 100% !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }

  /* Target button containers in logo section */
  .game-overview > div > div > div[style*="flex-direction: column"][style*="gap: 0.75rem"] {
    width: 100% !important;
  }

  /* Toyo Co-Op specific mobile layout */
  .logo-play-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 300px !important;
    align-items: stretch !important;
    grid-template-columns: 1fr !important;
  }

  .logo-play-container > div {
    grid-column: auto !important;
  }

  .logo-play-container .product-cta {
    grid-column: auto !important;
    width: 100% !important;
    min-width: auto !important;
  }

  /* Center play buttons in social-links section on mobile */
  .social-links > div[style*="display: flex"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .social-links .product-cta {
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 2rem;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
  }

  .hero {
    text-align: left;
    padding-top: 2.5rem;
  }

  .hero.hero--subpage {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
    min-height: auto;
  }

  .tagline {
    display: none;
  }

  .challenge-list,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .corner-lines {
    display: none;
  }

  .neural-cluster {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  /* Improve game tiles on mobile - smaller fonts, more compact */
  .info-card,
  .feature-card,
  .challenge-card {
    padding: 1.25rem !important;
  }

  .info-card h3,
  .feature-card h4 {
    font-size: 0.75rem !important;
    margin: 0 0 0.4rem !important;
    letter-spacing: 0.1em !important;
  }

  .challenge-card h3 {
    font-size: 0.95rem !important;
    margin: 0 0 0.35rem !important;
  }

  .info-card p,
  .feature-card p,
  .challenge-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* Make info-grid and feature-grid more compact */
  .info-grid,
  .challenge-grid,
  .feature-grid {
    padding: 0 clamp(1rem, 4vw, 4rem) 2.5rem !important;
    gap: 1rem !important;
  }

  .how-it-works-intro {
    font-size: 0.88rem !important;
    padding: 0 0.25rem;
  }

  .challenge-list,
  .feature-list {
    gap: 1rem !important;
    margin-top: 1rem !important;
  }

  /* Section titles on mobile */
  .section-title h2 {
    font-size: 1.4rem !important;
    margin: 0.4rem 0 0.8rem !important;
  }

  .section-title span {
    font-size: 0.65rem !important;
  }

  /* Game overview section on mobile */
  .game-overview {
    padding: 0 clamp(1rem, 4vw, 4rem) 2rem !important;
  }

  .game-overview p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* CTA blurb on mobile */
  .cta-blurb {
    padding: 0 clamp(1rem, 4vw, 4rem) 2rem !important;
  }

  .cta-blurb p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }

  /* Social cards on mobile */
  .social-links {
    padding: 0 clamp(1rem, 4vw, 4rem) 2.5rem !important;
  }

  .social-grid {
    gap: 1rem !important;
  }

  .social-card {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }

  .social-card h4 {
    font-size: 0.75rem !important;
    margin: 0 0 0.15rem !important;
  }

  .social-card p {
    font-size: 0.8rem !important;
  }

  .social-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0;
  }

  /* Hero card tiles on mobile */
  .hero-card {
    padding: 1.25rem !important;
  }

  .hero-card h2 {
    font-size: 1rem !important;
  }

  .hero-card p {
    font-size: 0.85rem !important;
  }

  /* Why love grid for Toyo Co-Op */
  .why-love-grid {
    gap: 0.75rem !important;
  }

  .why-love-item {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .why-love-item span {
    font-size: 1.1rem !important;
  }

  /* Contact form on mobile */
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem !important;
  }

  /* Product features list */
  .product-features {
    font-size: 0.85rem !important;
    margin: 0.75rem 0 !important;
  }

  .product-features li {
    margin-bottom: 0.25rem !important;
  }

  /* Product icons on mobile */
  .product-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .product-title-with-icon {
    gap: 0.5rem !important;
  }

  .product-slide__content h3 {
    font-size: 1.2rem !important;
  }

  .product-slide__content p {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  .product-slide {
    min-height: auto !important;
    padding: 1.25rem !important;
  }

  .product-badge {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.4rem !important;
    letter-spacing: 0.05em !important;
  }

  .product-features {
    font-size: 0.75rem !important;
    margin: 0.4rem 0 !important;
    padding-left: 0.9rem !important;
  }

  .product-features li {
    margin-bottom: 0.15rem !important;
  }
}

/* Tablet styles for product tiles */
@media (max-width: 900px) and (min-width: 601px) {
  .product-slide__content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .product-features {
    font-size: 0.8rem !important;
  }

  .product-slide {
    min-height: 380px !important;
    padding: 1.5rem !important;
  }

  .product-slide__content h3 {
    font-size: 1.35rem !important;
  }

  .product-badge {
    font-size: 0.6rem !important;
    padding: 0.18rem 0.5rem !important;
  }
}

/* Screenshot Slider Styles */
.screenshot-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2rem 0 3rem;
  overflow: hidden;
}

.screenshot-slider-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.screenshot-slider-title span {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.screenshot-slider-title h2 {
  margin: 0.4rem 0 0;
  font-size: 1.6rem;
}

.screenshot-slider-wrapper {
  position: relative;
}

.screenshot-slider-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshot-slider-container::-webkit-scrollbar {
  display: none;
}

.screenshot-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.screenshot-slide img {
  display: block;
  height: 400px;
  width: auto;
  object-fit: contain;
}

.screenshot-slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.screenshot-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.screenshot-slider-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.screenshot-slider-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--glow);
}

/* Slider dots are now visible on all screen sizes */

@media (max-width: 768px) {
  .screenshot-slide img {
    height: 300px;
  }

  .screenshot-slider-nav {
    gap: 0.6rem;
  }

  .screenshot-slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .screenshot-slide img {
    height: 250px;
  }
}

/* ===== Follow Toyo Section ===== */
.follow-section {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.follow-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.follow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 15, 107, 0.2);
  border-color: var(--primary);
}

.follow-icon {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 2.5rem;
  text-align: center;
}

.follow-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--text-bright);
}

.follow-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .follow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .follow-grid {
    grid-template-columns: 1fr;
  }
  
  .follow-card {
    padding: 1.25rem;
  }
}

/* ===== Blog Section Slider ===== */
.blog-section {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.blog-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.blog-slider::-webkit-scrollbar {
  display: none;
}

.blog-slider__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.blog-tile {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(18, 22, 45, 0.95), rgba(12, 16, 33, 0.8));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 15, 107, 0.2);
  border-color: var(--primary);
}

.blog-tile__category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 15, 107, 0.15);
  color: var(--primary-soft);
  border: 1px solid rgba(255, 15, 107, 0.3);
  width: fit-content;
}

.blog-tile h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-bright);
  flex-grow: 1;
}

.blog-tile__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .blog-tile {
    flex: 0 0 260px;
    padding: 1.25rem;
  }
  
  .blog-tile h3 {
    font-size: 0.95rem;
  }
}

/* ===== Categories Section ===== */
.categories-section {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 4rem);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  --card-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-color: color-mix(in srgb, var(--card-color) 40%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 12%, transparent), rgba(12, 16, 33, 0.85));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  position: relative;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--card-color) 25%, transparent);
  border-color: var(--card-color);
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 20%, transparent), rgba(12, 16, 33, 0.9));
}

.category-card:active {
  transform: translateY(-2px);
}

.category-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.category-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.category-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  transition: opacity 0.2s ease;
}

.category-card:hover .category-link {
  opacity: 0.8;
}

/* Learn More button for mobile (bottom-right) */
.category-learn-more {
  display: none;
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--card-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Category Card Color Variants */
.category-card--family {
  --card-color: #10B981;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(12, 16, 33, 0.9));
  border-left: 3px solid rgba(16, 185, 129, 0.5);
}

.category-card--family:hover {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.3), rgba(12, 16, 33, 0.9));
  border-left-color: #10B981;
}

.category-card--kids {
  --card-color: #818CF8;
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.2), rgba(12, 16, 33, 0.9));
  border-left: 3px solid rgba(129, 140, 248, 0.5);
}

.category-card--kids:hover {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.3), rgba(12, 16, 33, 0.9));
  border-left-color: #818CF8;
}

.category-card--party {
  --card-color: #EC4899;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(12, 16, 33, 0.9));
  border-left: 3px solid rgba(236, 72, 153, 0.5);
}

.category-card--party:hover {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.3), rgba(12, 16, 33, 0.9));
  border-left-color: #EC4899;
}

.category-card--team {
  --card-color: #0EA5E9;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(12, 16, 33, 0.9));
  border-left: 3px solid rgba(14, 165, 233, 0.5);
}

.category-card--team:hover {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.3), rgba(12, 16, 33, 0.9));
  border-left-color: #0EA5E9;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-learn-more {
    font-size: 0.7rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-card {
    flex-direction: row;
    text-align: left;
    padding: 1.25rem;
    gap: 1rem;
    min-height: 80px;
    border-left-width: 4px;
    border-top: none;
    border-right: none;
    border-bottom: none;
  }
  
  .category-card:active {
    transform: scale(0.98);
    background: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 25%, transparent), rgba(12, 16, 33, 0.95));
  }
  
  .category-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
  }
  
  .category-card h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: var(--card-color);
  }
  
  .category-card p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .category-link {
    display: none;
  }
  
  .category-learn-more {
    display: block;
  }
}
