/* ═══════════════════════════════════════════════════════════════
   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;
  scrollbar-gutter: stable;
  -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; }

@media (max-width: 520px) {
  .gate {
    padding: 1.1rem;
  }

  .gate-card {
    padding: 2rem 1.5rem;
    border-radius: 1.35rem;
  }
}

/* ── 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: 6.25rem;
  height: auto;
  padding: 0.15rem;
  border-radius: 0.35rem;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.gate-owl {
  width: min(100%, 15rem);
  height: auto;
  padding: 0.2rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px var(--gold-glow));
  margin: 0 auto;
}

@media (max-width: 520px) {
  .gate-owl {
    width: min(100%, 12.5rem);
  }
}

.auth-card {
  width: min(100%, 25rem);
  text-align: center;
}

.auth-card__eyebrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.auth-card .hero-copy {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.auth-code-panel,
.auth-options-panel {
  margin-top: 1.35rem;
}

.auth-options-copy {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.auth-panel-link,
.auth-panel-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-panel-link {
  margin-top: 1rem;
}

.auth-panel-back {
  margin-bottom: 0.35rem;
}

.auth-panel-link:hover,
.auth-panel-back:hover {
  color: var(--gold);
}

.auth-provider-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.invite-code-form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.invite-code-input {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-code-submit {
  width: 100%;
}

/* Google Identity — Sign in with Google (brand guidelines) */
.google-sign-in-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: 'Roboto', var(--font-body), system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.google-sign-in-btn:hover:not(:disabled) {
  background: #f7f8f8;
  border-color: #747775;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.google-sign-in-btn:active:not(:disabled) {
  background: #eceeee;
}

.google-sign-in-btn:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.google-sign-in-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.google-sign-in-btn__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
}

