/* Swords 'n' Stuff homepage: a torch-lit voxel hall, Hoardbound-style calling cards. */

@font-face { font-family: "Lilita One"; src: url("../fonts/LilitaOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

@property --glow { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

:root {
  --night: #120d0a;
  --ink: #1b130d;
  --leaf: #1f3a17;          /* the logo's dark green outline */
  --cream: #fff3d6;
  --parch: #f4e4c1;
  --parch-ink: #3b2314;
  --soft: #e6d6b8;
  --mute: #c4b091;
  --gold: #ffcc33;
  --gold-d: #b9790c;
  --green: #5cbf3a;
  --red: #ff5b4f;

  --f-disp: "Lilita One", "Trebuchet MS", sans-serif;
  --f-body: "Nunito", system-ui, sans-serif;

  --r-card: 18px;
  --r-panel: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --cell: 96px;
  --depth: 576px;
  --vh: 900px;
  --gutter: clamp(16px, 3vw, 32px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-color: #4a3726 var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 700 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #4a3726; border: 3px solid var(--night); border-radius: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; border: 3px solid var(--ink); border-radius: 10px; font: 800 14px var(--f-body); }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* the game's title lettering: cream or gold, outlined in the logo's dark green, with a block of depth underneath */
.disp { font-family: var(--f-disp); font-weight: 400; line-height: 0.98; letter-spacing: 0.005em; }
.hero__h span, .sec__h, .ks__h, .panel__title, .cc__name, .bfeat__name, .pledge__name, .hot__n, .inv__n, .inv__name, .count__d {
  font-family: var(--f-disp); font-weight: 400;
  --ol: var(--leaf);
  --dp: var(--leaf);
  color: var(--cream);
  text-shadow:
    0.05em 0 0 var(--ol), -0.05em 0 0 var(--ol), 0 0.05em 0 var(--ol), 0 -0.05em 0 var(--ol),
    0.035em 0.035em 0 var(--ol), -0.035em 0.035em 0 var(--ol), 0.035em -0.035em 0 var(--ol), -0.035em -0.035em 0 var(--ol),
    0 0.085em 0 var(--dp), 0.035em 0.085em 0 var(--dp), -0.035em 0.085em 0 var(--dp),
    0 0.12em 0 var(--dp), 0.03em 0.12em 0 var(--dp), -0.03em 0.12em 0 var(--dp),
    0 0.2em 0.16em rgba(0, 0, 0, 0.5);
}
.gold { color: var(--gold); }

/* chunky game buttons with a pressable lip */
.btn {
  --bf: var(--gold); --bt: var(--ink); --bl: var(--gold-d);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  height: 54px; padding: 0 22px 3px;
  background: var(--bf); color: var(--bt);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: inset 0 -5px 0 var(--bl), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 5px 0 var(--ink);
  font: 400 1.08rem/1 var(--f-disp); letter-spacing: 0.02em; white-space: nowrap;
  transition: transform 0.16s var(--spring), box-shadow 0.16s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 -5px 0 var(--bl), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 var(--bl), inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 1px 0 var(--ink); }
.btn--wood { --bf: #6b4423; --bt: var(--cream); --bl: #3f2612; }
.btn .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.rbtn {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #4a3020; color: var(--cream); border: 3px solid var(--ink);
  box-shadow: inset 0 -4px 0 #2a1a0f, inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 4px 0 var(--ink);
  transition: transform 0.16s var(--spring), box-shadow 0.16s, background 0.2s;
}
.rbtn:hover { background: #5c3c27; transform: translateY(-2px); }
.rbtn:active { transform: translateY(3px); box-shadow: inset 0 -1px 0 #2a1a0f, 0 1px 0 var(--ink); }
.rbtn .ic { width: 20px; height: 20px; stroke-width: 2.6; }

/* ============ the hall (fixed 3D voxel backdrop) ============ */
.room {
  position: fixed; inset: 0; z-index: 0;
  perspective: 1100px; overflow: hidden; pointer-events: none;
  --glow: 160%;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 calc(var(--glow) - 50%), transparent var(--glow));
          mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 calc(var(--glow) - 50%), transparent var(--glow));
  transition: --glow 1.9s var(--ease);
}
html.js body:not(.is-ready) .room { --glow: 0%; }
.room__cam {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(var(--cz, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.plane {
  position: absolute; top: calc(var(--vh) * -1); height: calc(var(--vh) * 3);
  background-color: #2a2018;
  background-image: var(--tex, none);
  background-size: calc(var(--cell) * 8) calc(var(--cell) * 8);
  image-rendering: pixelated;
}
.plane::before { content: ""; position: absolute; inset: 0; background: rgba(16, 8, 3, var(--dim, 0.35)); pointer-events: none; }
.plane--left::before { background: linear-gradient(to right, rgba(16, 8, 3, 0.3), rgba(16, 8, 3, 0.86)); }
.plane--right::before { background: linear-gradient(to left, rgba(16, 8, 3, 0.3), rgba(16, 8, 3, 0.86)); }
.plane--floor::before { background: linear-gradient(to top, rgba(16, 8, 3, 0.35), rgba(16, 8, 3, 0.9)); }
.plane--back { left: 0; width: 100%; transform: translateZ(calc(var(--depth) * -1)); --dim: 0.72; }
.plane--left { left: 0; width: var(--depth); transform-origin: 0 50%; transform: rotateY(90deg); --dim: 0.46; }
.plane--right { right: 0; width: var(--depth); transform-origin: 100% 50%; transform: rotateY(-90deg); --dim: 0.46; }
.plane--floor { left: 0; width: 100%; height: var(--depth); top: calc(var(--vh) - var(--depth)); transform-origin: 50% 100%; transform: rotateX(90deg); --dim: 0.42; }
.room__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 42%, rgba(18, 13, 10, 0) 0%, rgba(18, 13, 10, 0.22) 55%, rgba(18, 13, 10, 0.82) 100%),
    linear-gradient(rgba(18, 13, 10, 0.8), rgba(18, 13, 10, 0) 24%);
}

/* wall niches hold loot; it rises out of the dark and is clipped by the block edge */
.cellp {
  position: absolute; width: var(--cell); height: var(--cell); overflow: hidden;
  left: calc(var(--x) * var(--cell)); top: calc(var(--vh) + var(--y) * var(--cell));
  background: #0b0705;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 160, 70, 0.32), rgba(255, 160, 70, 0) 70%), #120a05;
  box-shadow: inset 0 calc(var(--cell) * 0.14) 0 rgba(0, 0, 0, 0.6), inset calc(var(--cell) * 0.08) 0 0 rgba(0, 0, 0, 0.35), inset 0 calc(var(--cell) * -0.05) 0 rgba(255, 170, 90, 0.3);
  opacity: 0; transition: opacity 0.8s;
}
.cellp.is-open { opacity: 1; }
.plane--right .cellp { left: auto; right: calc(var(--x) * var(--cell)); }
.cellp img {
  position: absolute; left: 50%; bottom: -16%; width: 92%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%;
  transform: translate(-50%, 105%);
  transition: transform 1.1s var(--ease);
}
.cellp img { filter: brightness(1.15) drop-shadow(0 0 5px rgba(255, 180, 90, 0.35)); }
.cellp.is-up img { transform: translate(-50%, 0); animation: bob 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.cellp.is-down img { transform: translate(-50%, 105%); transition-duration: 0.7s; transition-timing-function: var(--ease-io); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5%; } }

/* torches */
.torch { position: absolute; width: var(--cell); height: var(--cell); left: calc(var(--x) * var(--cell)); top: calc(var(--vh) + var(--y) * var(--cell)); }
.plane--right .torch { left: auto; right: calc(var(--x) * var(--cell)); }
.torch__light {
  position: absolute; left: 50%; top: 35%; width: calc(var(--cell) * 5.6); height: calc(var(--cell) * 6.4);
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 178, 80, 0.85) 0%, rgba(255, 128, 36, 0.42) 26%, rgba(220, 96, 20, 0.14) 50%, rgba(200, 80, 10, 0) 70%);
  mix-blend-mode: screen; animation: flicker 2.6s infinite steps(1);
}
.torch svg { position: absolute; left: 30%; top: 2%; width: 40%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255, 170, 70, 0.9)); }
.torch .flame { animation: flame 0.9s infinite steps(1); transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes flicker { 0% { opacity: 1; } 18% { opacity: 0.86; } 34% { opacity: 0.97; } 51% { opacity: 0.8; } 67% { opacity: 1; } 83% { opacity: 0.9; } }
@keyframes flame { 0% { transform: scaleY(1); } 33% { transform: scaleY(1.18) translateX(4%); } 66% { transform: scaleY(0.92) translateX(-3%); } }
.room__embers { position: absolute; inset: 0; }
.room__embers i { position: absolute; bottom: -10px; width: 5px; height: 5px; background: #ffb347; box-shadow: 0 0 8px 2px rgba(255, 150, 60, 0.8); opacity: 0; animation: ember linear infinite; }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate(var(--dx, 30px), -105vh); opacity: 0; }
}

/* ============ loader ============ */
/* the logo starts as a dark silhouette and fills with colour from the bottom, like a flask, as the page loads */
@property --wx { syntax: "<length>"; inherits: true; initial-value: 0px; }
.loader { display: none; }
html.js .loader {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background-color: var(--night);
  transition: background-color 0.6s var(--ease), visibility 0s 0.95s;
}
.loader__in { display: grid; justify-items: center; gap: 18px; }
.loader__logo {
  --p: 0;
  position: relative; width: clamp(220px, 60vw, 380px); aspect-ratio: 640 / 427;
  container-type: size;
  animation: loadwave 1.3s linear infinite;
}
.loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__ghost { filter: grayscale(1) sepia(0.7) brightness(0.32); }
/* the liquid: a wave strip riding on top of a solid block, both following the fill line --p (0 to 100) */
.loader__fill, .loader__back {
  --fy: calc((100 - var(--p) * 1.07) * 1cqh);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0 6Q15 0 30 6T60 6V12H0Z'/%3E%3C/svg%3E") var(--wx) calc(var(--fy) - 6px) / 60px 12px repeat-x, linear-gradient(#000 0 0) 0 calc(var(--fy) + 5px) / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0 6Q15 0 30 6T60 6V12H0Z'/%3E%3C/svg%3E") var(--wx) calc(var(--fy) - 6px) / 60px 12px repeat-x, linear-gradient(#000 0 0) 0 calc(var(--fy) + 5px) / 100% 100% no-repeat;
}
/* a paler wave behind, rolling the other way and a touch higher, is the froth on the surface */
.loader__back {
  --fy: calc((100 - var(--p) * 1.07) * 1cqh - 5px);
  filter: brightness(1.45) saturate(1.2);
  -webkit-mask-position: calc(20px - var(--wx)) calc(var(--fy) - 6px), 0 calc(var(--fy) + 5px);
  mask-position: calc(20px - var(--wx)) calc(var(--fy) - 6px), 0 calc(var(--fy) + 5px);
}
@keyframes loadwave { to { --wx: -60px; } }
/* full: a glint runs across the finished logo, then it flies up into the header */
.loader__shine {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url("../img/logo-640.webp?v=n2") center / 100% 100% no-repeat;
  mask: url("../img/logo-640.webp?v=n2") center / 100% 100% no-repeat;
}
.loader__shine::before {
  content: ""; position: absolute; inset: -10% auto -10% 0; width: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 224, 0.7) 40% 60%, transparent);
  transform: translateX(-160%) skewX(-18deg);
}
.loader.is-full .loader__shine::before { transition: transform 0.6s var(--ease-io); transform: translateX(720%) skewX(-18deg); }
.loader.is-full .loader__logo { animation: loadwave 1.3s linear infinite, loadpop 0.5s var(--spring); }
@keyframes loadpop { 45% { scale: 1.06; } }
.loader__pct { font: 800 12px/1 var(--f-body); color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; font-variant-numeric: tabular-nums; transition: opacity 0.3s; }
html.js .loader.is-out { background-color: transparent; visibility: hidden; pointer-events: none; }
.loader.is-out .loader__pct { opacity: 0; }
.loader.is-out .loader__logo { transform: var(--fly, translateY(-36vh) scale(0.3)); filter: drop-shadow(0 var(--fly-sh, 13px) 0 rgba(0, 0, 0, 0.45)); transition: transform 0.85s var(--ease-io), filter 0.85s var(--ease-io), opacity 0.2s 0.65s; }
.loader.is-out:not(.is-fly) .loader__logo { opacity: 0; }
/* while the loader is up, the header logo waits for the flying one to land in its place */
html.js .loader ~ .bar .bar__logo img { opacity: 0; }

/* ============ header ============ */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  height: 84px; padding: 0 var(--gutter);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #1b130d; border-bottom: 3px solid var(--ink);
  box-shadow: inset 0 -4px 0 #2b1e14, 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(-8px); transition: opacity 0.35s, transform 0.35s var(--ease);
}
.bar.is-scrolled::before, .bar.is-open::before { opacity: 1; transform: none; }
html.js body:not(.is-ready) .bar { opacity: 0; transform: translateY(-14px); }
.bar__start { display: flex; align-items: center; min-width: 0; }
.bar__nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.bar__nav a {
  position: relative; padding: 10px 0; white-space: nowrap;
  font: 900 13px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.09em; color: var(--soft);
  transition: color 0.2s;
}
.bar__nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 7px; height: 7px; margin-left: -3.5px;
  background: var(--gold); box-shadow: 0 0 0 2px var(--ink); transform: rotate(45deg) scale(0); transition: transform 0.3s var(--spring);
}
.bar__nav a:hover { color: var(--cream); }
.bar__nav a[aria-current="true"] { color: var(--gold); }
.bar__nav a[aria-current="true"]::after { transform: rotate(45deg) scale(1); }
.bar__menu {
  display: none; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px; border-radius: 12px;
  background: #3a2617; border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 #24170d, 0 4px 0 var(--ink);
  color: var(--cream); font: 400 16px/1 var(--f-disp); transition: transform 0.2s var(--spring);
}
.bar__menu .ic { width: 20px; height: 20px; color: var(--gold); stroke-width: 2.6; }
.bar__menu:hover { transform: translateY(-2px); }
.bar__menu[aria-expanded="true"] { background: #4a3020; }
.bar__logo { justify-self: center; display: block; width: 116px; transition: transform 0.3s var(--spring); }
.bar__logo:hover { transform: scale(1.06) rotate(-3deg); }
.bar__logo img { width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45)); }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; }
.bar__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--soft); transition: color 0.2s, background 0.2s, transform 0.2s var(--spring); }
.bar__icon:hover { color: var(--gold); background: rgba(255, 204, 51, 0.1); transform: translateY(-2px); }
.bar__icon .ic { width: 23px; height: 23px; }
.clock {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 5px 0 14px; border-radius: 14px;
  background: #3a2617; border: 3px solid var(--ink);
  box-shadow: inset 0 -4px 0 #24170d, inset 0 2px 0 rgba(255, 255, 255, 0.1), 0 4px 0 var(--ink);
  white-space: nowrap; transition: transform 0.2s var(--spring);
}
.clock:hover { transform: translateY(-2px); }
.clock__ic { color: var(--gold); width: 20px; height: 20px; }
.clock__lab { color: var(--mute); font: 900 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.08em; }
.clock__t { font: 400 18px/1 var(--f-disp); color: var(--cream); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.clock__go { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 var(--gold-d); }
.clock__go .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.clock.is-live .clock__ic { color: var(--red); }

/* the menu: a wood plaque that drops from the bar */
.sheet {
  position: absolute; top: calc(100% + 8px); left: var(--gutter); width: min(560px, calc(100vw - var(--gutter) * 2));
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 6px 22px; padding: 18px 20px 20px;
  border-radius: 18px; background: #2a1d13; border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px #3d2b1c, 0 6px 0 var(--ink), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  animation: sheetin 0.32s var(--spring);
}
@keyframes sheetin { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet__col { display: grid; align-content: start; gap: 2px; }
.sheet__col:first-child { grid-template-columns: 1fr 1fr; column-gap: 6px; }
.sheet__h { grid-column: 1 / -1; margin: 0 0 6px 10px; font: 900 11.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.sheet a:not(.btn) { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 10px; font: 400 17px/1.1 var(--f-disp); color: var(--cream); transition: background 0.2s, color 0.2s; }
.sheet a:not(.btn):hover, .sheet a:not(.btn):focus-visible { background: #3d2b1c; color: var(--gold); }
.sheet a[aria-current="true"] { color: var(--gold); background: rgba(255, 204, 51, 0.08); }
.sheet__col--side { padding-left: 18px; border-left: 2px dashed #4a3726; }
.sheet__col--side .ic { width: 20px; height: 20px; color: var(--gold); }
.sheet__col--side img { width: 22px; height: auto; }
.sheet__cta { margin-top: 12px; height: 48px; font-size: 15px; }

/* ============ hero ============ */
main { position: relative; z-index: 1; }
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(112px, 14vh, 140px) var(--gutter) 0;
  --cw: clamp(214px, 23.5vw, 340px);
  --ch: calc(var(--cw) * 1.4);
}
.hero__h {
  display: grid; justify-items: center; gap: 0.08em;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  text-wrap: balance;
  transition: filter 1.2s var(--ease), opacity 1.2s var(--ease), transform 1.2s var(--spring);
  will-change: filter, opacity;
}
.hero__h span { display: block; }
.hero__h span + span { --ol: var(--ink); --dp: #5a3a10; color: var(--gold); font-size: 0.8em; }
html.js body:not(.is-ready) .hero__h { filter: blur(16px); opacity: 0; transform: scale(0.9) translateY(10px); }
.hero__sub {
  max-width: 62ch; margin-top: clamp(18px, 2.6vh, 26px);
  font: 700 clamp(15px, 1.2vw, 17.5px)/1.55 var(--f-body); color: var(--soft);
  text-wrap: balance;
  transition: opacity 1s 0.25s var(--ease), transform 1s 0.25s var(--ease);
}
.ping {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: min(460px, 100%); height: 60px; margin-top: clamp(18px, 2.8vh, 28px);
  padding: 0 5px 0 16px; border-radius: 16px;
  background: #2a1d13; border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35), 0 5px 0 var(--ink);
  transition: border-color 0.2s, opacity 1s 0.35s var(--ease), transform 1s 0.35s var(--ease);
}
.ping:focus-within { border-color: var(--gold); }
.ping__ic { color: var(--gold); width: 21px; height: 21px; }
.ping input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none;
  color: var(--cream); font: 700 15px var(--f-body); caret-color: var(--gold);
}
.ping input::placeholder { color: #b39f80; }
.ping button {
  flex: none; height: 44px; min-width: 48px; padding: 0 14px 2px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: inset 0 -4px 0 var(--gold-d), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  font: 400 15px/1 var(--f-disp);
  transition: transform 0.16s var(--spring), filter 0.2s;
}
.ping button:hover { transform: translateY(-1px); filter: brightness(1.07); }
.ping button:active { transform: translateY(2px); }
.ping button:disabled { opacity: 0.6; cursor: progress; }
.ping button .ic { width: 20px; height: 20px; stroke-width: 2.8; }
.ping__msg { position: absolute; left: 0; right: 0; top: calc(100% + 12px); font: 700 13.5px/1.4 var(--f-body); color: var(--soft); text-align: center; }
.ping__msg.is-ok { color: var(--gold); }
.ping__msg.is-err { color: #ffb3a8; }
.ping.is-done { border-color: var(--green); }
html.js body:not(.is-ready) .hero__sub,
html.js body:not(.is-ready) .hero .ping { opacity: 0; transform: translateY(12px); }
.hero__back { margin-top: 26px; }

/* ============ the calling deck (Hoardbound-style cards) ============ */
.deck { text-align: left; position: relative; align-self: stretch; flex: 1; min-height: calc(var(--ch) * 0.8); margin-top: clamp(30px, 5vh, 56px); touch-action: pan-y; }
.deck.is-drag { cursor: grabbing; }
.deck__fan { position: absolute; inset: 0; }
.cc {
  position: absolute; left: 50%; top: 0;
  width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  transform-origin: 50% 235%;
  transition: transform 0.85s var(--ease), opacity 0.5s var(--ease);
  will-change: transform;
}
.deck.is-scrub .cc, .deck.is-drag .cc { transition: opacity 0.4s; }
html.js .cc { opacity: 0; transform: translateY(70%); }
.cc, .bh, .bfeat { --deep: color-mix(in srgb, var(--c), #000 52%); }
.cc__in {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--flip, 0deg) + var(--ty, 0deg))) rotateX(var(--tx, 0deg));
  transition: transform 0.75s var(--ease);
}
.cc.is-flipped .cc__in { --flip: 180deg; }
.cc__face, .cc__back {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: var(--r-card);
  background-color: var(--deep);
  border: 3px solid var(--ink);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  container-type: inline-size;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c), #fff 10%), inset 0 0 0 5px var(--deep), inset 0 0 0 6.5px rgba(255, 214, 120, 0.55), 0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
/* the art window, floored with the calling's colour laid in voxel blocks */
.cc__art {
  position: absolute; left: 5.5cqw; right: 5.5cqw; top: 25cqw; bottom: 5.5cqw;
  border-radius: 3cqw; overflow: hidden;
  background-color: var(--c);
  background-image: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 245, 210, 0.38), rgba(255, 245, 210, 0) 70%), var(--mos, none);
  background-size: 100% 100%, 100% 100%;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 5cqw 6cqw -4cqw rgba(0, 0, 0, 0.35);
}
.cc__name {
  position: absolute; left: 7cqw; right: 42cqw; top: 7cqw;
  font: 400 12.5cqw/1 var(--f-disp); white-space: nowrap; z-index: 2;
}
.cc.is-right .cc__name { left: 42cqw; right: 7cqw; text-align: right; }
.cc__role {
  position: absolute; left: 8.5cqw; max-width: 58cqw; top: 28.5cqw; z-index: 2;
  padding: 1.5cqw 3cqw 1.7cqw; border-radius: 2.4cqw; border: 0.7cqw solid var(--ink);
  background: var(--deep); color: var(--cream);
  font: 900 3.3cqw/1.2 var(--f-body); text-transform: uppercase; letter-spacing: 0.06em;
}
.cc__chip {
  position: absolute; right: 8.5cqw; top: 28.2cqw; z-index: 2;
  display: inline-flex; align-items: center; gap: 1.6cqw;
  padding: 1.5cqw 2.4cqw; border-radius: 2.4cqw; border: 0.7cqw solid var(--ink);
  background: var(--deep); color: var(--cream);
}
.cc__chip .ic { width: 4.6cqw; height: 4.6cqw; stroke-width: 2.6; color: var(--gold); }
.cc__pips { display: inline-flex; gap: 1.2cqw; padding-right: 0.6cqw; }
.cc__pips i { width: 2.6cqw; height: 2.6cqw; transform: rotate(45deg); border-radius: 0.4cqw; background: rgba(255, 243, 214, 0.25); }
.cc__pips i.on { background: var(--gold); box-shadow: 0 0 0 0.5cqw var(--ink); }
.cc__ground { position: absolute; left: 20%; right: 20%; bottom: 4.5%; height: 7%; border-radius: 50%; background: rgba(0, 0, 0, 0.32); filter: blur(6px); z-index: 1; }
.cc__fig {
  position: absolute; left: 50%; bottom: 3.5%; height: 72%; width: auto; max-width: none; z-index: 1;
  object-fit: contain; object-position: 50% 100%;
  transform: translateX(-50%) translateZ(0);
  transition: transform 0.6s var(--spring);
}
.cc__fig.is-fallback { height: 62%; }
.cc__shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 250, 225, 0.42) 44%, rgba(255, 214, 120, 0.2) 50%, rgba(140, 220, 255, 0.18) 56%, rgba(255, 255, 255, 0) 70%);
  background-size: 250% 250%; background-position: var(--sx, 50%) var(--sy, 50%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity 0.35s;
}
.cc.is-center:hover .cc__shine, .cc.is-center:focus-within .cc__shine { opacity: 1; }
.cc__back { transform: rotateY(180deg); padding: 6.5% 6.5% 7%; display: flex; flex-direction: column; }
.cc__back > * + * { margin-top: 3.4cqw; }
/* the filmed skill, playing in a framed window at the top of the back */
.cc__clip { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3cqw; border: 0.8cqw solid var(--ink); background: var(--c); box-shadow: 0 1cqw 0 var(--ink), inset 0 0 0 0.5cqw rgba(255, 214, 120, 0.4); }
.cc__clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc__title { font: 400 10cqw/1 var(--f-disp); color: var(--cream); text-shadow: 0 0.8cqw 0 var(--ink); }
.cc__desc {
  padding: 4cqw 4.4cqw; border-radius: 3cqw; border: 0.7cqw solid var(--ink);
  background: var(--parch); color: var(--parch-ink);
  font: 700 4.3cqw/1.4 var(--f-body);
}
.cc__back > .cc__meta { margin-top: auto; display: grid; gap: 1.6cqw; color: var(--cream); font: 900 3.4cqw/1.3 var(--f-body); text-transform: uppercase; letter-spacing: 0.06em; }
.cc__hit { position: absolute; inset: 0; border-radius: var(--r-card); z-index: 4; }
.cc__hit:focus-visible { outline-offset: 4px; }
.cc.is-center:hover .cc__fig { transform: translateX(-50%) translateY(-3%) scale(1.04); }
.cc:not(.is-center):hover { filter: brightness(1.12); }

.deck__ui {
  position: absolute; right: var(--gutter); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 5px 5px 16px; border-radius: 16px;
  background: #2a1d13; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transition: opacity 0.6s 0.9s;
}
html.js body:not(.is-ready) .deck__ui { opacity: 0; }
.deck__now { display: flex; align-items: baseline; gap: 6px; margin-right: 8px; color: var(--mute); font: 800 12px/1 var(--f-body); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.deck__now b { color: var(--cream); font: 400 16px/1 var(--f-disp); }
.deck__name { color: var(--gold); min-width: 9.5ch; font: 400 15px/1 var(--f-disp); letter-spacing: 0.02em; }
.deck__ui button { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--soft); transition: background 0.2s, color 0.2s, transform 0.2s var(--spring); }
.deck__ui button:hover { background: #3d2b1c; color: var(--gold); transform: translateY(-1px); }
.deck__ui button .ic { width: 19px; height: 19px; stroke-width: 2.4; }
.deck__ui .deck__see { width: auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px 1px 10px; margin-right: 4px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 var(--gold-d); font: 400 14.5px/1 var(--f-disp); white-space: nowrap; }
.deck__ui .deck__see:hover { background: #ffd84f; color: var(--ink); }
.deck__ui .deck__see .ic { width: 15px; height: 15px; }
.deck__ui .deck__see[aria-pressed="true"] { background: #3d2b1c; color: var(--gold); box-shadow: none; }

/* ============ world panel: the clip on top, the places as a strip of cards underneath ============ */
.world { position: relative; padding: clamp(40px, 8vh, 90px) var(--gutter) clamp(20px, 4vh, 50px); }
.panel {
  --p: 1;
  position: relative; margin: 0 auto;
  width: min(1220px, 100%); aspect-ratio: 16 / 7.6; max-height: 76vh; min-height: 420px;
  border-radius: var(--r-panel); overflow: hidden; isolation: isolate;
  background: #1a120c;
  clip-path: inset(var(--it, 0px) var(--ix, 0px) var(--it, 0px) var(--ix, 0px) round var(--ir, var(--r-panel)));
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #6b4423, inset 0 0 0 7px var(--ink), inset 0 0 0 8.5px rgba(255, 204, 51, 0.5);
}
.panel__media, .panel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__media { transform: scale(calc(1.18 - var(--p) * 0.18)); transform-origin: 50% 60%; }
.panel__fly { position: absolute; z-index: 2; object-fit: cover; max-width: none; }
.panel__scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(28deg, rgba(18, 12, 8, 0.94) 0%, rgba(18, 12, 8, 0.66) 30%, rgba(18, 12, 8, 0.12) 56%, rgba(18, 12, 8, 0) 68%);
}
.panel__body, .panel__pause, .panel__count { z-index: 4; opacity: calc((var(--p) - 0.72) * 3.6); }
.panel__body { position: absolute; left: clamp(30px, 4.2%, 58px); bottom: clamp(30px, 6.5%, 58px); width: min(46%, 520px); }
.panel__title { font-size: clamp(2.8rem, 5.2vw, 5rem); text-wrap: balance; }
.panel__desc { margin-top: 14px; max-width: 40ch; font: 700 16.5px/1.55 var(--f-body); color: var(--soft); }
.panel__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.panel__tags li { padding: 6px 11px 7px; border-radius: 8px; background: #3a2617; border: 2px solid var(--ink); font: 900 11.5px/1 var(--f-body); color: var(--cream); text-transform: uppercase; letter-spacing: 0.07em; }
.panel__body .btn { margin-top: 20px; }
.panel__body.is-swap > * { animation: swapin 0.8s var(--ease) both; }
.panel__body.is-swap > :nth-child(2) { animation-delay: 0.06s; }
.panel__body.is-swap > :nth-child(3) { animation-delay: 0.12s; }
.panel__body.is-swap > :nth-child(4) { animation-delay: 0.18s; }
@keyframes swapin { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.panel__count { position: absolute; right: clamp(30px, 3.4%, 50px); bottom: clamp(26px, 5.5%, 46px); display: flex; align-items: baseline; gap: 6px; font: 400 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--f-disp); color: var(--cream); text-shadow: 0 3px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink); font-variant-numeric: tabular-nums; }
.panel__count span { font-size: max(15px, 0.42em); color: var(--soft); }
.panel__pause { position: absolute; top: 26px; right: 26px; }

.places { width: min(1220px, 100%); margin: 18px auto 0; display: flex; align-items: center; gap: 12px; }
.places__rail { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; padding: 16px 2px 8px; }
.places__rail > li { display: flex; }
.place {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; overflow: hidden;
  border-radius: 12px; background: #2a1d13; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.3s var(--spring), box-shadow 0.25s;
}
.place img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.7) brightness(0.72); transition: filter 0.3s, transform 0.5s var(--ease); }
.place__t { flex: 1; display: flex; align-items: center; min-height: 2.6em; padding: 6px 8px 8px; font: 400 14px/1.05 var(--f-disp); color: var(--soft); }
.place__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, 0.45); }
.place__bar b { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.place:hover { transform: translateY(-5px); }
.place:hover img { filter: none; transform: scale(1.06); }
.place.is-on { transform: translateY(-12px); box-shadow: 0 0 0 3px var(--gold), 0 8px 0 var(--ink); }
.place.is-on img { filter: none; }
.place.is-on .place__t { color: var(--gold); }

/* the Kickstarter ribbon */
.ribbon { position: relative; z-index: 2; margin: clamp(50px, 8vh, 90px) -20px 0; transform: rotate(-1.4deg); background: var(--gold); border-block: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink), inset 0 -5px 0 var(--gold-d), inset 0 3px 0 rgba(255, 255, 255, 0.4); overflow: hidden; }
.ribbon__track { display: flex; align-items: center; gap: 30px; width: max-content; padding: 13px 0 16px 30px; animation: ribbon 46s linear infinite; }
.ribbon span { font: 400 clamp(19px, 2vw, 27px)/1 var(--f-disp); color: var(--ink); white-space: nowrap; }
.ribbon i { flex: none; width: 13px; height: 13px; background: var(--ink); transform: rotate(45deg); }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ============ sections ============ */
.sec { position: relative; padding: clamp(96px, 15vh, 160px) var(--gutter) clamp(40px, 7vh, 80px); }
.sec__head { text-align: center; margin: 0 auto clamp(40px, 7vh, 70px); max-width: 1000px; }
.sec__h { font-size: clamp(2.6rem, 5.4vw, 5rem); text-wrap: balance; }
.sec__h span { display: block; color: var(--gold); --ol: var(--ink); --dp: #5a3a10; }
.sec__sub { margin: 22px auto 0; max-width: 54ch; font: 700 17px/1.55 var(--f-body); color: var(--soft); text-wrap: balance; }

/* bosses: a featured card and the hand you deal it from */
.bossboard { width: min(1180px, 100%); margin: 0 auto; }
.bfeat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.bfeat__card {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 22px;
  background-color: var(--c); background-image: radial-gradient(ellipse 65% 60% at 50% 45%, rgba(255, 245, 210, 0.35), rgba(255, 245, 210, 0) 70%), var(--mos, none);
  background-size: 100% 100%, 100% 100%; image-rendering: pixelated;
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--deep), inset 0 0 0 6px rgba(255, 214, 120, 0.6), 0 8px 0 var(--ink), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.bfeat__card.is-dealt { animation: dealin 0.7s var(--spring); }
@keyframes dealin { from { transform: perspective(900px) rotateY(-70deg) scale(0.9); } to { transform: none; } }
.bfeat__art {
  position: absolute; left: 50%; bottom: 6%; width: 112%; max-width: none; height: auto; aspect-ratio: 1;
  object-fit: contain; object-position: 50% 100%; transform: translateX(-50%);
  filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.28));
}
.bfeat__name { font-size: clamp(3.2rem, 6.4vw, 6rem); }
.bfeat__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bfeat__pills span { padding: 7px 12px 8px; border-radius: 9px; border: 3px solid var(--ink); background: var(--deep); color: var(--cream); font: 900 12px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.07em; }
.bfeat__how { margin-top: 22px; max-width: 46ch; padding: 18px 20px; border-radius: 14px; border: 3px solid var(--ink); background: var(--parch); color: var(--parch-ink); font: 700 17px/1.55 var(--f-body); box-shadow: 0 5px 0 var(--ink); }
.bfeat__how b { font-weight: 900; }
.bfeat__clip { margin-top: 20px; width: min(100%, 440px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: #000; }
.bfeat__clip video { width: 100%; height: 100%; object-fit: cover; }
.bfeat__info.is-swap > * { animation: swapin 0.7s var(--ease) both; }
.bfeat__info.is-swap > :nth-child(2) { animation-delay: 0.05s; }
.bfeat__info.is-swap > :nth-child(3) { animation-delay: 0.1s; }
.bfeat__info.is-swap > :nth-child(4) { animation-delay: 0.15s; }
.bhand { display: flex; justify-content: center; margin-top: clamp(56px, 8vh, 90px); padding: 30px 0 10px; }
.bhand li { margin: 0 -6px; }
.bh {
  position: relative; display: block; width: clamp(96px, 9vw, 132px); aspect-ratio: 3 / 4; border-radius: 12px;
  background-color: var(--c); background-image: var(--mos, none); background-size: 100% 100%; image-rendering: pixelated;
  border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--deep), 0 5px 0 var(--ink), 0 20px 30px -16px rgba(0, 0, 0, 0.8);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); transform-origin: 50% 140%;
  transition: transform 0.35s var(--spring), box-shadow 0.25s;
}
.bh img { position: absolute; left: 50%; bottom: 22%; width: 128%; max-width: none; transform: translateX(-50%); pointer-events: none; transition: transform 0.35s var(--spring); }
.bh span { position: absolute; left: 6px; right: 6px; bottom: 7px; padding: 3px 0 4px; border-radius: 6px; background: var(--deep); border: 2px solid var(--ink); color: var(--cream); font: 400 13px/1 var(--f-disp); text-align: center; }
.bh:hover { transform: rotate(var(--r, 0deg)) translateY(calc(var(--y, 0px) - 22px)); z-index: 2; }
.bh:hover img { transform: translateX(-50%) scale(1.08); }
.bh.is-on { transform: rotate(var(--r, 0deg)) translateY(calc(var(--y, 0px) - 30px)); box-shadow: inset 0 0 0 3px var(--gold), 0 5px 0 var(--ink), 0 0 0 3px var(--gold); }
.bh__fly { position: fixed; z-index: 80; pointer-events: none; margin: 0; }

