/* DICE LINKED website design system. Loaded after /dist/app.css on marketing pages only. */

[x-cloak] { display: none !important; }

:root {
  --ink: #07100e;
  --felt: #13352c;
  --felt-deep: #0a211b;
  --ivory: #f5efdf;
  --ivory-dim: rgba(245, 239, 223, 0.72);
  --muted: #9fb0a5;
  --brass: #e0b561;
  --brass-hi: #f6d898;
  --brass-lo: #a67a2c;
  --line: rgba(245, 239, 223, 0.1);
  --line-strong: rgba(245, 239, 223, 0.2);
  --glass: rgba(12, 30, 25, 0.55);
  --radius: 1.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { background: var(--ink); }

body:not(.app-body) {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(224, 181, 97, 0.12), transparent 60%),
    radial-gradient(50rem 40rem at -10% 10%, rgba(52, 120, 90, 0.28), transparent 60%),
    linear-gradient(180deg, #0b1f19 0%, var(--ink) 55%, #050b0a 100%);
  background-attachment: fixed;
  color: var(--ivory);
}

body:not(.app-body)::before { opacity: 0.22; }

::selection { background: rgba(224, 181, 97, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 0.5rem; }

/* ---------- Type ---------- */

.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--ivory);
  text-wrap: balance;
}

.display-xl { font-size: clamp(3.4rem, 9vw, 8.25rem); }
.display-lg { font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
.display-md { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1; }

.gold-text {
  background: linear-gradient(100deg, var(--brass-hi) 0%, var(--brass) 45%, #c98f3a 70%, var(--brass-hi) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-sheen 8s ease-in-out infinite;
}

@keyframes gold-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lede { color: var(--ivory-dim); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; font-weight: 300; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(245, 239, 223, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--ivory-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.15), 0 0 12px #6ee7a8;
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(110, 231, 168, 0.15), 0 0 12px #6ee7a8; }
  50% { box-shadow: 0 0 0 8px rgba(110, 231, 168, 0), 0 0 18px #6ee7a8; }
}

.site-kicker {
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

/* ---------- Buttons ---------- */

.site-cta,
.site-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), background 250ms, border-color 250ms, color 250ms;
}

.site-cta {
  position: relative;
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 55%, #c9953f 100%);
  color: #1a1407;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(120, 80, 20, 0.35),
    0 10px 30px -8px rgba(224, 181, 97, 0.55);
}

.site-cta:hover,
.site-cta:focus-visible {
  background: linear-gradient(180deg, #fff0c8 0%, var(--brass-hi) 55%, var(--brass) 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(120, 80, 20, 0.3),
    0 18px 40px -10px rgba(224, 181, 97, 0.75);
}

.site-cta-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(245, 239, 223, 0.04);
  color: var(--ivory);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.site-cta-secondary:hover,
.site-cta-secondary:focus-visible {
  border-color: rgba(224, 181, 97, 0.6);
  background: rgba(224, 181, 97, 0.08);
  color: var(--brass-hi);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.05rem 1.75rem; font-size: 0.78rem; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--ivory);
  transition: transform 250ms var(--ease-out), border-color 250ms, background 250ms;
}

.store-badge:hover { transform: translateY(-2px); border-color: rgba(224, 181, 97, 0.5); background: rgba(0, 0, 0, 0.5); }
.store-badge i { font-size: 1.7rem; }
.store-badge small { display: block; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.store-badge strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; line-height: 1.2; margin-top: 0.2rem; }

/* ---------- Header ---------- */

.site-header { border: 0; pointer-events: none; }

.nav-shell {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 300ms, border-color 300ms, box-shadow 300ms, padding 300ms;
}

.nav-shell.is-scrolled {
  background: rgba(9, 22, 18, 0.72);
  border-color: var(--line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.site-nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 200ms, background 200ms;
}

.site-nav-link:hover { color: var(--ivory); background: rgba(245, 239, 223, 0.06); }

/* nav-manager.js toggles these classes on the active link. */
.site-nav-link.font-bold { color: var(--ivory); background: rgba(245, 239, 223, 0.08); }
.site-nav-link.border-b-2 { border-bottom-width: 0; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(245, 239, 223, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 500ms var(--ease-out);
}

a:hover > .logo-mark { transform: rotate(-12deg) scale(1.05); }

.site-wordmark { letter-spacing: -0.04em; }

/* ---------- Mobile menu ---------- */

.mobile-sheet {
  background:
    radial-gradient(40rem 30rem at 100% 0%, rgba(224, 181, 97, 0.12), transparent 60%),
    rgba(6, 14, 12, 0.96);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.mobile-sheet .mobile-link:not(.site-cta) {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ivory);
  transition: color 200ms, transform 300ms var(--ease-out);
}

.mobile-sheet .mobile-link:not(.site-cta):hover { color: var(--brass); transform: translateX(6px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(920px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(38rem 26rem at 72% 38%, rgba(224, 181, 97, 0.22), transparent 65%),
    radial-gradient(30rem 30rem at 20% 20%, rgba(60, 140, 105, 0.3), transparent 65%);
  filter: blur(10px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero-stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 520px);
  margin-inline: auto;
  perspective: 1400px;
}

.hero-stage .halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 181, 97, 0.35), transparent 65%);
  filter: blur(40px);
  animation: halo-breathe 6s ease-in-out infinite;
}

.hero-stage .ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transform: rotateX(72deg);
}

.hero-stage .ring.r2 { inset: -6%; border-color: var(--line); border-style: dashed; animation: spin-flat 60s linear infinite; }

.hero-stage .shadow {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 46%;
  height: 8%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.65), transparent);
  animation: shadow-bob 6s ease-in-out infinite;
}

