/* --- Fonts --- */
@font-face {
  font-family: "Archivo";
  src: url("media/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* --- Tokens --- */
:root {
  --ink: #090608;
  --cobalt: #3148a3;
  --paper: #e9edf5;
  --sticker: #fcf7e8;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
  --step-mega: clamp(3.75rem, 1.4rem + 7.6vw, 8.5rem);

  --margin: clamp(16px, 2vw, 28px);
  --stroke: 4px;
  --sprite-unit: clamp(0.66px, 0.085vw, 1.35px);
  --seam: 27.7vw;
  --sheet-fade: clamp(110px, 11vw, 200px);
  --teeth: polygon(
    0 18px, 8.33% 18px, 8.33% 0, 16.66% 0, 16.66% 18px, 25% 18px, 25% 0, 33.33% 0, 33.33% 18px, 41.66% 18px, 41.66% 0, 50% 0,
    50% 18px, 58.33% 18px, 58.33% 0, 66.66% 0, 66.66% 18px, 75% 18px, 75% 0, 83.33% 0, 83.33% 18px, 91.66% 18px, 91.66% 0, 100% 0,
    100% 100%, 0 100%
  );

  --ease-out: cubic-bezier(0.2, 0.9, 0.25, 1);
  --ease-spring: cubic-bezier(0.3, 1.5, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--sticker);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

h2, h3, .back__signoff, .coupon__bar, .button, .sound__label, .fling-score, .gate__title {
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

h2 {
  font-size: var(--step-mega);
  line-height: 0.84;
  text-wrap: balance;
}

h3 {
  font-size: var(--step-head);
  line-height: 0.92;
  text-wrap: balance;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

::selection { background: var(--cobalt); color: var(--sticker); }

/* --- Page frame --- */
main {
  position: relative;
  z-index: 1;
  overflow: clip;
}

.sheets {
  position: relative;
  z-index: 1;
  background: var(--ink);
  isolation: isolate;
  overflow: clip;
  clip-path: var(--teeth);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--sheet-fade)), transparent);
}

.sheets__lip {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 30px;
  background: var(--sticker);
  pointer-events: none;
}

.sheets__lip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: polygon(0 24px, calc(8.33% + 6px) 24px, calc(8.33% + 6px) 6px, calc(16.66% - 6px) 6px, calc(16.66% - 6px) 24px, calc(25% + 6px) 24px, calc(25% + 6px) 6px, calc(33.33% - 6px) 6px, calc(33.33% - 6px) 24px, calc(41.66% + 6px) 24px, calc(41.66% + 6px) 6px, calc(50% - 6px) 6px, calc(50% - 6px) 24px, calc(58.33% + 6px) 24px, calc(58.33% + 6px) 6px, calc(66.66% - 6px) 6px, calc(66.66% - 6px) 24px, calc(75% + 6px) 24px, calc(75% + 6px) 6px, calc(83.33% - 6px) 6px, calc(83.33% - 6px) 24px, calc(91.66% + 6px) 24px, calc(91.66% + 6px) 6px, 100% 6px, 100% 100%, 0 100%);
}

.sky {
  position: sticky;
  top: 0;
  z-index: -2;
  width: 100%;
  height: 100lvh;
  margin-bottom: -100lvh;
  pointer-events: none;
}

/* --- Controls --- */
.button {
  display: inline-block;
  padding: 0.66em 1.1em 0.6em;
  border: 0;
  background: var(--sticker);
  color: var(--ink);
  font-size: var(--step-lead);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms linear;
}

.button--ink { background: var(--ink); color: var(--sticker); }

@media (hover: hover) {
  .button:hover { transform: translateY(-3px); background: #ffffff; }
  .button--ink:hover { background: var(--cobalt); }
  .text-link:hover, .link-button:hover, .bar__links a:hover { text-decoration-thickness: 3px; }
}

.button:active { transform: translateY(1px) scale(0.985); }

.text-link, .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* --- Cover --- */
.cover {
  --curtain: 0;
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
}

.cover__stage {
  --part: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}

.cover.is-covered { visibility: hidden; }

.wedge {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--part) * -0.485px), calc(var(--part) * -0.875px));
  will-change: transform;
}

