/* =====================================================
   Hip Durian Games — dark luxe brand system
   Black + metallic gold, editorial-luxury informational site
   ===================================================== */

:root {
  /* --- Palette --- */
  --color-bg:        #0a0908;          /* near-black */
  --color-bg-2:      #121110;          /* raised surface */
  --color-bg-3:      #1a1917;          /* card / elevated */
  --color-border:    rgba(212, 175, 55, 0.14);
  --color-border-2:  rgba(255, 255, 255, 0.06);
  --color-text:      #e9e5da;
  --color-text-2:    #a8a49a;
  --color-text-3:    #6b675e;

  --color-gold:      #d4af37;          /* primary gold */
  --color-gold-hi:   #f0d67a;          /* light highlight */
  --color-gold-lo:   #8a6f1f;          /* deep shadow */
  --gold-gradient:   linear-gradient(135deg, #f0d67a 0%, #d4af37 40%, #8a6f1f 100%);
  --gold-gradient-h: linear-gradient(90deg,  #8a6f1f 0%, #d4af37 50%, #f0d67a 100%);

  /* --- Type --- */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --text-xs:    clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --text-sm:    clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --text-base:  clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  --text-lg:    clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --text-xl:    clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl:   clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --text-hero:  clamp(3rem, 1.8rem + 5.5vw, 6.5rem);

  /* --- Space --- */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --wrap: 1200px;
  --wrap-wide: 1440px;

  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.12), 0 0 120px rgba(212, 175, 55, 0.06);
  --transition: 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =====================================================
   Background — subtle radial glow
   ===================================================== */
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 175, 55, 0.04), transparent 60%),
    var(--color-bg);
  background-attachment: fixed;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.03  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =====================================================
   Utility: gold text
   ===================================================== */
.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  border: 0;
  margin: var(--space-16) 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-gold);
}

/* =====================================================
   Layout wrapper
   ===================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* =====================================================
   Header / Nav
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 9, 8, 0.72);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}
.brand-name {
  display: none;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
@media (min-width: 640px) {
  .brand-name { display: inline; }
}

.nav {
  display: none;
  gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: var(--color-text-2);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-gold);
  transition: right var(--transition);
}
.nav a:hover, .nav a:focus-visible { color: var(--color-gold-hi); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--color-gold); }

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-gold);
}
.menu-btn:hover { border-color: var(--color-gold); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: rgba(10, 9, 8, 0.95);
  backdrop-filter: blur(14px);
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap { flex-direction: column; align-items: stretch; padding-block: 1rem; gap: 0; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border-2);
  color: var(--color-text-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--color-gold); }

/* =====================================================
   Hero (splash)
   ===================================================== */
.hero {
  min-height: min(78vh, 780px);
  display: grid;
  place-items: center;
  padding-block: var(--space-16) var(--space-16);
  text-align: center;
  position: relative;
}

.hero-mark {
  width: clamp(140px, 22vw, 240px);
  height: auto;
  margin: 0 auto var(--space-8);
  filter: drop-shadow(0 20px 60px rgba(212, 175, 55, 0.22));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 400;
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: italic;
  color: var(--color-gold);
  font-weight: 400;
}

.hero .strap {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-2);
  margin-bottom: var(--space-12);
}

.hero .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 44ch;
  margin: 0 auto var(--space-8);
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-hi);
  background: transparent;
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  transform: translateX(-101%);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn:hover, .btn:focus-visible {
  color: #0a0908;
  border-color: var(--color-gold-hi);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost::before { background: rgba(255,255,255,0.06); }
.btn--ghost:hover { color: var(--color-text); border-color: var(--color-gold); }

/* =====================================================
   Section headings & general spacing
   ===================================================== */
section.slab {
  padding-block: clamp(4rem, 8vw, 8rem);
}
section.slab + section.slab { border-top: 1px solid var(--color-border); }

.section-head { margin-bottom: var(--space-12); max-width: 60ch; }
.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  line-height: 1.05;
}
.section-head h2 em { font-style: italic; color: var(--color-gold); font-weight: 400; }
.section-head .section-decor {
  display: block;
  width: min(240px, 55%);
  height: auto;
  margin: var(--space-4) 0 var(--space-6);
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
}
.section-head p {
  margin-top: var(--space-6);
  color: var(--color-text-2);
  font-size: var(--text-lg);
  line-height: 1.55;
}

