/* ==========================================================================
   CINEMATIC DUOTONE GAME SHOWCASE - MARVEL-STYLE CHARACTER / GAME DECK
   Inspired by Cinematic Presentation UI with Vertical Thumbnails,
   Bold Editorial Typography, and Dynamic Scroll Animations
   ========================================================================== */

/* --- Dynamic Theme Variables (Shift with active slide) --- */
:root {
  /* Default active: Game 01 (Chrono Tap - Crimson / Magenta) */
  --accent-color: #ff2a5f;
  --accent-rgb: 255, 42, 95;
  --accent-gradient: linear-gradient(135deg, #ff2a5f, #ff6b8b);
  --accent-glow: rgba(255, 42, 95, 0.4);
  --accent-glow-soft: rgba(255, 42, 95, 0.15);

  --bg-dark: #070709;
  --bg-panel: rgba(14, 15, 20, 0.88);
  --bg-card: rgba(20, 22, 30, 0.6);
  --bg-card-hover: rgba(30, 34, 46, 0.75);

  --border-dim: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.18);
  --border-bright: rgba(255, 255, 255, 0.4);

  --text-white: #ffffff;
  --text-dim: #9ba0b0;
  --text-muted: #585c6c;

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-title: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-normal: 0.45s var(--ease-cinematic);
}

/* Slide 02 Theme: Kinetic Vector (Golden Amber) */
body[data-active-index="1"] {
  --accent-color: #ffaa00;
  --accent-rgb: 255, 170, 0;
  --accent-gradient: linear-gradient(135deg, #ffaa00, #ffd000);
  --accent-glow: rgba(255, 170, 0, 0.4);
  --accent-glow-soft: rgba(255, 170, 0, 0.15);
}

/* Slide 03 Theme: Neural Calc (Electric Cyan) */
body[data-active-index="2"] {
  --accent-color: #00e5ff;
  --accent-rgb: 0, 229, 255;
  --accent-gradient: linear-gradient(135deg, #00e5ff, #0099ff);
  --accent-glow: rgba(0, 229, 255, 0.4);
  --accent-glow-soft: rgba(0, 229, 255, 0.15);
}

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

button {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-normal);
}

/* Ambient Dot Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.ambient-aurora {
  position: fixed;
  top: 20%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: background 0.8s ease, transform 0.8s ease;
}

/* ==========================================================================
   MAIN SHOWCASE FRAME (Edge-to-Edge Fullscreen)
   ========================================================================== */
.showcase-viewport {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  min-height: 100vh;
  background: var(--bg-panel);
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.showcase-header {
  height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-white);
}

.brand-badge {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent-color);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: 6px;
  color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow-soft);
  transition: border-color var(--transition-normal), color var(--transition-normal);
}

.brand-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.nav-item {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

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

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-white);
}

.slide-counter .current {
  color: var(--accent-color);
  font-size: 1.05rem;
  transition: color var(--transition-normal);
}

.slide-counter .divider {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.header-sound-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.4rem 0.95rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  outline: none;
}

.header-sound-btn:hover {
  border-color: var(--accent-color);
  color: var(--text-white);
  box-shadow: 0 0 14px var(--accent-glow-soft);
  background: rgba(255, 255, 255, 0.1);
}

.header-sound-btn.active {
  color: var(--text-white);
  border-color: var(--border-mid);
}

.header-sound-btn svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  fill: currentColor;
  display: block;
}

.sound-status-text {
  font-weight: 700;
}

/* ==========================================================================
   MAIN SHOWCASE BODY (Columns + Right Rail)
   ========================================================================== */
.showcase-body {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 64px - 44px);
  position: relative;
  overflow: hidden;
}

/* --- Left Column: Vertical Game Thumbnails List --- */
.showcase-list-column {
  width: 360px;
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 2.2rem 1.4rem;
  position: relative;
  z-index: 10;
  background: rgba(10, 11, 15, 0.55);
}

.game-items-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1;
  overflow: hidden;
}

/* Individual Game List Item (Bigger card with generous spacing) */
.game-list-item {
  position: relative;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  transition: transform 0.35s var(--ease-cinematic), border-color 0.35s ease, box-shadow 0.35s ease;
  user-select: none;
}

.game-list-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

/* Thumbnail Background */
.item-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(70%) contrast(120%);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.6s ease;
}

.game-list-item:hover .item-thumb-bg {
  opacity: 0.55;
  filter: grayscale(30%);
  transform: scale(1.05);
}

/* Active Highlight Treatment (Matches the Marvel banner in reference) */
.game-list-item.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 30px var(--accent-glow-soft), inset 0 0 20px rgba(var(--accent-rgb), 0.15);
  transform: translateX(6px);
}

.game-list-item.active .item-thumb-bg {
  opacity: 0.8;
  filter: grayscale(0%) contrast(110%);
}

.item-active-banner {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-color);
  color: #000;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  border-bottom-right-radius: 6px;
  z-index: 5;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-list-item.active .item-active-banner {
  opacity: 1;
  transform: translateY(0);
}

.item-info-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
  z-index: 4;
}

.item-game-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
  transition: color 0.3s ease;
}

.game-list-item.active .item-game-name {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.95);
}

.item-game-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.game-list-item.active .item-game-sub {
  color: var(--accent-color);
}

/* List Bottom Scroll Controller (Exactly matching the reference image) */
.list-scroll-controller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dim);
}

.scroll-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scroll-btn:hover {
  border-color: var(--accent-color);
  color: var(--text-white);
  box-shadow: 0 0 10px var(--accent-glow-soft);
}

.scroll-track-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-progress-line {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.33%;
  background: var(--accent-color);
  transition: transform 0.4s var(--ease-cinematic), background var(--transition-normal);
}