.wedge img { width: 100%; height: 100%; object-fit: cover; }

.cover__art {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  max-width: none;
}

.has-stretch .cover__art { display: block; }
.has-stretch .wedge { visibility: hidden; }

.wedge--norg { clip-path: polygon(0 0, 100% 0, 100% 10.834%, 9.513% 100%, 0 100%); }

.wedge--enyara {
  clip-path: polygon(9.513% 100%, 100% 10.834%, 100% 100%);
  transform: translate(calc(var(--part) * 0.485px), calc(var(--part) * 0.875px));
}

.js:not(.slammed) .wedge { opacity: 0; }

.cover__dim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 44% 58% at 50% 50%, rgb(6 4 8 / 0.88), rgb(6 4 8 / 0.5));
  pointer-events: none;
}

.cover__dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: calc(var(--curtain) * 0.9);
}

.cover__flash {
  position: absolute;
  inset: 0;
  background: var(--sticker);
  clip-path: polygon(8.8% 100%, 100% 9.9%, 100% 11.8%, 10.2% 100%);
  opacity: 0;
  pointer-events: none;
}

.cover__sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px var(--margin);
}

.home-mark {
  position: fixed;
  left: var(--margin);
  top: 14px;
  z-index: 35;
  display: block;
  line-height: 0;
}

.home-mark img { width: 48px; height: 48px; transition: transform 200ms var(--ease-spring); }
.home-mark:hover img { transform: rotate(-6deg) scale(1.08); }

.bar__links { display: flex; gap: clamp(18px, 3vw, 36px); font-weight: 600; }
.bar__links a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.cover__title {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3svh, 36px);
  width: min(52vw, 118svh, 900px);
  transform: translate(-50%, calc(-50% - var(--curtain) * 90px));
  opacity: calc(1 - var(--curtain) * 1.6);
}

.logo {
  position: relative;
  width: 100%;
  transform-origin: 50% 90%;
  animation: logo-float 7s ease-in-out infinite;
}

@keyframes logo-float {
  50% { translate: 0 -7px; rotate: -0.35deg; }
}

.logo img { width: 100%; }
.logo__face { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo__face rect { fill: #040305; }
.logo__face path { stroke: #040305; }
.logo__eye { transform-box: fill-box; transform-origin: center; transition: transform 90ms linear; }
.logo.is-blinking .logo__eye { transform: scaleY(0.12); }
.logo.is-startled .logo__eye { transform: scale(1.35); }

.js:not(.slammed) .logo,
.js:not(.slammed) .caption,
.js:not(.slammed) .cover__cue { opacity: 0; }

.caption {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2svh, 24px);
  max-width: 34em;
  font-size: var(--step-lead);
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

.caption__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 26px;
}

.caption .link-button { font-size: var(--step-body); }

.cover__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3svh, 30px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateX(-50%);
}

.cover__cue i {
  width: 12px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  rotate: 45deg;
  animation: cue-bob 1.9s ease-in-out infinite;
}

@keyframes cue-bob {
  50% { translate: 3px 3px; }
}

/* --- Games --- */
.games { padding: min(clamp(74px, 8vw, 120px), 12svh) var(--margin) 0; }

.games__wrap {
  position: relative;
  max-width: min(1480px, max(760px, calc((100svh - 330px) * 2.667 + 14px)));
  margin-inline: auto;
}

.games__head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 30em);
  justify-content: space-between;
  align-items: end;
  gap: 20px clamp(24px, 5vw, 80px);
  margin-bottom: clamp(24px, 3vw, 44px);
}

.games__head h2 { font-size: min(var(--step-mega), 17svh); white-space: nowrap; }

.games__intro { display: grid; gap: 10px; }
.games__lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.games__note { font-weight: 600; }

.games__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--stroke) solid var(--sticker);
  background: var(--paper);
  color: var(--ink);
}

.panel--lead { grid-row: span 2; }
.panel--old { grid-column: 1 / -1; }