/* =====================================================
   Home: pillars
   ===================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pillar {
  padding: var(--space-8);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--color-border-2);
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition);
}
.pillar:hover { border-color: var(--color-gold); transform: translateY(-4px); }
.pillar .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.pillar p { color: var(--color-text-2); font-size: 0.98rem; line-height: 1.6; }

/* =====================================================
   Home: quote block
   ===================================================== */
.quote-block {
  text-align: center;
  padding-block: var(--space-24);
  border-block: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.03), transparent);
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  line-height: 1.2;
  max-width: 24ch;
  margin: 0 auto;
  color: var(--color-text);
  font-weight: 300;
}
.quote-block blockquote::before,
.quote-block blockquote::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
}

/* =====================================================
   About: founders
   ===================================================== */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.founder-card {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border-2);
  background: var(--color-bg-2);
  text-align: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.founder-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-gradient-h);
  opacity: 0.6;
}
.founder-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--space-6);
  overflow: hidden;
  position: relative;
  border: none;
  background: transparent;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.24);
  padding: 0;
  display: block;
}
@media (max-width: 640px) {
  .founder-avatar {
    width: 168px; height: 168px;
  }
}
/* Button variant — clickable swap */
button.founder-avatar {
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
}
button.founder-avatar:hover,
button.founder-avatar:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35);
  outline: none;
}
.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: opacity 320ms ease;
}
.founder-avatar.is-swapping img {
  opacity: 0;
}
.founder-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.founder-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.founder-card p {
  color: var(--color-text-2);
  font-size: 0.95rem;
  margin: 0 auto;
  max-width: 30ch;
}

/* =====================================================
   About: two-column story
   ===================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-16); }
}
.story-grid .side {
  position: sticky;
  top: 6rem;
}
.story-grid .side h2 { font-size: var(--text-2xl); }
.story-grid .body p { margin-bottom: 1.25rem; color: var(--color-text-2); font-size: 1.05rem; }
.story-grid .body p:first-child::first-line { color: var(--color-text); }
.story-grid .body p strong { color: var(--color-gold-hi); font-weight: 500; }

/* =====================================================
   Workflow — steps
   ===================================================== */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: var(--space-8);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border-2);
  border-radius: 4px;
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--color-gold); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gold);
  font-size: 3rem;
  line-height: 1;
  min-width: 3.5rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.step .step-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: 0.75rem;
  display: block;
}
.step p { color: var(--color-text-2); font-size: 1rem; }
.step ul { color: var(--color-text-2); margin-top: 0.75rem; padding-left: 1.1rem; font-size: 0.95rem; }
.step ul li { margin-bottom: 0.35rem; }
.step ul li::marker { color: var(--color-gold); }

/* Differentiators */
.diffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: var(--space-12);
}
.diff {
  padding: 1.5rem;
  border: 1px solid var(--color-border-2);
  border-left: 2px solid var(--color-gold);
  background: rgba(255,255,255,0.015);
}
.diff h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.diff p { color: var(--color-text-2); font-size: 0.92rem; line-height: 1.55; }

/* =====================================================
   Library — under construction
   ===================================================== */
.uc {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-24);
}
.uc-inner { max-width: 52ch; }
.uc h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  margin-bottom: var(--space-6);
  line-height: 1.05;
}
.uc h1 em { font-style: italic; color: var(--color-gold); font-weight: 400; }
.uc p { color: var(--color-text-2); font-size: var(--text-lg); margin: 0 auto var(--space-8); line-height: 1.55; }

