/* Dattlerite landing page: the whole look and motion.
   The game's house style: warm dark wood, polished gold, dark glossy capsules, bold dark
   outlines, warm text (never cold grey). Phone first (360 px is the floor), then 600, 768,
   1024 and 1440. Motion lives on transform/opacity only; nothing filters a video.
   Reduced motion (the .reduce class from boot.js, and the media query for no-JS visitors)
   stops every animation; .save-data keeps the motion but plays no video by itself. */

:root {
  --bg: #15100a;
  --bg-deep: #0f0b06;
  --wood-top: #2e2013;
  --wood-foot: #1b130b;
  --inset: #110b06;
  --gold: #e0b75a;
  --gold-bright: #f2c94c;
  --gold-pale: #f7dc8a;
  --gold-deep: #a87a32;
  --bronze: #8a6a3a;
  --outline: #1b1409;
  --ink: #2a1c0b;
  --text-bright: #f6ead0;
  --text: #eadcbf;
  --text-dim: #c9b48e;
  --discord: #8f97ff;

  --font: 'Grandstander', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --topbar-h: 64px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.2, .9, .3, 1.3);

  /* Hard dark outline (no blur), the house way to set a word on art. */
  --o2: 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 2px 0 var(--outline), 0 -2px 0 var(--outline),
    1.4px 1.4px 0 var(--outline), -1.4px 1.4px 0 var(--outline), 1.4px -1.4px 0 var(--outline), -1.4px -1.4px 0 var(--outline);
  --o3: 3px 0 0 var(--outline), -3px 0 0 var(--outline), 0 3px 0 var(--outline), 0 -3px 0 var(--outline),
    2.1px 2.1px 0 var(--outline), -2.1px 2.1px 0 var(--outline), 2.1px -2.1px 0 var(--outline), -2.1px -2.1px 0 var(--outline);

  --rim-gold: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 26%, var(--gold-deep) 58%, #6e4c1f 78%, var(--gold) 100%);
  --plate: linear-gradient(180deg, var(--wood-top) 0%, #241810 45%, var(--wood-foot) 100%);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-padding-top: calc(var(--topbar-h) + 8px);
}
html:not(.reduce) { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.3em; height: 1.3em; flex: none; }

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 0 2.5px var(--outline);
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- doors */

.door {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .22s ease, background-color .22s ease;
}
.door > * { position: relative; z-index: 1; }
.door-s { min-height: 44px; padding: 0 16px 0 14px; font-size: 15px; }
.door-l { min-height: 56px; padding: 0 28px 0 24px; font-size: 19px; }

.door-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #fff1bd 0%, var(--gold-pale) 16%, var(--gold-bright) 48%, #dca43c 80%, #bf8d3e 100%);
  box-shadow:
    0 0 0 2.5px var(--outline),
    inset 0 2px 0 rgba(255, 252, 230, .6),
    inset 0 -3px 0 rgba(130, 78, 14, .45),
    0 5px 0 #4a3212,
    0 5px 0 2.5px var(--outline),
    0 14px 26px rgba(0, 0, 0, .45);
  text-shadow: 0 1px 0 rgba(255, 244, 205, .65);
}
/* A glint crosses the gold on hover (and now and then on the hero's door). */
.door-primary::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.door-primary:hover::after,
.door-primary:focus-visible::after { animation: glintHover .75s var(--ease-out) both; }
.door-primary:hover,
.door-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2.5px var(--outline),
    inset 0 2px 0 rgba(255, 252, 230, .7),
    inset 0 -3px 0 rgba(130, 78, 14, .45),
    0 7px 0 #4a3212,
    0 7px 0 2.5px var(--outline),
    0 0 30px rgba(242, 201, 76, .45),
    0 16px 30px rgba(0, 0, 0, .45);
}
.door-primary:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 2.5px var(--outline),
    inset 0 2px 0 rgba(255, 252, 230, .5),
    inset 0 -2px 0 rgba(130, 78, 14, .45),
    0 2px 0 #4a3212,
    0 2px 0 2.5px var(--outline),
    0 6px 12px rgba(0, 0, 0, .45);
}

.door-secondary {
  color: var(--text-bright);
  background: linear-gradient(180deg, #3d2c19 0%, #24180d 52%, #160e07 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(224, 183, 90, .85),
    inset 0 2px 0 rgba(255, 228, 170, .14),
    0 0 0 2.5px var(--outline),
    0 6px 14px rgba(0, 0, 0, .4);
}
.door-secondary:hover,
.door-secondary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px var(--gold-bright),
    inset 0 2px 0 rgba(255, 228, 170, .2),
    0 0 0 2.5px var(--outline),
    0 0 18px rgba(242, 201, 76, .22),
    0 10px 18px rgba(0, 0, 0, .4);
}
.door-secondary:active { transform: translateY(1px); }

/* Round icon door (the game's HouseIconDoor): a dark disc with a gold ring. */
.round {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--gold-pale);
  background: radial-gradient(circle at 50% 32%, #3d2c19 0%, #1c130a 62%, #120b05 100%);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 2.5px var(--outline), 0 5px 12px rgba(0, 0, 0, .5);
  transition: transform .16s var(--ease-out), box-shadow .2s ease, color .2s ease;
}
.round:hover, .round:focus-visible {
  color: #fff6d8;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--gold-bright), 0 0 0 2.5px var(--outline), 0 0 16px rgba(242, 201, 76, .35), 0 8px 14px rgba(0, 0, 0, .5);
}
.round .i { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- store plates */

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 6px 16px 6px 12px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #241a10 0%, #120c06 60%, #0c0805 100%);
  box-shadow:
    inset 0 0 0 1.5px var(--bronze),
    inset 0 2px 0 rgba(255, 228, 170, .08),
    0 0 0 2.5px var(--outline),
    0 6px 12px rgba(0, 0, 0, .4);
}
.store-mark { width: 24px; height: 26px; flex: none; }
.store-mark.apple { width: 21px; height: auto; margin-top: -3px; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.store-text small {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.store-text b { font-size: 17px; font-weight: 800; letter-spacing: .01em; color: #fff; }
.store.is-live {
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1.5px var(--gold),
    inset 0 2px 0 rgba(255, 228, 170, .1),
    0 0 0 2.5px var(--outline),
    0 6px 12px rgba(0, 0, 0, .4);
  transition: transform .16s var(--ease-out), box-shadow .2s ease;
}
.store.is-live small { color: var(--gold-pale); }
.store.is-live:hover, .store.is-live:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px var(--gold-bright),
    0 0 0 2.5px var(--outline),
    0 0 18px rgba(242, 201, 76, .3),
    0 10px 18px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------------- shared words */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--outline);
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-deep));
  box-shadow: 0 0 0 1.5px var(--outline);
}
.eyebrow:empty { display: none; }

