/* demo.css — the demo page's own layout. Materials and objects come from the kit. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
a:not([class]) {
  color: var(--wow-metal-light);
  text-underline-offset: 3px;
  text-decoration-color: var(--wow-rule);
}
a:not([class]):hover {
  text-decoration-color: var(--wow-metal-light);
}
code,
pre {
  font-family: var(--wow-font-mono);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bg-rosette {
  position: fixed;
  z-index: 0;
  opacity: 0.1;
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ top */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: color-mix(in oklab, var(--wow-base) 72%, transparent);
  box-shadow: 0 1px 0 var(--wow-rule-faint);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.mark {
  font: 600 1.5rem/1 var(--wow-font-display);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.topbar nav a {
  color: var(--wow-ink-dim);
  text-decoration: none;
}
.topbar nav a:hover {
  color: var(--wow-metal-light);
}
.gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 860px) {
  .topbar nav a:not(.gh) {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: min(860px, calc(100vh - 64px));
  padding: 56px 0 40px;
}
.hero > * {
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 600 0.72rem/1 var(--wow-font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wow-metal-light);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--wow-rule);
}
.hero h1 {
  margin: 0;
  font: 600 clamp(2.6rem, 5.4vw, 4.9rem)/0.98 var(--wow-font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 .line {
  display: block;
}
.lede {
  max-width: 34em;
  margin: 24px 0 30px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--wow-ink-dim);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.install {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 10px 10px 16px;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--wow-ink-dim);
  background: color-mix(in oklab, var(--wow-base) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint);
  overflow-x: auto;
}
.install code {
  white-space: nowrap;
  color: var(--wow-ink);
}

/* worlds switcher */
.switcher {
  margin-top: 36px;
}
.switcher-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wow-ink-faint);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chips .wow-chip {
  --wow-chip-size: 62px;
}
.chips .chip-name {
  display: block;
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wow-ink-dim);
  text-align: center;
}
.chips > div {
  display: grid;
  justify-items: center;
}

/* stage */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  isolation: isolate;
  overflow: hidden;
}
.stage .wow-rosette {
  opacity: 0.28;
  overflow: visible;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.stage .wow-rosette > svg {
  width: 640px;
  height: 640px;
  max-width: 120vw;
  max-height: 120vw;
}
.stage-shadow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 60%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.65), transparent);
  filter: blur(6px);
  z-index: -1;
}
.face {
  display: none;
}
[data-wow-world="card-table"] .face[data-face="card-table"],
[data-wow-world="console"] .face[data-face="console"],
[data-wow-world="blueprint"] .face[data-face="blueprint"],
[data-wow-world="certificate"] .face[data-face="certificate"],
[data-wow-world="night-watch"] .face[data-face="night-watch"],
[data-wow-world="film-studio"] .face[data-face="film-studio"] {
  display: block;
}
.tilt-host {
  padding: 30px;
  touch-action: pan-y;
}

/* card table hero */
.hero-card {
  --wow-card-w: min(300px, 64vw);
}
.medallion {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--wow-metal-mid);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wow-metal-mid) 70%, transparent), 0 0 0 4px var(--wow-paper), 0 0 0 5px color-mix(in oklab, var(--wow-metal-mid) 40%, transparent);
  overflow: hidden;
}
.medallion > div {
  position: absolute;
  inset: -6%;
  opacity: 0.85;
}
.medallion > div svg {
  width: 100%;
  height: 100%;
}
.medallion .spade {
  position: relative;
  font-size: calc(var(--wow-card-w) * 0.42);
  line-height: 1;
  color: var(--wow-paper-ink);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.7), 0 -1px 0 rgb(0 0 0 / 0.25);
}

