/* =========================================================
   NIBCARD E GAMES — Mobile-First · High-Bevel Edition
   Palette:
     --ink       #0F0D0D  deep charcoal
     --ink-2     #1C1818  panel dark
     --ink-3     #252020  elevated panel
     --cream     #FAF5F7  soft rose-cream
     --ash       #E8DDE2  warm light grey
     --ember     #EB268E  brand hot-pink
     --ember-hi  #FF6BBB  highlight pink
     --ember-lo  #A8145F  shadow pink
     --ember-2   #FF4FA6  brighter pink
     --gold      #FFAEDB  light pink tint
     --teal      #1F8A82
     --plum      #B85C7D
   Type:
     display → 'Fraunces'
     body    → 'Manrope'
     mono/ui → 'Space Mono'
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  --ink:       #0F0D0D;
  --ink-2:     #1C1818;
  --ink-3:     #252020;
  --cream:     #FAF5F7;
  --ash:       #E8DDE2;
  --ember:     #EB268E;
  --ember-hi:  #FF6BBB;
  --ember-lo:  #A8145F;
  --ember-2:   #FF4FA6;
  --gold:      #FFAEDB;
  --teal:      #1F8A82;
  --plum:      #B85C7D;
  --line:      rgba(235,38,142,0.18);
  --line-sub:  rgba(255,255,255,0.06);
  --shadow:    0 24px 60px -16px rgba(0,0,0,0.8);
  --glow-pink: 0 0 40px rgba(235,38,142,0.45);
  --radius:    20px;
  --radius-lg: 28px;
  --maxw:      1180px;
  --nav-h:     68px;

  /* ── Bevel system ── */
  --bevel-hi:  rgba(255,255,255,0.22);
  --bevel-lo:  rgba(0,0,0,0.45);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }
body {
  background: var(--ink);
  color: var(--ash);
  font-family: 'Manrope', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}
h1 { font-size: clamp(2.4rem, 10vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.5rem); }
p  { margin-bottom: 1em; }
a  { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ember-2); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

/* ── Eyebrow ── */
.eyebrow {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 1.6em; height: 2px;
  background: var(--ember);
  display: inline-block;
  border-radius: 2px;
}

/* ── Layout ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
@media (min-width: 480px)  { .wrap { padding: 0 24px; } }
@media (min-width: 640px)  { .wrap { padding: 0 32px; } }
@media (min-width: 1024px) { .wrap { padding: 0 48px; } }

section { padding: 56px 0; position: relative; }
@media (min-width: 480px)  { section { padding: 72px 0; } }
@media (min-width: 768px)  { section { padding: 100px 0; } }

/* ══════════════════════════════════════════
   GRAIN OVERLAY
══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.55;
}

/* ══════════════════════════════════════════
   HERO BACKGROUND ORBS
══════════════════════════════════════════ */
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute; top: -25%; right: -15%;
  width: 65vw; height: 65vw;
  max-width: 650px; max-height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,38,142,0.28) 0%, transparent 68%);
  animation: orb-float 9s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute; bottom: -15%; left: -8%;
  width: 45vw; height: 45vw;
  max-width: 450px; max-height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,138,130,0.22) 0%, transparent 70%);
  animation: orb-float 11s ease-in-out infinite alternate-reverse;
}
@keyframes orb-float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-50px) scale(1.1); }
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(15,13,13,0.88);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-nav .wrap {
  display: flex; align-items: center;
  justify-content: space-between; height: 100%;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 0.95rem; color: var(--cream);
  letter-spacing: -0.02em; flex-shrink: 0;
  min-width: 0;
}
.brand span, .brand-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 359px) { .brand { font-size: 0; } /* show logo only on very small */ }
.brand:hover { color: var(--gold); text-decoration: none; }
.brand-mark { height: 30px; width: auto; flex: none; }
@media (min-width: 400px) { .brand-mark { height: 34px; } }
@media (min-width: 480px) { .brand { font-size: 1.05rem; } .brand-mark { height: 36px; } }

/* Desktop links */
.nav-links { display: none; list-style: none; align-items: center; gap: 4px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--ash); font-size: 0.88rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cream); background: var(--line-sub); text-decoration: none; }