.title {
  margin: 8px 0 0;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: .005em;
  color: var(--gold-bright);
  text-shadow: var(--o3), 0 5px 0 var(--outline);
  text-wrap: balance;
}
.lead {
  margin-top: 14px;
  font-size: clamp(16px, 4.3vw, 20px);
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}
.fine {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-pale);
  text-shadow: 0 2px 0 var(--outline);
  background: linear-gradient(180deg, #33241a 0%, #1a110a 60%, #120b05 100%);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 2.5px var(--outline), 0 6px 14px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar-h);
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36, 25, 14, .97) 0%, rgba(21, 15, 9, .96) 100%);
  box-shadow: 0 1px 0 rgba(224, 183, 90, .4), 0 2px 0 var(--outline), 0 10px 26px rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .3s ease;
}
.topbar.is-scrolled::before { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: var(--o2), 0 3px 0 var(--outline);
  transition: opacity .3s ease, visibility .3s ease, transform .3s var(--ease-out);
}
.brand img { width: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.js .topbar:not(.is-scrolled) .brand { opacity: 0; visibility: hidden; transform: translateY(-6px); }

.topbar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.langs {
  display: flex;
  align-items: center;
  padding: 0 3px;
  border-radius: 999px;
  background: rgba(14, 9, 5, .78);
  box-shadow: inset 0 0 0 1.5px rgba(138, 106, 58, .95), 0 0 0 2px var(--outline);
}
.lang {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--text-dim);
  transition: color .2s ease;
}
.lang:hover { color: var(--text-bright); }
.lang[aria-pressed="true"] { color: var(--gold-bright); text-shadow: var(--o2); }
.lang-sep { width: 1.5px; height: 18px; background: rgba(138, 106, 58, .95); }

.topbar-discord .i { color: var(--discord); width: 22px; height: 22px; }

@media (max-width: 479px) {
  .brand span { display: none; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 4px) var(--gutter) 96px;
  --sy: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, #3a2511 0%, #20150b 55%, var(--bg) 100%);
}
.hero-video {
  position: absolute;
  inset: -2% 0 auto 0;
  width: 100%;
  height: 104%;
  object-fit: cover;
  translate: 0 calc(var(--sy) * .28px);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 16, 10, .94) 0%, rgba(21, 16, 10, .6) 14%, rgba(21, 16, 10, .2) 30%, rgba(21, 16, 10, .14) 50%, rgba(21, 16, 10, .62) 78%, var(--bg) 99%),
    radial-gradient(ellipse 80% 46% at 50% 38%, rgba(18, 12, 6, .62) 0%, rgba(18, 12, 6, 0) 75%);
}
/* The landscape cut carries a sliver of the game's side buttons at its edges: a wider box
   pushes them off screen (the picture is soft by design, the extra scale costs nothing). */
@media (orientation: landscape) {
  .hero-video { left: -14%; right: auto; width: 128%; }
}
/* The portrait cut opens on the boss's name and life bar: lift them above the screen. */
@media (orientation: portrait) {
  .hero-video { top: -9%; height: 113%; }
}
.pillar {
  position: absolute;
  bottom: 0;
  height: 54%;
  width: auto;
  max-width: none;
  translate: 0 calc(var(--sy) * .1px);
}
.pillar-l { --px: -52%; left: 0; transform: translateX(var(--px)); }
.pillar-r { --px: 52%; right: 0; transform: translateX(var(--px)); }

.mist {
  position: absolute;
  left: -30%;
  width: 160%;
  max-width: none;
  height: auto;
  pointer-events: none;
}
.mist-b { bottom: 13%; opacity: .36; translate: 0 calc(var(--sy) * -.08px); }
.mist-a { bottom: -3%; opacity: .52; translate: 0 calc(var(--sy) * -.16px); }

/* Embers rising through the scene (18 of them, each its own lane, speed and drift). */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i {
  position: absolute;
  bottom: 4%;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #ffd476 30%, rgba(255, 150, 48, .55) 55%, rgba(255, 120, 30, 0) 72%);
  opacity: 0;
  will-change: transform, opacity;
}
.embers i:nth-child(1)  { --x: 6%;  --s: 6px;  --dx: 30px;  --d: 9s;    --w: -1s; }
.embers i:nth-child(2)  { --x: 14%; --s: 4px;  --dx: -20px; --d: 11s;   --w: -6s; }
.embers i:nth-child(3)  { --x: 21%; --s: 7px;  --dx: 24px;  --d: 8s;    --w: -3s; }
.embers i:nth-child(4)  { --x: 28%; --s: 5px;  --dx: -30px; --d: 12s;   --w: -9s; }
.embers i:nth-child(5)  { --x: 35%; --s: 4px;  --dx: 18px;  --d: 10s;   --w: -2s; }
.embers i:nth-child(6)  { --x: 42%; --s: 6px;  --dx: -16px; --d: 9.5s;  --w: -7s; }
.embers i:nth-child(7)  { --x: 49%; --s: 5px;  --dx: 28px;  --d: 13s;   --w: -4s; }
.embers i:nth-child(8)  { --x: 56%; --s: 7px;  --dx: -26px; --d: 8.5s;  --w: -8s; }
.embers i:nth-child(9)  { --x: 63%; --s: 4px;  --dx: 20px;  --d: 11.5s; --w: -5s; }
.embers i:nth-child(10) { --x: 70%; --s: 6px;  --dx: -22px; --d: 10s;   --w: -1.5s; }
.embers i:nth-child(11) { --x: 77%; --s: 5px;  --dx: 26px;  --d: 9s;    --w: -6.5s; }
.embers i:nth-child(12) { --x: 84%; --s: 7px;  --dx: -18px; --d: 12.5s; --w: -3.5s; }
.embers i:nth-child(13) { --x: 91%; --s: 4px;  --dx: 16px;  --d: 10.5s; --w: -8.5s; }
.embers i:nth-child(14) { --x: 96%; --s: 5px;  --dx: -24px; --d: 8s;    --w: -2.5s; }
.embers i:nth-child(15) { --x: 10%; --s: 9px;  --dx: 34px;  --d: 14s;   --w: -10s; }
.embers i:nth-child(16) { --x: 38%; --s: 3px;  --dx: -12px; --d: 7.5s;  --w: -5.5s; }
.embers i:nth-child(17) { --x: 66%; --s: 9px;  --dx: -34px; --d: 15s;   --w: -12s; }
.embers i:nth-child(18) { --x: 88%; --s: 3px;  --dx: 12px;  --d: 7s;    --w: -4.5s; }
.js .embers i { animation: ember var(--d) linear var(--w) infinite; }

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  translate: 0 calc(var(--sy) * .14px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The lockup: turning rays behind the crest, the crest, the wordmark over its foot. */
.lockup {
  --crest: clamp(84px, 25vw, 124px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rays {
  position: absolute;
  left: 50%;
  top: calc(var(--crest) * .49);
  width: calc(var(--crest) * 2.7);
  height: calc(var(--crest) * 2.7);
  max-width: none;
  margin: calc(var(--crest) * -1.35) 0 0 calc(var(--crest) * -1.35);
  opacity: .6;
  pointer-events: none;
}
.crest {
  position: relative;
  z-index: 1;
  width: var(--crest);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55));
}
.wordmark {
  position: relative;
  z-index: 2;
  width: min(86vw, 360px);
  margin: calc(var(--crest) * -.2) 0 0;
  font-size: 0;
  line-height: 0;
}
.wm { width: 100%; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .6)); }
.wm-shine {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  filter: brightness(1.9) saturate(.55);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 42%, #000 48%, #000 52%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 42%, #000 48%, #000 52%, transparent 58%, transparent 100%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
}
.spark {
  position: absolute;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle, #fff 0%, #fff3c4 35%, var(--gold-bright) 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
  pointer-events: none;
}
.spark.s1 { left: -2%; top: 4%; }
.spark.s2 { right: 6%; top: -12%; width: 16px; height: 16px; }
.spark.s3 { right: -3%; bottom: 4%; width: 18px; height: 18px; }

