/* 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: var(--font-display);
  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 { color: var(--brass-hi); }

@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: var(--font-display);
  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: var(--font-display); 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;
}

.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: var(--font-display);
  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: var(--font-display);
  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-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: var(--font-display);
  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: var(--font-display);
  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: var(--font-display);
  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: var(--font-display);
  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: var(--font-display);
  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: var(--font-display);
  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: var(--font-display);
  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: var(--font-display); 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: var(--font-display);
  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: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 15rem);
  letter-spacing: -0.07em;
  line-height: 0.8;
  white-space: nowrap;
  text-align: center;
  color: rgba(243, 234, 210, 0.07);
  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.5rem, 5.4vw, 4.9rem);
  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; }
}

/* ---------- Small-viewport and touch-target fixes ---------- */

/* Decorative rings and the gallery row must not widen the page past the viewport. */
html, body { overflow-x: clip; }

.brand-sub { font-size: 0.65rem; }
.site-cta { white-space: nowrap; }

@media (max-width: 420px) {
  .nav-shell { gap: 0.5rem; padding-left: 0.75rem; }
  .nav-shell .site-wordmark { font-size: 1rem; }
  .nav-shell .site-cta { padding: 0.7rem 0.95rem; }
  .nav-shell .site-cta i { display: none; }
}

/* 44px-tall footer links; padding replaces the flex gap. */
.site-footer nav { gap: 0; }
.site-footer nav a { display: block; padding-block: 0.7rem; }

/* =====================================================================
   Felt table world: the site is one green baize table seen from above,
   with a brass rail, ivory dice, brass plaques, and phones laid flat.
   ===================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
  --brass-plate: url('/assets/images/brass-grain.webp') 0 0 / 256px 96px repeat, linear-gradient(180deg, #fbe6ad 0%, #e6bd68 46%, #c4923b 100%);
  --stitch: rgba(224, 181, 97, 0.34);
}

.font-header { font-family: var(--font-display); }

/* Baize: lamp pool above, dark baize at the edges, fine woven grain over it. */
body:not(.app-body) {
  background:
    url('/assets/images/felt.webp') 0 0 / 240px 240px repeat,
    radial-gradient(64rem 34rem at 50% -4%, rgba(255, 230, 170, 0.2), transparent 66%),
    radial-gradient(130rem 90rem at 50% 28%, #1f5240 0%, #15392d 40%, #0b261d 74%, #06160f 100%);
  background-attachment: scroll, fixed, fixed;
}

body:not(.app-body)::before { display: none; }

/* The table's brass rail runs down both edges of the viewport. */
html::before,
html::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 7px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(90deg, #7a5920, #e9c373 30%, #f8dc9a 48%, #b78a36 76%, #6b4b16);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}
html::before { left: 0; }
html::after { right: 0; transform: scaleX(-1); }
@media (max-width: 640px) { html::before, html::after { width: 3px; } }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }

.brass { color: var(--brass-hi); font-style: normal; }

.display { font-weight: 750; letter-spacing: -0.032em; line-height: 0.98; font-variation-settings: 'wdth' 92, 'opsz' 72; }
.display-xl { font-size: clamp(3.3rem, 7.6vw, 7rem); }
.text-link { color: var(--brass-hi); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.text-link:hover { color: #fff0c8; }

::selection { background: var(--brass); color: #1a1407; }
html { scrollbar-color: #8a6a28 #0b261d; scrollbar-width: thin; }
.faq-item button, .lede, .card p { font-family: 'Outfit', sans-serif; }

/* ---------- Brass plaques (primary actions) ---------- */

.plaque {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.75rem;
  padding: 0.7rem 1.5rem 0.7rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--brass-plate);
  color: #1d1406;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 3px rgba(112, 72, 14, 0.42),
    inset 0 0 0 1px rgba(112, 72, 14, 0.6),
    0 14px 24px -10px rgba(0, 0, 0, 0.7);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), filter 220ms;
}

.plaque i { font-size: 1.9rem; line-height: 1; }
.plaque span { display: flex; flex-direction: column; line-height: 1.05; }
.plaque small { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.8; }
.plaque strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }

.plaque:hover, .plaque:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 3px rgba(112, 72, 14, 0.42),
    inset 0 0 0 1px rgba(112, 72, 14, 0.5),
    0 20px 30px -12px rgba(0, 0, 0, 0.75);
}
.plaque:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(112, 72, 14, 0.5), 0 6px 10px -6px rgba(0, 0, 0, 0.7); }

