/* ═══════════════════════════════════════════════════════════════
   DFL SLOTS PORTAL — AAA High-End Minimalist Casino Theme
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Core palette */
  --bg:           #050507;
  --bg-subtle:    #0a0a0f;
  --surface:      #0e0e14;
  --surface-alt:  #131320;
  --border:       rgba(255, 215, 0, 0.08);
  --border-hover: rgba(255, 215, 0, 0.18);

  /* Text */
  --text:         #f0ece4;
  --text-muted:   #8a8694;
  --text-dim:     #5a5668;

  /* Accents */
  --gold:         #d4a843;
  --gold-light:   #f5d470;
  --gold-dark:    #8b6914;
  --gold-glow:    rgba(212, 168, 67, 0.25);
  --gold-subtle:  rgba(212, 168, 67, 0.06);
  --accent:       #d4a843;

  /* DFL Brand Colors */
  --crimson:      #8b1a1a;
  --crimson-light:#c43030;
  --crimson-glow: rgba(139, 26, 26, 0.3);
  --forest:       #1a472a;
  --forest-light: #2d6b45;
  --forest-glow:  rgba(45, 107, 69, 0.2);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Functional */
  --green:        #3dd68c;
  --blue:         #6ea8fe;
  --red:          #ff6b7a;

  /* Spacing */
  --nav-height:   4rem;
  --content-max:  1280px;
  --content-narrow: 960px;

  /* Transitions */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration:     0.4s;
}

/* ── Reset ───────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body), ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.hidden { display: none !important; }

/* ── Auth Gates ──────────────────────────────────────────────── */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(212,168,67,0.06), transparent),
    var(--bg);
  position: relative;
}

/* Subtle ink-wash owl watermark on auth gates */
.gate::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: url('/images/brand/owl_watermark.png') center/contain no-repeat;
  opacity: 0.02;
  pointer-events: none;
  filter: brightness(2);
}

.gate-card {
  max-width: 28rem;
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.gate-card h1 { font-size: 1.75rem; margin-top: 1.25rem; letter-spacing: -0.03em; }
.gate-card .hero-copy { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* ── Brand Mark / Owl ────────────────────────────────────────── */

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 20px var(--gold-glow);
}

.brand-owl {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.gate-owl {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px var(--gold-glow));
  margin: 0 auto;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.button.primary,
.button:not(.secondary):not(.ghost) {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0f;
  box-shadow: 0 2px 16px var(--gold-glow);
}

.button.primary:hover,
.button:not(.secondary):not(.ghost):hover {
  box-shadow: 0 4px 28px rgba(212,168,67,0.4);
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
}

.button.ghost {
  background: transparent;
  color: var(--gold);
  padding: 0.5rem 0;
}

.button.ghost:hover { color: var(--gold-light); }

/* ── Navigation ──────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(5,5,7,0.8);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease-out);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: min(var(--content-max), calc(100% - 3rem));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand span {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand .brand-mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
}

.brand .brand-owl {
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease-out);
}

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

.user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.user img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.sign-out {
  border: 0;
  color: var(--text-dim);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}

.sign-out:hover { color: var(--gold); }

/* ── Shell ───────────────────────────────────────────────────── */

.shell { min-height: 100vh; }

/* ── Page Container ──────────────────────────────────────────── */

.page {
  opacity: 0;
  transform: translateY(12px);
  animation: pageIn 0.6s var(--ease-out) forwards;
}

@keyframes pageIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 6rem) 0 5rem;
  text-align: center;
  overflow: hidden;
  background: url('/images/hero_cabinets.webp') center 30%/cover no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.7) 40%, rgba(10,10,12,0.92) 100%),
    radial-gradient(ellipse 800px 500px at 50% 20%, rgba(212,168,67,0.07), transparent);
  pointer-events: none;
}

/* Ink-wash owl watermark behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: url('/images/brand/owl_watermark.png') center/contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
  filter: brightness(2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - 3rem));
  margin: 0 auto;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  max-width: 52rem;
  margin: 0 auto 1.5rem;
}

.hero h1 .gold { color: var(--gold); }

.hero-copy {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto;
}

.hero-divider {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 3rem auto 0;
}

/* ── Section Headers ──────────────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .eyebrow { margin-bottom: 1rem; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── POC Cards Grid ──────────────────────────────────────────── */