.auth-provider-btn {
  width: 100%;
  margin: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-email-form {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.auth-email-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-email-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.auth-email-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.auth-email-input:focus {
  outline: 2px solid rgba(212, 168, 67, 0.45);
  outline-offset: 1px;
}

.auth-email-submit {
  width: 100%;
}

.invite-code-submit[disabled],
.invite-code-input:disabled,
.auth-email-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.auth-email-sent {
  margin-top: 0.25rem;
}

.auth-email-sent-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.auth-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-status[hidden] {
  display: none !important;
}

.auth-status--error {
  color: #fca5a5;
}

.auth-status--success {
  color: #86efac;
}

.auth-status--info {
  color: var(--text-muted);
}

.auth-request-access {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.auth-request-access__link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-request-access__link:hover {
  color: var(--gold-light);
  text-decoration-color: rgba(245, 212, 112, 0.45);
}

.access-request-modal[hidden] {
  display: none;
}

.access-request-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.access-request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 8, 0.78);
  backdrop-filter: blur(8px);
}

.access-request-modal__panel {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(212, 168, 67, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(12, 14, 24, 0.98), rgba(5, 6, 12, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  text-align: left;
}

.access-request-modal__kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-request-modal__panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.access-request-modal__lead {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.access-request-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 168, 67, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.access-request-form {
  display: grid;
  gap: 0.55rem;
}

.access-request-textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.access-request-textarea:focus {
  outline: 2px solid rgba(212, 168, 67, 0.45);
  outline-offset: 1px;
}

.access-request-modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.access-request-modal__actions .button {
  flex: 1;
  margin: 0;
}

.access-request-modal__status {
  font-size: 0.82rem;
  line-height: 1.45;
}

.access-request-modal__status--error {
  color: #fca5a5;
}

.access-request-success__copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.access-request-success__copy strong {
  color: var(--text);
  font-weight: 600;
}

.access-request-modal-open {
  overflow: hidden;
}

.denied-google-panel {
  margin-top: 1rem;
  text-align: left;
}

.denied-google-email {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.denied-google-email strong {
  color: var(--text);
}

.denied-request-message {
  margin-bottom: 0.75rem;
}

.denied-request-submit {
  width: 100%;
}

.auth-email-input[readonly] {
  opacity: 0.85;
  cursor: default;
}

.auth-provider-btn[disabled],
.google-sign-in-btn[disabled],
.auth-email-input:disabled,
.auth-email-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

/* ── 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;
  flex: 0 0 auto;
}

.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: clamp(5.25rem, 10vw, 6.75rem);
  height: auto;
  padding: 0.15rem;
  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;
  padding-bottom: 5rem;
}

/* ── 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 5.25rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  background-attachment: fixed;
}

.home-cabinet-drift {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.78;
  filter: saturate(1.12) contrast(1.06);
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.home-cabinet-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  width: max-content;
  transform: translate3d(0, -50%, 0);
  animation: home-cabinets-drift 128s linear infinite;
  will-change: transform;
}

.home-cabinet-track img {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 1;
  margin: 0;
  padding: 0;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55));
}

@keyframes home-cabinets-drift {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(-50%, -50%, 0); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.38), rgba(10,10,12,0.42)),
    radial-gradient(ellipse 800px 500px at 50% 20%, rgba(212,168,67,0.1), transparent);
  pointer-events: none;
}

.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%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  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;
}

.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: min(12rem, 40vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 1.75rem auto 1.5rem;
}

/* ── 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: 1rem 0 6rem;
}

.home-library-header {
  margin-bottom: 1.65rem;
}

.home-library-header .eyebrow {
  margin-bottom: 0.55rem;
}

.home-library-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.home-tag-panel {
  margin: 0 auto 1.65rem;
  padding: 0;
  border: 1px solid rgba(212,168,67,0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(212,168,67,0.1), transparent 32%),
    rgba(8,10,18,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.home-tag-panel-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.home-tag-panel-copy::-webkit-details-marker {
  display: none;
}

.home-tag-panel-copy:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.home-tag-panel-content {
  padding: 0 1rem 1rem;
}

.home-tag-panel-toggle {
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.home-tag-panel[open] .home-tag-panel-toggle {
  transform: rotate(225deg) translateY(-2px);
}

.home-tag-panel-title {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-tag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.game-tag-chip,
.game-tag-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: rgba(240,236,228,0.82);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.game-tag-chip {
  padding: 0.38rem 0.62rem;
}

button.game-tag-chip,
.game-tag-clear {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button.game-tag-chip:hover,
button.game-tag-chip:focus-visible,
.game-tag-clear:hover,
.game-tag-clear:focus-visible {
  border-color: rgba(245,212,112,0.64);
  color: var(--gold-light);
  background: rgba(212,168,67,0.13);
  transform: translateY(-1px);
}

button.game-tag-chip:focus-visible,
.game-tag-clear:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.game-tag-chip small {
  color: rgba(240,236,228,0.52);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.game-tag-chip.is-active {
  border-color: rgba(245,212,112,0.72);
  color: #090909;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.game-tag-chip.is-active small {
  color: rgba(9,9,9,0.62);
}

.game-tag-clear {
  padding: 0.62rem 1rem;
  border-color: rgba(255,111,141,0.42);
  color: #ffd1dc;
  background: rgba(96,15,36,0.34);
  box-shadow: 0 10px 24px rgba(255,111,141,0.08);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.game-tag-clear:hover,
.game-tag-clear:focus-visible {
  border-color: rgba(255,111,141,0.78);
  color: #fff1f5;
  background: rgba(132,20,48,0.62);
  box-shadow: 0 14px 30px rgba(255,111,141,0.14);
}

.game-tag-clear:focus-visible {
  outline-color: #ff9aaf;
}

.home-tag-empty {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 18rem;
  padding: 2rem;
  border: 1px dashed rgba(212,168,67,0.28);
  border-radius: 1rem;
  background: rgba(8,10,18,0.54);
}

.home-tag-empty span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-tag-empty h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin-top: 0.4rem;
}

.home-tag-empty p {
  max-width: 28rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.2rem;
}

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

.home-library-expand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.home-library-expand-btn {
  appearance: none;
  border: 1px solid rgba(212,168,67,0.34);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  color: var(--gold-light);
  background: rgba(212,168,67,0.08);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-library-expand-btn:hover,
.home-library-expand-btn:focus-visible {
  border-color: rgba(245,212,112,0.72);
  color: var(--gold);
  background: rgba(212,168,67,0.14);
  transform: translateY(-1px);
}

.home-library-expand-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.home-library-overflow {
  width: 100%;
}

.home-library-overflow[hidden] {
  display: none;
}

.home-library-overflow .poc-grid {
  margin-top: 0.15rem;
}

/* ── 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--tag-muted {
  border-color: rgba(255,255,255,0.075);
}

.poc-card--tag-muted::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,3,8,0.26), rgba(2,3,8,0.38)),
    rgba(0,0,0,0.18);
}

.poc-card--tag-muted:hover {
  border-color: rgba(212,168,67,0.22);
}

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

.poc-card--pending-approval {
  border-color: rgba(212, 168, 67, 0.34);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 67, 0.12);
}

.poc-card--ready-to-publish {
  border-color: rgba(245, 212, 112, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(245, 212, 112, 0.16),
    0 0 38px rgba(212, 168, 67, 0.08);
}

.poc-card-approval-badge {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.34);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.35;
}

.poc-card-approval-badge--ready {
  border-color: rgba(245, 212, 112, 0.62);
  background:
    linear-gradient(135deg, rgba(212, 168, 67, 0.24), rgba(5, 5, 7, 0.86));
  color: var(--gold);
  box-shadow: 0 10px 28px rgba(212, 168, 67, 0.14);
}

.game-approval-banner {
  margin-top: 1rem;
  max-width: 42rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 168, 67, 0.34);
  background: rgba(5, 5, 7, 0.62);
  color: var(--gold-light);
  font-size: 0.88rem;
  line-height: 1.45;
}

.like-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212,168,67,0.28);
  border-radius: 999px;
  color: rgba(240,236,228,0.82);
  background: rgba(5,5,7,0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.like-button:hover,
.like-button:focus-visible {
  transform: scale(1.04);
  border-color: rgba(245,212,112,0.72);
  color: var(--gold-light);
}

.like-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.like-button.is-liked {
  color: #ff6f8d;
  border-color: rgba(255,111,141,0.55);
  background: rgba(42,8,18,0.72);
}

.like-button.is-busy {
  opacity: 0.72;
  cursor: wait;
}

.like-button-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.like-button--hero {
  width: 46px;
  height: 46px;
}

.game-hero-like-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.game-hero-like-overlay .like-button {
  position: absolute;
  top: 1.15rem;
  right: clamp(1rem, 3vw, 2rem);
  left: auto;
  bottom: auto;
  pointer-events: auto;
}

.home-approach-section {
  width: 100%;
  margin: 0;
  padding: 0 0 5rem;
}

.home-approach-inner {
  display: grid;
  grid-template-columns: minmax(18rem, 0.34fr) minmax(26rem, 58rem);
  gap: clamp(1.75rem, 3vw, 3.25rem);
  align-items: center;
  width: 100%;
  padding: 2.5rem max(1.5rem, calc((100% - var(--content-max)) / 2 + 1.5rem));
  border-top: 1px solid rgba(212,168,67,0.14);
  border-bottom: 1px solid rgba(212,168,67,0.08);
  background:
    linear-gradient(135deg, rgba(100,200,255,0.05), transparent 42%),
    linear-gradient(180deg, rgba(8,10,18,0.92), rgba(4,5,12,0.96));
}

.home-approach-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.5rem 0 0.85rem;
}

.home-approach-copy .section-text {
  max-width: 38rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-approach-link {
  margin-top: 1.35rem;
}

.home-approach-visual {
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: min(44vh, 34rem);
  border: 1px solid rgba(100,200,255,0.16);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
}

.home-approach-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-analytics-button {
  appearance: none;
  border: 1px solid rgba(212,168,67,0.34);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  color: var(--gold-light);
  background: rgba(212,168,67,0.08);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.admin-analytics-button:hover,
.admin-analytics-button:focus-visible {
  border-color: rgba(245,212,112,0.72);
  color: var(--gold);
  background: rgba(212,168,67,0.14);
}

.admin-analytics-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,3,8,0.72);
  backdrop-filter: blur(8px);
}

.admin-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid rgba(212,168,67,0.22);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(12,14,24,0.98), rgba(5,6,12,0.98));
  box-shadow: 0 28px 80px rgba(0,0,0,0.48);
}

.admin-modal-kicker,
.admin-modal-panel h2,
.admin-panel-card h3 {
  font-family: var(--font-display);
}

.admin-modal-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-modal-panel h2 {
  margin-bottom: 1rem;
}

.admin-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border: 1px solid rgba(212,168,67,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.admin-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  color: var(--text-muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.admin-tab:hover,
.admin-tab:focus-visible {
  color: var(--gold-light);
  background: rgba(212,168,67,0.08);
}

.admin-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-tab.active,
.admin-tab[aria-selected="true"] {
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 8px 24px rgba(212,168,67,0.18);
}

.admin-tab-panel {
  min-width: 0;
}

.admin-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212,168,67,0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-stat-card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(212,168,67,0.14);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.02);
}

.admin-stat-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-stat-value {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold-light);
  font-size: 1.35rem;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.admin-modal-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 168, 67, 0.12);
  text-align: center;
}

.admin-form-fields {
  display: grid;
  gap: 0.45rem;
}

.admin-firestore-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-firestore-link:hover,
.admin-firestore-link:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
}

.admin-firestore-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.admin-panel-card {
  padding: 1rem;
  border: 1px solid rgba(212,168,67,0.12);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.02);
}

.admin-panel-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.admin-users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.admin-users-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
}

.admin-add-user-btn {
  flex: 0 0 auto;
}

.admin-add-user-form {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(212,168,67,0.14);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.025);
}

.admin-add-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.admin-user-status {
  margin-top: 0.75rem;
}

.admin-users-list {
  min-width: 0;
}

.admin-users-note {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-users-note strong {
  color: var(--gold-light);
}

.admin-users-table {
  display: grid;
  gap: 0.35rem;
  min-width: 760px;
}

.admin-users-list {
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.admin-users-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) 0.75fr 0.8fr 0.55fr 0.8fr minmax(5.5rem, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.65rem;
  background: rgba(0,0,0,0.18);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-users-row--header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-color: rgba(212,168,67,0.18);
  background: rgba(12,14,24,0.96);
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-user-cell-email strong {
  color: var(--text);
  font-weight: 800;
}

.admin-user-email-sub,
.admin-user-cell-date,
.admin-user-cell-source {
  color: var(--text-dim);
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(212,168,67,0.22);
  color: var(--gold-light);
  background: rgba(212,168,67,0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-user-badge--active {
  border-color: rgba(105, 214, 160, 0.42);
  color: #8ff0bd;
  background: rgba(105, 214, 160, 0.1);
}

.admin-user-badge--requested {
  border-color: rgba(116, 178, 255, 0.42);
  color: #9dccff;
  background: rgba(116, 178, 255, 0.1);
}

.admin-user-cell-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.admin-user-approve {
  appearance: none;
  min-height: 1.9rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(105, 214, 160, 0.38);
  border-radius: 999px;
  color: #8ff0bd;
  background: rgba(20, 74, 45, 0.32);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.admin-user-approve:hover,
.admin-user-approve:focus-visible {
  border-color: rgba(105, 214, 160, 0.72);
  color: #d9ffe9;
  background: rgba(27, 108, 64, 0.56);
  transform: translateY(-1px);
}

.admin-user-approve:focus-visible {
  outline: 2px solid #8ff0bd;
  outline-offset: 3px;
}

.admin-user-approve:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.admin-user-remove {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(255,111,141,0.34);
  border-radius: 999px;
  color: #ff9aaf;
  background: rgba(42,8,18,0.44);
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.admin-user-remove:hover,
.admin-user-remove:focus-visible {
  border-color: rgba(255,111,141,0.7);
  color: #ffd1dc;
  background: rgba(96,15,36,0.68);
  transform: translateY(-1px);
}

.admin-user-remove:focus-visible {
  outline: 2px solid #ff9aaf;
  outline-offset: 3px;
}

.admin-like-list,
.admin-event-list {
  display: grid;
  gap: 0.75rem;
  max-height: 48vh;
  overflow: auto;
}

.admin-like-item,
.admin-event-item {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.65rem;
  background: rgba(0,0,0,0.18);
}

.admin-like-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.admin-like-item-head span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-like-meta {
  margin: 0 0 0.55rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-liker-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-event-item {
  display: grid;
  gap: 0.18rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-event-item strong {
  color: var(--text);
}

.admin-loading,
.admin-error,
.admin-empty {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.admin-error {
  color: #ff8d8d;
}

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

.poc-card:hover .poc-card-image img {
  transform: 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-tags,
.game-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.poc-card-tags {
  margin: 0 0 0.75rem;
}

.poc-card-tags .game-tag-chip {
  max-width: 100%;
  color: rgba(240,236,228,0.66);
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.1);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.poc-card-tags .game-tag-chip.is-active {
  color: #090909;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.game-hero-tags {
  margin: 0 0 1rem;
}

.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);
}

.poc-card-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  min-height: 2.25rem;
}

.poc-card-publish-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,212,112,0.52);
  border-radius: 999px;
  padding: 0.46rem 0.8rem;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 8px 24px rgba(212,168,67,0.18);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, border-color 0.2s;
}

.poc-card-publish-button:hover,
.poc-card-publish-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(212,168,67,0.28);
}

.poc-card-publish-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.poc-card-publish-button--danger {
  border-color: rgba(255,111,141,0.42);
  color: #ffd1dc;
  background: linear-gradient(135deg, rgba(96,15,36,0.92), rgba(42,8,18,0.92));
  box-shadow: 0 8px 24px rgba(255,111,141,0.1);
}

.poc-card-publish-button--danger:hover,
.poc-card-publish-button--danger:focus-visible {
  border-color: rgba(255,111,141,0.72);
  box-shadow: 0 12px 32px rgba(255,111,141,0.18);
}

.poc-card-publish-button:disabled,
.poc-card-publish-button.is-busy {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

/* Card "Coming Soon" overlay */
.poc-card.coming-soon .poc-card-image::before {
  content: 'COMING SOON';
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 4;
  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);
}

.poc-card--guest-teaser {
  cursor: default;
  border-color: color-mix(in srgb, var(--teaser-color, var(--gold)) 34%, var(--border));
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    var(--surface);
}

.poc-card--guest-teaser:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--teaser-color, var(--gold)) 42%, var(--border));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.poc-card--guest-teaser .poc-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--teaser-color, var(--gold)) 26%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(3,4,8,0.08), rgba(3,4,8,0.66));
  pointer-events: none;
}