.uc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  margin-bottom: var(--space-8);
}
.uc-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.uc-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto var(--space-8);
}
.reel {
  aspect-ratio: 3/4;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg-2), var(--color-bg-3));
  border-radius: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.reel .track {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  animation: spin 4s linear infinite;
  opacity: 0.7;
}
.reel:nth-child(2) .track { animation-duration: 5s; }
.reel:nth-child(3) .track { animation-duration: 6s; }
.reel .track span { padding: 0.4rem 0; }
@keyframes spin {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.reel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--color-bg-2) 0%, transparent 25%, transparent 75%, var(--color-bg-2) 100%);
  pointer-events: none;
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
  color: var(--color-text-3);
  position: relative;
  z-index: 2;
}
.site-footer .wrap {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1.3fr 0.9fr 1.4fr 0.9fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand img { width: min(260px, 100%); height: auto; }
.footer-brand p { color: var(--color-text-2); font-size: 0.95rem; max-width: 36ch; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  color: var(--color-text-2);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--color-gold-hi); }
.footer-col--contact .footer-cta {
  display: block;
  padding: 0.55rem 0.85rem;
  margin: 0.35rem 0;
  color: var(--color-gold);
  background: rgba(207, 168, 91, 0.06);
  border: 1px solid rgba(207, 168, 91, 0.35);
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: left;
}
.footer-col--contact .footer-cta:hover {
  background: rgba(207, 168, 91, 0.14);
  border-color: var(--color-gold);
  color: var(--color-gold-hi);
}
.footer-contact-direct {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border-2);
}
.footer-contact-direct a {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: var(--color-text-3);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-2);
  font-size: 0.8rem;
  color: var(--color-text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--color-text-3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--color-gold); }

/* =====================================================
   For Operators page
   ===================================================== */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 3px;
  border: 1px solid var(--color-gold);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--color-gold-hi);
  border-color: var(--color-gold-hi);
}
.btn-ghost {
  background: transparent;
  color: var(--color-gold);
}
.btn-ghost:hover {
  background: rgba(207, 168, 91, 0.12);
  color: var(--color-gold-hi);
  border-color: var(--color-gold-hi);
}