.poc-section {
  width: min(var(--content-max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 6rem;
}

.poc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── POC Card ────────────────────────────────────────────────── */

.poc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.poc-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px var(--gold-glow);
}

.poc-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.poc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.poc-card:hover .poc-card-image img {
  transform: scale(1.05);
}

.poc-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--surface) 0%, transparent 50%);
  pointer-events: none;
}

.poc-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.poc-card-tag {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-subtle);
  color: var(--gold);
  border: 1px solid rgba(212,168,67,0.15);
  margin-bottom: 0.75rem;
}

.poc-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.poc-card .tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.poc-card-stats {
  display: flex;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

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

.poc-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.poc-stat-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  margin-top: 0.15rem;
}

.poc-card-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  transition: gap 0.3s var(--ease-out);
}

.poc-card:hover .poc-card-cta { gap: 0.7rem; }

.poc-card-cta .arrow {
  transition: transform 0.3s var(--ease-out);
}

.poc-card:hover .poc-card-cta .arrow {
  transform: translateX(2px);
}

/* Card "Coming Soon" overlay */
.poc-card.coming-soon .poc-card-image::before {
  content: 'COMING SOON';
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  backdrop-filter: blur(8px);
}

/* ── Footer ──────────────────────────────────────────────────── */

.portal-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.portal-footer::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: url('/images/brand/owl_watermark.png') center/contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
  filter: brightness(2);
}

.portal-footer-inner {
  width: min(var(--content-max), calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-footer p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

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

.portal-footer-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* ══════════════════════════════════════════════════════════════
   GAME DETAIL PAGE
   ══════════════════════════════════════════════════════════════ */

.game-page {
  padding-top: var(--nav-height);
  position: relative;
}

/* Ink-wash owl watermark on game detail pages */
.game-page::after {
  content: '';
  position: fixed;
  bottom: 3%;
  left: 3%;
  width: 250px;
  height: 250px;
  background: url('/images/brand/owl_watermark.png') center/contain no-repeat;
  opacity: 0.02;
  pointer-events: none;
  filter: brightness(2);
  z-index: 0;
}

/* Game Hero */
.game-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.game-hero-bg {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
}

.game-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.game-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,
    var(--bg) 0%,
    rgba(5,5,7,0.7) 40%,
    rgba(5,5,7,0.3) 70%,
    rgba(5,5,7,0.5) 100%
  );
}

/* Cabinet hero variant — machine on right, text on left */
.game-hero--cabinet {
  min-height: 480px;
  max-height: 680px;
}

.game-hero--cabinet .game-hero-bg img {
  object-position: right center;
}

.game-hero--cabinet .game-hero-bg::after {
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      rgba(5,5,7,0.85) 30%,
      rgba(5,5,7,0.3) 60%,
      transparent 100%
    ),
    linear-gradient(0deg,
      var(--bg) 0%,
      rgba(5,5,7,0.5) 30%,
      transparent 60%
    );
}

.hero-platform-tag {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.game-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.game-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.game-back:hover { color: var(--gold); }

.game-hero-content .poc-card-tag { margin-bottom: 1rem; }

.game-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.game-hero-content .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 32rem;
}

/* Stats Bar */
.game-stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.game-stats-bar-inner {
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.game-stat {
  text-align: center;
}

.game-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.game-stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
}

/* Game Content Sections */
.game-content {
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.game-section {
  margin-bottom: 4rem;
}

.game-section:last-child { margin-bottom: 0; }

.game-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.game-section h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: text-bottom;
}

.game-section .section-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 40rem;
}

/* Mechanics Grid */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.mechanic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

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

.mechanic-card .mechanic-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.mechanic-card:hover .mechanic-img img {
  transform: scale(1.05);
}

.mechanic-card .mechanic-body {
  padding: 1.5rem;
}

.mechanic-card:not(.has-image) {
  padding: 1.5rem;
}

.mechanic-card:not(.has-image) .mechanic-body {
  padding: 0;
}

.mechanic-card .mechanic-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.mechanic-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mechanic-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Math Model Table */
.math-table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