.poc-card--guest-teaser .poc-card-image img {
  filter: grayscale(0.92) saturate(0.45) brightness(0.72) contrast(1.08);
  opacity: 0.78;
}

.poc-card-mystery-art {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--teaser-color, var(--gold)) 26%, transparent), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, rgba(18,20,32,0.96), rgba(5,6,12,0.98));
}

.poc-card-mystery-art::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--teaser-color, var(--gold)) 34%, transparent);
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.72;
}

.poc-card-mystery-art::after {
  content: '?';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 8rem);
  color: color-mix(in srgb, var(--teaser-color, var(--gold)) 34%, transparent);
  opacity: 0.38;
}

.poc-card-mystery-art.is-visible {
  display: grid;
}

.poc-card-mystery-art span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid color-mix(in srgb, var(--teaser-color, var(--gold)) 48%, transparent);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(5,5,7,0.56);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.poc-card-teaser-stage {
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--teaser-color, var(--gold)) 24%, rgba(255,255,255,0.08));
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.025);
}

.poc-card-teaser-stage span {
  display: block;
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.poc-card-teaser-stage p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.poc-card--guest-teaser .poc-card-cta {
  color: var(--text-dim);
}

.poc-card--guest-teaser:hover .poc-card-cta {
  gap: 0.4rem;
}

.poc-card-filler {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  padding: 2rem;
  cursor: default;
  border-style: dashed;
  border-color: rgba(212,168,67,0.18);
  background:
    radial-gradient(circle at 50% 20%, rgba(212,168,67,0.08), transparent 44%),
    rgba(255,255,255,0.012);
  box-shadow: none;
  text-align: center;
}

.poc-card-filler:hover {
  transform: none;
  border-color: rgba(212,168,67,0.22);
  box-shadow: none;
}

.poc-card-filler-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(212,168,67,0.24);
  border-radius: 999px;
  color: rgba(245,212,112,0.62);
  background: rgba(212,168,67,0.05);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.poc-card-filler p {
  max-width: 11rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.game-hero--mystery .game-hero-bg {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(212,168,67,0.16), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, rgba(16,18,30,0.98), rgba(3,4,10,0.98));
}

.game-hero-mystery-art {
  display: grid;
  place-items: center;
  width: min(22rem, 54vw);
  aspect-ratio: 1;
  border: 1px solid rgba(212,168,67,0.24);
  border-radius: 999px;
  background: rgba(5,5,7,0.34);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.38),
    inset 0 0 70px rgba(212,168,67,0.06);
}

