/* ═══════════════════════════════════════════════
   RACK · a board at noon
   Cut paper and papel picado: thick ink outlines,
   hard shadows, hot colours, everything bounces.
   Palette born on the Piñata build, kept for Rack.
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: "Titan One";
  src: url("assets/fonts/titanone-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #ffeed3;          /* one flat warm cream, no gradient anywhere */
  --paper-2: #fff8ea;        /* cards and panels */
  --ink: #3a1f3d;            /* warm plum ink, not a blue black */
  --cream: #fff8ea;

  --rose: #f4356b;           /* saturated, never pastel */
  --mango: #ff7a1a;
  --sun: #ffb800;
  --lime: #7cc623;
  --aqua: #00b3a4;
  --grape: #7a3fcf;

  --display: "Titan One", "Baloo 2", system-ui, sans-serif;
  --body: "Baloo 2", system-ui, sans-serif;

  --shadow: 0.3rem 0.3rem 0 var(--ink);
  --shadow-big: 0.5rem 0.55rem 0 var(--ink);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 92px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sun); color: var(--ink); }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg.ic { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.14em; }

/* ── the night, and the lights strung across it ── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
}
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(58, 31, 61, 0.07) 1.2px, transparent 1.7px);
  background-size: 28px 28px;
}
.lights { position: absolute; top: 0; left: 0; display: block; }
.lights .bulb { transform-box: fill-box; transform-origin: 50% 0; }
.lights .glows { animation: sway 4.6s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); opacity: 0.92; }
  50% { transform: rotate(1.6deg); opacity: 1; }
}

main { position: relative; z-index: 1; padding-top: var(--nav-h); }

/* ── nav ───────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; pointer-events: none; padding: 0 12px;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(0.7rem, 2.4vw, 1.5rem);
  max-width: min(1060px, 100%);
  padding: 0.42rem 0.5rem 0.42rem 1rem;
  background: rgba(255, 248, 234, 0.94);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0.28rem 0.32rem 0 var(--ink);
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo { width: 38px; height: 38px; transition: transform 0.4s var(--bounce); }
.nav-brand:hover .nav-logo { transform: rotate(-14deg) scale(1.12); }
.nav-name { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.03em; color: var(--ink); }
.nav-links { display: flex; gap: clamp(0.7rem, 2vw, 1.3rem); }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 0.2em 0.05em; position: relative; white-space: nowrap;
  color: rgba(58, 31, 61, 0.78);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 4px; border-radius: 4px; background: var(--rose);
  transition: right 0.25s var(--bounce);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

/* ── sticker buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--body); font-weight: 800; font-size: 1.08rem;
  color: var(--ink); text-decoration: none;
  padding: 0.7em 1.35em;
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.16s var(--bounce), box-shadow 0.16s var(--bounce), background 0.2s;
  user-select: none; white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -3px); box-shadow: 0.45rem 0.5rem 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0.08rem 0.08rem 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.btn-sun { background: var(--sun); }
.btn-aqua { background: var(--aqua); }
.btn-big { font-size: 1.24rem; padding: 0.85em 1.9em; box-shadow: 0.38rem 0.38rem 0 var(--ink); }
.btn-big:hover { box-shadow: 0.55rem 0.6rem 0 var(--ink); }
.btn-small { font-size: 0.92rem; padding: 0.5em 1.05em; }
.chip-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 0.18rem 0.18rem 0 var(--ink);
  cursor: pointer; color: var(--ink); text-decoration: none;
  transition: transform 0.16s var(--bounce), box-shadow 0.16s var(--bounce);
}
.chip-btn svg { width: 20px; height: 20px; }
.chip-btn:hover { transform: translate(-1px, -2px) rotate(-6deg); box-shadow: 0.28rem 0.32rem 0 var(--ink); }
.chip-btn:active { transform: translate(1px, 2px); box-shadow: 0.05rem 0.05rem 0 var(--ink); }
.chip-btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.chip-btn.off { background: var(--paper); color: rgba(58, 31, 61, 0.45); }
.wallet-btn { gap: 0.45em; background: var(--aqua); }
.wallet-label { font-weight: 800; }
.wallet-dot { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--cream); }
.wallet-btn.is-on .wallet-dot { background: var(--lime); }
.wallet-btn.is-off .wallet-dot { background: var(--rose); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  max-width: 1300px; margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.2rem) clamp(1rem, 4vw, 2.4rem) 3rem;
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
}
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.eyebrow-chip {
  background: var(--aqua); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 0.3em 0.9em; font-weight: 800; font-size: 0.9rem;
  box-shadow: 0.18rem 0.18rem 0 var(--ink);
}
.eyebrow-token {
  background: var(--sun); color: var(--ink); border-radius: 999px;
  padding: 0.34em 0.85em; font-weight: 800; font-size: 0.9rem;
  border: 3px solid var(--ink);
  animation: tokenPulse 2.6s ease-in-out infinite;
}
@keyframes tokenPulse { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.06); } }

.title { display: flex; gap: 0.11em; margin: 0 0 1.4rem; line-height: 1; font-family: var(--display); font-weight: 400; }
.tile {
  display: inline-grid; place-items: center;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  color: var(--ink); min-width: 1.2em; padding: 0.06em 0.14em;
  border: 4px solid var(--ink); border-radius: 0.18em;
  box-shadow: 0.09em 0.09em 0 var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--bounce);
}
.tile-rose { background: var(--rose); color: var(--cream); transform: rotate(-3deg); }
.tile-sun { background: var(--sun); transform: rotate(2deg) translateY(0.06em); }
.tile-aqua { background: var(--aqua); transform: rotate(-1.5deg); }
.tile-grape { background: var(--grape); color: var(--cream); transform: rotate(2.5deg) translateY(0.05em); }
.tile:hover { transform: translateY(-0.09em) rotate(0deg) scale(1.04); }
.tile.boing { animation: boing 0.55s var(--bounce); }
@keyframes boing {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.25, 0.72); }
  55% { transform: scale(0.82, 1.24) translateY(-0.14em); }
  75% { transform: scale(1.08, 0.94); }
  100% { transform: scale(1, 1); }
}

.tagline { font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 1.95rem); line-height: 1.26; margin: 0 0 1rem; }
.tagline em { font-style: normal; background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 94%, transparent 94%); }
.sub { font-size: 1.05rem; line-height: 1.6; max-width: 46ch; margin: 0 0 1.4rem; color: rgba(58, 31, 61, 0.88); }
.sub b { font-weight: 800; color: var(--ink); }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hint { margin-top: 1.1rem; font-size: 0.95rem; font-weight: 700; color: rgba(58, 31, 61, 0.6); }

/* ── the courtyard ─────────────────────────── */
.hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.yard {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 600 / 580;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: radial-gradient(80% 70% at 50% 20%, #fffdf6 0%, #ffeacb 78%);
  box-shadow: var(--shadow-big);
  overflow: hidden;
  padding: 0;
  touch-action: manipulation;
}
.yard:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
.yard > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

.lamp {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--display); font-size: 0.92rem;
  padding: 0.38em 0.85em;
  background: var(--paper-2); color: rgba(58, 31, 61, 0.72);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0.2rem 0.22rem 0 var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.15s var(--bounce);
}