.ops-section {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
}
.ops-section--alt {
  background: rgba(255, 255, 255, 0.015);
}
.ops-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  color: var(--color-text-1);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.01em;
}
.ops-lede {
  font-size: 1.05rem;
  color: var(--color-text-2);
  max-width: 70ch;
  margin: 0 0 var(--space-6);
  line-height: 1.6;
}
.ops-facts {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .ops-facts { grid-template-columns: repeat(3, 1fr); }
}
.ops-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.ops-facts strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
}
.ops-facts span {
  color: var(--color-text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ops-note {
  margin-top: var(--space-6);
  color: var(--color-text-3);
  font-size: 0.9rem;
}
.ops-note a { color: var(--color-gold); }
.ops-note a:hover { color: var(--color-gold-hi); }

.ops-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}
@media (min-width: 700px) {
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .ops-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.ops-card {
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.ops-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--color-gold);
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}
.ops-card p {
  color: var(--color-text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.ops-card p:last-child { margin-bottom: 0; }
.ops-card em {
  color: var(--color-text-3);
  font-size: 0.87rem;
  font-style: italic;
}

.ops-section--cta { background: rgba(207, 168, 91, 0.03); }
.ops-cta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}
@media (min-width: 700px) {
  .ops-cta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .ops-cta-grid { grid-template-columns: repeat(3, 1fr); }
}
.ops-cta {
  display: block;
  padding: 1.5rem;
  border: 1px solid rgba(207, 168, 91, 0.35);
  border-radius: 4px;
  background: rgba(207, 168, 91, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ops-cta:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  background: rgba(207, 168, 91, 0.1);
}
.ops-cta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
}
.ops-cta p {
  color: var(--color-text-2);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Themes chip inside game feature drawer */
.feature-drawer-themes {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-3);
  letter-spacing: 0.02em;
}

/* =====================================================
   Legal skeleton pages
   ===================================================== */
.legal-page {
  padding-block: var(--space-12);
  min-height: 50vh;
}
.legal-page .wrap { max-width: 62ch; }
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  color: var(--color-text-1);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.01em;
}
.legal-page p, .legal-page li {
  color: var(--color-text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page ul.legal-facts { list-style: none; padding-left: 0; margin-bottom: 1rem; border-top: 1px solid rgba(207, 168, 91, 0.15); }
.legal-page ul.legal-facts li { padding: 0.55rem 0; border-bottom: 1px solid rgba(207, 168, 91, 0.15); font-size: 0.95rem; }
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-gold);
  margin: var(--space-8) 0 var(--space-4);
}
.legal-page .placeholder-notice {
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(207, 168, 91, 0.4);
  border-radius: 3px;
  color: var(--color-text-3);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}

/* =====================================================
   Reveal on scroll (progressive enhancement)
   Default: visible (no-JS friendly). JS adds .js and
   scoped observer opts elements in on scroll.
   ===================================================== */
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(20px);
}
.js .reveal {
  transition: opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================
   Page banner (interior pages)
   ===================================================== */
.page-hero {
  padding-block: clamp(6rem, 12vw, 10rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.page-hero h1 {
  font-size: var(--text-2xl);
  line-height: 1.05;
  margin: 0.75rem auto 0;
  max-width: 20ch;
}
.page-hero h1 em { font-style: italic; color: var(--color-gold); font-weight: 400; }
.page-hero p {
  max-width: 55ch;
  margin: var(--space-6) auto 0;
  color: var(--color-text-2);
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* ============================================================
   Library page — 4-stage game catalog
   ============================================================ */

.library-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    var(--color-bg);
}
.library-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0.75rem auto 1.25rem;
  max-width: 22ch;
}
.library-hero h1 em {
  font-style: italic;
  color: var(--color-gold);
  font-weight: 400;
}
.library-hero .lede {
  color: var(--color-text-2);
  font-size: var(--text-lg);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.55;
}
.grade-portraits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
  max-width: 980px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 1rem;
}
@media (max-width: 720px) {
  .grade-portraits { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
}

/* Visual nav variant — each portrait is a link that jumps to its section */
.grade-portraits--nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.35s ease;
}
.grade-portraits--nav a:hover,
.grade-portraits--nav a:focus-visible {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.04);
  outline: none;
}
.grade-portraits--nav a.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.07);
}
.grade-portraits--nav img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 1536;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.grade-portraits--nav a:hover img,
.grade-portraits--nav a:focus-visible img {
  transform: translateY(-4px) scale(1.02);
}
.grade-portraits--nav span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--color-text-3);
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.grade-portraits--nav a:hover span,
.grade-portraits--nav a:focus-visible span,
.grade-portraits--nav a.is-active span {
  color: var(--color-gold);
}
@media (max-width: 560px) {
  .grade-portraits { gap: 0.5rem; }
  .grade-portraits--nav span { font-size: 0.72rem; letter-spacing: 0.18em; }
}

/* Easter egg — tiny Felipe portrait swaps in over the greenhouse plaque
   after the Incubating tile is clicked. Deliberately small; you have to know */
.grade-portraits--nav .portrait-frame {
  position: relative;
  display: block;
  width: 100%;
}
.grade-portraits--nav .portrait-frame img {
  display: block;
}
.grade-portraits--nav .easter-egg {
  position: absolute;
  /* Plaque is roughly at 47% x, 63% y of the greenhouse image */
  left: 47%;
  top: 63%;
  transform: translate(-50%, -50%);
  width: 6.2%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 0.5px rgba(212, 175, 55, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.grade-portraits--nav .has-easter-egg.is-hatched .easter-egg {
  opacity: 0.92;
}

/* ----- Compact jump nav pinned under the main header (revealed after hero) ----- */
.library-jump {
  position: sticky;
  top: var(--site-header-h, 4rem);
  z-index: 40; /* below .site-header (z-index: 50) */
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.library-jump.is-visible {
  max-height: 4rem;
  opacity: 1;
  pointer-events: auto;
}
.library-jump .wrap {
  display: flex;
  gap: clamp(0.5rem, 2vw, 2rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.9rem 1.25rem;
  justify-content: center;
}
.library-jump .wrap::-webkit-scrollbar { display: none; }
.library-jump a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-3);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.library-jump a:hover {
  color: var(--color-gold);
}
.library-jump a.is-active {
  color: var(--color-gold);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}
@media (max-width: 640px) {
  .library-jump .wrap { justify-content: flex-start; }
}

.library-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--color-border);
}
.library-section:last-of-type {
  border-bottom: none;
}

.library-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-2);
}
.library-section-head > div {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.library-section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  opacity: 0.85;
}
.library-grade-note {
  color: var(--color-text-2);
  font-size: var(--text-base);
  line-height: 1.55;
  max-width: 62ch;
  margin: -1rem 0 2rem;
  font-style: italic;
  font-family: var(--font-display);
}
.library-grade-note em {
  font-style: normal;
  color: var(--color-gold);
  font-weight: 500;
}
.library-section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
.grade-alias {
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.6em;
  letter-spacing: 0.02em;
  margin-left: 0.25em;
  vertical-align: middle;
  opacity: 0.85;
}
.library-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-3);
  white-space: nowrap;
}