/* console hero */
.faceplate {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 4 / 3.1;
  border-radius: 14px;
  padding: 28px 26px 22px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #d9dbde, #a9acb1 55%, #8f9297);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(0 0 0 / 0.25), var(--wow-shadow-lift);
  color: #1b1b1c;
}
.screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #8b8e93 60%, #5d6065);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35);
}
.screw::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  height: 1px;
  background: rgb(0 0 0 / 0.55);
  transform: rotate(var(--r, 30deg));
}
.vu {
  position: relative;
  height: 62%;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 110%, #ffd79a, #f4c172 45%, #d99a45);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.4), inset 0 10px 26px rgb(0 0 0 / 0.35);
}
.vu svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.needle {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 2px;
  height: 98%;
  margin-left: -1px;
  background: linear-gradient(#111 70%, transparent);
  transform-origin: 50% 100%;
  transform: rotate(var(--needle, -42deg));
  transition: transform var(--wow-dur-snappy) var(--wow-spring-snappy);
  box-shadow: 1px 0 2px rgb(0 0 0 / 0.3);
}
.vu-label {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  font: 600 0.8rem/1 var(--wow-font-display);
  letter-spacing: 0.2em;
  color: #3a2a12;
}
.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.knob {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #2a2a2c, #4a4a4e, #222224, #48484c, #2a2a2c),
    #333;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.25);
  position: relative;
  transform: rotate(calc(-120deg + var(--wow-tx, 0.5) * 240deg));
}
.knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--wow-accent);
  box-shadow: 0 0 6px var(--wow-accent);
}
.lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe0b8, var(--wow-accent) 55%, #7a3300);
  box-shadow: 0 0 14px 3px color-mix(in oklab, var(--wow-accent) 70%, transparent);
}
.engrave {
  font: 600 0.62rem/1 var(--wow-font-display);
  letter-spacing: 0.24em;
  color: #2b2b2d;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.6);
}

/* blueprint hero */
.sheet {
  position: relative;
  width: min(400px, 82vw);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(var(--wow-surface-2) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--wow-surface-2) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(color-mix(in oklab, var(--wow-ink) 10%, transparent) 1px, transparent 1px) 0 0 / 100px 100px,
    linear-gradient(90deg, color-mix(in oklab, var(--wow-ink) 10%, transparent) 1px, transparent 1px) 0 0 / 100px 100px,
    radial-gradient(120% 100% at 30% 0%, #10306a, var(--wow-surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wow-ink) 35%, transparent), inset 0 0 0 7px var(--wow-surface), inset 0 0 0 8px color-mix(in oklab, var(--wow-ink) 25%, transparent), var(--wow-shadow-lift);
}
.sheet svg {
  position: absolute;
  inset: 8% 10% 22%;
  width: 80%;
  height: 70%;
}
.ink {
  fill: none;
  stroke: var(--wow-ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.ink.dim {
  stroke: color-mix(in oklab, var(--wow-ink) 45%, transparent);
  stroke-dasharray: 3 3;
}
.dimension {
  font: 9px var(--wow-font-display);
  fill: color-mix(in oklab, var(--wow-ink) 75%, transparent);
}
.title-block {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  font: 500 0.56rem/1.2 var(--wow-font-display);
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--wow-ink) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wow-ink) 45%, transparent);
}
.title-block div {
  padding: 5px 8px;
  box-shadow: inset -1px 0 0 color-mix(in oklab, var(--wow-ink) 35%, transparent);
}
.title-block b {
  display: block;
  font-size: 0.82rem;
  color: var(--wow-ink);
  letter-spacing: 0.06em;
}
.compass {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.7rem/1 var(--wow-font-display);
  box-shadow: inset 0 0 0 2px var(--wow-metal-deep), 0 4px 10px rgb(0 0 0 / 0.5);
}

/* certificate hero */
.bond {
  position: relative;
  width: min(420px, 84vw);
  aspect-ratio: 1.55;
  padding: 7%;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  color: var(--wow-paper-ink);
  background: radial-gradient(120% 90% at 50% 0%, #fbf6e8, var(--wow-paper) 60%, #ddd2b6);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15), var(--wow-shadow-lift);
}
.bond-border {
  position: absolute;
  inset: 10px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wow-paper-ink) 70%, transparent), inset 0 0 0 4px var(--wow-paper), inset 0 0 0 5px color-mix(in oklab, var(--wow-paper-ink) 50%, transparent);
  pointer-events: none;
}
.bond-band {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 18px;
  color: color-mix(in oklab, var(--wow-paper-ink) 55%, transparent);
}
.bond-band svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bond-band--top {
  top: 18px;
}
.bond-band--bottom {
  bottom: 18px;
}
.bond-rosette {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 58%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: color-mix(in oklab, var(--wow-paper-ink) 40%, transparent);
}
.bond-rosette svg {
  width: 100%;
  height: 100%;
}
.bond-no {
  position: absolute;
  bottom: 44px;
  left: 32px;
  font: 600 0.72rem/1 var(--wow-font-display);
  letter-spacing: 0.12em;
}
.bond-no b {
  color: var(--wow-accent);
  font-size: 0.95rem;
}
.bond-title {
  position: relative;
  margin: 26px 0 0;
  font: 700 clamp(1rem, 2.6vw, 1.35rem)/1 var(--wow-font-display);
  letter-spacing: 0.28em;
}
.bond-value {
  position: relative;
  margin-top: 6px;
  font: 700 clamp(3rem, 9vw, 4.6rem)/1 var(--wow-font-display);
  color: transparent;
  -webkit-text-stroke: 1px var(--wow-paper-ink);
  background: repeating-linear-gradient(0deg, var(--wow-paper-ink) 0 1px, transparent 1px 3px);
  -webkit-background-clip: text;
  background-clip: text;
}
.bond-seal {
  position: absolute;
  right: 26px;
  bottom: 30px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 0.56rem/1.1 var(--wow-font-display);
  letter-spacing: 0.16em;
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--wow-metal-shadow) 40%, transparent), 0 4px 10px rgb(0 0 0 / 0.35);
}