/* numbers: a hotbar of ten collections and the stone display case they open */
.inv { --c: #3f8f6a; --deep: color-mix(in srgb, var(--c), #000 52%); width: min(1220px, 100%); margin: 0 auto; }
.inv img { image-rendering: auto; }
.inv img[src^="data:"] { image-rendering: pixelated; }
.hot__ic .hot__px { image-rendering: pixelated; top: auto; left: 0; right: 0; margin-inline: auto; height: 62%; width: auto; aspect-ratio: 1; }
.inv__bar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; }
.hot {
  position: relative; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 2px;
  min-width: 0; height: clamp(124px, 12vw, 146px); padding: 12px 4px 11px; border-radius: 14px;
  background-color: #2f241b; background-image: var(--stone, none); background-size: calc(var(--cell) * 2.5); image-rendering: pixelated;
  border: 3px solid var(--ink); color: var(--cream);
  box-shadow: inset 0 0 0 999px rgba(20, 14, 10, 0.58), inset 0 3px 0 rgba(255, 230, 190, 0.12), inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 5px 0 var(--ink);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
}
.hot:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 999px rgba(20, 14, 10, 0.44), inset 0 3px 0 rgba(255, 230, 190, 0.14), inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 7px 0 var(--ink); }
.hot:active { transform: translateY(3px); box-shadow: inset 0 0 0 999px rgba(20, 14, 10, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 1px 0 var(--ink); }
.hot[aria-selected="true"] {
  transform: translateY(-7px);
  box-shadow: inset 0 0 0 999px rgba(54, 38, 20, 0.42), inset 0 3px 0 rgba(255, 230, 190, 0.2), inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 5px 0 var(--ink), 0 0 0 3px var(--gold);
}
.hot__ic { position: relative; align-self: stretch; justify-self: stretch; min-height: 0; }
.hot__ic > * { position: absolute; left: 7%; right: 7%; top: 0; bottom: 0; width: 86%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); transition: transform 0.35s var(--spring); }
.hot__ic .ic { left: 30%; right: 30%; width: 40%; color: var(--gold); stroke-width: 2.4; filter: drop-shadow(0 3px 0 var(--ink)); }
.hot:hover .hot__ic > *, .hot[aria-selected="true"] .hot__ic > * { transform: translateY(-4px) scale(1.06); }
.hot__n { margin-top: 6px; font-size: clamp(1.25rem, 1.9vw, 1.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hot__l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 11px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--mute); transition: color 0.2s; }
.hot[aria-selected="true"] .hot__l, .hot:hover .hot__l { color: var(--gold); }
.hot__key {
  position: absolute; left: 7px; top: 7px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--ink); color: var(--mute); font: 900 11px/1 var(--f-body); box-shadow: inset 0 -2px 0 #000;
}
@media (hover: hover) and (pointer: fine) { .hot__key { display: grid; } }
.hot[aria-selected="true"] .hot__key { background: var(--gold); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold-d); }