/* ── Nav CTA — bevel button ── */
.nav-cta {
  background: linear-gradient(180deg, var(--ember-hi) 0%, var(--ember) 45%, var(--ember-lo) 100%) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.3),
    0 4px 0 var(--ember-lo),
    0 8px 24px rgba(235,38,142,0.55) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform .1s ease, box-shadow .1s ease !important;
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.3),
    0 6px 0 var(--ember-lo),
    0 14px 36px rgba(235,38,142,0.65) !important;
  text-decoration: none !important; color: #fff !important;
}
.nav-cta:active {
  transform: translateY(3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 1px 0 var(--ember-lo),
    0 4px 16px rgba(235,38,142,0.4) !important;
}

/* Hamburger */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(160deg, #2a2424, #1a1616);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--ash); font-size: 1.15rem; cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.4),
    0 2px 0 rgba(0,0,0,0.5),
    0 4px 12px rgba(0,0,0,0.35);
  transition: color .2s, box-shadow .15s, transform .1s;
}
.nav-toggle:hover { color: var(--ember); border-color: var(--line); }
.nav-toggle:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); }
@media (min-width: 860px) { .nav-toggle { display: none; } }

/* Mobile drawer */
@media (max-width: 859px) {
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h));
    background: rgba(15,13,13,0.97); backdrop-filter: blur(24px);
    padding: 24px 20px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    overflow-y: auto; pointer-events: none; z-index: 99;
  }
  .nav-links.open { 
    transform: translateY(0); 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear 0s;
  }
  .nav-links li { border-bottom: 1px solid var(--line-sub); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 18px 8px; font-size: 1.15rem; border-radius: 0; }
  .nav-cta {
    display: block !important; text-align: center;
    border-radius: 16px !important; margin-top: 16px;
    padding: 18px 22px !important; font-size: 1.05rem !important;
  }
}

/* ══════════════════════════════════════════
   TICKER
══════════════════════════════════════════ */
.ticker-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, var(--ember-lo), var(--ember), var(--ember-lo));
  padding: 11px 0;
  white-space: nowrap;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
}
.ticker-wrap::before { left: 0;  background: linear-gradient(90deg, var(--ember-lo), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--ember-lo), transparent); }

.ticker-inner { display: inline-flex; gap: 0; animation: ticker 30s linear infinite; }
.ticker-item {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: #fff; padding: 0 28px; display: inline-block;
}
.ticker-dot { opacity: 0.45; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 60px 0 48px;
  min-height: auto;
  display: flex; align-items: center;
}
@media (min-width: 480px) { .hero { padding: 72px 0 56px; } }
@media (min-width: 768px) { .hero { min-height: 80vh; padding: 100px 0 80px; } }

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 40px;
  width: 100%;
}
.hero .wrap > div { min-width: 0; }
@media (min-width: 480px) { .hero .wrap { gap: 48px; } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
}

.hero h1 {
  margin-bottom: 0.35em;
  background: linear-gradient(140deg, #fff 20%, var(--gold) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .lede {
  font-size: clamp(0.93rem, 3.5vw, 1.1rem);
  color: var(--ash); max-width: 44ch; opacity: 0.88; margin-bottom: 1.4em;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════
   BEVEL BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 800; font-size: 0.9rem;
  border: none; cursor: pointer; position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 480px) { .btn { padding: 15px 30px; font-size: 0.95rem; } }
.btn:active { transform: translateY(3px) !important; }

/* Primary — hot-pink high bevel */
.btn-primary {
  background: linear-gradient(180deg, var(--ember-hi) 0%, var(--ember) 50%, var(--ember-lo) 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.40),
    inset 0 -2px 0 rgba(0,0,0,0.30),
    0 5px 0 #7A0E44,
    0 8px 0 rgba(0,0,0,0.25),
    0 12px 32px rgba(235,38,142,0.55),
    0 0 60px rgba(235,38,142,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.30),
    0 7px 0 #7A0E44,
    0 10px 0 rgba(0,0,0,0.2),
    0 18px 48px rgba(235,38,142,0.65),
    0 0 80px rgba(235,38,142,0.28);
  text-decoration: none; color: #fff;
}
.btn-primary:active {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 1px 0 #7A0E44,
    0 4px 16px rgba(235,38,142,0.4);
}

/* Ghost button — dark bevel */
.btn-ghost {
  background: linear-gradient(180deg, #2e2828 0%, #1c1818 60%, #111 100%);
  color: var(--ash);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.10),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 4px 0 rgba(0,0,0,0.6),
    0 6px 0 rgba(0,0,0,0.2),
    0 10px 24px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.07);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ember);
  color: var(--ember);
  text-decoration: none;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 6px 0 rgba(0,0,0,0.5),
    0 10px 28px rgba(235,38,142,0.2);
}