.game-hero-mystery-art span {
  color: rgba(245,212,112,0.7);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.08em;
}

/* ── 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;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.portal-footer-disclaimer {
  flex-basis: 100%;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.math-disclaimer {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0.75rem 0 0;
}

.paytable-caption {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.9;
}

.jurisdiction-note {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0.35rem 0 0;
}

.jurisdiction-picker {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.jurisdiction-picker label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.jurisdiction-picker select,
.denom-picker select,
.dfl-select {
  appearance: none;
  min-width: 12.5rem;
  background:
    linear-gradient(45deg, transparent 50%, rgba(245,212,112,0.9) 50%) calc(100% - 1.05rem) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(212,168,67,0.12), transparent 34%),
    linear-gradient(180deg, rgba(18,20,30,0.96), rgba(6,7,14,0.96));
  color: var(--text);
  border: 1px solid rgba(212,168,67,0.42);
  border-radius: 0.65rem;
  padding: 0.62rem 2.25rem 0.62rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.jurisdiction-picker select:hover,
.denom-picker select:hover,
.dfl-select:hover {
  border-color: rgba(245,212,112,0.68);
  box-shadow: 0 14px 40px rgba(0,0,0,0.38), 0 0 24px rgba(212,168,67,0.08), inset 0 1px 0 rgba(255,255,255,0.09);
}

.jurisdiction-picker select:focus-visible,
.denom-picker select:focus-visible,
.dfl-select:focus-visible {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.22), 0 16px 44px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.jurisdiction-picker select option,
.denom-picker select option,
.dfl-select option {
  color: var(--text);
  background: #0e0e14;
}

.jurisdiction-picker select option:disabled,
.denom-picker select option:disabled,
.dfl-select option:disabled {
  color: rgba(240,236,228,0.36);
  background: #0e0e14;
}

/* ── Per-denom game forms ──────────────────────────────────────── */
.denom-picker {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.denom-picker label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.game-form-band {
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0.85rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.denom-picker {
  width: 100%;
}

.denom-picker select {
  width: 100%;
  min-width: 0;
}

.game-form-details {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(18,20,30,0.72), rgba(8,9,16,0.72));
  overflow: hidden;
}

.game-form-details-summary {
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.game-form-details-summary::after {
  margin-left: auto;
}

.game-form-details-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.game-form-details-body {
  padding: 0 0.85rem 0.85rem;
}

.feel-callout-tag {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  color: #0c0a04;
  background: linear-gradient(135deg, #f5d470, #d4a843);
}

.feel-callout-tag--frequent-small {
  background: linear-gradient(135deg, #8fe3a6, #4fb477);
}

.feel-callout-tag--jackpot-chase {
  background: linear-gradient(135deg, #ff9d6c, #ff6b6b);
  color: #fff;
}

.feel-callout-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Game forms comparison table */
.game-forms-table th[scope="row"] {
  text-align: left;
  white-space: nowrap;
}

.game-forms-table th.is-active,
.game-forms-table td.is-active {
  background: rgba(212,168,67,0.12);
  color: var(--text);
}

.game-forms-table thead th.is-active {
  border-bottom: 2px solid var(--gold);
}

.progressive-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  color: #0c0a04;
  background: linear-gradient(135deg, #f5d470, #d4a843);
}

/* Volatility dot meter */
.vol-meter {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
}

.vol-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(240,236,228,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.vol-dot.is-on {
  background: linear-gradient(135deg, #f5d470, #d4a843);
}

.section-header .jurisdiction-picker {
  margin-top: 0.8rem;
  align-items: center;
}

.game-stats-bar-inner .jurisdiction-picker {
  justify-content: 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); }

/* ── Sticky Disclosures ───────────────────────────────────────── */

.sticky-disclosure {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0;
  pointer-events: none;
}

.sticky-disclosure-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.48rem max(1rem, env(safe-area-inset-left)) calc(0.48rem + env(safe-area-inset-bottom));
  border: 1px solid rgba(212,168,67,0.18);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(10,12,22,0.88), rgba(4,5,12,0.9)),
    rgba(5,5,7,0.88);
  box-shadow: 0 -10px 36px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  pointer-events: auto;
}

.sticky-disclosure p {
  display: flex;
  align-items: flex-start;
  flex: 1 1 38rem;
  gap: 0.5rem;
  max-width: var(--content-max);
  margin: 0;
  color: rgba(240,236,228,0.76);
  font-size: 0.72rem;
  line-height: 1.35;
}

.sticky-disclosure-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(190,195,204,0.32);
  border-radius: 0.42rem;
  color: rgba(214,218,226,0.76);
  background: rgba(160,166,178,0.1);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.sticky-disclosure p a,
.sticky-disclosure p button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.12rem;
  margin-left: 0.45rem;
  color: var(--gold-light);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 0.2s;
}

.sticky-disclosure p a:hover,
.sticky-disclosure p button:hover,
.sticky-disclosure p a:focus-visible,
.sticky-disclosure p button:focus-visible {
  color: var(--gold);
}

.sticky-disclosure p a:focus-visible,
.sticky-disclosure p button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sticky-disclosure .jurisdiction-picker {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.sticky-disclosure .jurisdiction-picker label {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.sticky-disclosure .jurisdiction-picker select {
  min-width: 9.75rem;
  padding: 0.42rem 1.75rem 0.42rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  background:
    linear-gradient(45deg, transparent 50%, rgba(245,212,112,0.9) 50%) calc(100% - 0.85rem) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(212,168,67,0.1), transparent 34%),
    linear-gradient(180deg, rgba(18,20,30,0.96), rgba(6,7,14,0.96));
}

/* ══════════════════════════════════════════════════════════════
   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 {
  height: 88vh;
  min-height: 480px;
  max-height: none;
}

.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.92) 25%,
      rgba(5,5,7,0.6) 50%,
      rgba(5,5,7,0.15) 70%,
      transparent 100%
    ),
    linear-gradient(0deg,
      var(--bg) 0%,
      rgba(5,5,7,0.4) 20%,
      transparent 50%
    );
}

.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;
}

.game-simulator-actions {
  margin-top: 1.35rem;
}

.game-simulator-btn {
  min-height: 2.85rem;
  padding-inline: 1.35rem;
  box-shadow: 0 10px 28px rgba(212,168,67,0.22);
}

.game-simulator-btn-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.simulator-modal[hidden] {
  display: none;
}

.simulator-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.simulator-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,3,8,0.72);
  backdrop-filter: blur(8px);
}

.simulator-modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(212,168,67,0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(12,14,24,0.98), rgba(5,6,12,0.98));
  box-shadow: 0 28px 80px rgba(0,0,0,0.48);
}

.simulator-modal-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simulator-modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.simulator-modal-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.simulator-modal-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.55;
}

.simulator-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.simulator-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212,168,67,0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

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

.game-stats-primary {
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0.85rem 0 0.65rem;
}

.game-stats-primary-item {
  min-width: 0;
  padding: 0.35rem 0.85rem;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.game-stats-primary-item:first-child {
  border-left: none;
}

.game-stats-primary-label {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.28rem;
}

.game-stats-primary-value {
  display: block;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
}

.game-stats-primary-value .jur-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  max-width: 100%;
}

/* Shared disclosure (accordion) pattern */
.dfl-disclosure {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12);
}

.dfl-disclosure-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.dfl-disclosure-summary::-webkit-details-marker {
  display: none;
}

.dfl-disclosure-summary::after {
  content: '+';
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.dfl-disclosure[open] > .dfl-disclosure-summary::after {
  content: '−';
}

.dfl-disclosure-summary:hover {
  color: var(--text-muted);
}

.game-stats-secondary {
  width: min(var(--content-narrow), calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  padding: 0 0 0.85rem;
}

.game-stats-secondary-item {
  min-width: 0;
  text-align: center;
}

.game-stats-secondary-label {
  display: block;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.22rem;
}

.game-stats-secondary-value {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(212, 168, 67, 0.92);
  line-height: 1.25;
}

.game-stats-secondary-value .jur-flag-mark {
  min-width: 1.15rem;
  height: 0.95rem;
  font-size: 0.48rem;
}

@media (max-width: 768px) {
  .game-stats-primary {
    width: calc(100% - 1.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.65rem 0 0.5rem;
  }

  .game-stats-primary-item {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-left: none;
  }

  .game-stats-primary-item:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,0.08);
  }

  .game-stats-primary-item:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .game-stats-secondary {
    width: calc(100% - 1.5rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
    text-align: left;
  }

  .game-stats-secondary-item {
    text-align: left;
  }

  .game-form-band {
    width: calc(100% - 1.5rem);
  }
}

/* Legacy stat classes used in approach page */
.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 {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}

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

.mechanic-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.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);
}

.mechanics-grid--contain .mechanic-img {
  aspect-ratio: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070f;
}

.mechanics-grid--contain .mechanic-img img {
  object-fit: contain;
}

.mechanics-grid--contain .mechanic-card:hover .mechanic-img img {
  transform: scale(1.02);
}

.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;
}

/* Gamified Key Features */
.feature-scroll-section {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5rem max(2rem, calc((100vw - 1180px) / 2)) 5.5rem;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(3,6,16,0.42), rgba(3,6,16,0.52)),
    var(--feature-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.feature-scroll-section::before,
.feature-scroll-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 3;
  background: var(--bg);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.feature-scroll-section::before {
  top: -1px;
  transform: rotate(180deg);
}

.feature-scroll-section::after {
  bottom: -1px;
}

.feature-scroll-section::before,
.feature-scroll-section::after {
  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");
}

.feature-bg-layer {
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image:
    linear-gradient(rgba(3,6,16,0.34), rgba(3,6,16,0.46)),
    var(--feature-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(3px) saturate(1.12);
}

.feature-scroll-section::selection {
  background: rgba(212,168,67,0.35);
}

.feature-scroll-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-scroll-header {
  max-width: 46rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(4,7,18,0.82), rgba(4,7,18,0.68)),
    rgba(4,7,18,0.78);
  box-shadow: 0 22px 80px rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-scroll-header .section-text {
  color: rgba(246,248,255,0.86);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.feature-rail-nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.feature-rail-arrow {
  appearance: none;
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.46);
  color: rgba(255,255,255,0.9);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 24px rgba(212,168,67,0.08);
  pointer-events: auto;
  transform: translateY(-50%);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.feature-rail-prev {
  left: clamp(1rem, 3vw, 2.25rem);
}

.feature-rail-next {
  right: clamp(1rem, 3vw, 2.25rem);
}

.feature-rail-arrow:hover,
.feature-rail-arrow:focus-visible {
  border-color: rgba(212,168,67,0.62);
  color: var(--gold);
  background: rgba(212,168,67,0.12);
  transform: translateY(-50%) scale(1.04);
}

.feature-rail-arrow:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.feature-rail-arrow:disabled {
  opacity: 0.36;
  cursor: default;
  pointer-events: none;
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38);
  background: rgba(0,0,0,0.24);
  transform: translateY(-50%);
}

.feature-rail-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.feature-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(380px, 460px);
  align-items: start;
  gap: 1rem;
  overflow-x: auto;
  width: 100%;
  margin-left: 0;
  padding: 0.35rem max(2rem, calc(50vw - 230px)) 2.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(2rem, calc(50vw - 230px));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.feature-track::before {
  content: '';
  position: absolute;
  top: 3.4rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.42), transparent);
  pointer-events: none;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-node {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  width: 100%;
  min-height: 430px;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid rgba(212,168,67,0.18);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,168,67,0.12), transparent 38%),
    linear-gradient(180deg, rgba(8,12,28,0.88), rgba(3,5,14,0.94));
  box-shadow: 0 22px 70px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: pointer;
  transform: scale(0.94);
  transform-origin: top center;
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, opacity 0.25s;
  backdrop-filter: blur(10px);
  opacity: 0.82;
}

.feature-node:hover,
.feature-node:focus-visible {
  border-color: rgba(212,168,67,0.54);
  transform: scale(0.98);
  box-shadow: 0 28px 86px rgba(0,0,0,0.52), 0 0 34px rgba(212,168,67,0.12);
}

.feature-node.is-centered {
  opacity: 1;
  transform: scale(1.06);
  border-color: rgba(212,168,67,0.48);
  box-shadow: 0 30px 92px rgba(0,0,0,0.56), 0 0 42px rgba(212,168,67,0.14);
}

.feature-node.is-centered:hover,
.feature-node.is-centered:focus-visible {
  transform: scale(1.075);
}

.feature-node:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.feature-node-index {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(0,0,0,0.54);
  border: 1px solid rgba(212,168,67,0.28);
  box-shadow: 0 8px 22px rgba(0,0,0,0.34);
}

.feature-node-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: #05070f;
  line-height: 0;
}