.round-chip {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-family: var(--display); font-size: 0.92rem;
  padding: 0.38em 0.85em;
  background: var(--paper-2); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0.2rem 0.22rem 0 var(--ink);
}

.hud { width: min(100%, 560px); display: flex; flex-direction: column; gap: 0.6rem; }
.hud-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hud-chip {
  flex: 1 1 0; min-width: 116px;
  display: flex; flex-direction: column; gap: 0.05rem;
  padding: 0.5rem 0.8rem;
  background: var(--paper-2);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0.2rem 0.22rem 0 var(--ink);
}
.hud-chip small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(58, 31, 61, 0.55); }
.hud-chip b { font-family: var(--display); font-weight: 400; font-size: 1.22rem; line-height: 1.1; }
.hud-chip.pop { animation: chipPop 0.4s var(--bounce); }
@keyframes chipPop { 0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(-1.5deg); } 100% { transform: scale(1); } }
.c-drops b { color: var(--lime); }
.c-rounds b { color: var(--rose); }
.c-pot b { color: var(--sun); }
.c-burn b { color: var(--mango); }

.toy-note { font-size: 0.84rem; font-weight: 600; color: rgba(58, 31, 61, 0.62); text-align: center; max-width: 48ch; }

/* ── the board ─────────────────────────────── */
.disc { stroke: #3a1f3d; stroke-width: 5; }
.disc-a { fill: #f4356b; }
.disc-b { fill: #ffb800; }
.disc-ghost { opacity: 0; transition: opacity 0.15s; stroke-dasharray: 7 7; }
.disc.is-four { animation: fourPop 0.5s var(--bounce) both; }
@keyframes fourPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1.1); }
}
.disc.is-four { transform-box: fill-box; transform-origin: 50% 50%; }
#board-svg { cursor: pointer; }
/* ── choosing a side ───────────────────────── */
.sides { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sides-label { font-family: var(--display); font-size: 0.9rem; margin-right: 0.15rem; }
.side-btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 800; font-size: 0.92rem;
  padding: 0.45em 0.9em;
  background: var(--paper-2); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0.18rem 0.2rem 0 var(--ink);
  cursor: pointer;
  transition: transform 0.16s var(--bounce), box-shadow 0.16s var(--bounce), background 0.2s;
}
.side-btn:hover { transform: translate(-2px, -3px); box-shadow: 0.34rem 0.38rem 0 var(--ink); }
.side-btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.side-btn.is-picked { background: var(--sun); }
.side-dot { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--ink); }
.turn-dot { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--ink); }
.turn-a { background: var(--rose); }
.turn-b { background: var(--sun); }
.lamp.is-waiting { background: var(--aqua); color: var(--ink); }