/* ══════════════════════════════════════════
   DECK — MOBILE HORIZONTAL CAROUSEL
══════════════════════════════════════════ */
.deck-scroll-wrap {
  margin: 0 -18px;         /* bleed to viewport edge */
  padding: 12px 18px 24px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  scroll-snap-type: x mandatory;
}
@media (min-width: 480px) { .deck-scroll-wrap { margin: 0 -24px; padding: 16px 24px 28px; } }
.deck-scroll-wrap::-webkit-scrollbar { display: none; }
.deck-scroll-wrap:active { cursor: grabbing; }

.deck {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 18px;
}
@media (min-width: 480px) { .deck { gap: 16px; padding-right: 24px; } }

/* Card base — mobile */
.deck-card {
  flex: none;
  width: clamp(155px, 44vw, 200px); /* fluid: fits ~2 cards + peek on any phone */
  height: clamp(240px, 65vw, 300px);
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(160deg, #2a2323 0%, #1a1616 100%);
  color: var(--ash);
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 6px 0 rgba(0,0,0,0.55),
    0 12px 0 rgba(0,0,0,0.15),
    0 20px 40px rgba(0,0,0,0.7);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
/* Glossy sheen */
.deck-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none; z-index: 1;
}
.deck-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 8px 0 rgba(0,0,0,0.5),
    0 20px 60px rgba(0,0,0,0.8),
    0 0 60px rgba(235,38,142,0.15);
}
.deck-card .shot {
  flex: 1; border-radius: 10px; overflow: hidden;
  margin-bottom: 8px; background: var(--ink); min-height: 0;
}
.deck-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.deck-card .caption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 4px; position: relative; z-index: 2;
}
.deck-card .name {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(0.72rem, 2.5vw, 0.9rem); color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 70%;
}
.deck-card .suit {
  font-family: 'Space Mono', monospace; font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.5; flex-shrink: 0;
}

/* Scroll indicator dots */
.deck-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
.deck-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.18); transition: background .2s, transform .2s;
}
.deck-dot.active { background: var(--ember); transform: scale(1.3); }

/* Desktop: fanned layout */
@media (min-width: 900px) {
  .deck-scroll-wrap { margin: 0; padding: 0; overflow: visible; cursor: default; }
  .deck {
    width: auto; position: relative; height: 380px;
    justify-content: center; align-items: center;
    padding-right: 0; gap: 0;
  }
  .deck-card {
    position: absolute;
    width: 166px; height: 280px;
    border-radius: 20px;
    background: linear-gradient(160deg, #2e2626 0%, #1a1616 100%);
  }
  .deck-card:nth-child(1) { transform: rotate(-16deg) translateX(-82px); z-index: 1; }
  .deck-card:nth-child(2) { transform: rotate(-8deg)  translateX(-41px); z-index: 2; }
  .deck-card:nth-child(3) { transform: rotate(0deg)   translateX(0);     z-index: 3; }
  .deck-card:nth-child(4) { transform: rotate(8deg)   translateX(41px);  z-index: 2; }
  .deck-card:nth-child(5) { transform: rotate(16deg)  translateX(82px);  z-index: 1; }
  .deck:hover .deck-card:nth-child(1) { transform: rotate(-16deg) translateX(-145px) translateY(-14px); }
  .deck:hover .deck-card:nth-child(2) { transform: rotate(-8deg)  translateX(-72px)  translateY(-20px); }
  .deck:hover .deck-card:nth-child(3) { transform: rotate(0deg)   translateY(-26px); }
  .deck:hover .deck-card:nth-child(4) { transform: rotate(8deg)   translateX(72px)   translateY(-20px); }
  .deck:hover .deck-card:nth-child(5) { transform: rotate(16deg)  translateX(145px)  translateY(-14px); }
  .deck-dots { display: none; }
}

/* ══════════════════════════════════════════
   GENRE STRIP — BEVEL ICON BOXES
══════════════════════════════════════════ */
.genre-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3-col: items 4+5 sit on row 2 */
  gap: 2px; background: var(--line-sub);
  border-top: 1px solid var(--line-sub);
  border-bottom: 1px solid var(--line-sub);
  overflow: hidden;
}
/* At 540px fit all 5 in one row */
@media (min-width: 540px) { .genre-strip { grid-template-columns: repeat(5, 1fr); } }