.tagline {
  margin-top: 8px;
  font-size: clamp(20px, 5.6vw, 30px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--gold-pale);
  text-shadow: var(--o2), 0 3px 0 var(--outline);
  text-wrap: balance;
}
.hero-sub {
  margin-top: 8px;
  max-width: 31em;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.42;
  color: var(--text-bright);
  text-shadow: 0 1.5px 0 var(--outline), 1.5px 0 0 var(--outline), -1.5px 0 0 var(--outline), 0 -1px 0 var(--outline), 0 0 14px rgba(10, 6, 3, .9);
  text-wrap: pretty;
}

.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}
.fox {
  position: relative;
  z-index: 1;
  width: clamp(124px, 35vw, 160px);
  margin-bottom: -16px;
}
.fox-rise { position: relative; }
.fox-sit, .fox-cheer { width: 100%; transition: opacity .12s linear; }
.fox-cheer { position: absolute; left: 0; top: 0; opacity: 0; }
.fox-eyes {
  position: absolute;
  left: 36.04%;
  top: 15.94%;
  width: 31.64%;
  opacity: 0;
}
.fox.is-cheer .fox-sit { opacity: 0; }
.fox.is-cheer .fox-cheer { opacity: 1; }
.fox.is-cheer .fox-eyes { visibility: hidden; }

.dock-face {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.soon {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: var(--o2), 0 3px 0 var(--outline);
}
.soon::before, .soon::after {
  content: '';
  width: 40px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(242, 201, 76, 0), var(--gold));
  box-shadow: 0 1px 0 var(--outline);
}
.soon::after { transform: scaleX(-1); }
.door-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.free {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 2px 0 var(--outline), 0 0 10px rgba(10, 6, 3, .9);
}

.hero-device { display: none; }

.bg-toggle {
  position: absolute;
  z-index: 3;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: 42px;
}
.bg-toggle .i-play { display: none; }
.bg-toggle.is-paused .i-play { display: block; }
.bg-toggle.is-paused .i-pause { display: none; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 36px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  color: var(--gold-pale);
  filter: drop-shadow(0 2px 0 var(--outline));
}
.scroll-cue .i { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- phone frames */

.phone {
  position: relative;
  z-index: 1;
  width: clamp(196px, 55vw, 290px);
  margin: 0;
  padding: 8px;
  border-radius: 34px;
  border: 3px solid transparent;
  background:
    linear-gradient(160deg, #3c2b18 0%, #1a1109 50%, #2a1c0f 100%) padding-box,
    linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 22%, #8a6326 55%, var(--gold-deep) 80%, var(--gold) 100%) border-box;
  box-shadow: 0 0 0 2.5px var(--outline), 0 28px 54px rgba(0, 0, 0, .6), 0 8px 18px rgba(0, 0, 0, .4);
}
.phone-screen {
  position: relative;
  aspect-ratio: 1 / 2;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0704;
}
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .85), inset 0 0 22px rgba(0, 0, 0, .45);
  background: linear-gradient(128deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, 0) 30%);
}
.clip {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0704;
}

.clip-btn {
  position: absolute;
  z-index: 4;
  right: -14px;
  bottom: 22px;
}
.clip-btn .i-play { display: none; }
.clip-btn:not(.is-playing) .i-play { display: block; }
.clip-btn:not(.is-playing) .i-pause { display: none; }

/* ---------------------------------------------------------------- reveal + entrance */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3) { transition-delay: .24s; }

.js .enter { animation: riseIn .7s var(--ease-out) both; }
.js .e3 { animation-delay: .7s; }
.js .e4 { animation-delay: .85s; }
.js .e5 { animation-delay: 1s; }

