:root {
  color-scheme: dark;
  --bg: #0d0a16;
  --bg-elevated: #151024;
  --panel: #19132b;
  --panel-hover: #221a39;
  --panel-strong: #261d40;
  --text: #fbf7ef;
  --muted: #b6accb;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);

  /* Thought #009 Maximalist Spectrum */
  --accent-cyan: #02bfd2;
  --accent-violet: #9a63e8;
  --accent-coral: #eb577e;
  --accent-gold: #ffd075;
  --accent-lime: #32d583;
  --brand-gradient: linear-gradient(115deg, #02bfd2 0%, #9a63e8 34%, #eb577e 68%, #ffd075 100%);
  --cta-gradient: linear-gradient(120deg, #eb577e 0%, #ff8b60 52%, #ffd075 100%);
  --shadow-card: 0 18px 42px rgba(4, 2, 12, 0.48);
  --shadow-hover: 0 26px 56px rgba(4, 2, 12, 0.65);
  --dialog-backdrop: rgba(8, 5, 16, 0.78);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fdf7ec;
  --bg-elevated: #f6eedf;
  --panel: #ffffff;
  --panel-hover: #fffaf0;
  --panel-strong: #f3e7d4;
  --text: #1a1228;
  --muted: #5c4f73;
  --line: rgba(26, 18, 40, 0.12);
  --line-strong: rgba(26, 18, 40, 0.24);

  --accent-cyan: #008ca0;
  --accent-violet: #6e35c3;
  --accent-coral: #d62d64;
  --accent-gold: #c97c00;
  --accent-lime: #128a52;
  --brand-gradient: linear-gradient(115deg, #008ca0 0%, #6e35c3 36%, #d62d64 70%, #d98200 100%);
  --cta-gradient: linear-gradient(120deg, #d62d64 0%, #eb5c3b 55%, #e59300 100%);
  --shadow-card: 0 14px 32px rgba(44, 25, 68, 0.08);
  --shadow-hover: 0 22px 46px rgba(44, 25, 68, 0.15);
  --dialog-backdrop: rgba(26, 18, 40, 0.56);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

button, input {
  font: inherit;
  color: inherit;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

/* Layered ambient background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
}

html[data-theme="light"] .orb {
  opacity: 0.16;
}

.orb-cyan {
  width: 44vw;
  height: 44vw;
  max-width: 560px;
  max-height: 560px;
  top: -14%;
  left: -10%;
  background: #02bfd2;
}

.orb-magenta {
  width: 46vw;
  height: 46vw;
  max-width: 600px;
  max-height: 600px;
  top: 6%;
  right: -12%;
  background: #eb577e;
}

.orb-gold {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -16%;
  left: 34%;
  background: #ffd075;
  opacity: 0.14;
}

.grid-veil {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 24%, black 0%, transparent 78%);
  opacity: 0.55;
}

/* Layout containers */
.topbar,
main,
footer {
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 52px);
}

/* Top Bar */
.topbar {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 2.6px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.nav-pill strong {
  color: var(--text);
  font-weight: 800;
}

.sister-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bdd4a8;
  box-shadow: 0 0 0 3px rgba(189, 212, 168, 0.2);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-1px) rotate(10deg);
  border-color: var(--accent-gold);
  background: var(--panel-hover);
}

html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* Eyebrow */
.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
  box-shadow: 0 0 0 4px rgba(235, 87, 126, 0.24);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.75; }
}

/* Hero */
.hero {
  padding: clamp(44px, 6.5vw, 84px) 0 clamp(44px, 5.5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.hero h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-copy {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-primary {
  border: 0;
  background: var(--cta-gradient);
  color: #140b1f;
  box-shadow: 0 12px 28px rgba(235, 87, 126, 0.34);
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(235, 87, 126, 0.45);
}

.cta-secondary {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.cta-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  background: var(--panel-hover);
}

.pulse-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(2, 191, 210, 0.16);
  color: var(--accent-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-stats {
  list-style: none;
  margin: 34px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 38px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 12px;
  color: var(--muted);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-table-stage {
  position: relative;
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-table-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-table-stage:hover .hero-table-svg {
  transform: scale(1.03);
}

.orbit-spin {
  transform-origin: 210px 210px;
  animation: slow-spin 36s linear infinite;
}

.hero-cards {
  transform-origin: 210px 205px;
  animation: card-float 5.2s ease-in-out infinite;
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-caption-chip {
  margin-top: -10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* Featured Games Section */
.featured-section {
  padding: 40px 0 54px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-jump {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.section-jump:hover {
  transform: translateY(-1px);
  border-color: var(--accent-cyan);
}

.featured-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.spotlight-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 30px;
  border: 1px solid rgba(235, 87, 126, 0.45);
  background:
    radial-gradient(circle at 86% 18%, rgba(235, 87, 126, 0.26), transparent 52%),
    radial-gradient(circle at 12% 88%, rgba(2, 191, 210, 0.16), transparent 52%),
    var(--panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.spotlight-copy {
  position: relative;
  z-index: 1;
}

.spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.spotlight-copy h3 {
  margin: 16px 0 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.spotlight-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 48ch;
}

.spotlight-features {
  list-style: none;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.spotlight-features li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-features strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.spotlight-features span {
  font-size: 11.5px;
  color: var(--muted);
}

.spotlight-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.spotlight-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.spotlight-art-frame {
  width: min(100%, 250px);
  aspect-ratio: 6 / 5;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spotlight-stage:hover .spotlight-art-frame {
  transform: scale(1.04) rotate(-1.5deg);
}

.spotlight-art-frame svg {
  width: 100%;
  height: 100%;
}

.spotlight-seat-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.seat-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pip);
}

.seat-label {
  margin-left: 4px;
}

.featured-side-stack {
  display: grid;
  gap: 14px;
}

.featured-mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease;
}

.featured-mini-card[data-accent="scrae"] { --mini-accent: #02bfd2; }
.featured-mini-card[data-accent="ludo"] { --mini-accent: #ffd075; }
.featured-mini-card[data-accent="sudoku"] { --mini-accent: #9a63e8; }

.featured-mini-card:hover {
  transform: translateY(-3px) translateX(2px);
  border-color: var(--mini-accent, var(--accent-cyan));
  background: var(--panel-hover);
}

.mini-art {
  width: 74px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 4px;
}

.mini-art svg {
  width: 100%;
  height: 100%;
}

.mini-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-name {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.mini-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--mini-accent, var(--text));
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.featured-mini-card:hover .mini-arrow {
  transform: translateX(3px);
  background: var(--mini-accent, var(--accent-cyan));
  color: #120b1f;
  border-color: transparent;
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--bg-elevated);
  color: var(--muted);
}

.tab.active .tab-count {
  background: rgba(13, 10, 22, 0.16);
  color: inherit;
}

/* Collection Section */
.collection {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.collection-heading .eyebrow {
  margin-bottom: 8px;
}

.collection-heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

#total {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
}

.availability-pill {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--text);
  color: var(--bg);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 280px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s ease;
}

.search:focus-within {
  border-color: var(--accent-cyan);
}

.search svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}

.search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

/* Game Showcase Grid */
.games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 14%, var(--card-glow, rgba(235, 87, 126, 0.22)), transparent 58%);
  opacity: 0.78;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--accent-coral));
  box-shadow: var(--shadow-hover);
  background: var(--panel-hover);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

/* Per-game signature chromatic accents */
.game-card[data-accent="card"] {
  --card-accent: #eb577e;
  --card-glow: rgba(235, 87, 126, 0.28);
}

.game-card[data-accent="scrae"] {
  --card-accent: #02bfd2;
  --card-glow: rgba(2, 191, 210, 0.24);
}

.game-card[data-accent="ludo"] {
  --card-accent: #ffd075;
  --card-glow: rgba(255, 208, 117, 0.24);
}

.game-card[data-accent="sudoku"] {
  --card-accent: #9a63e8;
  --card-glow: rgba(154, 99, 232, 0.26);
}

/* Flagship Featured Card (Card!) */
.game-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 3.2vw, 36px);
  border-color: rgba(235, 87, 126, 0.42);
  background:
    linear-gradient(135deg, rgba(235, 87, 126, 0.14), rgba(154, 99, 232, 0.1) 52%, rgba(2, 191, 210, 0.1)),
    var(--panel);
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.card-number {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
}

.status-badge.ready {
  border-color: rgba(50, 213, 131, 0.48);
  background: rgba(50, 213, 131, 0.16);
  color: var(--accent-lime);
}

.status-badge.ready::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.status-badge.next-up {
  border-color: rgba(255, 208, 117, 0.42);
  background: rgba(255, 208, 117, 0.14);
  color: var(--accent-gold);
}

.status-badge.alpha {
  border-color: rgba(154, 99, 232, 0.55);
  background: rgba(154, 99, 232, 0.2);
  color: var(--accent-violet);
}

.status-badge.alpha::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-violet);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.card-artwork {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 156px;
  margin: 16px 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card.featured .card-artwork {
  height: 220px;
  margin: 0;
}

.card-artwork svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  overflow: visible;
}

.game-card:hover .card-artwork {
  transform: scale(1.06) rotate(-2deg);
}

.card-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.card-name {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.game-card.featured .card-name {
  font-size: clamp(34px, 3.6vw, 48px);
}

.card-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--card-accent);
}

.card-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

.game-card.featured .card-tagline {
  font-size: 15px;
  max-width: 56ch;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 800;
  color: var(--card-accent);
}

.card-cta-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.game-card:hover .card-cta-arrow {
  transform: translateX(4px);
  background: var(--card-accent);
  color: #120b1f;
  border-color: transparent;
}

.empty {
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
}

/* Studio Band */
.studio-band {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.band-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.band-card h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.band-card p:not(.eyebrow) {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
}

.band-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.band-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 26px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.footer-brand,
.footer-studio,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  transition: color 0.2s ease;
}

.footer-brand:hover,
.footer-studio:hover,
.footer-link:hover,
.footer-replay:hover {
  color: var(--text);
}

.footer-brand span {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 2px;
}

.footer-studio-symbol {
  width: 38px;
  height: 29px;
  display: block;
}

.footer-studio-symbol img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-studio strong {
  color: var(--text);
  font-weight: 800;
}

.footer-replay {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Preview Modal */
.game-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.game-dialog::backdrop {
  background: var(--dialog-backdrop);
  backdrop-filter: blur(8px);
}

body:has(.game-dialog[open]) {
  overflow: hidden;
}

.dialog-inner {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
}

.dialog-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 40px;
}

.dialog-art {
  width: 96px;
  height: 96px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 10px;
}

.dialog-art svg {
  width: 100%;
  height: 100%;
}

.dialog-heading h2 {
  margin: 8px 0 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}

.dialog-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-coral);
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dialog-description {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.dialog-highlights-wrap {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.dialog-highlights-wrap .eyebrow {
  margin-bottom: 10px;
}

.dialog-highlights {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}

.dialog-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Route Placeholder Page */
.placeholder-main {
  padding: clamp(44px, 7vw, 88px) 0;
  display: grid;
  place-items: center;
}

.placeholder-card {
  width: min(680px, 100%);
  padding: clamp(26px, 5vw, 44px);
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.placeholder-card h1 {
  margin: 14px 0 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.placeholder-card p {
  margin: 14px auto 0;
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.placeholder-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1120px) {
  .featured-showcase {
    grid-template-columns: 1fr;
  }
  .featured-side-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .hero-table-stage {
    width: min(100%, 300px);
  }
  .spotlight-stage {
    grid-template-columns: 1fr;
  }
  .spotlight-visual {
    order: -1;
  }
  .featured-side-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 78px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-text {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .nav-pill.sister-link span:nth-child(2) {
    display: none;
  }
  .games,
  .studio-band,
  .spotlight-features {
    grid-template-columns: 1fr;
  }
  .search {
    width: 100%;
  }
  .dialog-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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