/* Center the last two items when in 3-col mode */
@media (max-width: 539px) {
  .genre-strip .genre-item:nth-child(4),
  .genre-strip .genre-item:nth-child(5) {
    grid-column: auto;
  }
  /* 3+2 layout: push items 4&5 to be centered */
  .genre-strip { grid-template-columns: repeat(6, 1fr); }
  .genre-strip .genre-item:nth-child(1) { grid-column: 1 / 3; }
  .genre-strip .genre-item:nth-child(2) { grid-column: 3 / 5; }
  .genre-strip .genre-item:nth-child(3) { grid-column: 5 / 7; }
  .genre-strip .genre-item:nth-child(4) { grid-column: 2 / 4; }
  .genre-strip .genre-item:nth-child(5) { grid-column: 4 / 6; }
}

.genre-item {
  background: linear-gradient(160deg, #1e1a1a 0%, #141111 100%);
  padding: 22px 8px; text-align: center;
  cursor: default; transition: background .25s;
}
@media (min-width: 480px) { .genre-item { padding: 28px 12px; } }
.genre-item:hover { background: linear-gradient(160deg, #2a2424 0%, #1a1616 100%); }

/* Bevel icon disc */
.g-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  margin: 0 auto 12px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.15), transparent 60%),
              linear-gradient(160deg, #2e2828 0%, #1a1616 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.14),
    inset 0 -2px 0 rgba(0,0,0,0.55),
    0 4px 0 rgba(0,0,0,0.5),
    0 8px 20px rgba(0,0,0,0.5);
  transition: transform .3s, box-shadow .3s;
}
@media (min-width: 480px) { .g-icon-wrap { width: 56px; height: 56px; margin-bottom: 14px; } }
.genre-item:hover .g-icon-wrap {
  transform: translateY(-4px) scale(1.1);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.55),
    0 6px 0 rgba(0,0,0,0.4),
    0 14px 32px rgba(0,0,0,0.6),
    0 0 30px var(--g-color, var(--ember));
}
.g-icon {
  font-size: 1.25rem; line-height: 1;
  color: var(--g-color, var(--ember));
  display: block;
  filter: drop-shadow(0 0 8px var(--g-color, var(--ember)));
  transition: filter .3s;
}
@media (min-width: 480px) { .g-icon { font-size: 1.5rem; } }
.genre-item:hover .g-icon {
  filter: drop-shadow(0 0 16px var(--g-color, var(--ember))) brightness(1.2);
}
.genre-item b {
  display: block; font-family: 'Fraunces', serif;
  font-size: clamp(0.78rem, 2vw, 0.98rem); color: var(--cream); margin-bottom: 2px;
}
.genre-item > span {
  font-size: clamp(0.6rem, 1.5vw, 0.72rem); opacity: 0.5; display: block;
}

/* ══════════════════════════════════════════
   SECTION HEADS
══════════════════════════════════════════ */
.section-head { max-width: 54ch; margin-bottom: 48px; }
.section-head p { color: var(--ash); opacity: 0.78; font-size: 1rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 60px; } }

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line-sub);
  border-bottom: 1px solid var(--line-sub);
  padding: 32px 0;
}
@media (min-width: 480px)  { .stats { gap: 18px; padding: 40px 0; } }
@media (min-width: 640px)  { .stats { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 0; } }

.stat {
  text-align: center;
  background: linear-gradient(160deg, #1e1a1a, #141111);
  border: 1px solid var(--line-sub);
  border-radius: 16px; padding: 20px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -2px 0 rgba(0,0,0,0.4),
    0 4px 0 rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.4);
  transition: transform .3s ease;
}
@media (min-width: 480px) { .stat { padding: 24px 16px; border-radius: 18px; } }
.stat:hover { transform: translateY(-4px); }
.stat b {
  display: block; font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 900; line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(160deg, var(--ember-hi), var(--ember));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 12px rgba(235,38,142,0.5));
}
.stat span { font-size: clamp(0.66rem, 2vw, 0.78rem); opacity: 0.55; font-weight: 600; }

/* ══════════════════════════════════════════
   VISION / TIMELINE
══════════════════════════════════════════ */
.path-track {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; position: relative;
}
@media (min-width: 860px) {
  .path-track { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .path-track::before {
    content: ''; position: absolute;
    top: 26px; left: 9%; right: 9%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--ember) 0 7px, transparent 7px 16px);
    opacity: 0.28;
  }
}
.era {
  background: linear-gradient(160deg, #1e1a1a 0%, #141111 100%);
  border: 1px solid var(--line-sub);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -2px 0 rgba(0,0,0,0.4),
    0 4px 0 rgba(0,0,0,0.5),
    0 10px 30px rgba(0,0,0,0.4);
  transition: transform .3s, box-shadow .3s;
}
.era:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 4px 0 rgba(0,0,0,0.4), 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(235,38,142,0.08); }