/* night watch hero */
.glass {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1.08;
  border-radius: 28px;
  padding: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.03) 40%, rgb(255 255 255 / 0.06));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 0 0 1px rgb(255 255 255 / 0.12), var(--wow-shadow-lift);
}
.radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle, transparent 0 18%, color-mix(in oklab, var(--wow-metal-light) 22%, transparent) 18% 18.6%),
    radial-gradient(circle, #0f2238, #050b14 75%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wow-metal-light) 35%, transparent), 0 0 40px -10px color-mix(in oklab, var(--wow-metal-light) 50%, transparent);
}
.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: color-mix(in oklab, var(--wow-metal-light) 18%, transparent);
}
.radar::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}
.radar::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}
.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in oklab, var(--wow-metal-light) 55%, transparent), transparent 22%);
}
@media (prefers-reduced-motion: no-preference) {
  .sweep {
    animation: wow-turn 4s linear infinite;
  }
  .blip {
    animation: blip 4s ease-out infinite;
    animation-delay: var(--d, 0s);
  }
}
.blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--wow-metal-light);
  box-shadow: 0 0 12px var(--wow-metal-light);
  opacity: 0.85;
}
@keyframes blip {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  8% { opacity: 1; transform: scale(1.3); }
}
.watch-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--wow-ink-dim);
}
.watch-status b {
  font: 600 1.15rem/1 var(--wow-font-display);
  color: var(--wow-ink);
}

/* film studio hero */
.slate {
  position: relative;
  width: min(400px, 82vw);
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.7));
}
.slate-top {
  height: 52px;
  border-radius: 8px 8px 2px 2px;
  background: repeating-linear-gradient(-55deg, #f1efe9 0 26px, #111 26px 52px);
  box-shadow: inset 0 0 0 2px #0b0b0b;
  transform-origin: 0 100%;
  transform: rotate(-14deg);
}
.slate-body {
  margin-top: 4px;
  border-radius: 4px 4px 10px 10px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #1c1b1e, #0d0c0e);
  color: #f1efe9;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.slate-body > div {
  padding: 8px 10px;
  box-shadow: inset -1px -1px 0 rgb(241 239 233 / 0.35);
  font: 400 0.62rem/1.1 var(--wow-font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(241 239 233 / 0.6);
}
.slate-body > div b {
  display: block;
  margin-top: 4px;
  font: 400 1.9rem/1 var(--wow-font-display);
  letter-spacing: 0.04em;
  color: #f1efe9;
}
.slate-body .wide {
  grid-column: span 3;
}
.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wow-accent) !important;
}
.rec::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wow-accent);
  box-shadow: 0 0 10px var(--wow-accent);
}
.beam {
  position: absolute;
  left: 50%;
  top: -120px;
  width: 140%;
  height: 160%;
  transform: translateX(-50%);
  background: conic-gradient(from 160deg at 50% 0%, transparent, color-mix(in oklab, var(--wow-key) 22%, transparent) 15deg 25deg, transparent 40deg);
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}