.panel__reel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.panel__reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__reel img + img { opacity: 0; }
.panel__reel img:nth-child(2) { animation: reel-second 12s ease-in-out infinite; }
.panel__reel img:nth-child(3) { animation: reel-third 12s ease-in-out infinite; }

@keyframes reel-second {
  0%, 26.67% { opacity: 0; }
  33.33%, 66.67% { opacity: 1; }
  66.7%, 100% { opacity: 0; }
}

@keyframes reel-third {
  0%, 60% { opacity: 0; }
  66.67%, 93.33% { opacity: 1; }
  100% { opacity: 0; }
}

.panel__image { width: 100%; }

.panel__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: clamp(18px, 2vw, 28px);
  flex: 1;
}

.panel__body--split {
  grid-template-columns: 1.35fr 1fr;
  gap: 18px clamp(24px, 4vw, 56px);
}

.panel__text { display: grid; justify-items: start; align-content: start; gap: 12px; }

.panel h3 { font-size: var(--step-lead); line-height: 1; }
.panel--lead h3 { font-size: var(--step-head); line-height: 0.92; }

.panel__live { font-size: var(--step-lead); line-height: 1.2; }
.panel__live strong { font-weight: 800; }
.panel__stat { font-weight: 500; }

.panel .button { font-size: var(--step-body); margin-top: auto; }

.panel__titled { display: flex; align-items: center; gap: 14px; }
.panel__titled img { width: 58px; height: 58px; flex: none; }

.panel--old {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(20px, 3vw, 44px);
  padding: 12px clamp(18px, 2vw, 28px);
}

.panel--old img { width: auto; height: 52px; flex: none; }
.panel--old p { flex: 1 1 22em; }

/* --- Founders --- */
.founders {
  position: relative;
  isolation: isolate;
  overflow: clip;
  --fade: clamp(120px, 15vw, 280px);
  margin-top: clamp(80px, 9vw, 150px);
  padding-block: clamp(64px, 7vw, 120px) clamp(120px, 13vw, 240px);
}

.founders::before, .founders::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.founders::before {
  background: rgb(27 40 112 / 0.58);
  clip-path: polygon(0 0, 100% 0, 100% calc(50% - var(--seam)), 0 calc(50% + var(--seam)));
  mask-image: linear-gradient(to bottom, transparent, #000 var(--fade));
}

.founders::after {
  background: rgb(96 32 16 / 0.6);
  clip-path: polygon(0 calc(50% + var(--seam)), 100% calc(50% - var(--seam)), 100% 100%, 0 100%);
  mask-image: linear-gradient(to top, transparent, #000 var(--fade));
}

.founders__band {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 170vw;
  height: clamp(110px, 13vw, 220px);
  border-block: 6px solid var(--sticker);
  background: var(--cobalt) url("media/art/band.webp") center / auto 100% repeat-x;
  transform: translate(-50%, -50%) rotate(-29deg);
}

.founders__step {
  position: absolute;
  display: block;
  width: clamp(80px, 11vw, 190px);
  height: clamp(30px, 3.6vw, 62px);
  background: var(--cobalt);
  border: 6px solid var(--sticker);
}

.founders__step--one { bottom: 100%; left: 37%; margin-bottom: 0; border-bottom: 0; }
.founders__step--two { bottom: 100%; left: 62%; border-bottom: 0; }
.founders__step--three { top: 100%; left: 53%; border-top: 0; }

.founders__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.028;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  pointer-events: none;
}

.founders__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

.founder {
  display: flex;
  align-items: flex-end;
  gap: clamp(0px, 1vw, 24px);
}

.founder--enyara { justify-content: flex-end; }

.founder__stage {
  position: relative;
  flex: none;
  width: calc(460 * var(--sprite-unit));
  height: calc(460 * var(--sprite-unit));
}

.founder__stage[data-founder="enyara"] {
  width: calc(516 * var(--sprite-unit));
  height: calc(516 * var(--sprite-unit));
}

.founder__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(30 * var(--sprite-unit));
  z-index: 0;
  width: calc(250 * var(--sprite-unit));
  height: calc(32 * var(--sprite-unit));
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.5;
  transform: translateX(-50%);
  transition: opacity 200ms linear;
}