.feature-node-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.feature-node:hover .feature-node-img img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.feature-node-copy {
  flex: 1 1 auto;
  padding: 1.15rem;
}

.feature-node-icon {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.feature-node h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.feature-node p {
  color: rgba(238,242,255,0.78);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* 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/favicon-48.webp') 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);
  }

  .poc-card-filler {
    display: none;
  }
}

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

  .hero-divider {
    margin-top: 1.6rem;
  }

  .poc-section {
    width: min(var(--content-max), calc(100% - 1.5rem));
    padding: 0.75rem 0 4.5rem;
  }

  .home-library-header {
    margin-bottom: 1.1rem;
  }

  .home-library-header .eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.62rem;
  }

  .home-library-header h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .section-header .jurisdiction-picker {
    margin-top: 0.6rem;
  }

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

  .nav-links { display: none; }

  .nav-inner { padding: 0; }

  .game-stats-primary {
    width: calc(100% - 1.5rem);
    justify-content: flex-start;
    padding: 0.72rem 0 0.58rem;
  }

  .game-stats-primary-item {
    flex: 0 0 auto;
    min-width: 5.6rem;
    padding: 0 0.75rem;
    text-align: left;
  }

  .game-stats-primary-value .jur-flag {
    justify-content: flex-start;
  }

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

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

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

  .admin-modal-panel {
    padding: 1.1rem;
  }

  .admin-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .admin-tab {
    flex: 1 1 0;
  }

  .admin-users-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-add-user-actions {
    flex-direction: column;
  }

  .admin-add-user-actions .button {
    width: 100%;
  }
}