/* world entrances */
@media (prefers-reduced-motion: no-preference) {
  .is-entering .slate-top {
    animation: clap 700ms var(--wow-spring-snappy) 120ms both;
  }
  .is-entering .ink {
    animation: draw 1800ms cubic-bezier(.6, .1, .2, 1) both;
  }
  .is-entering .bond-seal {
    animation: stamp 700ms var(--wow-spring-toss) 500ms both;
  }
  .is-entering .needle {
    animation: power 1200ms var(--wow-spring-toss) both;
  }
  .is-entering .glass {
    animation: rise 900ms var(--wow-spring-settle) both;
  }
}
@keyframes clap {
  0% { transform: rotate(-14deg); }
  40% { transform: rotate(0deg); }
  100% { transform: rotate(-14deg); }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes stamp {
  0% { transform: scale(2.2) rotate(-25deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes power {
  0% { transform: rotate(-42deg); }
  45% { transform: rotate(44deg); }
  100% { transform: rotate(var(--needle, -42deg)); }
}
@keyframes rise {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------------ sections */
section.block {
  padding: 90px 0 30px;
}
.block-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.block-head h2 {
  margin: 0 0 12px;
  font: 600 clamp(2rem, 3.6vw, 3rem)/1.02 var(--wow-font-display);
  text-wrap: balance;
}
.block-head p {
  margin: 0;
  color: var(--wow-ink-dim);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 22px;
}
.specimen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
  padding: 22px 22px 18px;
}
.specimen h3 {
  margin: 0;
  font: 600 0.72rem/1 var(--wow-font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.specimen .live {
  display: grid;
  place-items: center;
  padding: 22px 0;
  min-height: 190px;
  position: relative;
}
.specimen p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--wow-ink-dim);
}
.specimen p code {
  font-size: 0.78rem;
  color: var(--wow-metal-light);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* hand of cards */
.hand {
  position: relative;
  width: 260px;
  height: 170px;
  margin-bottom: 26px;
}
.hand .wow-card {
  --wow-card-w: 92px;
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -46px;
  transform-origin: 50% 120%;
  cursor: pointer;
  transition: transform var(--wow-dur-snappy) var(--wow-spring-snappy), box-shadow 200ms ease;
}
.hand .wow-card:nth-child(1) { --wow-rest: rotate(-21deg) translateY(10px); transform: var(--wow-rest); }
.hand .wow-card:nth-child(2) { --wow-rest: rotate(-7deg) translateY(-2px); transform: var(--wow-rest); }
.hand .wow-card:nth-child(3) { --wow-rest: rotate(7deg) translateY(-2px); transform: var(--wow-rest); }
.hand .wow-card:nth-child(4) { --wow-rest: rotate(21deg) translateY(10px); transform: var(--wow-rest); }
.hand .wow-card:hover,
.hand .wow-card:focus-visible {
  transform: var(--wow-rest) translateY(-16px);
}
.hand .wow-card .wow-card__index {
  font-size: 15px;
}
.hand .wow-card .wow-card__pip {
  font-size: 40px;
}
.hand .wow-card.played {
  pointer-events: none;
}

/* balance */
.balance {
  display: flex;
  align-items: flex-end;
  gap: 26px;
}
.balance-num {
  font: 600 3.1rem/1 var(--wow-font-display);
}
.balance-cap {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wow-ink-faint);
}
.stack-host {
  min-height: 130px;
  display: flex;
  align-items: flex-end;
}

/* code card */
.code-card {
  position: relative;
  width: 270px;
  height: 170px;
  border-radius: 14px;
  perspective: 1000px;
}
.code-card .wow-flip {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.code-card .wow-face {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}
.code-card .front {
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--wow-base-2) 80%, var(--wow-metal-deep) 20%), var(--wow-base));
  box-shadow: inset 0 0 0 1px var(--wow-rule), inset 0 1px 0 var(--wow-rim);
}
.code-card .front > [data-wow-rosette] {
  position: absolute;
  inset: -40%;
  color: var(--wow-metal-mid);
  opacity: 0.22;
  pointer-events: none;
}
.code-card .front > [data-wow-rosette] svg {
  width: 100%;
  height: 100%;
}
.code-card .front > * {
  position: relative;
}
.code-card .front small {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wow-ink-dim);
}
.code-card .back {
  background: var(--wow-metal);
  color: var(--wow-metal-shadow);
  text-align: center;
  box-shadow: inset 0 1px 0 var(--wow-metal-hi), var(--wow-shadow-lift);
}
.code-card .back strong {
  font: 700 1.7rem/1 var(--wow-font-display);
}
.code-card .back small {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* permissions */
.perms {
  display: flex;
  gap: 12px;
}
.perm {
  width: 84px;
  height: 118px;
  perspective: 800px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 9px;
}
.perm .wow-flip {
  width: 100%;
  height: 100%;
  border-radius: 9px;
}
.perm .wow-face {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.perm .wow-face:first-child {
  background:
    repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in oklab, var(--wow-metal-mid) 18%, transparent) 4px 5px),
    linear-gradient(180deg, var(--wow-base-2), var(--wow-base));
  color: var(--wow-ink-dim);
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint);
}
.perm .wow-face--back {
  background: var(--wow-metal);
  color: var(--wow-metal-shadow);
  box-shadow: inset 0 1px 0 var(--wow-metal-hi);
  font-weight: 700;
}
.perm svg {
  width: 26px;
  height: 26px;
}