@keyframes halo-breathe { 0%, 100% { opacity: 0.75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes spin-flat { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes shadow-bob { 0%, 100% { scale: 1; opacity: 0.9; } 50% { scale: 0.78; opacity: 0.6; } }

/* ---------- CSS 3D die ---------- */

.die3d {
  --s: 170px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform-style: preserve-3d;
  animation: die-tumble 16s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.die3d.small {
  --s: 64px;
  animation-duration: 11s;
  animation-direction: reverse;
}

.die3d .face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 16%;
  border-radius: 10%;
  background:
    radial-gradient(circle at 30% 25%, #fffaf0, #efe4c9 55%, #d7c69c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 -10px 24px rgba(140, 110, 50, 0.3),
    inset 0 8px 16px rgba(255, 255, 255, 0.6);
  backface-visibility: hidden;
}

.die3d .face i {
  width: 70%;
  aspect-ratio: 1;
  place-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c5a4a, #0a211b 70%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.6);
}

.die3d .face.gold {
  background: radial-gradient(circle at 30% 25%, #fff2c9, var(--brass) 55%, var(--brass-lo) 100%);
}
.die3d .face.gold i { background: radial-gradient(circle at 35% 30%, #3a2a0c, #140d02 70%); }

.die3d .f1 { transform: translateZ(calc(var(--s) / 2)); }
.die3d .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die3d .f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f5 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f3 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.die3d .f4 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* Pip placement on a 3x3 grid: a=top-left ... i=bottom-right */
.p-a { grid-area: 1 / 1; } .p-b { grid-area: 1 / 2; } .p-c { grid-area: 1 / 3; }
.p-d { grid-area: 2 / 1; } .p-e { grid-area: 2 / 2; } .p-f { grid-area: 2 / 3; }
.p-g { grid-area: 3 / 1; } .p-h { grid-area: 3 / 2; } .p-i { grid-area: 3 / 3; }

@keyframes die-tumble {
  0%   { transform: translateY(0) rotateX(-24deg) rotateY(-38deg) rotateZ(0deg); }
  25%  { transform: translateY(-18px) rotateX(66deg) rotateY(52deg) rotateZ(20deg); }
  50%  { transform: translateY(0) rotateX(156deg) rotateY(142deg) rotateZ(0deg); }
  75%  { transform: translateY(-18px) rotateX(246deg) rotateY(232deg) rotateZ(-20deg); }
  100% { transform: translateY(0) rotateX(336deg) rotateY(322deg) rotateZ(0deg); }
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(10, 26, 22, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--ivory);
  white-space: nowrap;
  animation: chip-float 7s ease-in-out infinite;
}

.float-chip .avatar {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1407;
}

.float-chip b { color: var(--brass-hi); font-weight: 700; }
.float-chip.c2 { animation-delay: -2.3s; }
.float-chip.c3 { animation-delay: -4.6s; }

@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span::after { content: '✦'; color: var(--brass); font-size: 0.8em; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections & cards ---------- */

.section { position: relative; padding-block: clamp(5rem, 10vw, 9rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245, 239, 223, 0.07), rgba(12, 30, 25, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 400ms, transform 500ms var(--ease-out), background 400ms;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(28rem 20rem at var(--mx, 50%) var(--my, -20%), rgba(224, 181, 97, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 400ms;
}

.card:hover { border-color: rgba(224, 181, 97, 0.28); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.card p { color: var(--muted); line-height: 1.65; font-size: 0.95rem; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(160deg, rgba(224, 181, 97, 0.22), rgba(224, 181, 97, 0.04));
  box-shadow: inset 0 0 0 1px rgba(224, 181, 97, 0.3), 0 10px 24px -12px rgba(224, 181, 97, 0.6);
  color: var(--brass-hi);
  font-size: 1.45rem;
}

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

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > .span-2 { grid-column: span 2; }
  .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; }
}

.bento .card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; min-height: 15rem; }

.sync-viz {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.sync-viz .device {
  flex: 1;
  max-width: 5.75rem;
  padding: 0.28rem 0.28rem 0.38rem;
  border-radius: 0.95rem;
  background: linear-gradient(165deg, #3a3226, #16130f 55%, #2a2418);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 28px -18px rgba(0, 0, 0, 0.85);
}

.sync-screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  border-radius: 0.7rem;
  background:
    radial-gradient(ellipse at 50% 38%, #1f6b58 0%, #15493c 42%, #0a2720 100%);
  box-shadow: inset 0 0 0 1px rgba(224, 181, 97, 0.35);
}

.sync-screen::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 34%;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
}

.sync-d20 {
  position: relative;
  width: 2.55rem;
  height: 2.85rem;
}

.sync-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.05rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(2px);
  animation: sync-shadow-rest 2.6s ease-in-out infinite;
}

.sync-d20-spin {
  position: absolute;
  inset: 0 0 0.35rem;
  display: grid;
  place-items: center;
  animation: sync-float 2.6s ease-in-out infinite;
}

.sync-d20-die {
  position: relative;
  width: 2.15rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 27%, 82% 100%, 18% 100%, 0 27%);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.7), transparent 38%),
    radial-gradient(circle at 32% 28%, #fff8e6, #f3d48a 48%, #b8893a 100%);
  box-shadow: inset 0 -10px 14px rgba(120, 78, 18, 0.28);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1c1507;
}

.sync-d20-die::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 62%;
  height: 54%;
  transform: translate(-50%, -42%);
  border: 1px solid rgba(90, 55, 12, 0.28);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.sync-d20-die span {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.sync-viz.is-rolling .sync-d20-spin {
  animation: sync-roll 0.84s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sync-viz.is-rolling .sync-shadow {
  animation: sync-shadow-roll 0.84s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sync-viz.is-landed .sync-d20-spin {
  animation: sync-settle 0.42s var(--ease-out) both, sync-float 2.8s ease-in-out 0.42s infinite;
}

.sync-viz.is-landed .sync-d20-die {
  box-shadow:
    inset 0 -10px 14px rgba(120, 78, 18, 0.28),
    0 0 0 1px rgba(224, 181, 97, 0.55);
}

.sync-viz.is-landed .sync-screen {
  box-shadow:
    inset 0 0 0 1px rgba(224, 181, 97, 0.7),
    inset 0 0 18px rgba(224, 181, 97, 0.12);
}

@keyframes sync-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes sync-roll {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-9px) rotate(140deg) scale(0.92); }
  45% { transform: translateY(1px) rotate(280deg) scale(1); }
  70% { transform: translateY(-7px) rotate(460deg) scale(0.94); }
  100% { transform: translateY(0) rotate(720deg) scale(1); }
}

@keyframes sync-settle {
  0% { transform: translateY(-8px) scale(1.08); }
  55% { transform: translateY(2px) scale(0.94); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes sync-shadow-rest {
  0%, 100% { transform: scaleX(1); opacity: 0.55; }
  50% { transform: scaleX(0.82); opacity: 0.35; }
}

@keyframes sync-shadow-roll {
  0% { transform: scaleX(1); opacity: 0.5; }
  20% { transform: scaleX(0.55); opacity: 0.25; }
  45% { transform: scaleX(1.05); opacity: 0.55; }
  70% { transform: scaleX(0.6); opacity: 0.28; }
  100% { transform: scaleX(1); opacity: 0.5; }
}

.sync-viz .wire {
  position: relative;
  flex: 1;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(224, 181, 97, 0.35), transparent);
}

.sync-viz .wire span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-hi);
  box-shadow: 0 0 10px var(--brass);
  transform: translate(-50%, -50%);
  animation: sync-bead 0.84s linear infinite;
}

.sync-viz.is-landed .wire {
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.sync-viz.is-landed .wire span {
  animation: none;
  left: 50%;
  opacity: 1;
}

@keyframes sync-bead {
  0% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.die-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }

.die-row span {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ivory-dim);
  transition: color 200ms, border-color 200ms, background 200ms;
}

.die-row span:hover { color: #1a1407; background: var(--brass); border-color: var(--brass); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { padding: 2rem; }

.step::after {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 239, 223, 0.14);
}

/* ---------- Phones / media ---------- */

.phone {
  position: relative;
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: linear-gradient(160deg, #2a3b34, #0c1613 40%, #1b2923);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone > .screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.9rem;
  background: #050a09;
}

.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 30%);
}

.video-stage { position: relative; }

.video-stage::before {
  content: '';
  position: absolute;
  inset: -15%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(224, 181, 97, 0.28), transparent);
  filter: blur(30px);
}

.gallery {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1.25rem 2.5rem;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery > button {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 280px);
  scroll-snap-align: center;
  text-align: left;
  transition: transform 500ms var(--ease-out);
}

/* Must beat .js .reveal.in (transform: none) — even nth-child used to, odds did not. */
.js .gallery > button.reveal:hover { transform: translateY(-8px) rotate(-1deg); }
.js .gallery > button.reveal:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }

/* Marketing screenshots already include phone chrome + headline (767×1024). */
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 767 / 1024;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.85);
}

.gallery figcaption {
  margin-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ivory);
}

.gallery figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; margin-top: 0.15rem; }

