/* ══════════════════════════════════════════════════
   DKBFM — shared styles for inner pages
   Extracted from the homepage so new sections inherit
   the exact same visual language.
   ══════════════════════════════════════════════════ */

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

html { font-family: 'Inter', sans-serif; }

/* ───── SCROLLBAR ───── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #B5FF47; border-radius: 2px; }

/* ───── NAV ───── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  mix-blend-mode: difference;
}
.nav-link { position: relative; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
}

/* ───── PAGE HERO ───── */
/* Same box as the homepage hero: full viewport, same overlay,
   same grain, same stacking order for the 3D mark. */
.page-hero {
  min-height: 100vh;
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 4;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.22;
}

.hero-scene { position: absolute; inset: 0; z-index: 1; perspective: 1000px; }

/* Live 3D hedgehog canvas — above the plate, below grain and text */
#hero-3d { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#hero-3d canvas { display: block; width: 100%; height: 100%; }

.hero-img-wrap {
  position: absolute; inset: -6%;
  will-change: transform;
  transform-origin: center center;
}

/* Procedural gradient plate — same source as the homepage hero */
.hero-plate {
  position: absolute; inset: 0;
  background-color: #050505;
  background-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%201920%201080%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3CradialGradient%20id%3D%22grad1%22%20cx%3D%2220%25%22%20cy%3D%2220%25%22%20r%3D%2280%25%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23B5FF47%22%20/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23FF5733%22%20/%3E%0A%20%20%20%20%3C/radialGradient%3E%0A%20%20%20%20%3CradialGradient%20id%3D%22grad2%22%20cx%3D%2280%25%22%20cy%3D%2280%25%22%20r%3D%2280%25%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23FF6B00%22%20stop-opacity%3D%220.9%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23FF5733%22%20stop-opacity%3D%220%22/%3E%0A%20%20%20%20%3C/radialGradient%3E%0A%20%20%20%20%3CradialGradient%20id%3D%22grad3%22%20cx%3D%2280%25%22%20cy%3D%2220%25%22%20r%3D%2260%25%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23E6FF00%22%20stop-opacity%3D%220.8%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23B5FF47%22%20stop-opacity%3D%220%22/%3E%0A%20%20%20%20%3C/radialGradient%3E%0A%20%20%20%20%3CradialGradient%20id%3D%22grad4%22%20cx%3D%2220%25%22%20cy%3D%2280%25%22%20r%3D%2280%25%22%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23FF0055%22%20stop-opacity%3D%220.7%22/%3E%0A%20%20%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23FF5733%22%20stop-opacity%3D%220%22/%3E%0A%20%20%20%20%3C/radialGradient%3E%0A%20%20%3C/defs%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url%28%23grad1%29%22%20/%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url%28%23grad2%29%22%20/%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url%28%23grad3%29%22%20/%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url%28%23grad4%29%22%20/%3E%0A%3C/svg%3E%0A');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.layer-text {
  position: absolute; inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  will-change: transform;
  pointer-events: none;
}
.layer-text a, .layer-text button { pointer-events: auto; }

.clip-reveal { overflow: hidden; }