/* the case: a stone wall in a wood frame, with the open collection parading across its floor */
.inv__case {
  position: relative; display: grid; gap: 18px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-panel);
  background-color: #2f241b; background-image: var(--stone, none); background-size: calc(var(--cell) * 4); image-rendering: pixelated;
  box-shadow: inset 0 0 0 999px rgba(20, 14, 10, 0.6), 0 8px 0 var(--ink), 0 60px 120px -50px rgba(0, 0, 0, 0.9);
}
.inv__case::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #6b4423, inset 0 0 0 7px var(--ink), inset 0 0 0 8.5px rgba(255, 204, 51, 0.5); }
.inv__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; padding: 4px 4px 0; }
.inv__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 20px; }
.inv__n { grid-row: span 2; font-size: clamp(3.4rem, 6vw, 5.6rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.inv__l { font: 900 13px/1.3 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.inv__of { margin-top: 6px; max-width: 42ch; font: 700 16px/1.45 var(--f-body); color: var(--soft); text-wrap: pretty; }
.inv__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inv__acts .rbtn[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: inset 0 -4px 0 var(--gold-d), 0 4px 0 var(--ink); }
.inv__case.is-swap .inv__top > * { animation: swapin 0.6s var(--ease) both; }
.inv__case.is-swap .inv__acts { animation-delay: 0.06s; }

/* the lane: a recess in the wall, lit warm from its floor */
.lane {
  --lh: clamp(300px, 31vw, 420px); --hs: 1;
  position: relative; height: var(--lh); overflow: hidden; border-radius: 16px; border: 3px solid var(--ink); background: #160f0a;
  box-shadow: inset 0 46px 40px -18px rgba(0, 0, 0, 0.75), 0 4px 0 rgba(255, 230, 190, 0.08);
  touch-action: pan-y;
}
.lane__glow { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(ellipse 60% 55% at 50% 100%, color-mix(in srgb, var(--c), #ffb35a 55%), transparent 72%); opacity: 0.38; }
.lane__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15%;
  background-color: var(--c); background-image: var(--mos, none); background-size: auto 100%; image-rendering: pixelated;
  border-top: 3px solid var(--ink); box-shadow: inset 0 5px 0 rgba(255, 255, 255, 0.16), inset 0 -10px 18px rgba(0, 0, 0, 0.35);
}
.lane[data-mode="land"] .lane__floor, .lane[data-mode="land"] .lane__glow { display: none; }
.lane__track { position: absolute; inset: 0; }
.lane.is-static { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #5a4330 transparent; }
.lane.is-static .lane__track { position: relative; height: 100%; }

/* one walker: a button standing on the floor; the picture inside does the stepping */
.wk {
  position: absolute; left: 0; bottom: 11%; height: calc(var(--lh) * var(--h) * var(--hs)); width: calc(var(--lh) * var(--h) * var(--hs) * var(--ar));
  padding: 0; border: 0; background: none; cursor: pointer; will-change: transform; outline-offset: 4px;
}
.wk__body { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform 0.35s var(--spring), filter 0.3s; }
.wk img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.3)); pointer-events: none; -webkit-user-drag: none; user-select: none; }
.wk__shadow { position: absolute; left: 12%; right: 12%; bottom: -5%; height: 10%; border-radius: 50%; background: rgba(0, 0, 0, 0.4); filter: blur(3px); }
.lane.is-run .wk--walk .wk__body { animation: step 0.56s steps(2) infinite; }
.lane.is-run .wk--walk:nth-child(2n) .wk__body { animation-delay: -0.28s; }
.lane.is-run .wk--gallop .wk__body { animation: gallop 0.42s var(--ease-io) infinite alternate; }
.lane.is-run .wk--stomp .wk__body { animation: stomp 1.3s var(--ease-io) infinite; }
.wk--drop, .wk--float, .wk--note { bottom: 22%; }
.wk--drop .wk__body { animation: bob 2.6s var(--ease-io) var(--d1, 0s) infinite alternate, turn 3.4s var(--ease-io) var(--d2, 0s) infinite alternate; }
.wk--float .wk__body { animation: bob 3.2s var(--ease-io) var(--d1, 0s) infinite alternate, sway 4.6s var(--ease-io) var(--d2, 0s) infinite alternate; }
.wk--float { bottom: 19%; }
.wk--card { bottom: 18%; }
.wk--card .wk__body { animation: sway 5s var(--ease-io) var(--d2, 0s) infinite alternate; }
.wk--card img { filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35)); }
.wk--land { bottom: 0; top: 0; height: 100%; width: calc(var(--lh) * 0.8 + 1px); }
.wk--land img { object-fit: cover; image-rendering: pixelated; filter: none; }
.wk--land .wk__name { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 10px 6px; border-radius: 8px; border: 2px solid var(--ink); background: rgba(27, 19, 13, 0.82); color: var(--cream); font: 400 15px/1 var(--f-disp); white-space: nowrap; }
.wk--land::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: rgba(27, 19, 13, 0.5); }
.wk__block {
  position: absolute; inset: 0 12% 26%; display: grid; place-items: center; border-radius: 10px; border: 3px solid var(--ink);
  background: #6b4423; box-shadow: inset 0 -6px 0 #3f2612, inset 0 4px 0 rgba(255, 255, 255, 0.16), 0 4px 0 var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 25%);
}
.wk__block .ic { width: 44%; height: 44%; color: var(--gold); stroke-width: 2.6; filter: drop-shadow(0 3px 0 var(--ink)); }
.wk--note .wk__name { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); color: var(--cream); font: 400 15px/1.1 var(--f-disp); text-align: center; width: 150%; text-shadow: 0 2px 0 var(--ink); }
.wk--note.is-playing .wk__block { background-color: var(--gold); box-shadow: inset 0 -6px 0 var(--gold-d), 0 4px 0 var(--ink); }
.wk--note.is-playing .wk__block .ic { color: var(--ink); filter: none; }
.wk--note.is-playing .wk__body { animation: hop 0.5s var(--ease-io) infinite alternate; }
.wk:hover .wk__body, .wk:focus-visible .wk__body, .wk.is-on .wk__body { transform: translateY(-6%) scale(1.06); filter: brightness(1.12); animation-play-state: paused; }
.wk--land:hover .wk__body, .wk--land.is-on .wk__body { transform: none; filter: brightness(1.08); }
.wk.is-on { z-index: 3; }
.wk.is-roll .wk__body { filter: brightness(1.35) drop-shadow(0 0 0 var(--gold)); transform: translateY(-4%); }
.wk.is-swing .wk__body { animation: swing 0.9s var(--spring); }
.wk.is-hop .wk__body { animation: hop 0.45s var(--spring); }
@keyframes step { 50% { transform: translateY(-3.5%) rotate(-1.5deg); } }
@keyframes gallop { from { transform: translateY(0) rotate(1.5deg); } to { transform: translateY(-6%) rotate(-2deg); } }
@keyframes stomp { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4%) rotate(-1deg); } 55% { transform: translateY(0) scaleY(0.97); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14%); } }
@keyframes turn { from { rotate: y -50deg; } to { rotate: y 50deg; } }
@keyframes sway { from { rotate: -6deg; } to { rotate: 6deg; } }
@keyframes hop { 40% { transform: translateY(-12%); } }
@keyframes swing { 0% { transform: none; } 28% { transform: rotate(-42deg); } 58% { transform: rotate(28deg); } 100% { transform: none; } }