.library-empty {
  border: 1px dashed var(--color-border);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
}
.library-empty p {
  margin: 0;
  color: var(--color-text-3);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

/* ----- Game grid ----- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 220ms ease;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.game-card:hover .game-thumb {
  border-color: var(--color-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.18);
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--color-text);
  line-height: 1.35;
}

/* Feature ribbon (e.g. "Exploding Symbol") on a game thumb */
.game-ribbon {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  text-align: center;
  background: linear-gradient(135deg, #f0c246 0%, #d4af37 55%, #b8912b 100%);
  color: #1a130a;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 240, 200, 0.55);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

/* ----- Redacted state ----- */
.game-card.redacted .game-thumb {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.04) 0px,
      rgba(212, 175, 55, 0.04) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--color-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--color-border-2);
  box-shadow: none;
}
.game-card.redacted:hover .game-thumb {
  border-color: var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.redacted-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-3);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border-2);
  border-radius: 2px;
  background: rgba(10, 9, 8, 0.7);
}
.game-card.redacted h3 {
  color: var(--color-text-3);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
}

/* ----- Notify block ----- */
.library-notify {
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
    var(--color-bg);
}
.library-notify p {
  color: var(--color-text-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  margin: 0 0 1.5rem;
}

/* ----- Mobile ----- */
@media (max-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .game-card h3 {
    font-size: 0.85rem;
  }
  .library-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ============================================================
   Game thumbnail — slow Ken Burns pan
   Each card picks a randomly-offset variant via nth-child so the
   grid feels alive without synchronised motion.
   ============================================================ */

@keyframes kb-pan-a {
  0%   { transform: scale(1.15) translate(-2%, -2%); }
  50%  { transform: scale(1.15) translate(2%, 2%); }
  100% { transform: scale(1.15) translate(-2%, -2%); }
}
@keyframes kb-pan-b {
  0%   { transform: scale(1.15) translate(2%, -2%); }
  50%  { transform: scale(1.15) translate(-2%, 2%); }
  100% { transform: scale(1.15) translate(2%, -2%); }
}
@keyframes kb-pan-c {
  0%   { transform: scale(1.18) translate(0%, -2.5%); }
  50%  { transform: scale(1.18) translate(0%, 2.5%); }
  100% { transform: scale(1.18) translate(0%, -2.5%); }
}
@keyframes kb-pan-d {
  0%   { transform: scale(1.18) translate(-2.5%, 0%); }
  50%  { transform: scale(1.18) translate(2.5%, 0%); }
  100% { transform: scale(1.18) translate(-2.5%, 0%); }
}

.game-card:not(.redacted) .game-thumb img {
  transform: scale(1.15);
  animation: kb-pan-a 12s ease-in-out infinite;
  will-change: transform;
}
.game-card:not(.redacted):nth-child(4n+1) .game-thumb img { animation-name: kb-pan-a; animation-duration: 5s; animation-delay: -1s; }
.game-card:not(.redacted):nth-child(4n+2) .game-thumb img { animation-name: kb-pan-b; animation-duration: 5s; animation-delay: -2s; }
.game-card:not(.redacted):nth-child(4n+3) .game-thumb img { animation-name: kb-pan-c; animation-duration: 5s; animation-delay: -3s; }
.game-card:not(.redacted):nth-child(4n+4) .game-thumb img { animation-name: kb-pan-d; animation-duration: 5s; animation-delay: -4s; }

/* Preserve the hover-scale feel — pause pan and settle into a gentle zoom-in on hover */
.game-card:not(.redacted):hover .game-thumb img {
  animation-play-state: paused;
  transform: scale(1.22);
  transition: transform 800ms ease;
}

/* Playable-demo cards use clean logo-forward key art — no Ken Burns pan */
.game-card[data-slug="hold-yer-gold"] .game-thumb img,
.game-card[data-slug="3-purramid-nights"] .game-thumb img {
  animation: none !important;
  transform: scale(1) !important;
}
.game-card[data-slug="hold-yer-gold"]:hover .game-thumb img,
.game-card[data-slug="3-purramid-nights"]:hover .game-thumb img {
  transform: scale(1.04) !important;
  transition: transform 400ms ease;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .game-card:not(.redacted) .game-thumb img {
    animation: none;
    transform: scale(1.02);
  }
}

/* ============================================================
   Dual-thumbnail swap (colour default, grey on hover)
   Static — no motion. Used on game cards with paired key-art +
   "coming soon" thumbnails.
   ============================================================ */

/* Portrait aspect matched to the source key art (~5:6) so nothing crops */
.game-thumb.game-thumb--swap {
  aspect-ratio: 5 / 6;
}
.game-thumb--swap img.thumb-colour,
.game-thumb--swap img.thumb-grey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Override the Ken Burns pan rules from the block above */
  animation: none !important;
  transform: none !important;
  transition: none !important;
}
.game-thumb--swap img.thumb-grey {
  opacity: 0;
}
.game-card:hover .game-thumb--swap img.thumb-grey,
.game-card:focus-within .game-thumb--swap img.thumb-grey {
  opacity: 1;
}
/* Also neutralise the hover-scale that fires on non-swap cards */
.game-card:not(.redacted):hover .game-thumb--swap img {
  transform: none !important;
}

/* ============================================================
   News list — chronological press/announcement feed
   ============================================================ */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border-2);
}
.news-item:first-child {
  border-top: none;
  padding-top: 0.5rem;
}
@media (max-width: 720px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.news-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border-2);
  background: #0a0a0a;
  transition: border-color 250ms ease, transform 250ms ease;
}
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.news-item:hover .news-media {
  border-color: rgba(212, 175, 55, 0.55);
}
.news-item:hover .news-media img {
  transform: scale(1.03);
}
.news-body {
  min-width: 0;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-3);
}
.news-meta time {
  color: var(--color-text-2);
}
.news-tag {
  padding: 3px 8px;
  border: 1px solid var(--color-border-2);
  border-radius: 2px;
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}
.news-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.news-title a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
.news-title a:hover,
.news-title a:focus-visible {
  color: #f0c246;
  border-bottom-color: rgba(212, 175, 55, 0.55);
}
.news-summary {
  color: var(--color-text-2);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.news-cta {
  margin: 0;
}
.news-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.news-link:hover,
.news-link:focus-visible {
  color: #f0c246;
  border-bottom-color: #f0c246;
}
.news-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 200ms ease;
}
.news-link:hover span {
  transform: translateX(3px);
}