/* ---------- Head of the table ---------- */

.table-head { position: relative; padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem); }

.table-head__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .table-head__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 1rem; } }

.install { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }
.play-link { margin-top: 1.5rem; }
.play-link a { color: var(--ivory-dim); text-decoration: underline; text-decoration-color: var(--stitch); text-underline-offset: 0.3em; transition: color 200ms; }
.play-link a:hover { color: var(--brass-hi); }
.play-link i { margin-left: 0.25rem; }

.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 0; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--stitch); color: var(--muted); font-size: 0.9rem; max-width: 36rem; }
.facts li { display: flex; align-items: center; }
.facts li + li::before { content: ''; width: 5px; height: 5px; margin-inline: 0.85rem; border-radius: 50%; background: var(--brass); opacity: 0.8; }

/* The table seen from above: three phones laid on the baize, one throw on all of them. */
.scene { position: relative; width: 100%; max-width: 40rem; aspect-ratio: 1 / 1.08; margin-inline: auto; display: block; padding: 0; }
.scene .wire { display: none; }

.scene-phone { position: absolute; width: 33%; filter: drop-shadow(0 28px 22px rgba(0, 0, 0, 0.55)); }
.scene-phone .bezel { padding: 0.5rem; border-radius: 1.5rem; background: linear-gradient(160deg, #3b3427, #15120e 55%, #2b2519); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.scene-phone .sync-screen { aspect-ratio: 9 / 17; border-radius: 1.05rem; }
.scene-phone .sync-d20 { transform: scale(2.3); }
.scene-phone.p1 { width: 38%; left: 31%; top: 7%; transform: rotate(4deg); z-index: 3; }
.scene-phone.p2 { left: 2%; top: 30%; transform: rotate(-10deg); z-index: 2; }
.scene-phone.p3 { left: 64%; top: 38%; transform: rotate(12deg); z-index: 2; }

.toss { position: absolute; width: 0; height: 0; perspective: 900px; z-index: 5; animation: toss-in 1.3s var(--ease-out) both; }
.toss.t1 { left: 47%; top: 68%; }
.toss.t2 { left: 82%; top: 20%; animation-delay: 120ms; }
.toss.t3 { left: 14%; top: 18%; animation-delay: 240ms; }
.toss .die3d { animation-duration: 18s; }
@keyframes toss-in {
  0% { transform: translate(-90px, -280px) rotate(-160deg) scale(1.5); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

.roll-tag {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  border-radius: 0.5rem;
  background: #f3ead2;
  color: #2a2110;
  font-size: 0.8rem;
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(160, 120, 40, 0.4);
  white-space: nowrap;
}
.roll-tag b { color: #5a3d0a; font-family: var(--font-display); }
.roll-tag .avatar { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 0.65rem; font-weight: 700; color: #1a1407; }
.roll-tag i { color: #1d7a52; font-size: 1.1rem; margin-left: 0.3rem; }
.roll-tag.tag1 { top: 4%; left: 0; transform: rotate(-4deg); }
.roll-tag.tag2 { bottom: 8%; right: 0; transform: rotate(3deg); }
.roll-tag.tag3 { bottom: 0; left: 6%; transform: rotate(-2deg); padding-left: 0.75rem; }

/* ---------- Rail: engraved brass band ---------- */

.rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  background: var(--brass-plate);
  box-shadow: inset 0 0 0 1px rgba(90, 58, 10, 0.55), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  color: #2b1d07;
}
.rail span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rail span + span::before { content: ''; width: 6px; height: 6px; margin-inline: 1.1rem; background: currentColor; opacity: 0.7; transform: rotate(45deg); }

/* ---------- Stray dice: tossed down the table, they land once per section ---------- */

.d6 {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  width: 3.6rem;
  aspect-ratio: 1;
  padding: 0.55rem;
  border-radius: 0.7rem;
  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 -4px 8px rgba(140, 110, 50, 0.32), 0 14px 18px -6px rgba(0, 0, 0, 0.7);
}
.d6 i { width: 80%; aspect-ratio: 1; place-self: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2c5a4a, #0a211b 70%); }
.stray { position: absolute; z-index: 2; pointer-events: none; transform: rotate(var(--r, 12deg)); }
.stray.s1 { top: 4%; right: 6%; --r: 18deg; }
.stray.s2 { top: 2%; left: 4%; --r: -22deg; width: 3rem; }
.stray.s3 { top: 9%; right: 9%; --r: 34deg; width: 2.6rem; }
.js .stray.land { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) - 200deg)) scale(1.35); }
.js .section.is-seen .stray.land { opacity: 1; transform: rotate(var(--r)); transition: transform 900ms var(--ease-out), opacity 300ms; }
@media (max-width: 640px) { .stray { display: none; } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

.tens__grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .tens__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; } }
.tens__phone { max-width: 20rem; width: 100%; margin-inline: auto; transform: rotate(-3deg); filter: drop-shadow(0 34px 28px rgba(0, 0, 0, 0.55)); }
.js .tens__phone.reveal.in { transform: rotate(-3deg); }

.path { position: relative; margin-top: 3rem; display: grid; gap: 2rem; }
.path::before { content: ''; position: absolute; left: 1.6rem; top: 1.8rem; bottom: 1.8rem; border-left: 2px dashed var(--stitch); }
.path li { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; }
.path h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ivory); }
.path p { margin-top: 0.35rem; color: var(--muted); line-height: 1.6; max-width: 30rem; }

.chip {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6d898, #d4a24b 60%, #a77a2c);
  color: #1d1406;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18), inset 0 0 0 5px rgba(112, 72, 14, 0.45), 0 10px 16px -6px rgba(0, 0, 0, 0.75);
}

/* The tray: zones inlaid on the baize with brass keyline and stitching. */
.tray { position: relative; }
.tray__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.zones { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .zones { grid-template-columns: repeat(12, 1fr); }
  .z-sync { grid-column: span 7; }
  .z-feel { grid-column: span 5; }
  .z-dice { grid-column: span 6; }
  .z-nolog { grid-column: span 6; }
  .z-boom { grid-column: span 7; }
  .z-qr { grid-column: span 5; }
}

.zone, .card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(224, 181, 97, 0.5);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.32));
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}
.zone::before, .card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 0.85rem;
  border: 1px dashed var(--stitch);
  background: none;
  opacity: 1;
  pointer-events: none;
}
.card:hover { transform: none; border-color: rgba(224, 181, 97, 0.7); }
.zone h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.035em; color: var(--ivory); position: relative; }
.zone p { margin-top: 0.7rem; color: var(--muted); line-height: 1.65; max-width: 34rem; position: relative; }
.zone > div, .zone > ul { position: relative; }

