/* =============================================
   DS ARCADE — Industrial Playroom Design System
   Neo-Brutalism + Frosted Glass. Dotsquares Brand.
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-glass: rgba(24, 24, 27, 0.55);
  --surface-hover: rgba(38, 38, 42, 0.7);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(245, 130, 32, 0.35);

  --accent: #F58220;
  --accent-2: #1B3A5C;
  --accent-glow: #F7941D;
  --accent-soft: rgba(245, 130, 32, 0.12);

  --text: #e4e4e7;
  --text-dim: #71717a;
  --text-muted: #52525b;
  --white: #fafafa;

  --ff-heading: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --section-py: clamp(80px, 10vw, 140px);
  --container-px: clamp(20px, 5vw, 80px);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(245, 130, 32, 0.15);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

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

ul {
  list-style: none;
}

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

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

/* ---------- Background Canvas ---------- */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
  z-index: 10;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo-text {
  color: var(--white);
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Back to Library (play page) */
.back-btn-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}

.back-btn-nav:hover {
  color: var(--accent);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 40% 60%;
  /* align-items: center; removed so items align to top (default stretch/start behavior) */
  align-content: center;
  padding: 90px 70px 40px;
  position: relative;
  overflow: hidden;
}

/* Breakout animation — left half */
.breakout-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 80%, transparent);
}

.breakout-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-px);
}

.hero-text {
  text-align: center;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  text-align: center;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

/* Scroll down arrow */
.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--accent);
  animation: bounceArrow 2s ease-in-out infinite;
  opacity: 0.7;
  transition: opacity 0.3s;
  grid-column: 1 / -1;
}

.scroll-arrow:hover {
  opacity: 1;
}

@keyframes bounceArrow {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(12px);
  }
}

/* --- Hero Carousel --- */
.hero-carousel {
  flex: 1;
  max-width: 700px;
  position: relative;
}

.carousel-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.carousel-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.carousel-slide {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.carousel-slide a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
}

.carousel-slide a:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.carousel-thumb {
  height: 200px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.carousel-thumb-emoji {
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--surface), #1f1f24);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-info {
  padding: 18px 22px;
  flex: 1;
}

.carousel-info h3 {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.carousel-info span {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Carousel Dots — hidden in grid mode */
.carousel-dots {
  display: none;
}



.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.hero-visual {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 130, 32, 0.25);
  border-radius: var(--radius-pill);
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 130, 32, 0.3);
}

.btn-primary:hover {
  background: #ffb347;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 130, 32, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.hero-visual {
  display: none;
}


/* ============================================
   PROJECTS CATALOG
   ============================================ */
.games-section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

/* Search */
.catalog-controls {
  margin-bottom: 48px;
}

.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: 0.9rem;
  transition: 0.3s;
}

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

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pill {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s;
}

.pill:hover {
  border-color: var(--text-dim);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* Game Card */
.game-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lift), var(--shadow-glow);
}

.game-card-thumb {
  height: 200px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.game-card:hover .game-card-thumb img {
  transform: scale(1.06);
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--surface), #1f1f24);
  color: rgba(255, 255, 255, 0.6);
}

/* Play Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay-btn {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(245, 130, 32, 0.4);
  color: #000;
  transform: scale(0.7);
  transition: transform 0.4s var(--ease-spring);
}

.game-card:hover .play-overlay-btn {
  transform: scale(1);
}

/* Card Body */
.game-card-body {
  padding: 20px 24px 24px;
  flex: 1;
}

.game-card-cat {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(245, 130, 32, 0.2);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.game-card-body h3 {
  font-size: 1.15rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.game-card-body p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.4;
}


/* ============================================
   HOW IT WORKS / ABOUT
   ============================================ */
.how-it-works,
.contact {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

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

.step-number {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(245, 130, 32, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.step-connector {
  display: none;
}

/* Contact CTA */
.cta-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.cta-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.7;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.95);
  padding: 48px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 10px;
  max-width: 400px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 24px 0;
}

.footer-nav a {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 8px;
}

.footer-socials a {
  color: var(--text-dim);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   EMBED MODE (inside WordPress page)
   ============================================ */
html.embed-mode .navbar,
html.embed-mode .footer {
  display: none !important;
}

html.embed-mode .hero {
  min-height: auto;
  padding-top: 24px;
}

html.embed-mode .player-layout {
  padding-top: 24px;
}

html.embed-mode .breakout-container {
  display: block;
}


/* ============================================
   PLAYER PAGE (play.html)
   ============================================ */
.player-page-v2 {
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.player-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  width: 100%;
  flex: 1;
}

/* Cinema Container */
.game-cinema-wrapper {
  margin-bottom: 28px;
}

.game-cinema-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
}

.game-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Cinema Controls */
.cinema-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.game-meta h1 {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  display: inline-block;
  margin-right: 12px;
  letter-spacing: -0.01em;
}

.game-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(245, 130, 32, 0.2);
}

.control-actions {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.85rem;
}

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

/* Details Grid */
.game-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.detail-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.detail-card h2,
.detail-card h3 {
  font-family: var(--ff-heading);
  color: var(--white);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  font-weight: 700;
}

.detail-card p {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Instructions */
.instructions-block {
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: var(--radius-md);
}

.instructions-block h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  border: none;
  padding: 0;
  color: var(--accent);
}

.controls-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.controls-list li {
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls-list li strong {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  min-width: 80px;
  text-align: center;
  display: inline-block;
  font-size: 0.82rem;
}

/* Sidebar Recs */
.mini-game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-game-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.25s;
  border: 1px solid transparent;
}

.mini-game-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.mini-thumb {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.mini-info h4 {
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 2px;
  font-weight: 600;
}

/* Loading State */
.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  gap: 16px;
}

.loader-ring {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
}

.loader-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  margin: 4px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--accent) transparent transparent transparent;
}

.loader-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.loader-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.loader-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error State */
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-dim);
}

.error-icon {
  font-size: 2.5rem;
}

.player-error h2 {
  font-family: var(--ff-heading);
  color: var(--white);
  font-size: 1.3rem;
}


/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }

  html:not(.embed-mode) .breakout-container {
    display: none;
  }

  .hero-inner {
    justify-content: center;
  }

  .hero-carousel {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .game-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .back-btn-nav {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 32px;
  }

  html:not(.embed-mode) .breakout-container {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .cinema-controls {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