/* materials swatch */
.swatches {
  display: grid;
  gap: 14px;
  width: 100%;
}
.swatch-metal {
  height: 54px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 var(--wow-metal-hi), 0 8px 18px -8px rgb(0 0 0 / 0.8);
}
.swatch-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.swatch-row i {
  height: 30px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.type-leaf {
  font: 600 2.2rem/1 var(--wow-font-display);
  text-align: center;
}

/* ------------------------------------------------------------------ worlds grid */
.worlds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.world {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--wow-radius);
  color: var(--wow-ink);
  font-family: var(--wow-font-body);
  background:
    radial-gradient(120% 70% at 50% -10%, color-mix(in oklab, var(--wow-key) var(--wow-key-strength), transparent), transparent 60%),
    radial-gradient(150% 120% at 50% 40%, var(--wow-base-2), var(--wow-base) 75%);
  box-shadow: inset 0 1px 0 var(--wow-rim), inset 0 0 0 1px var(--wow-rule), var(--wow-shadow-lift);
  cursor: pointer;
  text-align: left;
  border: 0;
  transition: transform var(--wow-dur-snappy) var(--wow-spring-snappy);
}
.world:hover {
  transform: translateY(-4px);
}
.world h3 {
  margin: 0;
  font: 600 1.7rem/1.05 var(--wow-font-display);
}
.world p {
  margin: 8px 0 18px;
  font-size: 0.8rem;
  color: var(--wow-ink-dim);
  min-height: 2.6em;
}
.world .row {
  justify-content: flex-start;
}
.world .wow-chip {
  --wow-chip-size: 50px;
}
.world .mini-card {
  --wow-card-w: 50px;
}
.world .mini-card .wow-card__pip {
  font-size: 24px;
}
.world .wow-button {
  min-height: 38px;
  font-size: 0.8rem;
}
.world .swatch-metal {
  height: 10px;
  margin-top: 18px;
  border-radius: 99px;
}