@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;
}

/* Concepts Gallery (screens + cabinet renders) */
.concepts-gallery {
  columns: 240px;
  column-gap: 1rem;
}

.concept-item {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0 0 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(212,168,67,0.08), transparent 45%),
    #05070f;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 14px 44px rgba(0,0,0,0.34);
  cursor: zoom-in;
  break-inside: avoid;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.concept-item:hover,
.concept-item:focus-visible {
  border-color: rgba(212,168,67,0.36);
  box-shadow: 0 18px 58px rgba(0,0,0,0.48), 0 0 30px rgba(212,168,67,0.1);
  transform: translateY(-3px);
}

.concept-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.concept-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 0.35rem;
  transition: transform 0.45s var(--ease-out);
}

.concept-item:hover img {
  transform: scale(1.018);
}

/* ══════════════════════════════════════════════════════════════
   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);
  }
  .feature-scroll-section {
    padding-inline: 1rem;
  }
  .feature-scroll-header {
    padding: 1rem;
    border-radius: 1rem;
  }
  .feature-track {
    grid-auto-columns: 86vw;
    padding-inline: max(1rem, calc(50vw - 43vw));
    scroll-padding-inline: max(1rem, calc(50vw - 43vw));
  }
  .feature-rail-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.85rem;
  }
  .feature-rail-prev {
    left: 0.65rem;
  }
  .feature-rail-next {
    right: 0.65rem;
  }
  .feature-node {
    min-height: 400px;
  }
  .concepts-gallery {
    columns: 190px;
    column-gap: 0.75rem;
  }
  .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;
  }
  .concepts-gallery {
    columns: 1;
  }
}

/* ── Lightbox ─────────────────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  appearance: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.48);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(212,168,67,0.62);
  background: rgba(212,168,67,0.12);
  color: var(--gold);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  transition: transform 0.25s ease;
}
.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

/* ── Disclosure Modal ─────────────────────────────────────────── */

.disclosure-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.disclosure-modal[hidden] {
  display: none;
}

.disclosure-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.disclosure-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(212,168,67,0.16), transparent 30%),
    rgba(0,0,0,0.84);
  backdrop-filter: blur(10px);
}

.disclosure-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 94vw);
  max-height: min(760px, 90vh);
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(212,168,67,0.24);
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(18,20,32,0.97), rgba(6,7,14,0.98)),
    var(--surface);
  box-shadow: 0 34px 110px rgba(0,0,0,0.74), 0 0 56px rgba(212,168,67,0.1);
  outline: none;
}

.disclosure-modal-kicker {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.disclosure-modal-panel h2 {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin-bottom: 1.35rem;
}

.disclosure-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.disclosure-modal-card {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(212,168,67,0.1), transparent 34%),
    rgba(255,255,255,0.035);
}

.disclosure-modal-card h3 {
  margin-bottom: 0.45rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.disclosure-modal-card p {
  color: rgba(240,236,228,0.76);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.disclosure-modal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(212,168,67,0.32);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(212,168,67,0.08);
  font-size: 0.82rem;
  font-weight: 900;
  transition: border-color 0.2s, background 0.2s;
}

.disclosure-modal-actions a:hover,
.disclosure-modal-actions a:focus-visible {
  border-color: rgba(212,168,67,0.66);
  background: rgba(212,168,67,0.14);
}

.disclosure-modal-close {
  appearance: none;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  background: rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.disclosure-modal-close:hover,
.disclosure-modal-close:focus-visible {
  border-color: rgba(212,168,67,0.62);
  color: var(--gold);
  background: rgba(212,168,67,0.12);
}

.disclosure-modal-close:focus-visible,
.disclosure-modal-actions a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.disclosure-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .shell {
    padding-bottom: calc(8.5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .shell {
    padding-bottom: calc(8.5rem + env(safe-area-inset-bottom));
  }

  .sticky-disclosure {
    padding: 0;
  }

  .sticky-disclosure-inner {
    width: 100%;
    padding: 0.48rem 0.75rem calc(0.48rem + env(safe-area-inset-bottom));
    gap: 0.42rem 0.75rem;
  }

  .sticky-disclosure p {
    flex-basis: 100%;
    font-size: 0.66rem;
  }

  .sticky-disclosure .jurisdiction-picker {
    width: 100%;
    justify-content: flex-start;
  }

  .sticky-disclosure .jurisdiction-picker select {
    min-width: 0;
    width: min(100%, 13rem);
  }

  .disclosure-modal {
    padding: 0.85rem;
  }

  .disclosure-modal-panel {
    max-height: 88vh;
    padding: 1.25rem;
  }

  .disclosure-modal-grid {
    grid-template-columns: 1fr;
  }

  .disclosure-modal-panel h2 {
    padding-right: 2.5rem;
  }

  .home-approach-inner {
    grid-template-columns: 1fr;
    padding: 1.75rem 1rem 2rem;
  }

  .home-approach-visual {
    min-height: 200px;
  }

  .admin-modal-summary,
  .admin-modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-modal {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .admin-modal-panel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    padding-top: calc(1rem + env(safe-area-inset-top));
  }

  .user {
    gap: 0.45rem;
  }

  #user-email {
    display: none;
  }

  .like-button {
    width: 38px;
    height: 38px;
  }
}

/* ── Symbol / Feature Gallery Modal ───────────────────────── */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(212,168,67,0.12), transparent 32%),
    rgba(0,0,0,0.84);
  backdrop-filter: blur(10px);
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  max-height: min(760px, 90vh);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(212,168,67,0.22);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(19,21,32,0.96), rgba(7,8,14,0.98)),
    var(--surface);
  box-shadow: 0 30px 100px rgba(0,0,0,0.72), 0 0 50px rgba(212,168,67,0.08);
  outline: none;
  touch-action: pan-y;
}