.roomplate { display: inline-flex; flex-direction: column; margin-top: 1.5rem; padding: 0.6rem 1.1rem; border-radius: 0.6rem; background: var(--brass-plate); color: #1d1406; box-shadow: 0 10px 14px -8px rgba(0, 0, 0, 0.7); transform: rotate(-2deg); }
.roomplate small { font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.roomplate strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: 0.14em; line-height: 1.1; }
.seats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.seats li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem 0.4rem 0.4rem; border-radius: 999px; background: rgba(243, 234, 210, 0.08); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.85rem; color: var(--ivory); }
.seats .avatar { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 0.65rem; font-weight: 700; color: #1a1407; }

.wave { display: flex; align-items: center; gap: 5px; height: 4rem; margin-top: 1.5rem; }
.wave i { flex: 1; max-width: 10px; height: 100%; border-radius: 99px; background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo)); transform: scaleY(var(--h, 0.4)); animation: wave 1.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.17s); }
.wave i:nth-child(1) { --h: .3; --i: 1 } .wave i:nth-child(2) { --h: .6; --i: 2 } .wave i:nth-child(3) { --h: .9; --i: 3 } .wave i:nth-child(4) { --h: .5; --i: 4 } .wave i:nth-child(5) { --h: 1; --i: 5 } .wave i:nth-child(6) { --h: .7; --i: 6 } .wave i:nth-child(7) { --h: .35; --i: 7 } .wave i:nth-child(8) { --h: .8; --i: 8 } .wave i:nth-child(9) { --h: .45; --i: 9 } .wave i:nth-child(10) { --h: .65; --i: 10 } .wave i:nth-child(11) { --h: .3; --i: 11 }
@keyframes wave { 0%, 100% { transform: scaleY(var(--h)); } 50% { transform: scaleY(calc(var(--h) * 0.45)); } }