/* ───── MARQUEE ───── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse-height {
  0%,100% { opacity:.3; transform:scaleY(1); }
  50%     { opacity:.8; transform:scaleY(1.3); }
}

/* ───── SECTIONS ───── */
.section-dark  { background: #0D0D0D; color: #E8E8E8; }
.section-light { background: #F2F0EB; color: #0D0D0D; }
.section-vault {
  background: #0A0A0A; color: #fff;
  position: relative; overflow: hidden;
}
.section-vault::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(181,255,71,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(255,107,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ───── LIST ROWS (games, facts) ───── */
.row-item {
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: background 0.35s ease, color 0.35s ease;
}
.row-item:hover { background: #B5FF47; color: #0A0A0A; }
.row-item:hover .row-muted { color: rgba(10,10,10,0.55); }
.row-item:hover .item-arrow { transform: translate(4px,-4px); color: #0A0A0A; }
.item-arrow { transition: transform 0.3s ease, color 0.3s ease; }
.row-item.is-soon { cursor: default; }
.row-item.is-soon:hover { background: transparent; color: inherit; }
.row-item.is-soon:hover .row-muted { color: rgba(255,255,255,0.3); }

/* ───── STAT / FACT CARDS ───── */
.stat-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.stat-card:hover { border-color: #B5FF47; background: rgba(181,255,71,0.04); }
.stat-number { font-family: 'Anton', sans-serif; color: #B5FF47; line-height: 1; }

/* ───── FOOTER ───── */
#footer {
  background: #0D0D0D; color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-link {
  display: inline-block; position: relative;
  color: #B5FF47; text-decoration: none;
}
.cta-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: #B5FF47;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.cta-link:hover::after { transform: scaleX(1); }

.social-icon-wrap { position: relative; overflow: hidden; transition: background 0.3s ease, border-color 0.3s ease; }
.social-link:hover .social-icon-wrap { background: rgba(181, 255, 71, 0.07); }
.social-link { transform: translateY(0); transition: color 0.3s ease, transform 0.3s ease; }
.social-link:hover { transform: translateY(-2px); }

/* ───── GSAP INIT STATES ───── */
.fade-up { opacity: 0; transform: translateY(60px); }
.fade-in { opacity: 0; }
.scale-in { opacity: 0; transform: scale(0.92); }

/* ───── CURSOR ───── */
#cursor {
  width: 10px; height: 10px;
  background: #B5FF47; border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .2s;
  mix-blend-mode: difference;
}
#cursor.expand { width: 48px; height: 48px; opacity: 0.6; }
@media (hover: none) { #cursor { display: none; } }

/* ══════════════════════════════════════════════════
   CARD FAN — the Hand page signature object
   Cards pivot around a point below the deck, so the
   spread arcs the way a real hand does.
   ══════════════════════════════════════════════════ */
.fan {
  position: relative;
  width: 340px; height: 300px;
  margin: 0 auto;
  perspective: 1000px;
}
.fan-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.pcard {
  position: absolute;
  left: 50%; top: 24%;
  width: 112px; height: 158px;
  margin-left: -56px;
  border-radius: 9px;
  background: #F2F0EB;
  color: #0D0D0D;
  border: 1px solid rgba(13,13,13,0.18);
  box-shadow: 0 16px 34px rgba(0,0,0,0.6);
  transform-origin: 50% 148%;
  transform: rotate(calc(var(--i) * 8deg));
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
}
.fan:hover .pcard {
  transform: rotate(calc(var(--i) * 14deg)) translateY(-14px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.7);
}
.pcard .pip-tl, .pcard .pip-br {
  position: absolute;
  font-family: 'Anton', sans-serif;
  font-size: 17px; line-height: 1;
  letter-spacing: .02em;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.pcard .pip-tl { top: 9px; left: 10px; }
.pcard .pip-br { bottom: 9px; right: 10px; transform: rotate(180deg); }
.pcard .center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; line-height: 1;
}
.pcard.red { color: #FF5733; }
.pcard.joker {
  background: #0A0A0A;
  color: #B5FF47;
  border-color: rgba(181,255,71,0.6);
  box-shadow: 0 16px 34px rgba(0,0,0,0.7), 0 0 34px rgba(181,255,71,0.12);
}
.pcard.joker .center { font-size: 40px; }
.pcard.joker .pip-tl, .pcard.joker .pip-br { font-size: 13px; }

@media (max-width: 767px) {
  .fan { width: 270px; height: 240px; }
  .pcard { width: 90px; height: 128px; margin-left: -45px; }
  .pcard .center { font-size: 38px; }
  .pcard .pip-tl, .pcard .pip-br { font-size: 14px; }
}

/* ───── RULE BLOCKS ───── */
.rule-block { border-left: 1px solid rgba(181,255,71,0.3); }
.rule-block.muted { border-left-color: rgba(255,255,255,0.1); }

/* ───── SOON SLOT ───── */
.soon-slot {
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .pcard { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ══════════════════════════════════════════════════
   DOCUMENT PAGES — legal text, long reads
   Quiet by design: no hero object, no reveal motion,
   one readable column.
   ══════════════════════════════════════════════════ */
.doc { color: rgba(255,255,255,0.62); }
.doc h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 3.25rem 0 1rem;
}
.doc h2:first-child { margin-top: 0; }
.doc p { margin-bottom: 1.1rem; line-height: 1.75; max-width: 68ch; }
.doc ul { margin: 0 0 1.4rem 0; padding: 0; list-style: none; max-width: 68ch; }
.doc li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.7;
}
.doc li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: rgba(181,255,71,0.65);
}
.doc strong { color: #fff; font-weight: 600; }
.doc a { color: #B5FF47; text-decoration: none; border-bottom: 1px solid rgba(181,255,71,0.35); }
.doc a:hover { border-bottom-color: #B5FF47; }
.doc .doc-note {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 1.25rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .doc h2 { font-size: 1.6rem; }
  .doc p, .doc li { font-size: 1.05rem; }
}