.gallery-modal-media {
  min-height: 280px;
  border-radius: 0.9rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(212,168,67,0.08), transparent 45%),
    #05070f;
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-modal-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.gallery-modal-copy {
  padding: 0.25rem 2.4rem 0.25rem 0;
}

.gallery-modal-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.gallery-modal-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.gallery-modal-role {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gallery-modal-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.gallery-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.gallery-pay {
  min-width: 64px;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: rgba(212,168,67,0.09);
  border: 1px solid rgba(212,168,67,0.18);
  text-align: center;
}

.gallery-pay span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.gallery-pay strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.gallery-modal-count {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-modal-close,
.gallery-modal-nav {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.38);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.gallery-modal-close:hover,
.gallery-modal-nav:hover,
.gallery-modal-close:focus-visible,
.gallery-modal-nav:focus-visible {
  border-color: rgba(212,168,67,0.55);
  background: rgba(212,168,67,0.12);
}

.gallery-modal-close:focus-visible,
.gallery-modal-nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 54px;
  border-radius: 999px;
  font-size: 2rem;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
}

.gallery-modal-prev {
  left: 0.8rem;
}

.gallery-modal-next {
  right: 0.8rem;
}

.gallery-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .gallery-modal {
    padding: 0.85rem;
  }

  .gallery-modal-panel {
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding: 1rem 1rem 4.6rem;
  }

  .gallery-modal-media {
    min-height: 220px;
  }

  .gallery-modal-copy {
    padding: 0;
  }

  .gallery-modal-nav {
    top: auto;
    bottom: 0.9rem;
    transform: none;
    width: 48px;
    height: 48px;
    border-color: rgba(212,168,67,0.65);
    color: var(--gold);
    font-size: 2.15rem;
  }

  .gallery-modal-prev {
    left: calc(50% - 58px);
  }

  .gallery-modal-next {
    right: calc(50% - 58px);
  }
}

/* ── Cabinet Carousel ──────────────────────────────────────── */

.cabinet-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.cabinet-carousel .carousel-slide {
  --carousel-slide-rest: translate3d(0, 0, 0);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0;
  transform: var(--carousel-slide-rest);
  filter: blur(10px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform, filter;
}
.cabinet-carousel .carousel-slide.active {
  opacity: 1;
  transform: var(--carousel-slide-rest);
  filter: blur(0);
  pointer-events: auto;
}

.cabinet-carousel .carousel-slide.enter-right {
  opacity: 0;
  transform: translate3d(9%, 0, 0) scale(0.985);
  filter: blur(18px);
}

.cabinet-carousel .carousel-slide.enter-left {
  opacity: 0;
  transform: translate3d(-9%, 0, 0) scale(0.985);
  filter: blur(18px);
}

.cabinet-carousel .carousel-slide.enter-right.active,
.cabinet-carousel .carousel-slide.enter-left.active {
  opacity: 1;
  transform: var(--carousel-slide-rest);
  filter: blur(0);
}

.cabinet-carousel .carousel-slide.exit-left {
  opacity: 0;
  transform: translate3d(-8%, 0, 0) scale(1.025);
  filter: blur(18px);
}

.cabinet-carousel .carousel-slide.exit-right {
  opacity: 0;
  transform: translate3d(8%, 0, 0) scale(1.025);
  filter: blur(18px);
}

.cabinet-carousel-controls {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--content-narrow)) / 2));
  bottom: 2.25rem;
  z-index: 4;
  width: 286px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.32);
}

.carousel-dots {
  display: flex;
  flex: 0 0 88px;
  gap: 0.1rem;
}
.carousel-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

.carousel-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.carousel-dot:hover::before {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.2);
}