.dice-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem; margin-top: 1.5rem; }
.die-flat { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; color: #2a2110; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; background: radial-gradient(circle at 30% 25%, #fffaf0, #efe4c9 55%, #d3bf8e 100%); filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.55)); transition: transform 300ms var(--ease-out); }
.die-flat:hover { transform: translateY(-4px) rotate(-6deg); }
.die-flat b { font-weight: 800; transform: translateY(4%); }
.die-flat.d4 { clip-path: polygon(50% 4%, 98% 96%, 2% 96%); width: 3.4rem; height: 3rem; }
.die-flat.d4 b { transform: translateY(24%); }
.die-flat.sq { border-radius: 0.55rem; }
.die-flat.d8 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.die-flat.d10 { clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
.die-flat.d12 { clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.die-flat.d20 { clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); background: radial-gradient(circle at 30% 25%, #fff2c9, #e0b561 55%, #a67a2c 100%); }
.die-flat.d100 { border-radius: 50%; width: 3.4rem; }
.die-flat.fate { border-radius: 0.55rem; width: 3.6rem; background: radial-gradient(circle at 30% 25%, #e8fff4, #b9e8d0 55%, #7fbf9f); }
.die-flat.arrows { border-radius: 999px; width: auto; height: 2.4rem; padding-inline: 0.9rem; font-size: 0.85rem; }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.5rem; font-family: var(--font-display); }
.chain b { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.6rem; background: radial-gradient(circle at 30% 25%, #fffaf0, #efe4c9 55%, #d3bf8e 100%); color: #2a2110; font-size: 1.4rem; font-weight: 800; box-shadow: 0 8px 8px -4px rgba(0, 0, 0, 0.6); }
.chain b:nth-of-type(1), .chain b:nth-of-type(2) { background: radial-gradient(circle at 30% 25%, #fff2c9, #e0b561 55%, #a67a2c 100%); }
.chain i { font-style: normal; color: var(--brass); font-size: 1.4rem; }
.chain strong { font-size: 2.6rem; font-weight: 800; color: var(--brass-hi); letter-spacing: -0.04em; margin-left: 0.3rem; }

.qr { width: 8.5rem; margin-top: 1.5rem; padding: 0.55rem; border-radius: 0.7rem; background: #f6efdb; color: #0b261d; box-shadow: 0 14px 18px -10px rgba(0, 0, 0, 0.75); transform: rotate(2deg); }
.qr svg { display: block; width: 100%; height: auto; }

/* ---------- Prints on the table ---------- */

.prints { overflow: hidden; }
.gallery { gap: 1.75rem; padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem; }
.gallery > button { width: clamp(220px, 24vw, 270px); }
.gallery > button:nth-child(odd) { transform: rotate(-1.6deg); }
.gallery > button:nth-child(even) { transform: translateY(1.2rem) rotate(1.4deg); }
.js .gallery > button.reveal.in:nth-child(odd) { transform: rotate(-1.6deg); }
.js .gallery > button.reveal.in:nth-child(even) { transform: translateY(1.2rem) rotate(1.4deg); }
.js .gallery > button.reveal:hover, .js .gallery > button.reveal:nth-child(even):hover { transform: translateY(-8px) rotate(0deg); }
.gallery img { border-radius: 0.35rem; border: 7px solid #f3ead2; box-shadow: 0 30px 40px -22px rgba(0, 0, 0, 0.9); }
.gallery figcaption { margin-top: 1.1rem; }

/* ---------- Head plate: the install close ---------- */

.head-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 1.75rem;
  border: 3px solid #d4a24b;
  background: radial-gradient(60rem 30rem at 85% -10%, rgba(255, 230, 170, 0.18), transparent 60%), linear-gradient(160deg, #19503f, #0d2e24);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, 0.4), inset 0 0 60px rgba(0, 0, 0, 0.45), 0 40px 60px -30px rgba(0, 0, 0, 0.9);
}
.head-plate::before { content: ''; position: absolute; inset: 10px; border-radius: 1.2rem; border: 1px dashed var(--stitch); pointer-events: none; }
@media (min-width: 1024px) { .head-plate { flex-direction: row; align-items: center; justify-content: space-between; } }
.head-plate__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; position: relative; }

/* ---------- FAQ as a ruled ledger ---------- */

.faq-list { border-top: 1px solid var(--stitch); }
.faq-item { border: 0; border-bottom: 1px solid var(--stitch); border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.faq-item:has(.is-open) { border-color: var(--stitch); background: rgba(0, 0, 0, 0.16); }
.faq-item button span:first-child { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Header, footer, inner pages in the same world ---------- */

.nav-shell.is-scrolled { background: rgba(8, 28, 21, 0.9); border-color: rgba(224, 181, 97, 0.38); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-cta { border-radius: 0.75rem; background: var(--brass-plate); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.7); }
.site-cta-secondary { border-radius: 0.75rem; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-footer { border-top: 0; background: rgba(0, 0, 0, 0.35); backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, #e8c27a, #b78731) top / 100% 4px no-repeat, rgba(0, 0, 0, 0.35); }

.eyebrow { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0.4rem; }
.legal-page .legal-body section, .legal-body section { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, 0.2); border-color: rgba(224, 181, 97, 0.28); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35); }
.legal-page section:first-child { border-left: 1px solid rgba(224, 181, 97, 0.28); background: rgba(0, 0, 0, 0.2); }
.stat { font-weight: 800; }
.icon-tile { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d898, #d4a24b 60%, #a77a2c); color: #1d1406; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), 0 8px 12px -6px rgba(0, 0, 0, 0.7); }
body.lander .rounded-2xl.border, body.lander .rounded-3xl.border, body.lander .rounded-xl.border, body.lander .rounded-lg.border, body.lander section .grid.gap-8 > div.flex, body.lander > footer { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Reveals: no blur, short travel. */
.js .reveal { filter: none; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .toss, .wave i { animation: none !important; }
  .js .stray.land { opacity: 1; transform: rotate(var(--r)); }
}

.hero::after { display: none; }
.hero::before { background: radial-gradient(38rem 24rem at 72% 30%, rgba(255, 230, 170, 0.12), transparent 65%); filter: none; }

.store-badge { border-radius: 0.9rem; background: var(--brass-plate); color: #1d1406; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 14px 24px -10px rgba(0, 0, 0, 0.7); }
.store-badge small { color: rgba(29, 20, 6, 0.75); }
.store-badge strong { color: #1d1406; }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tags li { padding: 0.5rem 0.9rem; border-radius: 0.4rem; background: var(--brass-plate); color: #1d1406; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 8px 10px -6px rgba(0, 0, 0, 0.7); }
.tags li:nth-child(odd) { transform: rotate(-1.5deg); }
.tags li:nth-child(even) { transform: rotate(1.2deg); }

.store-badge:hover { background: var(--brass-plate); border-color: transparent; filter: brightness(1.06); }

@media (max-width: 640px) {
  .rail { gap: 0.4rem 1.1rem; }
  .rail span + span::before { display: none; }
}

.plaque small, .store-badge small { font-size: 0.72rem; }

/* ---- Review fixes ---- */
.site-nav-link { color: var(--ivory-dim); }
.display-xl { font-size: clamp(3.3rem, 7.6vw, 6rem); }
.facts li:not(:last-child)::after { content: ''; width: 5px; height: 5px; margin-inline: 0.85rem; border-radius: 50%; background: var(--brass); opacity: 0.8; }
.facts li + li::before { content: none; }
.site-footer .store-badge small, .site-footer .store-badge strong { text-transform: none; letter-spacing: normal; }

/* One inlaid tray: a single brass keyline, compartments split by stitching. */
.zones { display: grid; grid-template-columns: 1fr; gap: 0; border: 2px solid #c79a45; border-radius: 1.5rem; overflow: hidden; background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.36)); box-shadow: inset 0 3px 18px rgba(0, 0, 0, 0.5), 0 24px 40px -24px rgba(0, 0, 0, 0.8); }
@media (min-width: 768px) { .zones { grid-template-columns: 1fr 1fr; } .tray-col + .tray-col { border-left: 1px dashed var(--stitch); } }
.tray-col + .tray-col { border-top: 1px dashed var(--stitch); }
@media (min-width: 768px) { .tray-col + .tray-col { border-top: 0; } }
.zones .zone { grid-column: auto; border: 0; border-radius: 0; background: none; box-shadow: none; padding: clamp(1.5rem, 3vw, 2.5rem); }
.zones .zone::before { display: none; }
.zones .zone + .zone { border-top: 1px dashed var(--stitch); }
.zones .z-sync .roomplate { transform: rotate(-3deg) scale(1.15); transform-origin: left center; margin-top: 1.75rem; }
.zones .z-boom .chain b { width: 3.6rem; height: 3.6rem; font-size: 1.7rem; }
.zones .z-boom .chain strong { font-size: 3.4rem; }
.zones .z-qr .qr { width: 10rem; }
.faq-list, .faq-item { border-color: rgba(224, 181, 97, 0.28); }

/* Screenshots keep their store backdrops; frame them in brass so they sit on the table. */
.gallery img { border: 6px solid #c79a45; border-radius: 0.5rem; box-shadow: 0 0 0 1px rgba(60, 38, 6, 0.8), 0 30px 40px -22px rgba(0, 0, 0, 0.9); }

/* Click-to-play cue over the cross-origin YouTube frame. */
.screen { position: relative; }
.play-glow { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 0.9rem; background: radial-gradient(ellipse at 50% 38%, #1f6b58 0%, #15493c 45%, #0a2720 100%); cursor: pointer; overflow: hidden; }
.play-glow .d6 { position: absolute; width: 3.4rem; }
.play-glow .pv1 { top: 12%; left: 14%; transform: rotate(-16deg); }
.play-glow .pv2 { top: 20%; right: 12%; transform: rotate(22deg); width: 2.8rem; }
.play-glow .pv3 { bottom: 14%; left: 24%; transform: rotate(9deg); width: 3rem; }
.play-glow > i { position: relative; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: linear-gradient(180deg, #fbe6ad, #e6bd68 46%, #c4923b); color: #1d1406; font-size: 2rem; padding-left: 0.2rem; box-shadow: inset 0 0 0 1px rgba(112, 72, 14, 0.6), 0 0 0 0 rgba(246, 216, 152, 0.65), 0 14px 26px -8px rgba(0, 0, 0, 0.8); animation: play-pulse 2.2s ease-out infinite; transition: transform 250ms var(--ease-out); }
.play-glow .cue { position: relative; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(6, 22, 15, 0.82); color: var(--ivory); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.play-glow:hover > i, .play-glow:focus-visible > i { transform: scale(1.08); }
@keyframes play-pulse { 0% { box-shadow: inset 0 0 0 1px rgba(112, 72, 14, 0.6), 0 0 0 0 rgba(246, 216, 152, 0.6), 0 14px 26px -8px rgba(0, 0, 0, 0.8); } 70%, 100% { box-shadow: inset 0 0 0 1px rgba(112, 72, 14, 0.6), 0 0 0 26px rgba(246, 216, 152, 0), 0 14px 26px -8px rgba(0, 0, 0, 0.8); } }
@media (prefers-reduced-motion: reduce) { .play-glow > i { animation: none; box-shadow: 0 0 0 6px rgba(246, 216, 152, 0.35), 0 14px 26px -8px rgba(0, 0, 0, 0.8); } }

/* Brass should read as brass: keep the grain faint so the plate stays warm. */
.site-nav-link { color: rgba(245, 239, 223, 0.92); }
.facts { max-width: 46rem; }
@media (max-width: 640px) { .facts { gap: 0.5rem 1.1rem; } .facts li::after { display: none; } }


/* Smooth brass: soft top highlight and lower bevel, as before the grain experiment. */
.plaque, .site-cta, .store-badge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 3px rgba(112, 72, 14, 0.42), 0 14px 24px -10px rgba(0, 0, 0, 0.7); }
.plaque:hover, .plaque:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -3px 3px rgba(112, 72, 14, 0.42), 0 20px 30px -12px rgba(0, 0, 0, 0.75); }
.rail { background: url('/assets/images/brass-grain.webp') 0 0 / 256px 96px repeat, linear-gradient(180deg, #f0cf86, #d9ac56 50%, #b78731); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 4px rgba(90, 58, 10, 0.55), 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.rail span { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.roomplate, .tags li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(112, 72, 14, 0.4), 0 10px 14px -8px rgba(0, 0, 0, 0.7); }
.chip { background: radial-gradient(circle at 35% 30%, #f6d898, #d4a24b 60%, #a77a2c); }
.icon-tile { background: radial-gradient(circle at 35% 30%, #f6d898, #d4a24b 60%, #a77a2c); }

.plaque, .rail, .roomplate, .tags li, .site-cta, .store-badge { background-blend-mode: soft-light, normal; }

.wave { justify-content: center; }
.wave i { flex: 0 0 10px; }

.zones .z-qr .qr { margin-inline: auto; }

/* Room plate and roll pills share one line; pills stack beside the plate. */
.sync-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 1.75rem; }
.sync-row .roomplate, .sync-row .seats { margin-top: 0; }
.sync-row .seats { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.zones .z-sync .sync-row .roomplate { margin-top: 0; }

/* Dice set on one line: sizes follow the zone's own width; narrow zones wrap instead. */
.zones .z-dice { container-type: inline-size; }
.zones .z-dice .dice-set { flex-wrap: nowrap; align-items: flex-end; gap: 1.4cqw; }
.zones .z-dice .die-flat { flex: none; width: 8.6cqw; height: 8.6cqw; font-size: clamp(0.6rem, 2.3cqw, 0.8rem); }
.zones .z-dice .die-flat.d4 { width: 9cqw; height: 8cqw; }
.zones .z-dice .die-flat.d100, .zones .z-dice .die-flat.fate { width: 9cqw; }
.zones .z-dice .die-flat.arrows { width: auto; height: 6.4cqw; padding-inline: 2.2cqw; font-size: clamp(0.6rem, 2.3cqw, 0.85rem); }
@container (max-width: 26rem) {
  .zones .z-dice .dice-set { flex-wrap: wrap; gap: 0.6rem; }
  .zones .z-dice .die-flat { width: 2.8rem; height: 2.8rem; font-size: 0.75rem; }
  .zones .z-dice .die-flat.d4 { width: 3rem; height: 2.7rem; }
  .zones .z-dice .die-flat.arrows { height: 2.2rem; width: auto; padding-inline: 0.8rem; }
}

/* Tray artifacts sit centered in their zones. */
.zones .dice-set, .zones .chain, .zones .tags, .zones .sync-row, .zones .wave { justify-content: center; }
.zones .roomplate { transform-origin: center; }

/* Room plate on top, roll pills centered underneath. */
.zones .sync-row { flex-direction: column; align-items: center; gap: 1.25rem; }
.zones .sync-row .seats { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }

/* Scrolled nav: translucent felt with a real background blur so content passing beneath stays legible. */
.nav-shell.is-scrolled { background: rgba(8, 28, 21, 0.62); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