.math-table th,
.math-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.math-table th {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.math-table td { color: var(--text-muted); }
.math-table td:first-child { color: var(--text); font-weight: 600; }
.math-table tr:last-child td { border-bottom: none; }

.math-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Audio/Visual Direction */
.direction-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.direction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.direction-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.direction-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Coming Soon Page */
.coming-soon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
  text-align: center;
}

.coming-soon-page .coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.coming-soon-page h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.coming-soon-page p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ── Ink-Wash Section Dividers ────────────────────────────────── */

.ink-divider {
  position: relative;
  height: 2px;
  margin: 3rem auto;
  max-width: 600px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--crimson) 20%,
    var(--gold-dark) 50%,
    var(--forest) 80%,
    transparent 100%
  );
  opacity: 0.35;
}

.ink-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: url('/images/brand/owl_nav.png') center/contain no-repeat;
  opacity: 0.5;
  filter: brightness(1.3);
}

/* ── Loading Owl Animation ───────────────────────────────────── */

@keyframes owl-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.loading-owl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1.5rem;
}

.loading-owl img {
  width: 48px;
  height: 48px;
  animation: owl-pulse 2s var(--ease-out) infinite;
  filter: brightness(1.2) drop-shadow(0 0 12px var(--gold-glow));
}

.loading-owl span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

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

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-height) + 4rem) 0 3rem;
    background-attachment: scroll; /* fixed breaks on mobile */
  }

  .poc-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: 0 auto;
  }

  .nav-links { display: none; }

  .nav-inner { padding: 0; }

  .game-stats-bar-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .game-stat { flex: 1; min-width: 80px; }

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

  .direction-cards { grid-template-columns: 1fr; }

  .portal-footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .game-hero { min-height: 320px; }
  .hero h1 { font-size: 2.2rem; }
}

/* ── Ambient glow on body ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.03), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ══════════════════════════════════════════════════════════════
   APPROACH CARD & PAGE
   ══════════════════════════════════════════════════════════════ */

/* Approach card on landing page */
.approach-card {
  border-color: rgba(100, 200, 255, 0.12);
}

.approach-card:hover {
  border-color: rgba(100, 200, 255, 0.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px rgba(100, 200, 255, 0.1);
}

.approach-tag {
  background: rgba(100, 200, 255, 0.08) !important;
  color: #64c8ff !important;
  border-color: rgba(100, 200, 255, 0.2) !important;
}

.approach-card-image {
  position: relative;
}

.approach-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.3);
}

.approach-overlay-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

/* Ripped watercolor paper transition at bottom of approach hero */
.approach-hero {
  margin-bottom: 0;
}

.approach-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 3;
  background: var(--bg);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V28c12-4 24 6 48 3s36-14 60-8 30 16 54 12 28-12 48-6 24 14 48 10 32-10 54-4 26 12 48 8 30-8 48-2 24 10 48 6 32-6 48 0 28 8 48 4 30-6 48-2 24 12 48 8 28-4 48 0 30 6 48 2 26-8 48-4 32 6 48 2 24-10 48-6 30 4 48 0 28 8 54 4L1200 80z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V28c12-4 24 6 48 3s36-14 60-8 30 16 54 12 28-12 48-6 24 14 48 10 32-10 54-4 26 12 48 8 30-8 48-2 24 10 48 6 32-6 48 0 28 8 48 4 30-6 48-2 24 12 48 8 28-4 48 0 30 6 48 2 26-8 48-4 32 6 48 2 24-10 48-6 30 4 48 0 28 8 54 4L1200 80z' fill='white'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

/* Ripped paper divider between sections on approach page */
.approach-page .game-section {
  position: relative;
}