.js .hero-bg { animation: fadeIn 1.1s ease-out both; }
.js .pillar-l { animation: pillarL 1s .1s var(--ease-out) both; }
.js .pillar-r { animation: pillarR 1s .1s var(--ease-out) both; }
.js .mist-b { animation: fadeIn 1.4s .2s ease-out both, driftA 26s 1.6s ease-in-out infinite alternate; }
.js .mist-a { animation: fadeIn 1.4s .35s ease-out both, driftB 19s 1.75s ease-in-out infinite alternate; }
.js .rays { animation: raysIn 1.2s .15s ease-out both, spin 90s .15s linear infinite; }
.js .crest { animation: crestIn .75s .2s var(--ease-pop) both; }
.js .wordmark { animation: wmIn .8s .42s var(--ease-pop) both; }
.js .wm-shine { animation: shine 6.5s 1.25s ease-in-out infinite; }
.js .spark.s1 { animation: twinkle 3.2s 1.5s ease-in-out infinite; }
.js .spark.s2 { animation: twinkle 3.2s 2.4s ease-in-out infinite; }
.js .spark.s3 { animation: twinkle 3.2s 3.3s ease-in-out infinite; }
.js .fox-rise { animation: foxUp .8s 1.12s cubic-bezier(.2, .9, .3, 1.2) both; }
.js .fox-eyes { animation: blink 5.6s 3.2s infinite; }
.js .fox.is-cheer { animation: hop .5s var(--ease-out); }
.js .hero .door-primary::after { animation: glint 6s 2.4s ease-out infinite; }
.js .hero .door-primary:hover::after,
.js .hero .door-primary:focus-visible::after { animation: glintHover .75s var(--ease-out) both; }
.js .soon::before, .js .soon::after { animation: soonPulse 2.6s 1.8s ease-in-out infinite; }
.js .scroll-cue { animation: fadeIn .6s 1.8s ease-out both, cue 2.2s 2.4s ease-in-out infinite; }
.js .bg-toggle { animation: fadeIn .6s 1.6s ease-out both; }

/* The hero's loops sleep while the hero is scrolled away (site.js sets .is-off). */
.hero.is-off .embers i,
.hero.is-off .rays,
.hero.is-off .mist,
.hero.is-off .wm-shine,
.hero.is-off .spark,
.hero.is-off .fox-eyes,
.hero.is-off .soon::before,
.hero.is-off .soon::after,
.hero.is-off .scroll-cue,
.hero.is-off .door-primary::after,
.hero.is-off .hero-device { animation-play-state: paused; }

/* ---------------------------------------------------------------- numbers */

.numbers {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  padding: 0 var(--gutter);
}
.stat-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 6px 18px;
  border-radius: 22px;
  background: var(--plate);
  box-shadow:
    inset 0 0 0 1.5px var(--bronze),
    inset 0 2px 0 rgba(255, 228, 170, .08),
    0 0 0 3px var(--outline),
    0 18px 36px rgba(0, 0, 0, .5);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(138, 106, 58, 0), rgba(138, 106, 58, .9), rgba(138, 106, 58, 0));
}
.stat b {
  font-size: clamp(34px, 10vw, 56px);
  line-height: 1;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: var(--o3), 0 5px 0 var(--outline);
}
.stat span {
  margin-top: 8px;
  font-size: clamp(13px, 3.5vw, 17px);
  line-height: 1.2;
  color: var(--text);
}

/* ---------------------------------------------------------------- sections */

.feature, .classes, .more {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 11vw, 128px) var(--gutter);
}
/* A gold hairline with a diamond between sections. */
.feature::before, .classes::before, .more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72%, 680px);
  height: 1.5px;
  translate: -50% 0;
  background: linear-gradient(90deg, rgba(224, 183, 90, 0), rgba(224, 183, 90, .55), rgba(224, 183, 90, 0));
}
.feature::after, .classes::after, .more::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 11px;
  translate: -50% 0;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-deep));
  box-shadow: 0 0 0 2px var(--outline);
}
#idle::before, #idle::after { display: none; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  gap: 44px;
}
.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-copy .lead { max-width: 30em; }

.feature-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 30px;
  --glow: 255, 170, 70;
}
.feature-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(150%, 760px);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--glow), .3), rgba(var(--glow), .1) 55%, rgba(var(--glow), 0));
  pointer-events: none;
}
#hatch .feature-art { --glow: 255, 196, 80; }
#raid .feature-art { --glow: 120, 210, 90; }
#guild .feature-art { --glow: 255, 98, 52; }

.big-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.big-count b {
  font-size: clamp(56px, 15vw, 84px);
  line-height: .95;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: var(--o3), 0 6px 0 var(--outline);
}
.big-count span { font-size: clamp(18px, 4.6vw, 22px); color: var(--text-bright); text-shadow: 0 2px 0 var(--outline); }

/* Idle: the fox naps in front of the phone. */
.sleeper {
  position: absolute;
  z-index: 2;
  left: max(0px, calc(50% - 205px));
  bottom: 4px;
  width: clamp(116px, 34vw, 190px);
}
.sleeper-fox { width: 100%; }
.sleeper-eyes { position: absolute; left: 36.04%; top: 15.94%; width: 31.64%; }
.zz { position: absolute; left: 60%; top: -2%; width: 60px; height: 70px; pointer-events: none; }
.zz i {
  position: absolute;
  left: 0;
  bottom: 0;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-pale);
  text-shadow: var(--o2);
}
.zz i:nth-child(1) { font-size: 16px; transform: translate(0, 0); }
.zz i:nth-child(2) { font-size: 21px; transform: translate(16px, -22px); }
.zz i:nth-child(3) { font-size: 27px; transform: translate(34px, -48px); }
.js .zz i { opacity: 0; animation: zz 3.9s ease-out infinite; }
.js .zz i:nth-child(2) { animation-delay: 1.3s; }
.js .zz i:nth-child(3) { animation-delay: 2.6s; }

/* Hatch: five legendary eggs wobble in front of the phone. */
.eggs {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.eggs img {
  width: clamp(44px, 12.5vw, 66px);
  transform-origin: 50% 92%;
}
.eggs img:nth-child(2), .eggs img:nth-child(4) { width: clamp(50px, 14vw, 74px); }
.eggs img:nth-child(3) { width: clamp(58px, 16.5vw, 88px); }
.js .eggs img { animation: wobble 3.4s ease-in-out infinite; }
.js .eggs img:nth-child(1) { animation-delay: .3s; }
.js .eggs img:nth-child(2) { animation-delay: 1.4s; }
.js .eggs img:nth-child(3) { animation-delay: 2.2s; }
.js .eggs img:nth-child(4) { animation-delay: .9s; }
.js .eggs img:nth-child(5) { animation-delay: 1.9s; }
#hatch .phone { margin-bottom: 34px; }

/* The pet parade: a looping strip of pets in their rarity frames. */
.parade {
  grid-column: 1 / -1;
  order: 3;
  position: relative;
  overflow: hidden;
  margin: 6px 0 0;
  padding: 10px 0 12px;
}
.parade::before, .parade::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
}
.parade::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(21, 16, 10, 0)); }
.parade::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(21, 16, 10, 0)); }
.parade-track {
  --pg: 14px;
  list-style: none;
  display: flex;
  gap: var(--pg);
  width: max-content;
  margin: 0;
  padding: 0 var(--pg) 0 0;
}
.parade-track.is-loop { animation: marquee 70s linear infinite; }
.parade:hover .parade-track,
.parade.is-off .parade-track { animation-play-state: paused; }
.pet {
  --rc: 176, 152, 118;
  flex: none;
  width: clamp(84px, 23vw, 118px);
  aspect-ratio: 1;
  padding: 7px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 62%, rgba(var(--rc), .38) 0%, rgba(var(--rc), 0) 68%),
    linear-gradient(180deg, #2c1f12 0%, #140d06 100%);
  box-shadow:
    inset 0 0 0 2px rgba(var(--rc), .95),
    inset 0 3px 0 rgba(255, 240, 210, .1),
    0 0 0 2.5px var(--outline),
    0 8px 14px rgba(0, 0, 0, .4);
}
.pet img { width: 100%; height: 100%; object-fit: contain; }
.pet.r-rare { --rc: 74, 163, 255; }
.pet.r-epic { --rc: 182, 112, 255; }
.pet.r-legendary {
  --rc: 255, 186, 46;
  box-shadow:
    inset 0 0 0 2.5px rgba(var(--rc), 1),
    inset 0 3px 0 rgba(255, 240, 210, .14),
    0 0 0 2.5px var(--outline),
    0 0 18px rgba(255, 186, 46, .3),
    0 8px 14px rgba(0, 0, 0, .4);
}