/* ============================================================
   Home page — Latest News teaser
   ============================================================ */
.news-teaser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.news-teaser-more {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.news-teaser-more:hover,
.news-teaser-more:focus-visible {
  color: #f0c246;
  border-bottom-color: #f0c246;
}
.news-teaser-more span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 200ms ease;
}
.news-teaser-more:hover span {
  transform: translateX(3px);
}

.news-teaser {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--color-border-2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  text-decoration: none;
  color: inherit;
  transition: border-color 250ms ease, background 250ms ease, transform 250ms ease;
}
.news-teaser:hover,
.news-teaser:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.03);
}
@media (max-width: 720px) {
  .news-teaser {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
}
.news-teaser-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--color-border-2);
  background: #0a0a0a;
}
.news-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}
.news-teaser:hover .news-teaser-media img {
  transform: scale(1.03);
}
.news-teaser-body {
  min-width: 0;
}
.news-teaser-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
  color: var(--color-text);
}
.news-teaser:hover .news-teaser-title {
  color: #f0c246;
}
.news-teaser-summary {
  color: var(--color-text-2);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* ===== Footer social icons ===== */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  color: var(--color-gold);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--color-gold-hi);
  color: var(--color-gold-hi);
  transform: translateY(-1px);
}
.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========================================================================
   Grade B feature drawer — slides in from the right on tile click.
   Small compact image, black + gold theme.
   ======================================================================== */