/* ==========================================================================
   CENTER PANEL: EDITORIAL CONTENT & DETAILS (MINIMAL & CLEAN)
   ========================================================================== */
.showcase-content-panel {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
  max-width: 680px;
}

.content-genre-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  width: fit-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color var(--transition-normal), border-color var(--transition-normal);
}

.content-genre-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.content-title-wrapper {
  overflow: visible;
  margin-bottom: 1.15rem;
  padding-right: 1.5rem;
}

.content-game-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  overflow: visible;
  will-change: transform, opacity;
}

.content-game-desc {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 2rem;
  max-width: 470px;
  font-weight: 400;
}

/* Features / Specs Row - Minimal Frosted Chips */
.content-features-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.3rem;
  padding: 0;
  border: none;
  flex-wrap: wrap;
}

.feature-pill {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 1.05rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.feature-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.feature-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Action CTA Buttons */
.content-actions-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.btn-hero-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent-color);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-hero-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--accent-glow);
}

.btn-hero-launch svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.btn-hero-launch:hover svg {
  transform: translateX(4px);
}

.btn-hero-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hero-preview:hover {
  border-color: var(--text-white);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   RIGHT STAGE: BIG CINEMATIC CHARACTER / GAME VISUAL ARTWORK
   ========================================================================== */
.showcase-hero-stage {
  flex: 1.1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-art-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-slide {
  position: absolute;
  max-height: 92%;
  max-width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 50px var(--accent-glow-soft));
  opacity: 0;
  transform: scale(0.92) translateX(40px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-cinematic), transform 0.6s var(--ease-cinematic);
  will-change: transform, opacity;
}

.hero-image-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

/* Background Atmospheric Radial Light behind the hero graphic */
.hero-glow-disk {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  transition: background var(--transition-normal);
}

/* ==========================================================================
   FAR RIGHT RAIL (Vertical Rotated Labels & Scroll indicator)
   ========================================================================== */
.rail-right {
  width: 56px;
  border-left: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  flex-shrink: 0;
  z-index: 10;
}

.rail-tag-active {
  background: var(--accent-color);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.6rem 0.25rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition-normal);
}

.rail-tags-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.rail-tag-item {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.rail-tag-item:hover {
  color: var(--text-white);
}

.rail-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce-indicator 2s infinite ease-in-out;
}

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

/* ==========================================================================
   SLIDE TRANSITION ANIMATION CLASSES (Triggered via JS on wheel/click)
   ========================================================================== */
.title-anim-in {
  animation: slide-up-fade 0.55s var(--ease-cinematic) forwards;
}

.desc-anim-in {
  animation: fade-in-up 0.5s var(--ease-cinematic) 0.1s forwards;
}

@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   INTERACTIVE DEMO PREVIEW MODAL / DRAWER
   ========================================================================== */
.sandbox-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sandbox-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sandbox-modal-card {
  background: #0d0f15;
  border: 1px solid var(--border-mid);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-glow-soft);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  padding: 2.2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-cinematic);
}

.sandbox-modal-backdrop.open .sandbox-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

/* Mini Sandbox stages */
.sandbox-stage {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #07080b;
  border: 1px dashed var(--border-mid);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.tap-button-target {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 80%);
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 25px var(--accent-glow);
  transition: transform 0.08s ease;
  user-select: none;
}

.tap-button-target:active {
  transform: scale(0.92);
}

.tap-readout {
  display: flex;
  gap: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.2rem;
}

.tap-readout strong {
  color: var(--accent-color);
  margin-left: 0.3rem;
}

.moving-arena {
  width: 100%;
  height: 220px;
  position: relative;
}

.erratic-target-btn {
  position: absolute;
  top: 40%;
  left: 45%;
  padding: 0.7rem 1.4rem;
  background: var(--accent-color);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  border: none;
  border-radius: 4px;
  cursor: crosshair;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: top 0.22s var(--ease-spring), left 0.22s var(--ease-spring);
  user-select: none;
}

.math-equation-display {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1.2rem;
}

.math-options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  width: 100%;
}

.math-opt-btn {
  padding: 0.75rem;
  background: #131620;
  border: 1px solid var(--border-mid);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.math-opt-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #000;
}

/* Config form inputs */
.config-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-text {
  background: #07080b;
  border: 1px solid var(--border-mid);
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-text:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow-soft);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0d0f15;
  border: 1px solid var(--accent-color);
  color: var(--text-white);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-glow-soft);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--ease-cinematic);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   SHOWCASE FOOTER BAR
   ========================================================================== */
.showcase-footer {
  height: 44px;
  padding: 0 2.5rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(7, 8, 11, 0.7);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  z-index: 20;
}

.footer-left-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  color: var(--text-white);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-dot {
  color: var(--border-mid);
}

.footer-center-hint {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-right-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.footer-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: background var(--transition-normal);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive for tablet & mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .showcase-viewport {
    width: 100vw;
    height: 100vh;
  }
  
  .showcase-list-column {
    width: 250px;
  }

  .showcase-content-panel {
    padding: 2.5rem 3rem;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto;
  }

  body {
    padding: 0;
  }

  .showcase-viewport {
    height: auto;
    min-height: 100vh;
    width: 100vw;
  }

  .showcase-header {
    padding: 0 1rem;
  }

  .header-nav {
    display: none;
  }

  .rail-left, .rail-right {
    display: none;
  }

  .showcase-body {
    flex-direction: column;
  }

  .showcase-list-column {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-dim);
  }

  .game-items-stack {
    flex-direction: row;
    overflow-x: auto;
  }

  .game-list-item {
    min-width: 180px;
    height: 80px;
  }

  .showcase-hero-stage {
    min-height: 280px;
  }

  .showcase-content-panel {
    padding: 2rem 1.5rem;
  }
}