/* Raid and guild: the boss looms behind the phone. */
.boss-behind {
  position: absolute;
  z-index: 0;
  top: -2%;
  right: max(-22%, calc(50% - 300px));
  width: clamp(200px, 64vw, 420px);
  transform-origin: 50% 100%;
}
.flip-side .boss-behind { right: auto; left: max(-22%, calc(50% - 300px)); }
.js .boss-behind { animation: looming 4.2s ease-in-out infinite alternate; }

/* Guild: the brackets, Bronze to GODLIKE. */
.ladder {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 6px;
  width: 100%;
  max-width: 380px;
  margin: 24px 0 0;
  padding: 0;
}
.ladder li { position: relative; display: flex; flex-direction: column; align-items: center; }
.ladder img { width: 100%; max-width: 66px; }
.ladder li span {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dim);
  text-shadow: 0 2px 0 var(--outline);
}
.ladder .apex span { color: var(--gold-bright); text-shadow: var(--o2); }
.ladder .apex::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 34%;
  width: 130%;
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 90, .5), rgba(255, 210, 90, 0));
}
.js .ladder .apex::before { animation: pulse 2.4s ease-in-out infinite; }
.js .reveal .ladder li { opacity: 0; transform: translateY(16px) scale(.8); }
.js .reveal.is-in .ladder li { animation: chestIn .5s var(--ease-pop) both; }
.js .reveal.is-in .ladder li:nth-child(1) { animation-delay: .25s; }
.js .reveal.is-in .ladder li:nth-child(2) { animation-delay: .31s; }
.js .reveal.is-in .ladder li:nth-child(3) { animation-delay: .37s; }
.js .reveal.is-in .ladder li:nth-child(4) { animation-delay: .43s; }
.js .reveal.is-in .ladder li:nth-child(5) { animation-delay: .49s; }
.js .reveal.is-in .ladder li:nth-child(6) { animation-delay: .55s; }
.js .reveal.is-in .ladder li:nth-child(7) { animation-delay: .61s; }
.js .reveal.is-in .ladder li:nth-child(8) { animation-delay: .67s; }
.js .reveal.is-in .ladder li:nth-child(9) { animation-delay: .73s; }
.js .reveal.is-in .ladder li:nth-child(10) { animation-delay: .82s; }

/* ---------------------------------------------------------------- classes */

.classes {
  background:
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(var(--elc, 255, 122, 58), .12), rgba(21, 16, 10, 0) 70%);
  transition: background-color .4s ease;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section-head .lead { max-width: 32em; }

[data-el="fire"] { --elc: 255, 122, 58; }
[data-el="light"] { --elc: 255, 212, 92; }
[data-el="nature"] { --elc: 122, 217, 87; }
[data-el="water"] { --elc: 79, 195, 255; }
[data-el="dark"] { --elc: 190, 140, 255; }

.class-pick {
  --elc: 255, 122, 58;
  display: grid;
  grid-template-areas: "card" "info" "tabs";
  justify-items: center;
  gap: 22px;
  max-width: 1100px;
  margin: 34px auto 0;
}
.class-card {
  grid-area: card;
  position: relative;
  width: min(100%, 380px);
}
.class-show {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(180deg, #24180d, #0f0904) padding-box,
    var(--rim-gold) border-box;
  box-shadow: 0 0 0 3px var(--outline), 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(var(--elc), .16);
  transition: box-shadow .5s ease;
}
.class-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.class-slide.is-on { opacity: 1; visibility: visible; }
.class-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 7s ease-out;
}
.class-slide.is-on .class-stage { transform: scale(1); }
.class-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 42% at 50% 100%, rgba(var(--elc), .55), rgba(var(--elc), 0) 72%),
    linear-gradient(180deg, rgba(12, 8, 4, .35) 0%, rgba(12, 8, 4, 0) 30%, rgba(12, 8, 4, 0) 70%, rgba(12, 8, 4, .55) 100%);
}
.class-hero {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1%;
  height: 95%;
  width: auto;
  max-width: none;
  translate: -50% 0;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55));
}
.js .class-slide.is-on .class-hero { animation: heroIn .7s var(--ease-out) both, breathe 4.6s .7s ease-in-out infinite; }
.class-pick.is-off .class-hero { animation-play-state: paused; }

.flip {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 50px;
  height: 50px;
}
.flip .i { width: 24px; height: 24px; }
.flip .i-male { display: none; }
.flip.to-male .i-male { display: block; }
.flip.to-male .i-female { display: none; }

.class-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 150px;
}
.class-el {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(var(--elc));
  background: rgba(12, 8, 4, .78);
  box-shadow: inset 0 0 0 1.5px rgba(var(--elc), .9), 0 0 0 2px var(--outline);
  text-shadow: 0 2px 0 var(--outline);
}
.class-el::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgb(var(--elc));
  box-shadow: 0 0 10px rgba(var(--elc), .9), 0 0 0 2px var(--outline);
}
.class-name {
  margin: 12px 0 0;
  font-size: clamp(38px, 10vw, 64px);
  line-height: 1;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: var(--o3), 0 6px 0 var(--outline);
}
.class-line {
  margin-top: 12px;
  font-size: clamp(17px, 4.4vw, 21px);
  color: var(--text);
}
.class-info.is-swap > * { animation: infoIn .45s var(--ease-out) both; }
.class-info.is-swap .class-name { animation-delay: .05s; }
.class-info.is-swap .class-line { animation-delay: .1s; }