.founder__stage.is-empty::after { opacity: 0; }

.sprite {
  position: relative;
  z-index: 1;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.sprite.is-held { cursor: grabbing; }
.sprite--norg { width: calc(460 * var(--sprite-unit)); height: calc(460 * var(--sprite-unit)); }
.sprite--enyara { width: calc(516 * var(--sprite-unit)); height: calc(516 * var(--sprite-unit)); }

.sprite__still, .sprite__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.sprite.is-ready .sprite__still { visibility: hidden; }

.fling-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.fling-layer .sprite {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  will-change: transform;
}

.fling-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

.fling-score {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.3em 0.55em 0.24em;
  background: var(--sticker);
  color: var(--ink);
  font-size: var(--step-head);
  line-height: 1;
  white-space: nowrap;
}

/* --- Letters --- */
.letter {
  flex: 0 1 500px;
  min-width: 0;
  border: var(--stroke) solid var(--sticker);
  filter: drop-shadow(7px 7px 0 var(--ink));
}

.letter__sheet {
  display: grid;
  gap: 0.8em;
  padding: clamp(20px, 2.2vw, 34px);
  padding-bottom: clamp(18px, 2vw, 28px);
  background: var(--paper);
  color: var(--ink);
}

.letter__quote { font-size: var(--step-lead); line-height: 1.28; font-weight: 500; }
.letter__name { margin-top: 0.3em; font-size: var(--step-lead); line-height: 1.1; font-weight: 700; }
.letter__role { margin-top: -0.55em; font-size: 1rem; }

.letter__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 12px clamp(20px, 2.2vw, 34px) 14px;
  background: var(--paper);
  color: var(--ink);
  border-top: 5px dotted var(--ink);
}

.letter__strip .button { font-size: var(--step-body); }

.readout {
  justify-self: center;
  max-width: 36em;
  padding: 10px 18px;
  border: var(--stroke) solid var(--sticker);
  background: var(--ink);
  color: var(--sticker);
  font-weight: 600;
  text-align: center;
}

/* --- Entry prompt --- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(6 4 8 / 0.62);
  transition: opacity 280ms linear;
}

.gate[hidden] { display: none; }
.gate.is-leaving { opacity: 0; pointer-events: none; }

.gate__enter {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(14px, 2.4svh, 26px);
  padding: var(--margin);
  border: 0;
  background: none;
  color: var(--sticker);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.gate__enter:focus-visible { outline: none; }
.gate__mark { width: clamp(64px, 7vw, 96px); height: auto; }

.gate__title {
  font-size: var(--step-mega);
  line-height: 0.84;
  animation: gate-breathe 2.4s ease-in-out infinite;
}

@keyframes gate-breathe {
  50% { opacity: 0.72; }
}

.gate__note { font-size: var(--step-lead); font-weight: 600; }

.gate__quiet {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 6svh, 56px);
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--sticker);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

/* --- Join --- */
.join {
  position: relative;
  padding: clamp(90px, 10vw, 170px) var(--margin);
}

.coupon {
  position: relative;
  display: grid;
  grid-template-columns: 46fr 54fr;
  max-width: 1240px;
  margin-inline: auto;
  border: var(--stroke) solid var(--sticker);
  background: var(--cobalt);
  color: var(--sticker);
}

.coupon::before, .coupon::after {
  content: "";
  position: absolute;
  left: 46%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.coupon::before { top: -18px; }
.coupon::after { bottom: -18px; }

.coupon__pitch {
  display: grid;
  align-content: space-between;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 3.4vw, 50px);
}

.coupon__pitch h2 { font-size: clamp(3.25rem, 1.6rem + 5.4vw, 6.5rem); }
.coupon__pitch p { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }

.coupon__actions {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 3.4vw, 50px);
  border-left: 5px dotted var(--ink);
}