.carousel-dot.active::before {
  background: var(--gold, #d4a843);
  border-color: var(--gold, #d4a843);
  transform: scale(1.2);
}

.carousel-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 96px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-nav {
  display: flex;
  flex: 0 0 68px;
  gap: 0.3rem;
}
.carousel-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover {
  border-color: var(--gold, #d4a843);
  color: var(--gold, #d4a843);
  background: rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .game-hero--cabinet .game-hero-content {
    padding-bottom: 5.75rem;
  }

  .game-hero--cabinet .game-hero-bg {
    inset: 0;
  }

  .game-hero--cabinet .game-hero-bg::after {
    background:
      linear-gradient(0deg,
        var(--bg) 0%,
        rgba(5,5,7,0.68) 34%,
        rgba(5,5,7,0.18) 62%,
        transparent 100%
      );
  }

  .game-hero--cabinet .cabinet-carousel .carousel-slide {
    --carousel-slide-rest: translateX(1vw) scale(1.02);
    object-fit: cover;
    object-position: 66% center;
    transform-origin: center;
  }

  .cabinet-carousel-controls {
    right: 1rem;
    bottom: 1rem;
    width: 270px;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
  }

  .carousel-label {
    max-width: 76px;
    font-size: 0.7rem;
  }

  .carousel-dots {
    flex-basis: 88px;
  }

  .carousel-nav {
    flex-basis: 62px;
  }

  .carousel-arrow {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cabinet-track {
    animation: none;
    transform: translate3d(-10%, -50%, 0);
  }

  .cabinet-carousel .carousel-slide {
    transition: opacity 0.25s ease;
    transform: var(--carousel-slide-rest) !important;
    filter: blur(0) !important;
  }

  .feature-track {
    scroll-behavior: auto;
  }

  .feature-node {
    transform: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  }

  .feature-node:hover,
  .feature-node:focus-visible,
  .feature-node.is-centered,
  .feature-node.is-centered:hover,
  .feature-node.is-centered:focus-visible {
    transform: none !important;
  }

  .feature-node-img img,
  .feature-node:hover .feature-node-img img {
    transform: none !important;
    transition: none;
  }

  .feature-rail-arrow {
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }

  .feature-rail-arrow:hover,
  .feature-rail-arrow:focus-visible {
    transform: translateY(-50%);
  }
}

/* ── Paytable ────────────────────────────────────────────────── */
.paytable {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.paytable-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #d4a843);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212,168,67,0.2);
}

.paytable-symbols {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.paytable-row {
  appearance: none;
  display: grid;
  width: 100%;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 1rem;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.paytable-row:hover,
.paytable-row:focus-visible {
  border-color: rgba(212,168,67,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
.paytable-row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.paytable-row--special {
  grid-template-columns: 64px 1fr 1fr;
  background: rgba(212,168,67,0.04);
  border-color: rgba(212,168,67,0.15);
}

.paytable-sym {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.paytable-sym img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.paytable-info {
  min-width: 0;
}
.paytable-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #fff);
}
.paytable-role {
  font-size: 0.75rem;
  color: var(--text-muted, rgba(255,255,255,0.5));
  margin-top: 0.15rem;
}

.paytable-pays {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.paytable-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}
.pay-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255,255,255,0.4));
  letter-spacing: 0.05em;
}
.pay-count::after {
  content: '×';
}
.pay-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold, #d4a843);
  font-variant-numeric: tabular-nums;
}

.paytable-desc {
  font-size: 0.85rem;
  color: var(--text-muted, rgba(255,255,255,0.7));
  font-style: italic;
}

/* ── Game Rules Panel ────────────────────────────────────────── */
.how-to-section {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 5rem max(2rem, calc((100vw - 1100px) / 2)) 5.5rem;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(3,6,16,0.42), rgba(3,6,16,0.52)),
    var(--how-to-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.how-to-section::before,
.how-to-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 3;
  background: var(--bg);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.how-to-section::before {
  top: -1px;
  transform: rotate(180deg);
  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");
}

.how-to-section::after {
  bottom: -1px;
  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");
}

.how-to-bg-layer {
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image:
    linear-gradient(rgba(3,6,16,0.34), rgba(3,6,16,0.46)),
    var(--how-to-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(3px) saturate(1.1);
}

.how-to-section::selection {
  background: rgba(212,168,67,0.35);
}

.how-to-section .how-to-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(4,7,18,0.82), rgba(4,7,18,0.7)),
    rgba(4,7,18,0.78);
  box-shadow: 0 26px 90px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.how-to-section .section-text {
  color: rgba(246,248,255,0.88);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.how-to-section .rules-panel {
  background: rgba(8, 12, 28, 0.78);
  border-color: rgba(212,168,67,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 24px 80px rgba(0,0,0,0.34);
  backdrop-filter: blur(12px);
}

.rules-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  overflow: hidden;
}

.rule-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(2,5,16,0.2);
}
.rule-item:last-child {
  border-bottom: none;
}
.rule-item:hover {
  background: rgba(255,255,255,0.045);
}

.rule-item--no-icon {
  grid-template-columns: 1fr;
}

.rule-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,168,67,0.16), transparent 68%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(212,168,67,0.18);
  overflow: hidden;
}

.rule-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.42));
}

.rule-copy {
  min-width: 0;
}

.rule-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold, #d4a843);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.rule-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(238,242,255,0.84);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* ── Responsive Paytable ─────────────────────────────────────── */
@media (max-width: 640px) {
  .how-to-section {
    padding-inline: 1rem;
  }

  .how-to-section .how-to-inner {
    padding: 1rem;
    border-radius: 1rem;
  }

  .how-to-section .section-text {
    color: rgba(246,248,255,0.9);
  }

  .paytable-row {
    grid-template-columns: 48px 1fr;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
  }
  .paytable-sym {
    width: 48px;
    height: 48px;
  }
  .paytable-pays {
    grid-column: 1 / -1;
    justify-content: space-around;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .paytable-desc {
    grid-column: 1 / -1;
  }
  .paytable-row--special {
    grid-template-columns: 48px 1fr;
  }
  .rule-item {
    grid-template-columns: 42px 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  .rule-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}


/* ── Jurisdiction Flag Tooltips ────────────────────────────── */
.jur-flag {
  position: relative;
  cursor: help;
  white-space: nowrap;
  vertical-align: baseline;
}

.jur-flag-value {
  display: inline-block;
}

.jur-flag-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.42);
  background: rgba(212, 168, 67, 0.12);
  color: rgba(240, 230, 211, 0.88);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  flex: 0 0 auto;
}

.jur-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 11rem;
  max-width: min(18rem, 90vw);
  background: rgba(18, 18, 24, 0.98);
  color: var(--text-primary, #f0e6d3);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.65rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.42);
  z-index: 120;
  text-align: left;
}

.jur-tip-heading {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim, rgba(240,230,211,0.58));
}

.jur-tip-copy {
  margin: 0;
  line-height: 1.45;
}

.jur-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.jur-tip-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.jur-tip-item.is-active .jur-tip-code,
.jur-tip-item.is-active .jur-tip-val {
  color: var(--gold, #d4a843);
}

.jur-tip-code {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,230,211,0.62);
}

.jur-tip-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary, #f0e6d3);
  text-align: right;
}

@media (max-width: 600px) {
  .jur-tip {
    left: 0;
    transform: translateY(4px);
    max-width: min(16rem, calc(100vw - 2rem));
  }

  .jur-flag:focus .jur-tip,
  .jur-flag:hover .jur-tip {
    transform: translateY(0);
  }

  .jur-tip::after { left: 16px; transform: none; }
}

.jur-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(18, 18, 24, 0.98);
}

.jur-flag:hover .jur-tip,
.jur-flag:focus .jur-tip,
.jur-flag:focus-within .jur-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Ensure tooltip doesn't get clipped on cards */
.poc-card-stats { overflow: visible; }
.poc-stat { overflow: visible; }
.game-stats-primary-item { overflow: visible; }

/* ═══════════════════════════════════════════════════════════════
   Legal Agreement Gate
   ═══════════════════════════════════════════════════════════════ */

.legal-card {
  max-width: 720px;
  text-align: left;
}

.legal-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  text-align: center;
}

.legal-card__title {
  font-size: 1.75rem;
  margin-top: 0.5rem;
  text-align: center;
}

.legal-card__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-align: center;
}

.legal-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.legal-scroll::-webkit-scrollbar {
  width: 6px;
}

.legal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.legal-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

.legal-scroll h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.25rem 0;
  text-align: center;
}

.legal-scroll h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-light);
  margin: 1.25rem 0 0.4rem 0;
  letter-spacing: 0.02em;
}

.legal-scroll p {
  margin: 0 0 0.6rem 0;
}

.legal-scroll .legal-meta {
  text-align: center;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.legal-scroll .legal-version {
  text-align: center;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-size: 0.75rem;
}

.legal-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.legal-checkbox-label:hover {
  border-color: var(--border-hover);
}

.legal-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.legal-agree-button {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-agree-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 1.25rem;
  }
  .legal-scroll {
    max-height: 300px;
    padding: 1rem;
    font-size: 0.78rem;
  }
  .legal-card__title {
    font-size: 1.35rem;
  }
}