/* Make Grade B tiles look clickable */
#grade-b .game-card { cursor: pointer; }
#grade-b .game-card:focus-visible {
  outline: 2px solid var(--gold, #d4a852);
  outline-offset: 4px;
}

/* Dimmer behind the drawer */
.feature-drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.feature-drawer-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* The drawer itself */
.feature-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100%;
  background: #0a0a0a;
  border-left: 1px solid rgba(212, 168, 82, 0.25);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.24, 1);
  overflow-y: auto;
  color: #f4f2eb;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}
.feature-drawer.is-open { transform: translateX(0); }

.feature-drawer__close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(6px);
  color: #d4a852;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s;
}
.feature-drawer__close:hover { color: #f2c874; }

.feature-drawer__body {
  padding: 4px 32px 40px;
}

.feature-drawer__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4a852;
  margin: 0 0 10px;
  font-weight: 500;
}

.feature-drawer__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #f2ead4;
}

.feature-drawer__spec {
  font-size: 13px;
  color: #a09788;
  margin: 0 0 20px;
  font-style: italic;
}

.feature-drawer__shot {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 24px;
  border: 1px solid rgba(212, 168, 82, 0.2);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  /* Fallback ratio for images / before video metadata loads */
  aspect-ratio: 16 / 10;
}
/* Portrait/square videos: let the natural aspect ratio drive the box */
.feature-drawer__shot--portrait,
.feature-drawer__shot--square {
  aspect-ratio: auto;
  max-width: 220px;
}
.feature-drawer__shot img,
.feature-drawer__shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* When the container follows the video's natural ratio, no crop is needed */
.feature-drawer__shot--portrait video,
.feature-drawer__shot--square video {
  height: auto;
  object-fit: contain;
}

.feature-drawer__features {
  border-top: 1px solid rgba(212, 168, 82, 0.15);
  padding-top: 20px;
}
.feature-drawer__features-heading {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f7237;
  margin: 0 0 12px;
  font-weight: 500;
}
.feature-drawer__features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-drawer__features li {
  padding: 10px 0 10px 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: #e0dcd0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-drawer__features li:last-child { border-bottom: none; }
.feature-drawer__features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 11px;
  color: #d4a852;
  font-size: 8px;
  transform: translateY(2px);
}

/* Mobile: full-screen sheet */
@media (max-width: 600px) {
  .feature-drawer {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(212, 168, 82, 0.25);
  }
  .feature-drawer__body { padding: 4px 22px 40px; }
  .feature-drawer__title { font-size: 24px; }
  .feature-drawer__shot { max-width: 220px; }
}

/* Lock body scroll while drawer open */
body.feature-drawer-open { overflow: hidden; }

/* Play-Now CTA in the drawer (shown when a game has a demoPath) */
.feature-drawer-play {
  display: block;
  margin: 24px 0 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, #d4a852 0%, #b8912f 100%);
  color: #0a0906;
  text-decoration: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid #d4a852;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(212, 168, 82, 0.25);
}
.feature-drawer-play:hover {
  background: linear-gradient(135deg, #f2c874 0%, #d4a852 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 168, 82, 0.35);
}
.feature-drawer-play:active { transform: translateY(0); }