.coupon__bar {
  display: block;
  padding: 0.62em 0.7em 0.56em;
  background: var(--sticker);
  color: var(--ink);
  font-size: var(--step-head);
  line-height: 0.95;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.coupon__bar--ink { background: var(--ink); color: var(--sticker); }

@media (hover: hover) {
  .coupon__bar:hover { transform: translateX(10px); }
}

.coupon__bar:active { transform: translateX(4px) scale(0.99); }

/* --- Back of the book --- */
.back {
  position: sticky;
  bottom: 0;
  z-index: 0;
  padding: clamp(44px, 6vw, 84px) var(--margin) 34px;
  background: var(--ink);
}

.back__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 64px) 26px;
  background: var(--paper);
  color: var(--ink);
  clip-path: var(--teeth);
}

.back__message { display: grid; align-content: start; gap: 10px; }
.back__signoff { font-size: var(--step-head); line-height: 0.95; }
.back__source { font-size: var(--step-small); }

.back__address {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
  font-size: var(--step-body);
  font-weight: 600;
}

.back__address a { text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.back__stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  rotate: 4deg;
  transition: rotate 220ms var(--ease-spring);
}

.back__stamp:hover { rotate: -6deg; }

.back__imprint {
  grid-column: 1 / -1;
  font-size: var(--step-small);
  text-align: center;
}

/* --- Sound --- */
.sound {
  position: fixed;
  right: var(--margin);
  bottom: var(--margin);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 9px;
  border: 0;
  background: var(--sticker);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.sound:active { transform: scale(0.96); }
.sound__label { font-size: 1rem; line-height: 1; }

.sound__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.sound__bars i {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--ink);
  transform-origin: bottom;
}

.sound__bars i:nth-child(2) { height: 16px; }
.sound__bars i:nth-child(3) { height: 11px; }

.sound[aria-pressed="true"] .sound__bars i { animation: bar 467ms ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -160ms; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -320ms; }

@keyframes bar {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1.1); }
}

/* --- Entrances --- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 620ms var(--ease-out) var(--delay, 0ms), translate 760ms var(--ease-out) var(--delay, 0ms);
}

.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* --- Narrower screens --- */
@media (max-width: 1100px) {
  .games__head { grid-template-columns: 1fr; }
  .games__grid { grid-template-columns: 1fr 1fr; }
  .panel--lead { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 900px) and (orientation: portrait) {
  .cover__stage { width: max(100%, calc(100svh * 9 / 16)); aspect-ratio: 9 / 16; }
  .wedge--norg { clip-path: polygon(0 0, 100% 0, 100% 41.087%, 0 72.265%); }
  .wedge--enyara { clip-path: polygon(0 72.265%, 100% 41.087%, 100% 100%, 0 100%); }
  .cover__flash { clip-path: polygon(0 71.4%, 100% 40.2%, 100% 42%, 0 73.1%); }
  .cover__dim { background: radial-gradient(ellipse 100% 34% at 50% 54%, rgb(6 4 8 / 0.9), rgb(6 4 8 / 0.42)); }
  .cover__title { top: 54%; width: calc(100% - 32px); }
  .caption { font-size: 1.125rem; }
}

@media (max-width: 820px) {
  .founder, .founder--enyara { flex-direction: column; align-items: center; }
  .founder--norg { flex-direction: column-reverse; }
  .letter { flex-basis: auto; width: 100%; max-width: 520px; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { display: none; }
  .coupon__actions { border-left: 0; border-top: 5px dotted var(--ink); }
  .back__card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-mark img { width: 40px; height: 40px; }
  .games__grid { grid-template-columns: 1fr; }
  .panel__body--split { grid-template-columns: 1fr; }
  .back__stamp { width: 72px; height: 72px; }
  .sound { padding: 13px 12px 12px; }
  .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-height: 760px), (max-width: 640px) {
  .back { position: static; }
}

@media (max-height: 720px) and (min-width: 1101px) {
  .games__head { margin-bottom: 14px; }
  .games__lead { font-size: var(--step-body); line-height: 1.35; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .cover__cue i, .gate__title,
  .sound[aria-pressed="true"] .sound__bars i,
  .panel__reel img { animation: none; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .button, .coupon__bar, .sound, .home-mark img, .back__stamp { transition: none; }
}