.class-tabs {
  grid-area: tabs;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.class-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 18px;
  color: var(--text-dim);
  transition: color .2s ease, transform .16s var(--ease-out);
}
.class-tab img {
  width: clamp(54px, 15.5vw, 74px);
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #3d2c19 0%, #1b120a 60%, #100a05 100%);
  box-shadow: inset 0 0 0 1.5px var(--bronze), 0 0 0 2.5px var(--outline), 0 6px 12px rgba(0, 0, 0, .45);
  transition: box-shadow .2s ease, transform .2s var(--ease-out);
}
.class-tab span { font-size: 13px; font-weight: 900; letter-spacing: .03em; white-space: nowrap; }
.class-tab:hover { color: var(--text-bright); }
.class-tab:hover img { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 2.5px var(--outline), 0 10px 16px rgba(0, 0, 0, .45); }
.class-tab[aria-pressed="true"] { color: var(--gold-bright); text-shadow: var(--o2); }
.class-tab[aria-pressed="true"] img {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2.5px var(--gold-bright), 0 0 0 2.5px var(--outline), 0 0 22px rgba(242, 201, 76, .45), 0 10px 16px rgba(0, 0, 0, .45);
}
.class-tab:focus-visible { outline-offset: 4px; }
@media (max-width: 767px) {
  /* Names stay for screen readers; the picked one shows big above. */
  .class-tab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------------- more */

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 560px;
  margin: 34px auto 0;
  padding: 0;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--plate);
  box-shadow:
    inset 0 0 0 1.5px var(--bronze),
    inset 0 2px 0 rgba(255, 228, 170, .07),
    0 0 0 3px var(--outline),
    0 16px 30px rgba(0, 0, 0, .45);
}
.js .card.reveal.is-in { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), box-shadow .25s ease; }
.card:hover {
  box-shadow:
    inset 0 0 0 1.5px var(--gold),
    inset 0 2px 0 rgba(255, 228, 170, .1),
    0 0 0 3px var(--outline),
    0 0 26px rgba(242, 201, 76, .14),
    0 22px 36px rgba(0, 0, 0, .5);
}
.card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 24, 13, 0) 45%, rgba(36, 24, 13, .7) 85%, #2a1d10 100%);
}
.card-bg { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-bg { transform: scale(1.06); }
.card-icon {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: 36%;
  max-width: 128px;
  translate: -50% -50%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6));
}
.js .card-icon { animation: bob 4.4s ease-in-out infinite; }
.trophies {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2%;
}
.trophies img { width: 25%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.trophies img:nth-child(1) { margin-right: -3%; translate: 0 12%; }
.trophies img:nth-child(2) { width: 33%; position: relative; z-index: 1; }
.trophies img:nth-child(3) { margin-left: -3%; translate: 0 16%; }
.js .trophies img:nth-child(2) { animation: bob 4.4s ease-in-out infinite; }
.card h3 {
  position: relative;
  margin: 10px 20px 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--gold-bright);
  text-shadow: var(--o2), 0 3px 0 var(--outline);
}
.card p { margin: 6px 20px 22px; font-size: 16px; line-height: 1.45; color: var(--text); }

/* ---------------------------------------------------------------- join */

.join {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 13vw, 150px) var(--gutter) clamp(64px, 10vw, 120px);
}
.join-bg { position: absolute; inset: 0; z-index: -1; }
.join-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.join-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(21, 16, 10, .35) 22%, rgba(21, 16, 10, .45) 60%, var(--bg) 100%),
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(16, 10, 5, .7), rgba(16, 10, 5, .15) 80%);
}
.join-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.join-fox { width: clamp(170px, 48vw, 230px); }
.js .join-fox img { animation: bob 3.6s ease-in-out infinite; }
.join-copy { display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.join-copy .title { font-size: clamp(32px, 8.6vw, 58px); }
.join-copy .lead { max-width: 28em; color: var(--text-bright); text-shadow: 0 2px 0 var(--outline); }
.join-doors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 26px;
}
.join-main { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr { display: none; margin: 0; }
.qr-code {
  display: block;
  width: 136px;
  height: 136px;
  padding: 10px;
  border-radius: 16px;
  background: #f6ead0;
  box-shadow: 0 0 0 2.5px var(--outline), 0 0 0 5.5px var(--bronze), 0 0 0 8px var(--outline), 0 12px 24px rgba(0, 0, 0, .5);
  transition: transform .16s var(--ease-out);
}
.qr-code:hover { transform: translateY(-2px) rotate(-1deg); }
.qr-code img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  text-align: center;
  text-shadow: 0 2px 0 var(--outline);
}
.qr figcaption b { font-size: 14.5px; color: var(--text-bright); }

/* ---------------------------------------------------------------- footer */