/* Bevel era token (number badge) */
.era-token {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 20px;
  background: linear-gradient(160deg, var(--ember-hi) 0%, var(--ember) 50%, var(--ember-lo) 100%);
  color: #fff;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.35),
    inset 0 -2px 0 rgba(0,0,0,0.3),
    0 4px 0 #5A0A30,
    0 8px 20px rgba(235,38,142,0.5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.era:nth-child(2) .era-token {
  background: linear-gradient(160deg, #ffd4ee 0%, var(--gold) 50%, #d478a6 100%);
  color: var(--ink);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,0,0,0.2), 0 4px 0 #9a4070, 0 8px 20px rgba(255,174,219,0.5);
}
.era:nth-child(3) .era-token {
  background: linear-gradient(160deg, #3bcfc5 0%, var(--teal) 50%, #145e59 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.3), inset 0 -2px 0 rgba(0,0,0,0.3), 0 4px 0 #0d3e3a, 0 8px 20px rgba(31,138,130,0.5);
}
.era .tag {
  font-family: 'Space Mono', monospace; font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  opacity: 0.45; margin-bottom: 8px; display: block;
}
.era h3 { margin-bottom: 12px; }
.era ul { padding-left: 1.1em; color: var(--ash); opacity: 0.82; font-size: 0.88rem; }
.era li { margin-bottom: 8px; }

/* ══════════════════════════════════════════
   GAME CARDS GRID
══════════════════════════════════════════ */
.games-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 540px)  { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.game-card {
  border-radius: var(--radius); padding: 22px 20px;
  background: linear-gradient(160deg, #1e1a1a 0%, #131010 100%);
  border: 1px solid rgba(255,255,255,0.055);
  display: flex; flex-direction: column; min-height: 200px;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 4px 0 rgba(0,0,0,0.55),
    0 8px 0 rgba(0,0,0,0.15),
    0 16px 40px rgba(0,0,0,0.5);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  touch-action: manipulation;
}
@media (min-width: 480px) { .game-card { padding: 26px 24px; } }
/* Glossy top sheen */
.game-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, transparent 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
/* Accent top bar */
.game-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent, var(--ember));
  box-shadow: 0 0 20px var(--accent, var(--ember));
  border-radius: var(--radius) var(--radius) 0 0;
}
.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent, var(--ember));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 6px 0 rgba(0,0,0,0.5),
    0 20px 60px rgba(0,0,0,0.65),
    0 0 50px rgba(235,38,142,0.12);
}
.game-card .genre {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent, var(--ember)); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(235,38,142,0.1);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(235,38,142,0.22);
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.game-card h3 { font-size: 1.42rem; margin-bottom: 10px; }
.game-card p  { font-size: 0.88rem; opacity: 0.78; flex: 1; }
.game-card .status {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; opacity: 0.45;
  margin-top: auto; padding-top: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.game-card .links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.game-card .links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem; font-weight: 700;
  color: #fff; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--ember)) 70%, #fff) 0%, var(--accent, var(--ember)) 50%, color-mix(in srgb, var(--accent, var(--ember)) 60%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 3px 0 rgba(0,0,0,0.4),
    0 6px 16px rgba(0,0,0,0.35);
  transition: transform .12s, box-shadow .12s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.game-card .links a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.game-card .links a:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 5px 0 rgba(0,0,0,0.35), 0 10px 24px rgba(0,0,0,0.4);
}
.game-card .links a:active { transform: translateY(2px); box-shadow: inset 0 2px 3px rgba(0,0,0,0.3); }

.ext-icon {
  width: 0.85em;
  height: 0.85em;
  display: inline-block;
  vertical-align: -0.1em;
  margin-left: 0.35em;
  flex-shrink: 0;
}
.btn .ext-icon {
  margin-left: 0;
}

/* Dashed "coming soon" card */
.game-card.dashed-card {
  border-style: dashed !important;
  border-color: rgba(232,221,226,0.15) !important;
  opacity: 0.65;
  box-shadow: none;
}
.game-card.dashed-card:hover { opacity: 1; border-color: rgba(232,221,226,0.3) !important; box-shadow: none; transform: none; }
.game-card.dashed-card::after { display: none; }