/* ═══════════════ SECTIONS ═══════════════ */
.section {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5rem) clamp(1rem, 4vw, 2.4rem) clamp(2rem, 4vw, 3rem);
  scroll-margin-top: var(--nav-h);
}
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0; display: inline-block;
  transform: rotate(-1.2deg);
  color: var(--ink);
  text-shadow: 0.13rem 0.13rem 0 var(--rose);
}
#law .section-head h2 { text-shadow: 0.13rem 0.13rem 0 var(--aqua); }
.section-sub { margin: 0.7rem 0 0; font-weight: 700; font-size: 1.05rem; color: rgba(58, 31, 61, 0.65); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 1.5rem; margin-top: 1rem; }
.card {
  position: relative; background: var(--paper-2); color: var(--ink);
  border: 3.5px solid var(--ink); border-radius: 26px;
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-big);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}
.card-tilt-l { transform: rotate(-0.8deg); }
.card-tilt-r { transform: rotate(0.8deg); }
.card:hover { transform: rotate(0deg) translate(-3px, -6px); box-shadow: 0.75rem 0.8rem 0 var(--ink); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0.6rem 0 0.45rem; }
.card p { margin: 0; font-size: 1rem; line-height: 1.58; }
.card p b { font-weight: 800; }
.card-art { width: 88px; height: 88px; display: block; transition: transform 0.3s var(--bounce); }
.card:hover .card-art { transform: rotate(-5deg) scale(1.08); }
.card-num {
  position: absolute; top: -16px; right: 22px;
  font-family: var(--display); font-size: 0.95rem; color: var(--ink);
  padding: 0.22em 0.7em;
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0.14rem 0.14rem 0 var(--ink);
  transform: rotate(4deg);
}
.num-rose { background: var(--rose); color: var(--cream); }
.num-sun { background: var(--sun); }
.num-aqua { background: var(--aqua); }
.num-grape { background: var(--grape); color: var(--cream); }

.laws { display: grid; gap: 0.9rem; max-width: 800px; margin: 0 auto; }
.law {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--paper-2);
  border: 3px solid var(--ink); border-radius: 20px;
  padding: 1rem 1.2rem;
  box-shadow: 0.28rem 0.3rem 0 var(--ink);
  transition: transform 0.25s var(--bounce);
}
.law:hover { transform: translate(-2px, -4px); }
.law-tag {
  font-family: var(--display); font-size: 0.95rem; color: var(--ink);
  padding: 0.2em 0.65em; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--lime); flex: none; transform: rotate(-3deg);
}
.law p { font-size: 1rem; line-height: 1.55; color: rgba(58, 31, 61, 0.9); }
.law-note { text-align: center; margin-top: 1.8rem; font-weight: 700; color: rgba(58, 31, 61, 0.78); }
.law-note a { color: var(--rose); }