/* the tooltip: a parchment tag dropped from the top of the lane, pointing at the one you're looking at */
.tip {
  --tx: 50%;
  position: absolute; top: 12px; left: 0; z-index: 5; width: min(320px, calc(100% - 24px)); padding: 13px 15px 14px;
  border-radius: 14px; border: 3px solid var(--ink); background: var(--parch); color: var(--parch-ink); box-shadow: 0 5px 0 var(--ink), 0 24px 40px -18px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(-6px) scale(0.97); transform-origin: var(--tx) 100%; pointer-events: none; transition: opacity 0.18s var(--ease), transform 0.25s var(--spring);
}
.tip.is-on { opacity: 1; transform: none; }
.tip.is-pin { pointer-events: auto; }
.tip::after { content: ""; position: absolute; left: var(--tx); bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: var(--parch); border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tip__name { font: 400 1.35rem/1.05 var(--f-disp); color: var(--parch-ink); }
.tip__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tip__chips:empty { display: none; }
.tip__chips span { padding: 4px 8px 5px; border-radius: 7px; border: 2px solid var(--ink); background: var(--deep); color: var(--cream); font: 900 11px/1.1 var(--f-body); text-transform: uppercase; letter-spacing: 0.06em; }
.tip__line { margin-top: 8px; font: 700 14.5px/1.45 var(--f-body); text-wrap: pretty; }
.tip__line:empty { display: none; }
.tip__at { display: block; margin-top: 7px; padding-top: 7px; border-top: 2px dashed rgba(59, 35, 20, 0.28); font: 700 13px/1.4 var(--f-body); }
.tip__at b { margin-right: 4px; font: 900 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.08em; color: #8a4b1c; }
.tip__clip { display: block; width: 100%; aspect-ratio: 16 / 10; margin: 2px 0 10px; border-radius: 9px; border: 3px solid var(--ink); background: #000; object-fit: cover; }
.inv__note { padding: 0 4px; font: 800 13.5px/1.35 var(--f-body); color: var(--mute); }

/* grid mode: items as the game's inventory, cards as a binder page, music as note blocks */
.lane.is-grid { height: auto; overflow: visible; padding: clamp(14px, 1.8vw, 22px); }
.lane.is-grid .lane__floor { display: none; }
.lane.is-grid .lane__track { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.gs {
  position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 11px; border: 3px solid var(--ink); background: #2a1e15; cursor: pointer;
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 2px color-mix(in srgb, var(--rc, #9a7a3a), transparent 50%), 0 2px 0 rgba(255, 230, 190, 0.06);
  transition: transform 0.18s var(--spring), background 0.2s, box-shadow 0.2s;
}
.gs img { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)); transition: transform 0.25s var(--spring); }
.gs:hover, .gs:focus-visible, .gs.is-on { background: #3a2a1d; transform: translateY(-3px); }
.gs:hover img, .gs.is-on img { transform: scale(1.08); }
.gs.is-on { box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 0 2px color-mix(in srgb, var(--rc, #9a7a3a), transparent 30%), 0 0 0 3px var(--gold); }
.gs.is-roll { background: #5a4026; box-shadow: inset 0 0 0 2px rgba(255, 204, 51, 0.4), 0 0 0 3px var(--gold); }
.lane[data-k="cards"] .lane__track { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 12px; }
.gs--cards { aspect-ratio: 5 / 7; border: 0; background: none; box-shadow: none; border-radius: 8px; }
.gs--cards img { position: static; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.4)); }
.gs--cards:hover, .gs--cards:focus-visible, .gs--cards.is-on { background: none; transform: translateY(-6px) rotate(-1.5deg); }
.gs--cards.is-roll { box-shadow: 0 0 0 3px var(--gold); background: none; }
.lane .gs--cards.is-on { z-index: 6; transform: scale(2.1); box-shadow: 0 0 0 2px var(--gold), 0 30px 50px -20px rgba(0, 0, 0, 0.9); transition: transform 0.3s var(--spring), box-shadow 0.2s; }
.lane[data-k="music"] .lane__track { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.gs--note { aspect-ratio: auto; display: grid; justify-items: center; gap: 12px; padding: 10px 4px 6px; border: 0; background: none; box-shadow: none; }
.gs--note .wk__block { position: relative; inset: auto; width: 92px; height: 92px; }
.gs--note:hover, .gs--note:focus-visible, .gs--note.is-on { background: none; transform: translateY(-4px); }
.gs--note.is-on, .gs--note.is-roll { box-shadow: none; background: none; }
.gs--note.is-on .wk__block { box-shadow: inset 0 -6px 0 #3f2612, inset 0 4px 0 rgba(255, 255, 255, 0.16), 0 4px 0 var(--ink), 0 0 0 3px var(--gold); }
.gs--note.is-playing .wk__block { background-color: var(--gold); box-shadow: inset 0 -6px 0 var(--gold-d), 0 4px 0 var(--ink); }
.gs--note.is-playing .wk__block .ic { color: var(--ink); filter: none; }
.lane.is-run .gs--note.is-playing, .gs--note.is-playing { animation: hop 0.5s var(--ease-io) infinite alternate; }
.gs__name { font: 400 1.05rem/1.15 var(--f-disp); color: var(--cream); text-align: center; text-shadow: 0 2px 0 var(--ink); }
.tip.is-below { transform-origin: var(--tx) 0; }
.tip.is-below::after { bottom: auto; top: -9px; border-width: 3px 0 0 3px; }

/* fade mode: biome screenshots crossfading with a slow push in */
.lane.is-fade { height: auto; aspect-ratio: 16 / 7.4; cursor: pointer; }
.lane.is-fade .lane__floor, .lane.is-fade .lane__glow { display: none; }
.fade__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.fade__img[src^="data:"] { image-rendering: pixelated; }
.fade__img.is-on { opacity: 1; }
.fade__img.is-zoom { animation: push 8s linear both; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.07); } }
.fade__count { position: absolute; right: 14px; top: 12px; padding: 5px 10px 6px; border-radius: 8px; border: 2px solid var(--ink); background: rgba(27, 19, 13, 0.82); color: var(--soft); font: 900 12px/1 var(--f-body); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.fade__cap {
  position: absolute; left: 16px; bottom: 20px; max-width: min(440px, calc(100% - 32px)); padding: 13px 16px 14px; cursor: auto;
  border-radius: 14px; border: 3px solid var(--ink); background: var(--parch); color: var(--parch-ink); box-shadow: 0 5px 0 var(--ink), 0 24px 40px -18px rgba(0, 0, 0, 0.8);
}
.fade__cap.is-swap > * { animation: swapin 0.6s var(--ease) both; }
.fade__name { font: 400 1.55rem/1.05 var(--f-disp); }
.fade__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.fade__chips:empty { display: none; }
.fade__chips span { padding: 4px 8px 5px; border-radius: 7px; border: 2px solid var(--ink); background: var(--deep); color: var(--cream); font: 900 11px/1.1 var(--f-body); text-transform: uppercase; letter-spacing: 0.06em; }
.fade__line { margin-top: 8px; font: 700 14.5px/1.45 var(--f-body); }
.fade__line:empty { display: none; }
.fade__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0, 0, 0, 0.45); }
.fade__bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s linear; }

/* trailer */
.tv {
  position: relative; width: min(1220px, 100%); margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--r-panel); overflow: hidden; background: #000;
  box-shadow: 0 8px 0 var(--ink), 0 60px 120px -50px rgba(0, 0, 0, 0.9);
}
.tv::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #6b4423, inset 0 0 0 7px var(--ink), inset 0 0 0 8.5px rgba(255, 204, 51, 0.5); }
.tv.is-playing::after { display: none; }
.tv video { width: 100%; height: 100%; object-fit: cover; }
.tv__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: rgba(18, 12, 8, 0.25); transition: background 0.3s; }
.tv__play:hover { background: rgba(18, 12, 8, 0.1); }
.tv__btn { width: clamp(84px, 8vw, 112px); aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: 4px solid var(--ink); box-shadow: inset 0 -7px 0 var(--gold-d), inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 7px 0 var(--ink); transition: transform 0.3s var(--spring); }
.tv__btn .ic { width: 40%; height: 40%; margin-left: 6%; }
.tv__play:hover .tv__btn { transform: translateY(-4px) rotate(-4deg); }
.tv__t { font: 400 17px var(--f-disp); padding: 8px 16px 9px; border-radius: 10px; border: 3px solid var(--ink); background: #2a1d13; color: var(--cream); }
.tv.is-playing .tv__play { display: none; }

/* kickstarter */
.ks { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ks__h { font-size: clamp(2.4rem, 4.8vw, 4.6rem); text-wrap: balance; }
.count { display: flex; align-items: flex-start; justify-content: center; gap: clamp(10px, 2vw, 28px); margin-top: clamp(26px, 4vh, 42px); }
.count__u { display: grid; justify-items: center; gap: 16px; }
.count__u b { display: flex; gap: clamp(4px, 0.6vw, 8px); font-weight: 400; }
.count__d {
  position: relative; display: grid; place-items: center;
  width: clamp(54px, 7.2vw, 104px); height: clamp(72px, 9.4vw, 136px);
  border-radius: clamp(10px, 1.2vw, 16px); border: 3px solid var(--ink);
  background: linear-gradient(#4a3020 0 50%, #3a2617 50% 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12), inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 6px 0 var(--ink);
  font: 400 clamp(2.8rem, 6.2vw, 5.8rem)/1 var(--f-disp);
  --ol: var(--ink); --dp: var(--ink);
  transform-origin: 50% 0;
}
.count__d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); opacity: 0.85; }
.count__d.flip { animation: flipdown 0.55s var(--ease); }
@keyframes flipdown { 0% { transform: perspective(400px) rotateX(80deg); filter: brightness(0.6); } 100% { transform: none; filter: none; } }
.count__u > span { font: 900 clamp(10.5px, 1vw, 12.5px)/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.count > i { font: 400 clamp(2.4rem, 5vw, 4.6rem)/1 var(--f-disp); font-style: normal; color: var(--gold); margin-top: clamp(14px, 2vw, 30px); text-shadow: 0 4px 0 var(--ink); }
.count.is-live .count__d { background: linear-gradient(#3f7d29 0 50%, #2f6420 50% 100%); }
.ks__when { margin-top: clamp(26px, 3.8vh, 38px); max-width: 58ch; font: 700 17px/1.55 var(--f-body); color: var(--soft); text-wrap: balance; }
.ks__when b { color: var(--gold); font-weight: 900; }
.ks__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.ks .ping { margin-top: 0; }
.ping--big { width: min(480px, 100%); }
.ping__go { padding: 0 18px 2px !important; }
.ks__act .btn { height: 60px; }
.ks__fine { margin-top: 30px; font: 700 14px var(--f-body); color: var(--mute); }

/* hoardbound: a tavern card table you can open a pack on */
.hoard__wrap { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.table {
  padding: 16px 16px 12px; border-radius: 26px; border: 4px solid var(--ink);
  background: #6b4423; box-shadow: inset 0 0 0 4px #8a5a2e, inset 0 -8px 0 #3f2612, 0 8px 0 var(--ink), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.table__felt {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; border: 3px solid var(--ink);
  background: radial-gradient(ellipse 70% 70% at 50% 42%, #33489a 0%, #22306b 55%, #161e47 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 204, 51, 0.45), inset 0 0 70px rgba(0, 0, 0, 0.55);
  perspective: 1200px;
}
.table__felt::before { content: ""; position: absolute; inset: 16px; border: 2px solid rgba(255, 204, 51, 0.3); border-radius: 10px; pointer-events: none; }
.table__felt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; transform: rotate(45deg); border: 3px solid rgba(255, 204, 51, 0.35); background: rgba(46, 160, 90, 0.25); pointer-events: none; }
.table__pack { position: absolute; left: 50%; top: 47%; z-index: 3; width: 21%; transform: translate(-50%, -50%) rotate(-4deg); filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.35)); transition: transform 0.3s var(--spring); }
.table__pack img { width: 100%; height: auto; }
.table__pack:hover { transform: translate(-50%, -53%) rotate(3deg) scale(1.05); }
.table__pack.is-tear { animation: tear 0.55s var(--ease) forwards; pointer-events: none; }
@keyframes tear { 40% { transform: translate(-50%, -50%) rotate(-10deg) scale(1.12); } 100% { transform: translate(-50%, -50%) rotate(14deg) scale(0.5); opacity: 0; } }
.table__hint { position: absolute; left: 0; right: 0; bottom: 6%; z-index: 4; text-align: center; font: 900 12.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.table__hand { position: absolute; inset: 0; }
.table__slots { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.4s; }
.table__slots li { position: absolute; left: calc(50% + var(--o) * 18.5%); top: 47%; width: 17%; aspect-ratio: 600 / 840; border-radius: 6%; border: 2px dashed rgba(255, 204, 51, 0.35); background: rgba(10, 14, 40, 0.25); transform: translate(-50%, -50%) rotate(calc(var(--o) * 4deg)); }
.table.is-open .table__slots { opacity: 0; }
.tcard {
  position: absolute; left: 50%; top: 47%; width: 17%; aspect-ratio: 600 / 840; z-index: 2;
  transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform 0.6s var(--spring), z-index 0s; transform-style: preserve-3d;
}
.tcard:hover { --s: 1.08; z-index: 5; }
.tcard__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.tcard.is-up .tcard__in { transform: rotateY(180deg); }
.tcard__back, .tcard__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 6%; overflow: hidden; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.7); }
.tcard__back img, .tcard__face img { width: 100%; height: 100%; object-fit: cover; }
.tcard__face { transform: rotateY(180deg); }
.tcard.is-rare.is-up .tcard__face { box-shadow: 0 0 0 3px var(--gold), 0 0 28px 6px rgba(255, 204, 51, 0.55); }
.tcard.is-rare.is-up .tcard__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 245, 200, 0.55) 48%, transparent 60%); background-size: 260% 260%; mix-blend-mode: overlay; animation: sweep 2.4s ease-in-out infinite; }
@keyframes sweep { from { background-position: 120% 120%; } to { background-position: -20% -20%; } }
.tcard button { position: absolute; inset: 0; z-index: 2; border-radius: 6%; }
.table__bar { display: flex; justify-content: center; }
.table__bar:has(.btn:not([hidden])) { padding-top: 12px; }
.table__bar .btn { height: 46px; }
.hoard__side { display: grid; gap: 20px; }
.hoard__rules { display: grid; gap: 12px; counter-reset: rule; }
.hoard__rules li { position: relative; padding: 16px 18px 16px 62px; border-radius: 14px; border: 3px solid var(--ink); background: var(--parch); color: var(--parch-ink); font: 700 16px/1.5 var(--f-body); box-shadow: 0 5px 0 var(--ink); }
.hoard__rules li::before { counter-increment: rule; content: counter(rule); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #22306b; color: var(--gold); border: 2px solid var(--ink); font: 400 18px/1 var(--f-disp); }
.hoard__rules b { font-weight: 900; }
.hoard__sets-h { font: 900 12.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-top: 6px; }
.hoard__sets { display: flex; flex-wrap: wrap; gap: 8px; }
.hoard__sets li { padding: 8px 12px 9px; border-radius: 9px; background: #22306b; color: var(--cream); border: 2px solid var(--ink); font: 400 15px/1 var(--f-disp); box-shadow: 0 3px 0 var(--ink); }

/* platforms: two doors open, two locked */
.plats { width: min(1000px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pl {
  position: relative; width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 28px 14px 24px; text-align: center;
  border-radius: 18px; border: 3px solid var(--ink);
  background-color: #3a2b20; background-image: linear-gradient(rgba(20, 14, 10, 0.5), rgba(20, 14, 10, 0.5)), var(--stone, none); background-size: auto, calc(var(--cell) * 4); image-rendering: pixelated;
  box-shadow: inset 0 3px 0 rgba(255, 230, 190, 0.12), inset 0 -6px 0 rgba(0, 0, 0, 0.35), 0 6px 0 var(--ink);
}
.pl__ic { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: inset 0 -6px 0 var(--gold-d), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--ink); }
.pl__ic .ic { width: 40px; height: 40px; stroke-width: 2; }
.pl__n { margin-top: 6px; font: 400 26px/1 var(--f-disp); color: var(--cream); text-shadow: 0 3px 0 var(--ink); }
.pl__s { font: 900 12px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.pl__state { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 11px 7px; border-radius: 8px; background: var(--green); color: var(--ink); border: 2px solid var(--ink); font: 900 11.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.08em; }
.pl__state .ic { width: 14px; height: 14px; stroke-width: 3.2; }
.pl.is-locked { cursor: pointer; transition: transform 0.2s var(--spring); }
.pl.is-locked .pl__ic { background: #4a3a2c; color: #9a8468; box-shadow: inset 0 -6px 0 #2f2419, 0 4px 0 var(--ink); }
.pl.is-locked .pl__n { color: #b29d80; }
.pl.is-locked::after { content: ""; position: absolute; inset: 0; border-radius: 15px; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0) 0 16px, rgba(0, 0, 0, 0.22) 16px 22px); pointer-events: none; }
.pl__padlock { position: absolute; top: -14px; right: -12px; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 var(--gold-d), 0 4px 0 var(--ink); transition: transform 0.3s var(--spring); }
.pl__padlock .ic { width: 24px; height: 24px; stroke-width: 2.6; }
.pl.is-locked:hover { transform: translateY(-3px); }
.pl.is-locked:hover .pl__padlock { transform: rotate(-12deg); }
.pl.is-rattle { animation: rattle 0.5s; }
.pl.is-rattle .pl__padlock { animation: lockjig 0.5s; }
@keyframes rattle { 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes lockjig { 25% { transform: rotate(-22deg); } 50% { transform: rotate(18deg) translateY(-3px); } 75% { transform: rotate(-10deg); } }
.plat__msg { margin: 26px auto 0; max-width: 52ch; min-height: 1.6em; text-align: center; font: 800 16.5px/1.5 var(--f-body); color: var(--gold); }

/* pledges: Hoardbound-style reward cards */
.pledges__wrap { width: min(1220px, 100%); margin-top: clamp(80px, 12vh, 120px); }
.ks__sub { font: 400 clamp(2rem, 3.6vw, 3.2rem)/1 var(--f-disp); color: var(--gold); text-shadow: 0.05em 0 0 var(--ink), -0.05em 0 0 var(--ink), 0 0.05em 0 var(--ink), 0 -0.05em 0 var(--ink), 0 0.11em 0 var(--ink); }
.ks__sub--sm { margin-top: 64px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--cream); }
.ks__subp { margin: 14px auto 0; max-width: 58ch; font: 700 16.5px/1.55 var(--f-body); color: var(--soft); text-wrap: balance; }
.pledges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; text-align: left; perspective: 1400px; align-items: stretch; }
.pledge {
  --deep: color-mix(in srgb, var(--c), #000 52%);
  position: relative; container-type: inline-size; display: flex; flex-direction: column;
  padding: 5%; border-radius: 18px; border: 3px solid var(--ink); background: var(--deep); overflow: hidden;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c), #fff 15%), inset 0 0 0 5px var(--deep), inset 0 0 0 6.5px rgba(255, 214, 120, 0.5), 0 7px 0 var(--ink), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 0.4s var(--ease);
}
.pledge:hover .cc__shine { opacity: 1; }
.pledge .cc__shine { border-radius: 0; }
.pledge__art { position: relative; border-radius: 12px; overflow: hidden; border: 3px solid var(--ink); aspect-ratio: 3 / 2; background: var(--c); }
.pledge__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pledge:hover .pledge__art img { transform: scale(1.05); }
.pledge__cost { position: absolute; left: 1.5%; top: 1%; z-index: 2; width: max(56px, 23cqw); height: max(56px, 23cqw); display: grid; place-content: center; justify-items: center; color: var(--ink); background: var(--gold); clip-path: polygon(50% -2%, 102% 50%, 50% 102%, -2% 50%); font: 400 max(17px, 7.2cqw)/0.9 var(--f-disp); }
.pledge__cost::before { content: ""; position: absolute; inset: 14%; z-index: -1; background: var(--gold); border: 3px solid var(--ink); border-radius: 18%; transform: rotate(45deg); box-shadow: inset 0 -4px 0 var(--gold-d), 0 4px 0 var(--ink); }
.pledge__cost small { font: 900 max(9px, 3cqw)/1 var(--f-body); }
.pledge__cost.is-long { font-size: max(13px, 5.2cqw); }
.pledge__flag { position: absolute; right: 7%; top: 7%; z-index: 2; padding: 6px 10px 7px; border-radius: 8px; border: 2px solid var(--ink); background: var(--deep); color: var(--cream); font: 900 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.07em; }
.pledge--pick .pledge__flag { background: var(--gold); color: var(--ink); }
.pledge__name { margin-top: max(12px, 4.5cqw); font-size: max(22px, 10cqw); line-height: 1; }
.pledge__name + .pledge__usd { margin-top: 4px; }
.pledge__usd { margin-top: 6px; font: 800 max(12.5px, 4cqw)/1.3 var(--f-body); color: var(--gold); }
.pledge__list { flex: 1; margin-top: max(10px, 4cqw); display: grid; align-content: start; gap: 6px; padding: max(12px, 4.5cqw) max(12px, 5cqw); border-radius: 12px; border: 3px solid var(--ink); background: var(--parch); color: var(--parch-ink); font: 800 max(13px, 4.3cqw)/1.38 var(--f-body); }
.pledge__list li { display: flex; gap: 8px; }
.pledge__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 0 2px var(--parch-ink); }
.pledge__eta { margin-top: 12px; font: 900 11.5px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.pledge__go { margin-top: 12px; width: 100%; height: 48px; font-size: 15px; }
.pledge--pick { box-shadow: 0 0 0 4px var(--gold), inset 0 0 0 2px color-mix(in srgb, var(--c), #fff 15%), inset 0 0 0 5px var(--deep), 0 7px 0 var(--ink), 0 0 50px 4px rgba(255, 204, 51, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.pledges--more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.pledge--sm { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); grid-template-rows: auto auto 1fr auto; gap: 0 18px; padding: 14px; }
.pledge--sm .pledge__art { grid-row: 1 / -1; align-self: start; }
.pledge--sm .pledge__cost { display: none; }
.pledge--sm .pledge__flag { left: 14px; right: auto; top: 14px; }
.pledge--sm .pledge__name { grid-column: 2; margin-top: 2px; font-size: 24px; }
.pledge--sm .pledge__usd { grid-column: 2; font-size: 14px; }
.pledge--sm .pledge__list { grid-column: 2; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--soft); font: 700 14px/1.4 var(--f-body); gap: 3px; }
.pledge--sm .pledge__list li::before { box-shadow: none; }
.pledge--sm .pledge__eta { grid-column: 2; margin-top: 8px; }
.pledge--sm .pledge__go { display: none; }

/* stretch goals: a staircase of stone blocks */
.stretch { width: min(1100px, 100%); margin-top: clamp(80px, 12vh, 120px); }
.stairs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 8px; height: clamp(300px, 30vw, 400px); margin-top: 34px; }
.step { height: calc(36% + var(--i) * 10.6%); }
.step button {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px 12px;
  border-radius: 12px 12px 4px 4px; border: 3px solid var(--ink); color: var(--cream);
  background-color: #4a3726; background-image: linear-gradient(rgba(20, 14, 10, 0.35), rgba(20, 14, 10, 0.35)), var(--stone, none); background-size: auto, calc(var(--cell) * 3); image-rendering: pixelated;
  box-shadow: inset 0 4px 0 rgba(255, 230, 190, 0.16), inset 0 -6px 0 rgba(0, 0, 0, 0.35), 0 6px 0 var(--ink);
  transition: transform 0.25s var(--spring), background-color 0.2s;
}
.step button:hover { transform: translateY(-6px); }
.step button[aria-pressed="true"] { background-color: #7a4e2a; box-shadow: 0 0 0 3px var(--gold), inset 0 4px 0 rgba(255, 230, 190, 0.2), inset 0 -6px 0 rgba(0, 0, 0, 0.3), 0 6px 0 var(--ink); transform: translateY(-8px); }
.step__amt { font: 400 clamp(17px, 1.7vw, 23px)/1 var(--f-disp); color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.step__ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #2a1d13; border: 2px solid var(--ink); color: var(--gold); }
.step__ic .ic { width: 24px; height: 24px; }
.step__t { font: 800 12.5px/1.25 var(--f-body); text-align: center; text-wrap: balance; }
.step--locked button { background-color: #241a12; color: #a8957a; }
.step--locked .step__amt { color: #a8957a; }
.stairs__info { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: baseline; margin-top: 26px; padding: 22px 26px; text-align: left; border-radius: 16px; border: 3px solid var(--ink); background: var(--parch); color: var(--parch-ink); box-shadow: 0 5px 0 var(--ink); }
.stairs__amt { grid-row: span 2; font: 400 clamp(30px, 3.4vw, 44px)/1 var(--f-disp); }
.stairs__t { font: 400 clamp(20px, 2vw, 26px)/1.1 var(--f-disp); }
.stairs__d { font: 700 16.5px/1.5 var(--f-body); }
.stairs__info.is-swap > * { animation: swapin 0.5s var(--ease) both; }

/* roadmap: a parchment map Gribble walks along */
.map { width: min(1220px, 100%); margin: 0 auto; }
.map__scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 22px; border: 4px solid var(--ink); box-shadow: inset 0 0 0 4px #8a5a2e, 0 8px 0 var(--ink), 0 40px 80px -30px rgba(0, 0, 0, 0.9); background: #6b4423; padding: 10px; }
.map__board {
  position: relative; min-width: 880px; aspect-ratio: 1200 / 440; border-radius: 14px; border: 3px solid var(--ink); overflow: hidden;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, #f7e9c8 35%, #e8cf9c 80%, #cfa96c 100%);
}
.map__path, .map__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__hills { fill: #c9a26a; stroke: #7a5532; stroke-width: 3; stroke-linejoin: round; opacity: 0.7; }
.map__trees { fill: #6f8a3a; stroke: #3f4f1f; stroke-width: 2.5; opacity: 0.75; }
.map__lake { fill: #7fb2c4; stroke: #4a6f7c; stroke-width: 3; opacity: 0.7; }
.map__rose circle { fill: none; stroke: #7a5532; stroke-width: 3; stroke-dasharray: 4 6; opacity: 0.8; }
.map__rose path { fill: #b9790c; stroke: #5a3a1a; stroke-width: 2.5; stroke-linejoin: round; }
.map__rose text { font: 400 22px var(--f-disp); fill: #5a3a1a; color: #5a3a1a; }
.map__trail { fill: none; stroke: #7a5532; stroke-width: 5; stroke-dasharray: 3 15; stroke-linecap: round; opacity: 0.8; }
.map__done { fill: none; stroke: var(--gold-d); stroke-width: 8; stroke-linecap: round; stroke-dasharray: var(--done, 0) 6000; transition: stroke-dasharray 1s var(--ease); }
.map__stops { position: absolute; inset: 0; }
.stop { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -32px); z-index: 2; }
.stop button { display: grid; justify-items: center; gap: 6px; }
.stop__flag { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; background: #f4e4c1; color: var(--parch-ink); border: 3px solid var(--ink); box-shadow: inset 0 -5px 0 #d8c093, 0 5px 0 var(--ink); transition: transform 0.25s var(--spring), background 0.2s; }
.stop__flag .ic { width: 30px; height: 30px; stroke-width: 2.3; }
.stop.is-done .stop__flag { background: var(--gold); box-shadow: inset 0 -5px 0 var(--gold-d), 0 5px 0 var(--ink); }
.stop.is-here .stop__flag { background: var(--green); box-shadow: inset 0 -5px 0 #2f7a1f, 0 5px 0 var(--ink); }
.stop__plate { display: grid; justify-items: center; padding: 6px 11px 7px; border-radius: 9px; background: #2a1d13; border: 2px solid var(--ink); color: var(--cream); text-align: center; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); transition: background 0.2s; }
.stop__when { font: 900 11.5px/1.25 var(--f-body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--gold); }
.stop__t { font: 400 15.5px/1.1 var(--f-disp); }
.stop button:hover .stop__flag { transform: translateY(-5px) rotate(-4deg); }
.stop button[aria-pressed="true"] .stop__flag { transform: translateY(-7px) scale(1.08); }
.stop button[aria-pressed="true"] .stop__plate { background: var(--ink); box-shadow: 0 0 0 2px var(--gold), 0 3px 0 var(--ink); }
.map__token { position: absolute; z-index: 3; width: 4.4%; height: auto; left: 0; top: 0; transform: translate(-130%, -96%); pointer-events: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.3)); }
.map__token.is-walk { animation: waddle 0.28s ease-in-out infinite alternate; }
@keyframes waddle { from { rotate: -6deg; translate: 0 0; } to { rotate: 6deg; translate: 0 -6%; } }
.map__card { margin: 24px auto 0; max-width: 720px; padding: 22px 28px 24px; text-align: center; border-radius: 16px; border: 3px solid var(--ink); background: #2a1d13; box-shadow: 0 5px 0 var(--ink); }
.map__when { margin-top: 8px; font: 900 12.5px/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.map__t { margin-top: 0; font: 400 clamp(26px, 2.8vw, 34px)/1.05 var(--f-disp); color: var(--cream); text-shadow: 0 3px 0 var(--ink); }
.map__d { margin-top: 10px; font: 700 16.5px/1.55 var(--f-body); color: var(--soft); text-wrap: balance; }
.map__card.is-swap > * { animation: swapin 0.5s var(--ease) both; }

/* faq */
.faq__list { width: min(860px, 100%); margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; border: 3px solid var(--ink); background: #2a1d13; box-shadow: 0 5px 0 var(--ink); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 20px 21px 24px; font: 400 clamp(1.25rem, 2vw, 1.55rem)/1.15 var(--f-disp); color: var(--cream);
  transition: background 0.2s;
}
.faq summary:hover { background: #33241a; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 10px; border: 2px solid var(--ink); background: #3d2b1c; color: var(--gold); transition: transform 0.35s var(--spring), background 0.2s, color 0.2s; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--gold); color: var(--ink); }
.faq details p { margin: 0 18px 18px; padding: 18px 20px; border-radius: 10px; border: 2px solid var(--ink); background: var(--parch); color: var(--parch-ink); font: 700 16.5px/1.6 var(--f-body); }

/* footer */
.foot { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; padding: clamp(80px, 14vh, 140px) var(--gutter) 46px; text-align: center; }
.foot__logo { width: min(320px, 72vw); height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45)); transition: transform 0.4s var(--spring); }
.foot__logo:hover { transform: rotate(-3deg) scale(1.04); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font: 400 17px var(--f-disp); }
.foot__links a { color: var(--soft); text-decoration: underline; text-decoration-color: rgba(255, 204, 51, 0.35); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.foot__links a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.foot__fine { font: 700 13px var(--f-body); color: var(--mute); }

/* scroll reveal: visible by default; JS adds the start state only for blocks below the fold */
.rv { transition: opacity 0.9s var(--ease), transform 0.9s var(--spring), filter 0.9s var(--ease); }
.rv.is-pre { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(6px); }

/* ============ responsive ============ */
@media (max-width: 1180px) and (min-width: 861px) {
  .places__rail { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-inline: 4px; scroll-padding-inline: 4px; }
  .places__rail::-webkit-scrollbar { display: none; }
  .places__rail > li { flex: none; width: 132px; scroll-snap-align: start; }
}
@media (max-width: 1240px) {
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; }
}
@media (max-width: 1100px) {
  .inv__bar { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 10px; }
  .hot { height: 122px; }
  .hoard__wrap { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledges--more { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .bhand li { margin: 0 -14px; }
}
@media (max-width: 860px) {
  .hide-md { display: none !important; }
  .bar { height: 72px; gap: 10px; padding: 0 12px; }
  .bar__icon { display: none; }
  .bar__logo { width: 90px; }
  .clock__lab { display: none; }
  .clock { padding-left: 12px; height: 46px; gap: 8px; }
  .clock__go { width: 32px; height: 32px; }
  .sheet { left: 10px; right: 10px; width: auto; grid-template-columns: minmax(0, 1fr); }
  .sheet__col--side { padding: 12px 0 0; border-left: 0; border-top: 2px dashed #4a3726; grid-template-columns: 1fr 1fr; column-gap: 6px; }
  .sheet__col--side .sheet__h { grid-column: 1 / -1; }
  .sheet__cta { grid-column: 1 / -1; }
  .hero { --cw: clamp(196px, 52vw, 300px); padding-top: 104px; }
  .hero__h { font-size: clamp(2.5rem, 10.6vw, 4.4rem); }
  .deck__ui { left: 50%; right: auto; transform: translateX(-50%); }
  .deck__name { min-width: 0; }
  .panel { aspect-ratio: 4 / 5; max-height: 78svh; min-height: 480px; }
  .panel__scrim { background: linear-gradient(0deg, rgba(18, 12, 8, 0.96) 0%, rgba(18, 12, 8, 0.78) 45%, rgba(18, 12, 8, 0) 72%); }
  .panel__body { left: 24px; right: 24px; bottom: 26px; width: auto; }
  .panel__body .btn { display: none; }
  .panel__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .panel__desc { font-size: 15.5px; }
  .panel__count { top: 24px; left: 24px; right: auto; bottom: auto; font-size: 2.2rem; }
  .places { gap: 0; margin-inline: calc(var(--gutter) * -1); width: auto; }
  .places > .rbtn { display: none; }
  .places__rail { display: flex; overflow-x: auto; scrollbar-width: none; padding: 16px var(--gutter) 10px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .places__rail::-webkit-scrollbar { display: none; }
  .places__rail li { flex: none; width: 128px; scroll-snap-align: start; }
  .bfeat { grid-template-columns: minmax(0, 1fr); }
  .bfeat__card { width: min(100%, 380px); justify-self: center; }
  .bfeat__info { text-align: center; display: grid; justify-items: center; }
  .bfeat__pills { justify-content: center; }
  .bhand { justify-content: flex-start; overflow-x: auto; padding: 36px 24px 14px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .bhand::-webkit-scrollbar { display: none; }
  .bhand li { margin: 0 4px; }
  .bh { --r: 0deg !important; --y: 0px !important; }
  .stairs { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 8px; }
  .step { height: auto; }
  .step button { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 10px 14px; border-radius: 12px; text-align: left; }
  .step__amt { min-width: 3.4em; }
  .step__t { text-align: left; }
  .stairs__info { grid-template-columns: minmax(0, 1fr); }
  .stairs__amt { grid-row: auto; }
  .inv__case { padding: 20px 16px 20px; gap: 14px; }
  .inv__head { column-gap: 14px; }
  .inv__n { font-size: clamp(3rem, 13vw, 4.2rem); }
  .inv__of { font-size: 15px; }
  .lane { --lh: clamp(300px, 92vw, 380px); --hs: 0.82; }
  .tip { width: min(270px, calc(100% - 20px)); padding: 11px 13px 12px; }
  .tip__line { font-size: 14px; }
  .lane.is-grid .lane__track { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 7px; }
  .lane[data-k="items"] .gs img { width: 32px; height: 32px; }
  .lane[data-k="cards"] .lane__track { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 8px; }
  .lane .gs--cards.is-on { transform: scale(2.4); }
  .lane[data-k="music"] .lane__track { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 8px; }
  .gs--note .wk__block { width: 70px; height: 70px; }
  .lane.is-fade { aspect-ratio: 4 / 3.6; }
  .fade__cap { left: 10px; right: 10px; bottom: 14px; max-width: none; padding: 10px 12px 11px; }
  .fade__name { font-size: 1.25rem; }
  .fade__line { font-size: 13.5px; }
}
@media (max-width: 560px) {
  .inv__bar { gap: 10px 7px; }
  .hot { height: 100px; padding: 9px 2px 9px; border-radius: 12px; }
  .hot__l { font-size: 11px; letter-spacing: 0.02em; }
  .hot__n { font-size: 1.15rem; }
  .inv__acts { width: 100%; }
  .inv__acts .btn { flex: 1; }
  .count { gap: 6px; }
  .count > i { display: none; }
  .count__d { width: 38px; height: 54px; font-size: 2.2rem; border-radius: 9px; }
  .deck__now { display: none; }
  .bar__menu { padding: 0 12px; }
  .bar__menu span { display: none; }
  .clock__ic { display: none; }
  .clock__t { font-size: 16px; }
  .ping { padding-left: 13px; }
  .ks__act { width: 100%; }
  .ks__act .btn { width: 100%; }
  .pledges { grid-template-columns: minmax(0, 1fr); }
  .pledge--sm { grid-template-columns: 92px minmax(0, 1fr); gap: 0 14px; padding: 12px; }
  .pledge--sm .pledge__art { aspect-ratio: 1; border-radius: 10px; }
  .pledge--sm .pledge__flag { left: 8px; top: auto; bottom: 8px; padding: 4px 6px 5px; font-size: 11px; letter-spacing: 0.03em; }
  .pledge--sm .pledge__name { font-size: 21px; }
  .pledge--sm .pledge__list { font-size: 13.5px; }
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .pl { padding: 22px 10px 18px; }
  .pl__ic { width: 62px; height: 62px; }
  .hoard__rules li { font-size: 15px; }
  .tcard { width: 22%; }
  .faq summary { padding: 16px 14px 17px 16px; }
  .faq details p { margin: 0 10px 12px; padding: 14px; font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv.is-pre { opacity: 1; transform: none; filter: none; }
  .room__embers { display: none; }
  .ribbon__track { animation: none; }
}