/* ══════════════════════════════════════════
   LIVE BADGE
══════════════════════════════════════════ */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #4ade80; margin-top: 10px;
  background: rgba(74,222,128,0.08);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.2);
  width: fit-content;
}
.live-dot {
  position: relative; width: 8px; height: 8px; flex-shrink: 0;
}
.live-dot::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
}
.live-dot::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: transparent;
  border: 1.5px solid #4ade80;
  animation: pulse-ring 1.6s ease-out infinite;
}

/* ══════════════════════════════════════════
   CTA / ABOUT BANNER
══════════════════════════════════════════ */
.cta-banner {
  text-align: center;
  background: linear-gradient(145deg, #1e1a1a 0%, #131010 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 56px 24px;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -2px 0 rgba(0,0,0,0.5),
    0 6px 0 rgba(0,0,0,0.55),
    0 16px 60px rgba(0,0,0,0.6);
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(235,38,142,0.15) 0%, transparent 68%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); max-width: 24ch; margin: 0 auto 16px; }
.cta-banner p  { max-width: 52ch; margin: 0 auto 32px; opacity: 0.78; }
@media (min-width: 768px) { .cta-banner { padding: 80px 56px; } }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { border-top: 1px solid var(--line-sub); padding: 48px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr;    /* single column on phones */
  gap: 32px 20px; margin-bottom: 40px;
}
@media (min-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid .brand { margin-bottom: 14px; font-size: 1rem; }
.footer-grid > div > p { opacity: 0.55; font-size: 0.85rem; max-width: 27ch; line-height: 1.6; }
.footer-grid h4 {
  font-family: 'Manrope', sans-serif; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ash); opacity: 0.4; font-weight: 700; margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ash); opacity: 0.72; font-size: 0.875rem; }
.footer-grid a:hover { color: var(--gold); opacity: 1; text-decoration: none; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--line-sub); padding-top: 24px;
  font-size: 0.78rem; opacity: 0.45;
}
.footer-bottom .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--gold); opacity: 1; text-decoration: none; }

/* ══════════════════════════════════════════
   SCROLL FADE-UP ANIMATION
══════════════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   LEGAL / DOC PAGES
══════════════════════════════════════════ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; }
.table-scroll table { margin: 0; min-width: 560px; }

.doc-hero { padding: 64px 0 32px; border-bottom: 1px solid var(--line-sub); }
.doc-hero .wrap { max-width: 820px; }
.doc-hero .updated { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--gold); }
.doc-body { padding: 48px 0 96px; }
.doc-body .wrap { max-width: 820px; }
.doc-panel {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg); padding: 36px 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .doc-panel { padding: 52px 48px; } }
.doc-panel h2 { color: var(--ink); font-size: 1.45rem; margin-top: 2em; border-bottom: 2px solid rgba(24,22,22,0.08); padding-bottom: 0.4em; }
.doc-panel h2:first-child { margin-top: 0; }
.doc-panel h3 { color: var(--ink); font-size: 1.05rem; margin-top: 1.5em; }
.doc-panel p, .doc-panel li { color: #2c2740; font-size: 0.97rem; }
.doc-panel ul, .doc-panel ol { padding-left: 1.3em; }
.doc-panel li { margin-bottom: 8px; }
.doc-panel table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.9rem; }
.doc-panel th, .doc-panel td { border: 1px solid rgba(24,22,22,0.12); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-panel th { background: rgba(24,22,22,0.05); font-family: 'Manrope', sans-serif; }
.doc-panel strong { color: var(--ink); }
.doc-panel a { color: var(--ember); font-weight: 700; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.doc-nav a { font-size: 0.8rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-sub); color: var(--ash); }
.doc-nav a.active { background: var(--ember); border-color: var(--ember); color: var(--cream); }
.doc-nav a:hover { text-decoration: none; border-color: var(--gold); color: var(--gold); }
.doc-nav a.active:hover { color: var(--cream); }
.callout { border-left: 4px solid var(--ember); background: rgba(235,38,142,0.06); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }
.callout.gold { border-color: var(--gold); background: rgba(255,174,219,0.08); }
.callout.teal { border-color: var(--teal); background: rgba(31,138,130,0.08); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.6em 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 20px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ember); color: #fff;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { display: block; margin-bottom: 2px; }