/* ── footer ────────────────────────────────── */
.footer {
  position: relative; z-index: 1; text-align: center;
  padding: 3rem 1.2rem 3.2rem;
  border-top: 3px dashed rgba(58, 31, 61, 0.28);
  margin-top: 2rem;
}
.footer-logo { width: 84px; animation: footFloat 4.5s ease-in-out infinite; }
@keyframes footFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
.footer-line { font-family: var(--display); font-size: 1.2rem; margin: 0.7rem 0 0.35rem; }
.footer-links { display: flex; justify-content: center; gap: 1.1rem; margin: 0.6rem 0 1rem; font-weight: 700; }
.footer-links a { color: var(--rose); }
.footer-small { font-size: 0.85rem; font-weight: 600; color: rgba(58, 31, 61, 0.62); margin: 0 auto; max-width: 64ch; line-height: 1.6; }
.footer-small code { color: var(--ink); }

/* ── reveal ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s var(--bounce); }
.reveal.in { opacity: 1; transform: translateY(0); }
.card.reveal { transform: translateY(30px) rotate(0deg); }
.card.card-tilt-l.reveal.in { transform: translateY(0) rotate(-0.8deg); }
.card.card-tilt-r.reveal.in { transform: translateY(0) rotate(0.8deg); }
.card.reveal.in:hover { transform: rotate(0deg) translate(-3px, -6px); }

/* ═══════════════ DOCS ═══════════════ */
.doc { max-width: 1080px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.4rem) 3rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.toc {
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: 22px;
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
  font-weight: 700; font-size: 0.96rem;
}
.toc h2 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin: 0 0 0.6rem; }
.toc a { display: block; padding: 0.22em 0; text-decoration: none; color: rgba(58, 31, 61, 0.72); }
.toc a:hover, .toc a.active { color: var(--rose); }
.doc article { max-width: 760px; }
.doc h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin: 0 0 1rem; transform: rotate(-1deg);
  text-shadow: 0.13rem 0.13rem 0 var(--rose);
}
.doc .lead { font-size: 1.12rem; line-height: 1.6; font-weight: 600; }
.doc .note {
  margin-top: 1.4rem; padding: 1rem 1.2rem;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0.24rem 0.26rem 0 var(--ink);
  font-weight: 700; line-height: 1.55; color: var(--ink);
}
.doc section { margin-top: 2.4rem; scroll-margin-top: calc(var(--nav-h) + 10px); }
.doc h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.55rem;
  margin: 0 0 0.7rem; display: inline-block;
  border-bottom: 4px solid var(--sun);
}
.doc p, .doc li { font-size: 1.02rem; line-height: 1.66; color: rgba(58, 31, 61, 0.9); }
.doc p + p { margin-top: 0.8rem; }
.doc ul.bullets { margin-top: 0.8rem; display: grid; gap: 0.5rem; }
.doc ul.bullets li { padding-left: 1.5rem; position: relative; }
.doc ul.bullets li::before { content: "✦"; position: absolute; left: 0; color: var(--rose); }
.doc b { font-weight: 800; color: var(--ink); }
.doc code {
  font-family: ui-monospace, Menlo, monospace; font-size: 0.9em;
  background: #f1e4ff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 0.3em;
}
.params { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; font-size: 0.97rem; }
.params th, .params td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 2px dashed rgba(58, 31, 61, 0.25); vertical-align: top; }
.params th { font-family: var(--display); font-weight: 400; color: var(--ink); }
.params td { color: rgba(58, 31, 61, 0.88); }
.params td:last-child { font-weight: 800; white-space: nowrap; color: var(--rose); }
.faq details {
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: 18px;
  padding: 0.9rem 1.1rem; margin-top: 0.8rem;
  box-shadow: 0.22rem 0.24rem 0 var(--ink);
}
.faq summary { cursor: pointer; font-weight: 800; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--rose); }
.faq details[open] summary::after { content: "－"; color: var(--rose); }
.faq p { margin-top: 0.6rem; }

/* ── small screens ─────────────────────────── */
@media (max-width: 700px) {
  /* the bar has to fit a phone: the wordmark keeps its mark, the wallet its dot */
  .nav-inner { gap: 0.5rem; padding: 0.4rem 0.45rem 0.4rem 0.7rem; }
  .nav-name { font-size: 1.05rem; }
  .wallet-label { display: none; }
  .wallet-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }
  .wallet-dot { width: 12px; height: 12px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.2rem; }
  .hero-stage { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hud-chip { min-width: calc(50% - 0.25rem); }
}
@media (min-width: 900px) {
  .doc { grid-template-columns: 250px 1fr; gap: 3rem; align-items: start; }
  .toc { position: sticky; top: calc(var(--nav-h) + 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-token, .footer-logo, .lights .glows { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