.gallery-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(245, 239, 223, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--ivory);
  transition: background 200ms, border-color 200ms, color 200ms;
}

.gallery-btn:hover { background: var(--brass); border-color: var(--brass); color: #1a1407; }

/* ---------- CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  border: 1px solid rgba(224, 181, 97, 0.25);
  border-radius: 2rem;
  background:
    radial-gradient(40rem 25rem at 100% 0%, rgba(224, 181, 97, 0.25), transparent 60%),
    radial-gradient(30rem 25rem at 0% 100%, rgba(52, 140, 100, 0.35), transparent 60%),
    linear-gradient(160deg, #143a30, #0a1f1a);
}

.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(245, 239, 223, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(12, 30, 25, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 300ms, background 300ms;
}

.faq-item:has(.is-open) { border-color: rgba(224, 181, 97, 0.3); background: rgba(224, 181, 97, 0.04); }

.faq-item button { font-size: 1.05rem; }
.faq-item button:hover { color: var(--brass-hi); }

.faq-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 400ms var(--ease-out), background 300ms, color 300ms;
}

.is-active .faq-icon { transform: rotate(45deg); background: var(--brass); color: #1a1407; border-color: var(--brass); }

/* ---------- Inner pages ---------- */

.page-hero { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2rem, 4vw, 3rem); }