/* ------------------------------------------------------------------ springs + guilloche tools */
.tool {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 28px;
}
@media (max-width: 860px) {
  .tool {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
.controls {
  display: grid;
  gap: 20px;
  align-content: start;
}
.control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--wow-ink-dim);
  margin-bottom: 8px;
}
.control output {
  font-family: var(--wow-font-mono);
  color: var(--wow-metal-light);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--wow-metal-mid) var(--fill, 50%), var(--wow-rule-faint) var(--fill, 50%));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--wow-rule-faint);
}
input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--wow-metal-mid);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--wow-base-2) 0 38%, transparent 40%),
    repeating-conic-gradient(var(--wow-paper) 0 14deg, var(--wow-accent) 14deg 45deg);
  box-shadow: 0 0 0 1.5px var(--wow-metal-mid), 0 3px 8px rgb(0 0 0 / 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--wow-base-2) 0 38%, transparent 40%),
    repeating-conic-gradient(var(--wow-paper) 0 14deg, var(--wow-accent) 14deg 45deg);
  box-shadow: 0 0 0 1.5px var(--wow-metal-mid), 0 3px 8px rgb(0 0 0 / 0.6);
}
input[type="range"]:focus-visible {
  outline: 2px solid var(--wow-metal-light);
  outline-offset: 4px;
  border-radius: 4px;
}
.curve-box {
  position: relative;
  border-radius: 12px;
  background: color-mix(in oklab, var(--wow-base) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint);
  padding: 14px;
}
.curve-box svg {
  display: block;
  width: 100%;
  height: auto;
}
.curve-grid {
  stroke: var(--wow-rule-faint);
  stroke-width: 1;
}
.curve-target {
  stroke: color-mix(in oklab, var(--wow-ink) 35%, transparent);
  stroke-dasharray: 4 4;
}
.curve-line {
  fill: none;
  stroke: var(--wow-metal-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--wow-metal-light) 50%, transparent));
}
.lane {
  position: relative;
  height: 74px;
  margin-top: 14px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--wow-base) 60%, transparent);
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint);
  overflow: hidden;
}
.lane .wow-card {
  --wow-card-w: 40px;
  position: absolute;
  left: 14px;
  top: 8px;
}
.lane .wow-card .wow-card__pip {
  font-size: 20px;
}
.snippet {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--wow-ink);
  background: color-mix(in oklab, var(--wow-base) 80%, transparent);
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow: auto;
}
.snippet .k {
  color: var(--wow-metal-light);
}
.copy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.toast {
  font-size: 0.78rem;
  color: var(--wow-metal-light);
  min-height: 1.2em;
}
.guilloche-view {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  color: var(--wow-metal-mid);
  background: radial-gradient(circle, color-mix(in oklab, var(--wow-base-2) 85%, var(--wow-metal-deep) 15%), var(--wow-base) 75%);
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint);
}
.guilloche-view svg {
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------------ lint + use */
.terminal {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--wow-radius);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #d9d4c7;
  background: #050506;
  box-shadow: inset 0 0 0 1px var(--wow-rule-faint), var(--wow-shadow-lift);
}
.terminal .p {
  color: var(--wow-metal-light);
}
.terminal .e {
  color: #ff7b72;
}
.terminal .w {
  color: #f3c76a;
}
.terminal .d {
  color: #7d786d;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 860px) {
  .two {
    grid-template-columns: 1fr;
  }
}
.use h3 {
  margin: 0 0 10px;
  font: 600 1.35rem/1.1 var(--wow-font-display);
}
.use p {
  margin: 0 0 14px;
  color: var(--wow-ink-dim);
  font-size: 0.9rem;
}
.use .wow-plate {
  padding: 24px;
}
.rules {
  counter-reset: rule;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px 30px;
}
.rules li {
  counter-increment: rule;
  position: relative;
  padding-left: 44px;
  font-size: 0.9rem;
  color: var(--wow-ink-dim);
}
.rules li::before {
  content: counter(rule, upper-roman);
  position: absolute;
  left: 0;
  top: 0;
  font: 600 1rem/1.4 var(--wow-font-display);
  color: var(--wow-metal-light);
}
.rules b {
  color: var(--wow-ink);
  font-weight: 600;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 90px;
  padding: 34px 0 60px;
  font-size: 0.82rem;
  color: var(--wow-ink-faint);
  box-shadow: 0 -1px 0 var(--wow-rule-faint);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 36px;
    gap: 10px;
  }
  .stage {
    min-height: 470px;
    order: -1;
  }
}
@media (max-width: 520px) {
  .chips {
    gap: 10px;
  }
  .chips .wow-chip {
    --wow-chip-size: 52px;
  }
  .stage {
    min-height: 420px;
  }
  .specimen {
    padding: 18px 16px 16px;
  }
  .hand {
    transform: scale(0.92);
  }
}

/* wax seal */
.seal {
  width: 92px;
  height: 92px;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 32%, color-mix(in oklab, var(--wow-accent) 60%, white 25%), var(--wow-accent) 45%, color-mix(in oklab, var(--wow-accent) 55%, black 45%));
  box-shadow: inset 0 0 0 7px color-mix(in oklab, var(--wow-accent) 80%, black 20%), inset 0 0 0 8px color-mix(in oklab, var(--wow-accent) 50%, white 20%), inset 0 -6px 10px rgb(0 0 0 / 0.35), 0 10px 20px -8px rgb(0 0 0 / 0.8);
  opacity: 0.18;
  filter: grayscale(0.6);
  transition: opacity 300ms ease, filter 300ms ease;
}
.seal span {
  font-size: 2rem;
  color: color-mix(in oklab, var(--wow-accent) 50%, black 50%);
  text-shadow: 0 1px 0 color-mix(in oklab, var(--wow-accent) 50%, white 40%);
}
.seal.is-set {
  opacity: 1;
  filter: none;
}