.footer {
  position: relative;
  padding: 40px max(var(--gutter), env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(180deg, #130d07 0%, var(--bg-deep) 100%);
  box-shadow: inset 0 1.5px 0 rgba(224, 183, 90, .35), inset 0 3.5px 0 var(--outline);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: var(--o2), 0 3px 0 var(--outline);
}
.footer-brand img { width: 44px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  transition: color .2s ease, background-color .2s ease;
}
.footer-links a:hover { color: var(--gold-pale); background: rgba(224, 183, 90, .09); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14.5px; color: var(--text-dim); }
.footer-fine { max-width: 700px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.footer-fine a { display: inline-block; padding: 12px 6px; text-underline-offset: 3px; }
.footer-fine a:hover { color: var(--gold-pale); }

/* ---------------------------------------------------------------- trailer */

.trailer {
  width: min(94vw, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.trailer::backdrop { background: rgba(10, 6, 3, .86); }
.trailer-box {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background: var(--plate);
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 3px var(--outline), 0 24px 60px rgba(0, 0, 0, .6);
}
.trailer-title {
  margin: 4px 60px 12px 8px;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: var(--o2);
}
.trailer-close { position: absolute; top: 8px; right: 8px; }
.trailer-video { width: 100%; max-height: 78vh; border-radius: 12px; background: #000; }

/* ---------------------------------------------------------------- 404 */

.page-404 { min-height: 100vh; min-height: 100svh; }
.nf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px var(--gutter);
  text-align: center;
}
.nf-bg { position: absolute; inset: 0; z-index: -1; }
.nf-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.nf-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(16, 10, 5, .72), rgba(16, 10, 5, .35) 80%),
    linear-gradient(180deg, rgba(21, 16, 10, .2), var(--bg) 100%);
}
.nf-inner { display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.nf .crest { width: clamp(96px, 28vw, 140px); }
.nf .wordmark { width: min(78vw, 340px); margin-top: -18px; }
.nf .title { margin-top: 26px; font-size: clamp(28px, 7.4vw, 44px); }
.nf .lead { color: var(--text-bright); text-shadow: 0 2px 0 var(--outline); }
.nf .door { margin-top: 26px; }
.nf-lockup { display: flex; flex-direction: column; align-items: center; text-decoration: none; border-radius: 20px; }
.nf .sleeper { position: relative; left: auto; bottom: auto; width: clamp(120px, 32vw, 160px); margin: 20px auto -4px; }

/* ---------------------------------------------------------------- 600+ */

@media (min-width: 600px) {
  .dock { flex-direction: row; align-items: flex-end; gap: 14px; margin-top: 16px; }
  .fox { width: 160px; margin-bottom: 0; }
  .dock-face { align-items: flex-start; padding-bottom: 4px; }
  .soon::before { display: none; }
  .door-row, .stores { justify-content: flex-start; }
  .pillar { height: 70%; }
  .pillar-l { --px: -34%; }
  .pillar-r { --px: 34%; }
  .wordmark { width: 440px; }
  .lockup { --crest: 132px; }
  .cards .card { display: grid; grid-template-columns: 42% 1fr; align-items: center; }
  .cards .card-art { height: 100%; aspect-ratio: auto; min-height: 170px; border-radius: 20px 0 0 20px; }
  .cards .card-art::after { background: linear-gradient(90deg, rgba(36, 24, 13, 0) 55%, rgba(36, 24, 13, .8) 92%, #261a0e 100%); }
  .cards .card h3 { margin-top: 0; }
  .cards .card p { margin-bottom: 0; }
  .cards .card > h3, .cards .card > p { grid-column: 2; }
  .cards .card-art { grid-row: 1 / span 2; }
  .cards .card > h3 { align-self: end; margin-top: 18px; }
  .cards .card > p { align-self: start; margin-bottom: 18px; }
}

/* ---------------------------------------------------------------- 768+ */

@media (min-width: 768px) {
  :root { --gutter: 28px; --topbar-h: 72px; }
  .hero { padding-bottom: 104px; }
  .class-tabs { gap: 14px; }
  .class-tab { min-width: 92px; }
  .sleeper { left: max(0px, calc(50% - 250px)); }
  .ladder { max-width: 420px; }
  .lockup { --crest: 150px; }
  .wordmark { width: 500px; }
  .tagline { font-size: 31px; }
  .hero-sub { font-size: 19px; }
  .fox { width: 184px; }
  .soon { font-size: 16px; }
}

/* ---------------------------------------------------------------- 1024+ (desktop) */

@media (min-width: 1024px) {
  :root { --gutter: 40px; }

  .hero { padding-bottom: 112px; }
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(36px, 5vw, 96px);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(21, 16, 10, .92) 0%, rgba(21, 16, 10, .55) 14%, rgba(21, 16, 10, .16) 32%, rgba(21, 16, 10, .12) 52%, rgba(21, 16, 10, .62) 80%, var(--bg) 99%),
      radial-gradient(ellipse 46% 58% at 36% 46%, rgba(18, 12, 6, .66) 0%, rgba(18, 12, 6, 0) 78%),
      radial-gradient(ellipse 30% 50% at 78% 50%, rgba(18, 12, 6, .4) 0%, rgba(18, 12, 6, 0) 78%);
  }
  .pillar { height: 92%; }
  .pillar-l { --px: -18%; }
  .pillar-r { --px: 18%; }
  .mist { left: -2%; width: 104%; }
  .mist-b { bottom: 0; opacity: .2; }
  .mist-a { bottom: -10%; opacity: .34; }
  .lockup { --crest: clamp(120px, 10vw, 150px); }
  .wordmark { width: 520px; }
  .tagline { margin-top: 12px; }
  .hero-sub { margin-top: 10px; }
  .dock { margin-top: 22px; gap: 18px; }
  .fox { width: clamp(190px, 15vw, 224px); }

  .hero-device {
    display: block;
    position: relative;
  }
  .js .hero-device { animation: float 7s 2s ease-in-out infinite; }
  .phone-hero {
    width: min(clamp(250px, 21vw, 316px), calc((100svh - 230px) / 2.05));
    min-width: 220px;
    margin: 0 8px 18px 0;
  }
  .phone-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210%;
    aspect-ratio: 1;
    translate: -50% -50%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 176, 70, .26), rgba(255, 176, 70, 0));
    pointer-events: none;
  }
  .reel-chip {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: -18px;
    translate: -50% 0;
  }
  .reel-chip.is-swap { animation: chipSwap .45s var(--ease-pop) both; }

  .feature {
    grid-template-columns: minmax(0, 540px) minmax(0, 560px);
    column-gap: clamp(48px, 6vw, 110px);
    align-items: center;
  }
  .feature-copy { align-items: flex-start; text-align: left; }
  .flip-side .feature-copy { order: 2; }
  .flip-side .feature-art { order: 1; }
  .feature-art { min-height: 560px; padding-bottom: 36px; }
  .big-count { justify-content: flex-start; }
  .phone { width: 290px; }
  .sleeper { left: max(0px, calc(50% - 300px)); }

  .ladder {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    max-width: 560px;
    gap: 6px;
    align-items: end;
    padding-top: 40px;
  }
  .ladder li:nth-child(2) { margin-bottom: 4px; }
  .ladder li:nth-child(3) { margin-bottom: 8px; }
  .ladder li:nth-child(4) { margin-bottom: 12px; }
  .ladder li:nth-child(5) { margin-bottom: 16px; }
  .ladder li:nth-child(6) { margin-bottom: 20px; }
  .ladder li:nth-child(7) { margin-bottom: 24px; }
  .ladder li:nth-child(8) { margin-bottom: 28px; }
  .ladder li:nth-child(9) { margin-bottom: 32px; }
  .ladder li:nth-child(10) { margin-bottom: 36px; }
  .ladder li:nth-child(1) span { position: absolute; top: 100%; left: 0; }
  .ladder li:nth-child(10) span { position: absolute; top: 100%; right: 0; }
  .ladder li:nth-child(1) { margin-bottom: 0; }
  .ladder { margin-bottom: 18px; }

  .class-pick {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    grid-template-areas: "card info" "card tabs";
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 30px;
    justify-items: start;
  }
  .class-card { width: 440px; }
  .class-info { align-self: end; align-items: flex-start; text-align: left; min-height: 0; }
  .class-tabs { align-self: start; justify-content: flex-start; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; gap: 24px; }
  .cards .card { display: block; }
  .cards .card-art { height: auto; aspect-ratio: 16 / 10; min-height: 0; border-radius: 20px 20px 0 0; }
  .cards .card-art::after { background: linear-gradient(180deg, rgba(36, 24, 13, 0) 45%, rgba(36, 24, 13, .7) 85%, #2a1d10 100%); }
  .cards .card > h3 { margin-top: 10px; }
  .cards .card > p { margin-bottom: 22px; }

  .join-inner { flex-direction: row; justify-content: center; gap: clamp(32px, 4vw, 64px); text-align: left; }
  .join-fox { width: clamp(240px, 22vw, 320px); flex: none; }
  .join-copy { align-items: flex-start; }
  .join-doors { flex-direction: row; align-items: center; gap: 36px; }
  .join-main { align-items: flex-start; }
  .join-main .stores { justify-content: flex-start; }

  .footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: left; gap: 10px 24px; }
  .footer-links { justify-content: center; }
  .footer-meta { justify-content: flex-end; }
  .footer-fine { grid-column: 1 / -1; max-width: none; text-align: center; }
}

/* The QR only where a phone could scan the screen: a desktop with a mouse. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .qr { display: flex; flex-direction: column; align-items: center; }
}

@media (min-width: 1440px) {
  .hero-inner { max-width: 1320px; }
  .wordmark { width: 560px; }
  .lockup { --crest: 156px; }
  .tagline { font-size: 32px; }
  .hero-sub { font-size: 19px; }
  .phone-hero { width: min(340px, calc((100svh - 230px) / 2.05)); }
}
@media (min-width: 1680px) and (min-height: 960px) {
  .hero-inner { max-width: 1440px; }
  .wordmark { width: 620px; }
  .lockup { --crest: 172px; }
  .tagline { font-size: 34px; }
  .fox { width: 240px; }
  .phone-hero { width: min(370px, calc((100svh - 230px) / 2.05)); }
}

/* Short wide screens (a laptop at 1366 x 700): keep the hero's doors in the first view. */
@media (min-width: 1024px) and (max-height: 760px) {
  .lockup { --crest: 104px; }
  .wordmark { width: 440px; }
  .fox { width: 170px; }
  .dock { margin-top: 14px; }
}

/* ---------------------------------------------------------------- keyframes */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes raysIn { from { opacity: 0; } to { opacity: .6; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes crestIn {
  0% { opacity: 0; transform: translateY(-28px) scale(.7); }
  60% { opacity: 1; transform: translateY(4px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes wmIn {
  0% { opacity: 0; transform: scale(.55); }
  55% { opacity: 1; transform: scale(1.06); }
  78% { transform: scale(.985); }
  100% { opacity: 1; transform: none; }
}
@keyframes shine {
  0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  26% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  100% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  14% { opacity: 1; transform: scale(1) rotate(45deg); }
  30% { opacity: 0; transform: scale(.4) rotate(90deg); }
}
@keyframes ember {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
  10% { opacity: 1; }
  72% { opacity: .85; }
  100% { opacity: 0; transform: translate3d(var(--dx), -82vh, 0) scale(.35); }
}
@keyframes pillarL { from { opacity: 0; transform: translateX(calc(var(--px) - 44px)); } to { opacity: 1; transform: translateX(var(--px)); } }
@keyframes pillarR { from { opacity: 0; transform: translateX(calc(var(--px) + 44px)); } to { opacity: 1; transform: translateX(var(--px)); } }
@keyframes driftA { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes driftB { from { transform: translateX(3%); } to { transform: translateX(-3%); } }
@keyframes foxUp {
  0% { opacity: 0; transform: translateY(40%) scale(.85); }
  60% { opacity: 1; transform: translateY(-5%) scale(1.03); }
  82% { transform: translateY(1.5%) scale(.99); }
  100% { opacity: 1; transform: none; }
}
@keyframes hop {
  0% { transform: none; }
  40% { transform: translateY(-7%) scale(1.03); }
  100% { transform: none; }
}
@keyframes blink {
  0%, 92%, 100% { opacity: 0; }
  93.5%, 96.5% { opacity: 1; }
}
@keyframes glint {
  0% { transform: translateX(-160%) skewX(-18deg); }
  16%, 100% { transform: translateX(420%) skewX(-18deg); }
}
@keyframes glintHover {
  from { transform: translateX(-160%) skewX(-18deg); }
  to { transform: translateX(420%) skewX(-18deg); }
}
@keyframes soonPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }
@keyframes chipSwap {
  0% { opacity: 0; transform: translateY(8px) scale(.85); }
  100% { opacity: 1; transform: none; }
}
@keyframes zz {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(34px, -60px) scale(1.2); }
}
@keyframes wobble {
  0%, 58%, 100% { transform: rotate(0deg); }
  64% { transform: rotate(-8deg); }
  70% { transform: rotate(7deg); }
  76% { transform: rotate(-5deg); }
  82% { transform: rotate(3deg); }
  88% { transform: rotate(0deg) translateY(0); }
  92% { transform: translateY(-6%); }
  96% { transform: translateY(0); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes looming { from { transform: scale(1) translateY(0); } to { transform: scale(1.035) translateY(-6px); } }
@keyframes pulse { 0%, 100% { opacity: .6; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes chestIn { from { opacity: 0; transform: translateY(16px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translateX(9%) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.014); } }
@keyframes infoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------------------------------------------------------------- reduced motion */

/* Everything stands still; every element's resting state is its finished state. The
   pet parade wraps into a grid instead of scrolling past. */
.reduce *, .reduce *::before, .reduce *::after {
  animation: none !important;
  transition: none !important;
}
.reduce .reveal { opacity: 1; transform: none; }
.reduce .reveal .ladder li { opacity: 1; transform: none; }
.reduce .parade-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0; }
.reduce .parade::before, .reduce .parade::after { display: none; }
.reduce .hero-video, .reduce .hero-inner, .reduce .pillar, .reduce .mist { translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal .ladder li { opacity: 1; transform: none; }
  .parade-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0; }
  .parade::before, .parade::after { display: none; }
}