.approach-page .game-section + .game-section::before {
  content: '';
  display: block;
  height: 40px;
  margin: -1rem 0 2rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 26, 26, 0.08) 15%,
    rgba(45, 107, 69, 0.06) 50%,
    rgba(139, 26, 26, 0.08) 85%,
    transparent 100%
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20c20-8 40 4 60-2s30-10 50-4 25 12 45 6 30-8 50-2 20 10 40 4 30-6 50 0 25 8 45 2 30-4 50 2 20 6 40 0 25-8 45-2 30 4 50 0 20-6 40-2 30 8 50 4 25-4 45 0 30 6 50 2 20-8 40-4l0 20H0z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20c20-8 40 4 60-2s30-10 50-4 25 12 45 6 30-8 50-2 20 10 40 4 30-6 50 0 25 8 45 2 30-4 50 2 20 6 40 0 25-8 45-2 30 4 50 0 20-6 40-2 30 8 50 4 25-4 45 0 30 6 50 2 20-8 40-4l0 20H0z' fill='white'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

/* Approach page pillars */
.approach-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.approach-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s;
}

.pillar-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.approach-pillar:hover .pillar-image img {
  transform: scale(1.05);
}

.approach-pillar .pillar-number,
.approach-pillar h4,
.approach-pillar p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.approach-pillar .pillar-number {
  padding-top: 1.25rem;
}

.approach-pillar p {
  padding-bottom: 1.5rem;
}

.approach-pillar:hover {
  border-color: var(--border-hover);
}

.pillar-number {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.approach-pillar h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.approach-pillar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   WIREFRAME GALLERY (Approach Page)
   ══════════════════════════════════════════════════════════════ */

.wireframe-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.wireframe-item {
  display: flex;
  flex-direction: column;
}

.wireframe-image-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wireframe-image-wrap:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.wireframe-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.wireframe-info {
  padding: 0.75rem 0.25rem;
}

.wireframe-info h4 {
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.wireframe-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   COMPLIANCE GRID
   ══════════════════════════════════════════════════════════════ */

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.compliance-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.compliance-ref {
  font-family: 'Inter', monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.15);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.compliance-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   CABINET BANNER (Game Detail Pages)
   ══════════════════════════════════════════════════════════════ */

.cabinet-banner {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.cabinet-banner-inner {
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 0;
}

.cabinet-image-wrap {
  flex: 0 0 320px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.cabinet-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.cabinet-info {
  flex: 1;
}

.cabinet-info .eyebrow {
  margin-bottom: 0.75rem;
}

.cabinet-info h3 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cabinet-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 28rem;
}

.cabinet-specs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cabinet-specs span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid rgba(212,168,67,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   SYMBOL ART GALLERY (Game Detail Pages)
   ══════════════════════════════════════════════════════════════ */

.symbols-gallery {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.symbol-item {
  width: 140px;
  height: 140px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.symbol-item:hover {
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.symbol-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rich Symbol Grid (with paytable info) */
.symbols-grid-rich {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.symbol-card-rich {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.symbol-card-rich:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.symbol-card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

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

.symbol-card-rich:hover .symbol-card-img img {
  transform: scale(1.05);
}

.symbol-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.symbol-card-info h4 {
  font-size: 0.85rem;
  font-weight: 800;
}

.symbol-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
}

.symbol-note {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: 'Inter', monospace;
  letter-spacing: 0.02em;
}

/* Game Screens Gallery (portrait, side by side) */
.game-screens-gallery {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.game-screen-item {
  flex: 0 0 auto;
  width: 220px;
  text-align: center;
}

.game-screen-item img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.game-screen-item:hover img {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px var(--gold-glow);
  transform: translateY(-4px);
}

.game-screen-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   SCREEN TEMPLATES SCROLL (Game Detail Pages)
   ══════════════════════════════════════════════════════════════ */

.screens-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screens-scroll::-webkit-scrollbar {
  height: 6px;
}

.screens-scroll::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 3px;
}

.screens-scroll::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

.screen-thumb {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-align: center;
}

.screen-thumb img {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.screen-thumb:hover img {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.screen-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — ADDITIONAL
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .wireframe-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .approach-pillars {
    grid-template-columns: 1fr;
  }
  .wireframe-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  .symbols-grid-rich {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-screen-item {
    width: 160px;
  }
  .cabinet-banner-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .cabinet-image-wrap {
    flex: none;
    max-width: 280px;
    margin: 0 auto;
  }
  .cabinet-info p {
    max-width: none;
  }
  .cabinet-specs {
    justify-content: center;
  }
  .symbols-gallery {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .wireframe-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .symbols-grid-rich {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .game-screen-item {
    width: 140px;
  }
}