.prose-card { padding: clamp(1.75rem, 4vw, 3rem); }
.prose-card h2, .prose-card h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; color: var(--ivory); }
.prose-card p, .prose-card li { color: var(--ivory-dim); line-height: 1.75; }
.prose-card strong { color: var(--ivory); }

.legal-page .legal-body section {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(12, 30, 25, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.legal-page section:first-child {
  border-left: 1px solid rgba(224, 181, 97, 0.45);
  background: linear-gradient(120deg, rgba(224, 181, 97, 0.08), rgba(245, 239, 223, 0.02) 60%);
}

.legal-page .legal-body section:last-child { border: 0; background: none; backdrop-filter: none; padding-inline: 0; }

.legal-page h2, .legal-page h3 { color: var(--ivory) !important; letter-spacing: -0.02em; }
.legal-page .text-cyan-400 { color: var(--brass-hi); }
.legal-page li::marker { color: var(--brass); }

.stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ivory);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--muted);
}

.site-footer a { transition: color 200ms; }
.site-footer a:hover { color: var(--brass-hi); }

.footer-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 15rem);
  letter-spacing: -0.07em;
  line-height: 0.8;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(245, 239, 223, 0.12), rgba(245, 239, 223, 0));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  margin-bottom: -0.1em;
}

/* ---------- Reveal on scroll (site.js adds .in) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Loading ---------- */

.page-loader { display: grid; place-items: center; min-height: 60vh; }
.page-loader .die3d { position: relative; top: auto; left: auto; margin: 0; }

/* ---------- Localized dice-roller landers ---------- */

/* Landers were built on Tailwind's emerald/teal/cyan scales; remap them to the brass-and-felt palette. */
body.lander {
  background-color: transparent !important;
  --color-emerald-200: #fbe8bd;
  --color-emerald-300: var(--brass-hi);
  --color-emerald-400: var(--brass);
  --color-emerald-500: var(--brass);
  --color-emerald-800: #6b5222;
  --color-emerald-900: #4a3a19;
  --color-emerald-950: #2a2110;
  --color-teal-400: #d9a24b;
  --color-teal-500: #c98f3a;
  --color-cyan-400: var(--brass-hi);
  --color-cyan-500: var(--brass);
}

body.lander main {
  padding-top: 7.5rem;
}

body.lander main > div:first-child {
  position: relative;
  padding-block: clamp(2rem, 6vw, 4rem);
}

body.lander main > div:first-child::before {
  content: '';
  position: absolute;
  inset: -30% -20%;
  z-index: -1;
  background: radial-gradient(34rem 22rem at 50% 30%, rgba(224, 181, 97, 0.2), transparent 70%);
  pointer-events: none;
}

body.lander .hero-title,
body.lander h1 {
  font-size: clamp(2.8rem, 7vw, 6.25rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-wrap: balance;
}

body.lander .hero-title em,
body.lander h1 em { color: var(--brass-hi); font-style: normal; }

body.lander h2 { letter-spacing: -0.03em; }

body.lander .rounded-2xl.border,
body.lander .rounded-3xl.border,
body.lander .rounded-xl.border,
body.lander .rounded-lg.border {
  border-color: var(--line) !important;
  background-color: rgba(12, 30, 25, 0.42) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.lander .rounded-2xl.border:hover,
body.lander a.rounded-xl.border:hover { border-color: rgba(224, 181, 97, 0.35) !important; }

body.lander section.mt-16 .grid > div,
body.lander section .grid > .group { transition: transform 500ms var(--ease-out), border-color 300ms; }
body.lander section .grid > .group:hover { transform: translateY(-6px); }

body.lander section .grid.gap-8 > div.flex {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(12, 30, 25, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.lander > footer {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track, .die3d, .float-chip, .gold-text, .sync-d20-spin, .sync-shadow, .sync-viz .wire span { animation: none !important; }
}
