/* Goober Down landing page. Palette and type follow Noora's main-menu pack. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-black-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #100629;
  --plum: #230735;
  --plum-2: #3a0d55;
  --pink: #ff1674;
  --yellow: #ffdf28;
  --cream: #fff4d1;
  --cyan: #0bc2df;
  --lava: #ff7a1a;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --shadow: 0 6px 0 var(--ink);
  --dots: radial-gradient(rgba(255, 244, 209, 0.13) 1.3px, transparent 1.8px) 0 0 / 11px 11px;
  --dots-ink: radial-gradient(rgba(16, 6, 41, 0.16) 1.3px, transparent 1.8px) 0 0 / 10px 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 500 clamp(16px, 1.05vw + 12px, 19px) / 1.5 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
strong { color: var(--yellow); font-weight: 800; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 800; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; }

kbd {
  display: inline-grid; place-items: center;
  min-width: 2.1em; height: 2.1em; padding: 0 0.55em;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 9px;
  box-shadow: 0 4px 0 var(--ink);
  font: 900 italic 0.95em/1 var(--label);
  text-transform: uppercase; letter-spacing: 0.02em;
  vertical-align: middle; white-space: nowrap;
  transform: translateY(-2px);
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--yellow);
  --fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 1.1em 0.42em;
  background: var(--bg); color: var(--fg);
  font: 1.15rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  border: 4px solid var(--ink); border-radius: 12px;
  box-shadow: 0 6px 0 var(--ink);
  transform: rotate(-2deg);
  transition: transform 0.18s cubic-bezier(.3, 1.8, .5, 1), box-shadow 0.12s;
  cursor: pointer;
}
.btn:hover { transform: rotate(1deg) scale(1.06); }
.btn:active { transform: rotate(0) translateY(5px) scale(0.98); box-shadow: 0 1px 0 var(--ink); }
.btn--small { font-size: 1rem; padding: 0.45em 0.9em 0.38em; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }

.btn--play {
  font-size: clamp(1.9rem, 3.4vw + 0.7rem, 3.4rem);
  padding: 0.38em 0.8em 0.26em;
  border-width: 5px; border-radius: 18px;
  box-shadow: 0 9px 0 var(--ink), 0 0 0 9px var(--pink), 0 18px 0 9px var(--ink);
  transform: rotate(-3deg);
  animation: nudge 2.6s ease-in-out infinite;
}
/* The loading bar's candy fill: yellow to amber with marching orange stripes and a bright lip. */
.btn--play:not(.btn--pink) {
  background:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)) 0 0 / 100% 22% no-repeat,
    repeating-linear-gradient(-45deg, rgba(255, 128, 0, 0.26) 0 12px, transparent 12px 24px) 0 0 / 34px 100%,
    linear-gradient(var(--yellow) 55%, #ffb21c);
  animation: nudge 2.6s ease-in-out infinite, march 0.9s linear infinite;
}
@keyframes march { to { background-position: 0 0, 34px 0, 0 0; } }
.btn--play:hover { animation: march 0.45s linear infinite; transform: rotate(0) scale(1.07); }
.btn--pink:hover { animation: none; }
.btn--play:active { transform: translateY(7px) scale(0.98); box-shadow: 0 2px 0 var(--ink), 0 0 0 9px var(--pink), 0 9px 0 9px var(--ink); }
.btn--pink { --bg: var(--pink); --fg: var(--cream); box-shadow: 0 9px 0 var(--ink), 0 0 0 9px var(--yellow), 0 18px 0 9px var(--ink); }
.btn--pink:active { box-shadow: 0 2px 0 var(--ink), 0 0 0 9px var(--yellow), 0 9px 0 9px var(--ink); }
.btn__arrow { font-size: 0.7em; transform: translateY(-0.06em); }

@keyframes nudge {
  0%, 70%, 100% { transform: rotate(-3deg) scale(1); }
  76% { transform: rotate(2deg) scale(1.08); }
  82% { transform: rotate(-4deg) scale(1.02); }
  88% { transform: rotate(1deg) scale(1.05); }
}

/* ---------- Hero ---------- */

.slide--title {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(100deg, var(--plum) 0%, rgba(35, 7, 53, 0.94) 34%, rgba(35, 7, 53, 0.35) 62%, rgba(16, 6, 41, 0.15) 100%),
    url("img/arena.webp") 65% 60% / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: auto 0 0; height: 30%;
  background: linear-gradient(transparent, var(--ink));
}
.hero__dots {
  position: absolute; inset: 0 auto 0 0; width: 58%; z-index: -2;
  background: var(--dots);
  -webkit-mask: linear-gradient(90deg, #000 30%, transparent);
          mask: linear-gradient(90deg, #000 30%, transparent);
}
.hero__streak { position: absolute; z-index: -1; width: clamp(160px, 22vw, 340px); height: auto; }
.hero__streak--a { top: 12%; right: 4%; animation: streak 3.2s ease-in-out infinite; }
.hero__streak--b { bottom: 14%; left: 38%; transform: scaleX(-1); animation: streak 3.2s 1.6s ease-in-out infinite; }
@keyframes streak {
  0%, 100% { translate: 0 0; opacity: 0.9; }
  50% { translate: -18px 10px; opacity: 1; }
}

.hero__copy { position: relative; z-index: 2; display: grid; gap: clamp(18px, 2.4vw, 30px); justify-items: start; }
.hero__logo { width: min(100%, 560px); margin-left: -2%; }
.hero__logo img { width: 100%; filter: drop-shadow(0 10px 0 rgba(16, 6, 41, 0.55)); animation: logo-in 0.9s cubic-bezier(.2, 1.6, .4, 1) both, logo-bob 4s 0.9s ease-in-out infinite; transform-origin: 40% 60%; }
@keyframes logo-in {
  0% { transform: scale(0.2) rotate(-24deg); opacity: 0; }
  100% { transform: scale(1) rotate(-4deg); opacity: 1; }
}
@keyframes logo-bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(-6px); }
}
.hero__tag {
  display: flex; flex-wrap: wrap; gap: 0.25em 0.45em;
  font: 900 italic clamp(1.45rem, 2.2vw + 0.6rem, 2.35rem)/1.02 var(--label); text-transform: uppercase;
  transform: rotate(-3deg);
}
.hero__tag span { background: var(--ink); padding: 0.1em 0.35em 0.06em; box-shadow: 4px 4px 0 var(--pink); animation: pop-in 0.5s cubic-bezier(.2, 1.7, .5, 1) both; }
.hero__tag span:nth-child(1) { animation-delay: 0.5s; }
.hero__tag span:nth-child(2) { animation-delay: 0.65s; }
.hero__tag span:nth-child(3) { animation-delay: 0.8s; color: var(--yellow); }
@keyframes pop-in { from { transform: scale(0) rotate(-10deg); opacity: 0; } }
.hero__cta { display: grid; gap: 22px; justify-items: start; margin-top: 10px; animation: pop-in 0.6s 1s cubic-bezier(.2, 1.7, .5, 1) both; }
.hero__note { font-size: 0.92rem; opacity: 0.85; margin-top: 8px; }

.hero__art { position: relative; z-index: 1; margin-left: -12%; margin-right: -6%; }
.hero__goob {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  animation: goob-in 0.9s 0.15s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero__goob img {
  width: 100%;
  filter: drop-shadow(0 18px 0 rgba(16, 6, 41, 0.45));
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--pr, 0deg));
  animation: bob 2.4s 1s ease-in-out infinite;
  transform-origin: 70% 70%;
}
.hero__goob.is-kicking img { animation: kick 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes goob-in {
  from { transform: translateX(40%) rotate(14deg) scale(0.8); opacity: 0; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; scale: 1 1; }
  50% { translate: 0 -12px; scale: 1.015 0.985; }
}
@keyframes kick {
  0% { scale: 1; rotate: 0deg; }
  30% { scale: 0.92 1.06; rotate: 6deg; translate: 20px 0; }
  60% { scale: 1.12 0.94; rotate: -8deg; translate: -40px 0; }
  100% { scale: 1; rotate: 0deg; translate: 0 0; }
}
.hero__burst {
  position: absolute; left: -9%; top: 30%; width: 20%; z-index: 2; pointer-events: none;
  animation: burst 1.2s 1s steps(2, jump-none) infinite;
}
@keyframes burst {
  0% { transform: scale(0.9) rotate(-8deg); }
  100% { transform: scale(1.12) rotate(6deg); }
}
.hero__down {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  display: grid; justify-items: center; color: var(--cream); text-decoration: none;
  font: 900 italic 0.95rem/1 var(--label); text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.85;
}
.hero__down svg { width: 28px; animation: bounce-down 1.4s ease-in-out infinite; }
@keyframes bounce-down { 50% { transform: translateY(6px); } }

@media (max-width: 860px) {
  .slide--title { grid-template-columns: 1fr; padding-top: 84px; padding-bottom: 76px; text-align: left; align-content: start; gap: 6px; }
  .hero__bg { background:
    linear-gradient(180deg, rgba(35, 7, 53, 0.92) 0%, rgba(35, 7, 53, 0.75) 45%, rgba(16, 6, 41, 0.35) 100%),
    url("img/arena.webp") 60% 50% / cover no-repeat; }
  .hero__dots { width: 100%; -webkit-mask: linear-gradient(180deg, #000 30%, transparent 70%); mask: linear-gradient(180deg, #000 30%, transparent 70%); }
  .hero__logo { width: min(86%, 440px); }
  .hero__art { order: 3; margin: -6px -10% 0 0; width: 100%; justify-self: end; }
  .hero__copy { display: contents; }
  .hero__logo { order: 0; }
  .hero__tag { order: 1; }
  .hero__cta { order: 2; justify-items: stretch; width: 100%; margin: 14px 0 0; gap: 14px; }
  .hero__cta .btn--play { justify-content: center; }
  .hero__note { text-align: center; }
  .hero__down { display: none; }
  .hero__streak--b { left: auto; right: 2%; bottom: 40%; }
}

/* ---------- Goob sprites (tintable, from Noora's HUD portraits) ---------- */

.goob {
  --s: 120px;
  --n: 16;
  --sheet: url("img/goob-healthy.webp");
  --spd: 1.33s;
  position: relative; display: inline-block;
  width: var(--s); height: var(--s);
  isolation: isolate;
  flex: none;
}
.goob::before, .goob i {
  content: ""; position: absolute; inset: 0;
  background-size: calc(var(--n) * 100%) 100%;
  animation: strip var(--spd) steps(var(--n)) infinite;
}
.goob::before {
  background-color: var(--tint, #ff4b3e);
  -webkit-mask: var(--sheet) 0 0 / calc(var(--n) * 100%) 100% no-repeat;
          mask: var(--sheet) 0 0 / calc(var(--n) * 100%) 100% no-repeat;
  animation-name: strip-mask;
}
.goob i { background-image: var(--sheet); mix-blend-mode: multiply; filter: brightness(1.18) contrast(1.15); }
@keyframes strip { from { background-position: 0 0; } to { background-position: calc(var(--n) * -1 * var(--s)) 0; } }
@keyframes strip-mask {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: calc(var(--n) * -1 * var(--s)) 0; mask-position: calc(var(--n) * -1 * var(--s)) 0; }
}

/* ---------- Falling Goob ---------- */
/* Whole-body Goob, arms up, rendered from Noora's airborne-fall animation (frames 32 to 64 of
   character/animations/fall-landing-getup/sources/Goober - Falling.blend). Nine frames, played back and forth. */
.fallgoob {
  --s: 120px;
  --ink-line: drop-shadow(1.5px 0 0 #100629) drop-shadow(-1.5px 0 0 #100629) drop-shadow(0 1.5px 0 #100629) drop-shadow(0 -1.5px 0 #100629);
  display: block; width: var(--s); height: var(--s);
  background: url("img/goob-fall.webp") 0 0 / 900% 100% no-repeat;
  animation: flail 0.8s steps(8) infinite alternate;
}
@keyframes flail { to { background-position: 100% 0; } }

/* ---------- Climb mini-game ---------- */

.fade { padding: clamp(50px, 6vw, 90px) var(--gutter); }
.fade__card {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  background: var(--plum); border: 6px solid var(--ink); border-radius: 22px;
  box-shadow: 0 0 0 6px var(--yellow), 14px 18px 0 6px var(--ink);
  padding: clamp(22px, 4vw, 48px);
  transform: rotate(-1deg);
  background-image: var(--dots);
}
.fade__text { display: grid; gap: 16px; justify-items: start; }
.fade__text .title { text-align: left; }
.fade__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.btn--climb { font-size: 1.7rem; padding: 0.42em 1em 0.3em; min-width: 7.5em; justify-content: center; }
.btn--climb.is-live { --bg: var(--pink); --fg: var(--cream); }
.fade__status { font: 900 italic 1.25rem/1.1 var(--label); text-transform: uppercase; color: var(--yellow); min-height: 1.2em; }

.fade__pit {
  position: relative; height: clamp(340px, 42vw, 440px);
  background: linear-gradient(180deg, #3b0f52 0%, #2a0a37 55%, #5a1426 85%, #ff7a1a 100%);
  border: 5px solid var(--ink); border-radius: 16px; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.fade__exit {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: 54%; height: 40px; background: #f2b86a; border: 4px solid var(--ink); border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  display: grid; place-items: center; font: 1.1rem/1 var(--display); color: var(--ink); text-transform: uppercase;
  padding-bottom: 6px; z-index: 2;
}
.fade__chain {
  position: absolute; top: 30px; bottom: 0; left: 50%; width: 22px; translate: -50% 0;
  background:
    radial-gradient(ellipse 8px 14px at 50% 50%, transparent 5px, #c7b9a3 6px, #c7b9a3 9px, transparent 10px) 0 0 / 22px 32px repeat-y;
  filter: drop-shadow(2px 0 0 var(--ink));
}
/* The climber: Noora's rope-climb loop, 12 frames, rendered from character/animations/climbing.
   Its hands sit about 14% in from the left of each frame, so that point goes on the chain.
   main.js sets its bottom in px; the hands, the lava and the exit stack on top of it in that order. */
.fade__pit { --climber-h: 140px; }
.fade__climber { position: absolute; left: 50%; bottom: 24px; translate: -14% 0; z-index: 2; transition: bottom 0.12s ease-out; }
.climbgoob {
  display: block; height: var(--climber-h); aspect-ratio: 120 / 251;
  background: url("img/goob-climb.webp") 0 0 / 1200% 100% no-repeat;
  filter: drop-shadow(1.5px 0 0 #100629) drop-shadow(-1.5px 0 0 #100629) drop-shadow(0 1.5px 0 #100629) drop-shadow(0 -1.5px 0 #100629)
          grayscale(var(--grey, 0)) brightness(calc(1 - var(--grey, 0) * 0.25));
}
.fade__pit[data-pose="won"] .climbgoob { animation: climb-cheer 0.5s steps(11) infinite, hop 0.5s ease-in-out infinite; }
@keyframes climb-cheer { from { background-position: 0 0; } to { background-position: 100% 0; } }
.fade__pit.is-won .fade__climber { transition: bottom 0.4s cubic-bezier(.2, 1.6, .4, 1); }
.fade__pit.is-dragged .fade__climber { transition: bottom 0.9s cubic-bezier(.55, 0, .9, .3); }

/* The chain scrolls a little as you pull, so the climb feels like travel. */
.fade__chain { background-position: 0 var(--chain-y, 0px); }

/* Skeleton hands: cream bones, ink outline. They sit centred under the Goob's feet. */
.fade__hands {
  position: absolute; left: calc(50% + 14px); bottom: -110px; translate: -50% 0; z-index: 3;
  width: 150px; pointer-events: none;
  transition: bottom 0.1s linear;
}
.fade__hands svg { display: block; width: 100%; height: auto; overflow: visible; }
.fade__hands .bone { fill: none; stroke: #efe4c8; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }
.fade__hands .palm { fill: #efe4c8; stroke: var(--ink); stroke-width: 3.5; }
.fade__hands .joint circle { fill: #efe4c8; stroke: var(--ink); stroke-width: 2.4; }
.fade__hands .hand { filter: drop-shadow(1.6px 0 0 #100629) drop-shadow(-1.6px 0 0 #100629) drop-shadow(0 1.6px 0 #100629) drop-shadow(0 -1.6px 0 #100629);
  transform-box: fill-box; transform-origin: 50% 100%; animation: grasp 0.7s ease-in-out infinite alternate; }
.fade__hands .hand--r { animation-delay: -0.35s; }
@keyframes grasp { from { transform: rotate(-7deg); } to { transform: rotate(6deg) scaleY(1.04); } }
.fade__pit.is-grabbing .fade__hands { transition: bottom 0.22s cubic-bezier(.2, 1.6, .4, 1); }
.fade__pit.is-grabbing .fade__hands .hand { animation: clench 0.22s ease-out forwards; }
@keyframes clench { to { transform: rotate(14deg) scaleY(0.9); } }
.fade__pit.is-dragged .fade__hands { transition: bottom 0.9s cubic-bezier(.55, 0, .9, .3); }
.fade__lava { z-index: 4; }
.fade__exit { z-index: 5; }

/* Time, top left. */
.fade__time {
  position: absolute; left: 12px; top: 10px; z-index: 5; margin: 0;
  font: 1.25rem/1 var(--display); letter-spacing: 0.04em; color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink); font-variant-numeric: tabular-nums;
}
.fade__readout { display: grid; gap: 4px; }
.fade__best { font: 900 italic 1rem/1.1 var(--label); text-transform: uppercase; color: var(--cream); opacity: 0.85; min-height: 1.1em; }

/* Danger: nearly grey, or the hands are close. */
.fade__pit.is-danger { animation: pit-shake 0.22s steps(2) infinite; }
.fade__pit.is-danger .fade__meter { animation: meter-pulse 0.5s ease-in-out infinite alternate; }
@keyframes pit-shake { 0% { translate: 0 0; } 50% { translate: 2px -1px; } 100% { translate: -2px 1px; } }
@keyframes meter-pulse { to { box-shadow: 0 0 0 3px var(--pink); } }

/* Effects: a "hup" per pull, confetti on the way out. */
.fade__fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.hup {
  position: absolute; translate: -50% 0;
  font: 1rem/1 var(--display); text-transform: uppercase; color: var(--yellow);
  text-shadow: 1.5px 1.5px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
  animation: hup 0.55s ease-out forwards;
}
@keyframes hup { from { opacity: 1; transform: translateY(0) scale(0.7) rotate(var(--r, 0deg)); } to { opacity: 0; transform: translateY(-34px) scale(1.15) rotate(var(--r, 0deg)); } }
.bit {
  position: absolute; left: 50%; top: 34px; width: 9px; height: 13px; border: 2px solid var(--ink); border-radius: 3px;
  animation: bit 1.1s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes bit {
  from { transform: translate(-50%, 0) rotate(0deg); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
.fade__meter {
  position: absolute; right: 12px; top: 54px; bottom: 62px; width: 16px;
  background: var(--ink); border: 3px solid var(--ink); border-radius: 10px; overflow: hidden;
}
.fade__meter span {
  position: absolute; inset: auto 0 0; height: calc(var(--colour, 1) * 100%);
  background: linear-gradient(var(--yellow), var(--pink));
  border-radius: 6px;
}
.fade__meter-label { position: absolute; z-index: 5; right: 4px; bottom: 42px; font: 900 italic 0.8rem/1 var(--label); text-transform: uppercase; }
.fade__lava { position: absolute; inset: auto -10% 0; height: 34px; background: radial-gradient(circle at 10% 0, #ffd21f 0 10px, transparent 11px) 0 0 / 46px 34px, linear-gradient(#ff7a1a, #e2341f); animation: lava 2s linear infinite; }
@keyframes lava { to { background-position: 46px 0, 0 0; } }

@media (max-width: 860px) {
  .fade__card { grid-template-columns: 1fr; transform: none; box-shadow: 0 0 0 5px var(--yellow), 8px 10px 0 5px var(--ink); }
  .fade__pit { height: 340px; }
}
@keyframes flip { 0% { transform: rotateX(90deg) scale(0.8); } }

/* ---------- Fighters ---------- */
.last__fighters { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.last__fighters img { position: absolute; width: clamp(220px, 30vw, 420px); opacity: 0.9; }
.last__fighters img:first-child { left: -4%; bottom: 6%; rotate: -8deg; animation: tussle 1.6s ease-in-out infinite; }
.last__fighters img:last-child { right: -4%; bottom: 6%; rotate: 8deg; animation: tussle 1.6s 0.8s ease-in-out infinite; }
@keyframes tussle { 50% { translate: 8px -4px; scale: 1.03; } }

/* ---------- Comic pops on click ---------- */

.pops { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.pop {
  position: absolute; translate: -50% -50%;
  font: clamp(1.6rem, 2vw + 1rem, 2.6rem)/1 var(--display); text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  padding: 18px 20px 12px; border: 4px solid var(--ink);
  clip-path: polygon(50% 0, 61% 18%, 82% 6%, 80% 30%, 100% 34%, 86% 52%, 100% 70%, 78% 72%, 82% 96%, 60% 82%, 50% 100%, 40% 82%, 18% 96%, 22% 72%, 0 70%, 14% 52%, 0 34%, 20% 30%, 18% 6%, 39% 18%);
  padding: 30px 34px 24px;
  animation: pop 0.7s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.pop:nth-child(3n) { background: var(--pink); color: var(--cream); }
.pop:nth-child(3n+1) { background: var(--cyan); }
@keyframes pop {
  0% { scale: 0.2; rotate: -20deg; opacity: 1; }
  45% { scale: 1.1; rotate: 6deg; opacity: 1; }
  100% { scale: 0.9; rotate: 0deg; opacity: 0; translate: -50% -110%; }
}

/* ---------- Launch: PLAY NOW wipes to the game's loading backdrop ---------- */
/* Same stage as the WebGL template: a 16:9 frame letterboxed on ink, plum radial, pink rays, yellow halftone.
   --x and --y are where the click landed; the wipe grows from there. */

.launch {
  --x: 50%; --y: 50%;
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  visibility: hidden; pointer-events: none;
  clip-path: circle(0 at var(--x) var(--y));
}
.launch.is-on { visibility: visible; pointer-events: auto; clip-path: circle(150vmax at var(--x) var(--y)); transition: clip-path 0.5s cubic-bezier(.55, 0, .35, 1); }
.launch__frame {
  position: relative; overflow: hidden; container-type: size;
  width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16));
  background: var(--plum);
}
.launch__load {
  --u: max(1cqh, 2.4px);
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse 60% 55% at 50% 46%, #3d0f57 0%, var(--plum) 62%, #19052a 100%);
}
.launch__load::before {
  content: ""; position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 22, 116, 0.07) 0deg 9deg, transparent 9deg 18deg);
  animation: launch-spin 60s linear infinite;
}
.launch__load::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 223, 40, 0.10) 1.2px, transparent 1.4px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 48%, transparent 30%, #000 100%);
          mask-image: radial-gradient(ellipse 70% 65% at 50% 48%, transparent 30%, #000 100%);
}
.launch__go {
  position: relative; z-index: 1; opacity: 0;
  font: calc(9 * var(--u)) / 1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--yellow);
  text-shadow: calc(0.5 * var(--u)) calc(0.6 * var(--u)) 0 var(--ink), calc(-0.3 * var(--u)) calc(-0.3 * var(--u)) 0 var(--ink),
               calc(0.3 * var(--u)) calc(-0.3 * var(--u)) 0 var(--ink), calc(-0.3 * var(--u)) calc(0.3 * var(--u)) 0 var(--ink),
               calc(1.1 * var(--u)) calc(1.3 * var(--u)) 0 var(--pink);
  transform: rotate(-3deg);
}
/* Pops in as the wipe lands, then shrinks away so the loader's own logo and bar pop in on an empty stage. */
.launch.is-on .launch__go { animation: launch-go 0.62s cubic-bezier(.2, 1.6, .4, 1) 0.18s both; }
@keyframes launch-spin { to { transform: rotate(360deg); } }
@keyframes launch-go {
  0% { opacity: 0; transform: rotate(-12deg) scale(0.3); }
  45% { opacity: 1; transform: rotate(-3deg) scale(1.08); }
  70% { opacity: 1; transform: rotate(-3deg) scale(1); }
  100% { opacity: 0; transform: rotate(-3deg) scale(0.6); }
}

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; translate: 0 40px; scale: 0.94; transition: opacity 0.5s, translate 0.6s cubic-bezier(.2, 1.5, .4, 1), scale 0.6s cubic-bezier(.2, 1.5, .4, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .goob::before, .goob i { animation: none !important; }
  .ticker__track { animation: none; }
  .js .reveal { opacity: 1; translate: 0 0; scale: 1; }
}

/* =====================================================================
   Deck: the page is a slideshow. One idea per full-screen slide, big
   visuals, few words. Scroll, swipe, arrow keys or the dots move slides.
   ===================================================================== */

html { scroll-snap-type: y mandatory; }
@media (max-width: 760px), (max-height: 560px) { html { scroll-snap-type: y proximity; } }

.slide {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; align-content: center;
  gap: clamp(18px, 3.5vh, 44px);
  padding: 84px var(--gutter) 70px;
  background: var(--ink);
}
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dots); opacity: 0.55; pointer-events: none; }
.slide--title::before, .slide--shot::before { display: none; }

/* Words: one huge tilted line per slide. */
.big {
  font: clamp(2.8rem, 7.6vw, 8.4rem)/0.9 var(--display);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--cream);
  text-shadow: 0 0.06em 0 var(--ink), 0.05em 0.11em 0 var(--pink);
  transform: rotate(-3deg);
}
.big { text-wrap: balance; }
.big em { font-style: normal; color: var(--yellow); }
.big--center { text-align: center; }
.big--xl { font-size: clamp(3.2rem, 9.5vw, 10rem); }
.line { font: 900 italic clamp(1.25rem, 1.6vw + 0.6rem, 2rem)/1.1 var(--label); text-transform: uppercase; color: var(--cream); transform: rotate(-3deg); }
.line--center { text-align: center; }

/* Slide 1: title. */
.slide--title { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; place-items: center stretch; }
.slide--title .hero__copy { gap: clamp(20px, 3.5vh, 40px); }
.next {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 3;
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: var(--yellow); border: 4px solid var(--ink); border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink);
}
.next svg { width: 26px; animation: bounce-down 1.4s ease-in-out infinite; }

/* Full-bleed capture slides. */
.slide__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.slide--under .slide__bg { object-position: 50% 50%; }
.slide__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(16, 6, 41, 0.75), transparent 16%), linear-gradient(10deg, rgba(16, 6, 41, 0.92) 0%, rgba(16, 6, 41, 0.35) 42%, transparent 70%); }
.slide--under .slide__shade { background: linear-gradient(rgba(16, 6, 41, 0.75), transparent 16%), linear-gradient(10deg, rgba(16, 6, 41, 0.92) 0%, rgba(16, 6, 41, 0.35) 42%, transparent 70%); }
.say { position: absolute; z-index: 2; display: grid; justify-items: start; }
.say--bl { left: var(--gutter); bottom: clamp(40px, 8vh, 90px); }
.say--br { right: var(--gutter); bottom: clamp(40px, 8vh, 90px); justify-items: end; text-align: right; }
.burst-word {
  position: absolute; z-index: 2;
  font: clamp(1.8rem, 3.4vw, 3.6rem)/1 var(--display); text-transform: uppercase;
  color: var(--ink); background: var(--yellow); border: 5px solid var(--ink);
  padding: 0.55em 0.7em 0.4em;
  clip-path: polygon(50% 0, 61% 18%, 82% 6%, 80% 30%, 100% 34%, 86% 52%, 100% 70%, 78% 72%, 82% 96%, 60% 82%, 50% 100%, 40% 82%, 18% 96%, 22% 72%, 0 70%, 14% 52%, 0 34%, 20% 30%, 18% 6%, 39% 18%);
  padding: 1.1em 1.2em 0.9em;
}
.burst-word--a { right: 8%; top: 18%; rotate: 12deg; }
.burst-word--b { right: 6%; bottom: 12%; rotate: -10deg; background: var(--pink); color: var(--cream); }

/* Slide 4: a Goob tumbles through the Underworld. */
.drop { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drop .fallgoob {
  --s: clamp(110px, 16vw, 200px);
  position: absolute; left: 34%; top: 0;
  filter: var(--ink-line) drop-shadow(0 10px 8px rgba(255, 122, 26, 0.6));
  animation: flail 0.8s steps(8) infinite alternate, tumble-down 3.2s cubic-bezier(.45, 0, .8, .6) infinite;
}
@keyframes tumble-down {
  0% { transform: translateY(-110%) rotate(-14deg); }
  50% { transform: translateY(35svh) rotate(12deg); }
  100% { transform: translateY(105svh) rotate(-10deg); }
}

/* Slide 5: the playable climb. */
.slide--climb { padding-top: 84px; }
.climb { width: min(100%, 1180px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px); gap: clamp(24px, 5vw, 72px); align-items: center; }
.climb__say { display: grid; gap: clamp(12px, 2.4vh, 22px); justify-items: start; }
.slide--climb .btn--climb { font-size: clamp(1.6rem, 1.6vw + 0.8rem, 2.4rem); }
.slide--climb .fade__status { font-size: clamp(1.1rem, 0.8vw + 0.7rem, 1.5rem); }
.slide--climb .fade__pit { height: clamp(340px, 76svh, 680px); box-shadow: 0 0 0 5px var(--yellow), 12px 14px 0 5px var(--ink); transform: rotate(1deg); }

/* Slide 6: six Goobs. */
.slide--win { background: radial-gradient(ellipse at 50% 100%, rgba(255, 22, 116, 0.35), transparent 65%), var(--ink); }
.six { display: flex; justify-content: center; flex-wrap: nowrap; }
.six .goob { --s: clamp(46px, 14vw, 180px); margin: 0 -0.6vw; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pills span {
  font: 900 italic clamp(1.1rem, 1.4vw + 0.5rem, 1.8rem)/1 var(--label); text-transform: uppercase;
  padding: 0.45em 0.8em 0.35em; color: var(--ink); background: var(--cream);
  border: 4px solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
}
.pills span:nth-child(2) { background: var(--yellow); transform: rotate(-3deg); }
.pills span:nth-child(3) { background: var(--cyan); transform: rotate(2deg); }

/* Slide 10: play. */
.slide--play { background: radial-gradient(ellipse at 50% 110%, rgba(255, 22, 116, 0.55), transparent 60%), var(--ink); }
.credits { max-width: 62ch; text-align: center; font-size: 0.82rem; line-height: 1.5; opacity: 0.72; }

/* Top bar: logo, slide counter, Play. */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(rgba(16, 6, 41, 0.75), transparent); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__home img { width: 82px; transform: rotate(-6deg); }

/* Dots, right edge. */
.dots { position: fixed; right: max(12px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; z-index: 50; display: grid; gap: 10px; }
.dots button { width: 14px; height: 14px; padding: 0; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); cursor: pointer; box-shadow: 0 2px 0 var(--ink); transition: height 0.25s cubic-bezier(.3, 1.8, .5, 1), background 0.2s; }
.dots button[aria-current="true"] { height: 34px; background: var(--yellow); box-shadow: 0 0 0 3px var(--pink), 0 2px 0 3px var(--ink); }
.dots button:hover { background: var(--yellow); }
.slide.is-in .big { animation: slam 0.55s cubic-bezier(.2, 1.6, .4, 1) both; }
.slide.is-in .burst-word { animation: pop-in 0.5s cubic-bezier(.2, 1.7, .5, 1) 0.3s both; }
@keyframes slam { from { opacity: 0; transform: rotate(-12deg) scale(1.7); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

@media (max-width: 860px) {
  .slide { padding: 76px 18px 64px; }
  .slide--title { grid-template-columns: 1fr; align-content: start; padding-top: 80px; }
  .slide--title .hero__copy { display: contents; }
  .slide--title .hero__logo { order: 0; }
  .slide--title .hero__tag { order: 1; }
  .slide--title .btn--play { order: 2; justify-self: stretch; justify-content: center; }
  .slide--title .hero__art { order: 3; }
  .climb { grid-template-columns: 1fr; }
  .slide--climb .fade__pit { height: clamp(300px, 46svh, 420px); }
  .dots { right: 6px; gap: 7px; }
  .dots button { width: 11px; height: 11px; border-width: 2px; }
  .dots button[aria-current="true"] { height: 24px; }
  .bar__home img { width: 64px; }
}
@media (max-width: 420px) { }

@keyframes hop { 50% { transform: translateY(-8px); } }

/* Narrow screens: the climb slide is one tight screen. Title, the game filling the height, then Start.
   The dots go; the counter in the top bar already says where you are. */
@media (max-width: 860px) {
  .dots { display: none; }
  /* A compact game card, not a stretched wall: capped width, height fitted to the screen, Start always on screen. */
  .slide--climb { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 22px; gap: 0; }
  .slide--climb .climb { width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 18px); }
  .slide--climb .climb__say { display: contents; }
  .slide--climb .line { order: 1; margin-top: -4px; font-size: clamp(1rem, 4vw, 1.3rem); text-align: center; }
  .slide--climb .big { order: 1; font-size: clamp(2.2rem, 9vw, 3.6rem); text-align: center; }
  .slide--climb .fade__pit {
    --climber-h: clamp(120px, 24svh, 170px);
    order: 2; flex: none; transform: rotate(1deg); margin: 0;
    width: min(100%, 400px, calc((100svh - 250px) * 0.78));
    height: clamp(280px, calc(100svh - 250px), 540px);
    box-shadow: 0 0 0 4px var(--yellow), 8px 10px 0 4px var(--ink);
  }
  .slide--climb .fade__buttons { order: 3; margin: 4px 0 0; display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 14px; width: min(100%, 420px); }
  .slide--climb .btn--climb { font-size: clamp(1.5rem, 5vw, 2rem); min-width: 6.5em; flex: none; }
  .slide--climb .fade__readout { min-width: 0; }
  .slide--climb .fade__status { font-size: 1.05rem; }
}

/* Narrow or portrait screens: a wide game capture stretched to fill a tall slide gets blurry and cuts off
   the game's own text. There, the photo slides show the whole capture in a tilted frame under the title,
   like the hands slide, and the falling Goob sits out. */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .dots { display: none; }
  .slide--shot { align-content: center; gap: clamp(18px, 4vh, 36px); }
  .slide--shot .slide__shade, .slide--shot .drop { display: none; }
  .slide--shot .say { position: relative; inset: auto; order: 1; justify-items: center; text-align: center; }
  .slide--shot .slide__bg {
    position: relative; inset: auto; order: 2; z-index: 0;
    width: min(100%, 900px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%;
    border: 6px solid var(--cream); border-radius: 14px;
    box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px var(--pink);
    transform: rotate(1.5deg);
  }
  .slide--shot::before { display: block; }
  .slide--shot .burst-word { order: 3; position: relative; inset: auto; font-size: clamp(1.4rem, 6vw, 2.4rem); }
}

/* Phones: fill the height. Captures go 4:3 so they are bigger, the six Goobs sit three by two,
   the room-code steps stack, and the keys grow. */
@media (max-width: 560px) {
  .slide--shot .slide__bg, .frame img { aspect-ratio: 4 / 3; }
}

/* Narrow screens: titles scale with the width so they still dominate the slide. */
@media (max-width: 860px) {
  .big { font-size: clamp(2.8rem, 11vw, 5.4rem); }
  .big--xl { font-size: clamp(3rem, 12.5vw, 6rem); }
}

/* =====================================================================
   Six-slide deck (Fable's review): one cause-and-effect gag on the title,
   calmer idle motion, entrances that tell the story (knocked, dragged down,
   climb up), the fade shown on the win slide, one loud pink beat.
   ===================================================================== */

.js .slide:not(.is-in) .big, .js .slide:not(.is-in) .burst-word { opacity: 0; }
body[data-slide="0"] .bar__home { opacity: 0; visibility: hidden; pointer-events: none; }
.bar__home { transition: opacity 0.25s, visibility 0.25s; }
.bar .btn { margin-left: auto; }

/* Title: the Goob flies in, its kick lands, the logo is knocked into place, then the words, then PLAY NOW. */
.slide--title .hero__goob { animation: fly-in 0.35s cubic-bezier(.5, 0, .9, .6) both; }
@keyframes fly-in { from { transform: translateX(70%) rotate(12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.slide--title .hero__burst { animation: burst-flash 0.45s cubic-bezier(.2, 1.7, .5, 1) 0.33s both; }
@keyframes burst-flash { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.35) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(-4deg); opacity: 1; } }
.slide--title .hero__logo img { animation: logo-kicked 0.45s cubic-bezier(.2, 1.6, .4, 1) 0.35s both; }
@keyframes logo-kicked { from { transform: translateX(60px) rotate(8deg) scale(0.96); } to { transform: rotate(-4deg); } }
.slide--title.is-in { animation: shake 0.16s steps(3) 0.35s; }
@keyframes shake { 0% { translate: 6px -3px; } 33% { translate: -6px 3px; } 66% { translate: 4px 2px; } 100% { translate: 0 0; } }
.slide--title .hero__tag span:nth-child(1) { animation-delay: 0.8s; }
.slide--title .hero__tag span:nth-child(2) { animation-delay: 0.88s; }
.slide--title .hero__tag span:nth-child(3) { animation-delay: 0.96s; }
.slide--title .btn--play { animation: drop-in 0.45s cubic-bezier(.2, 1.5, .4, 1) 1.1s both, march 0.9s linear infinite, nudge6 6s 3s infinite; }
@keyframes drop-in { from { transform: translateY(-90px) rotate(-10deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
/* Idle: only the Goob's bob and the button's candy stripes keep moving; the button wiggles once every 6 s. */
.slide--play .btn--play { animation: march 0.9s linear infinite, nudge6 6s 2s infinite; margin-bottom: 18px; }
@keyframes nudge6 {
  0%, 88%, 100% { transform: rotate(-3deg) scale(1); }
  91% { transform: rotate(2deg) scale(1.08); }
  94% { transform: rotate(-4deg) scale(1.02); }
  97% { transform: rotate(1deg) scale(1.05); }
}
.hero__streak--a, .hero__streak--b { animation: none; }
.next svg { animation-iteration-count: 4; }

/* Each slide arrives its own way: knocked in, dropped down, climbing up. */
.slide--under.is-in .big { animation: drop-down 0.6s cubic-bezier(.5, 0, .7, 1) both; }
@keyframes drop-down {
  0% { opacity: 0; transform: translateY(-120%) rotate(-3deg); }
  70% { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1.06, 0.88); }
  85% { transform: translateY(-4%) rotate(-3deg) scale(0.98, 1.04); }
  100% { opacity: 1; transform: rotate(-3deg); }
}
.slide--climb.is-in .big { animation: rise-up 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rise-up { from { opacity: 0; transform: translateY(80px) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }

/* Captures: the headline sits on a solid ink band, not on the game's player cards. */
.slide__shade, .slide--under .slide__shade {
  background:
    linear-gradient(rgba(16, 6, 41, 0.7), transparent 14%),
    linear-gradient(to top, rgba(16, 6, 41, 0.96) 0%, rgba(16, 6, 41, 0.88) 24%, transparent 52%);
}
.slide--knock .slide__bg { object-position: 40% 50%; }
.burst-word--a { left: 37%; right: auto; top: 30%; rotate: -10deg; }

/* The hands as an inset panel over the Underworld. */
.inset {
  position: absolute; z-index: 1; margin: 0;
  right: calc(var(--gutter) + 40px); top: clamp(80px, 12vh, 120px);
  width: min(38vw, 560px);
  border: 6px solid var(--cream); border-radius: 14px;
  box-shadow: 0 0 0 4px var(--ink), 14px 14px 0 4px var(--pink);
  transform: rotate(2deg);
}
.inset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.inset .burst-word--b { position: absolute; left: -9%; bottom: -16%; right: auto; top: auto; rotate: -10deg; font-size: clamp(1.4rem, 2.2vw, 2.4rem); }
.slide.is-in .inset { animation: inset-in 0.5s cubic-bezier(.2, 1.5, .4, 1) 0.45s both; }
@keyframes inset-in { from { opacity: 0; transform: translateY(-40px) rotate(-6deg) scale(0.85); } to { opacity: 1; transform: rotate(2deg); } }

/* The falling Goob drops once each time you arrive, then a Splat. */
.drop .fallgoob { animation: none; opacity: 0; left: 26%; }
.slide--under.is-playing .drop .fallgoob { animation: flail 0.8s steps(8) infinite alternate, fall-once 1.3s cubic-bezier(.5, 0, .9, .5) 0.25s both; }
@keyframes fall-once {
  0% { opacity: 1; transform: translateY(-110%) rotate(-14deg); }
  85% { opacity: 1; transform: translateY(36svh) rotate(10deg); }
  100% { opacity: 0; transform: translateY(40svh) rotate(14deg) scale(0.8); }
}

/* Climb: lava glow, a candy Start, a target time. */
.slide--climb { background: radial-gradient(ellipse at 70% 115%, rgba(255, 122, 26, 0.5), transparent 60%), var(--ink); }
.climb { grid-template-columns: minmax(0, 1fr) minmax(300px, min(46vw, 560px)); }
.slide--climb .btn--climb {
  --bg: var(--yellow);
  background:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)) 0 0 / 100% 22% no-repeat,
    repeating-linear-gradient(-45deg, rgba(255, 128, 0, 0.26) 0 12px, transparent 12px 24px) 0 0 / 34px 100%,
    linear-gradient(var(--yellow) 55%, #ffb21c);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 4px var(--cream), 8px 10px 0 4px var(--pink);
  font-size: clamp(1.7rem, 1.6vw + 1rem, 2.4rem);
  animation: march 0.9s linear infinite;
  touch-action: manipulation;
}
.slide--climb .btn--climb.is-live { background: var(--pink); color: var(--cream); }
.slide--climb .line { color: var(--yellow); }

/* Last colour standing: one loud pink beat. Six Goobs stand on the ring; five fade and sink. */
.slide--win { background: var(--pink); }
.slide--win::before { background: radial-gradient(rgba(16, 6, 41, 0.2) 1.6px, transparent 2px) 0 0 / 12px 12px; opacity: 1; }
.slide--win .big { color: var(--yellow); text-shadow: 0 0.06em 0 var(--ink), 0.05em 0.11em 0 var(--ink); }
.slide--win .big em { color: var(--cream); }
.ring { position: relative; padding: 0 2% 16px; }
.ring::after {
  content: ""; position: absolute; z-index: 2; left: -3%; right: -3%; bottom: 0; height: 30px;
  background: var(--yellow); border: 6px solid var(--ink); border-radius: 50%;
  box-shadow: 0 8px 0 var(--ink);
}
.six { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; margin-bottom: -6px; }
.six .goob { --s: clamp(52px, 12.5vw, 180px); margin: 0 -0.5vw; animation: hop 1.1s ease-in-out infinite; transition: filter 0.45s, transform 0.45s, opacity 0.45s; }
.six .goob:nth-child(even) { animation-delay: -0.55s; }
.six .goob.is-faded { animation: none; filter: grayscale(1) brightness(0.7); transform: translateY(calc(var(--s) * 0.11)); opacity: 0.85; }
.six .goob.is-last { animation: hop 0.55s ease-in-out infinite; }
.pills span:nth-child(4) { background: var(--yellow); transform: rotate(-2deg); }

/* Play: the button, one line of keys, the team as five small Goobs, credits at the very bottom. */
.slide--play { gap: clamp(14px, 2.6vh, 30px); padding-bottom: 96px; }
.keyline { font: 900 italic clamp(1rem, 0.8vw + 0.7rem, 1.4rem)/1.2 var(--label); text-transform: uppercase; color: var(--yellow); text-align: center; letter-spacing: 0.03em; }
.heads { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1.6vw, 22px); }
.heads li { display: grid; justify-items: center; gap: 4px; }
.heads .goob { --s: clamp(54px, 5.5vw, 80px); }
.heads span:last-child { font: 1rem/1 var(--display); text-transform: uppercase; color: var(--tint); text-shadow: 1.5px 1.5px 0 var(--ink); }
.credits { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; width: min(92vw, 70ch); font: 900 italic 0.8rem/1.35 var(--label); opacity: 0.9; }
.last__fighters img { width: clamp(200px, 34vw, 520px); opacity: 1; }
.last__fighters img:first-child { left: -6%; bottom: -3%; }
.last__fighters img:last-child { right: -6%; bottom: -3%; top: auto; }

/* Narrow or portrait screens: captures stay framed (no blurry zoom), the hands panel overlaps the frame's corner. */
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .slide--shot .inset { position: relative; right: auto; top: auto; order: 3; width: min(72%, 420px); justify-self: end; margin-top: -12%; z-index: 2; }
  .slide--shot .inset .burst-word--b { position: absolute; order: 0; font-size: clamp(1.1rem, 4.5vw, 1.8rem); }
  .burst-word--a { left: auto; top: auto; }
  .slide--play { padding-bottom: 110px; }
  .last__fighters { display: none; }
}
@media (max-width: 560px) {
  .six .goob { --s: 16vw; margin: 0 -1.2vw; }
  .ring::after { height: 20px; border-width: 4px; }
  .pills { gap: 8px; }
  .heads .goob { --s: 15vw; }
}

/* Title fits one screen at every size: the logo and the kicking Goob are capped by the screen height. */
.slide--title .hero__logo { width: min(100%, 560px, 62vh); }
.slide--title .hero__goob img { max-height: 74svh; width: auto; max-width: 100%; margin-left: auto; }
@media (max-width: 860px) {
  .slide--title { height: 100svh; min-height: 0; overflow: hidden; align-content: center; gap: clamp(8px, 2vh, 18px); padding-top: 64px; padding-bottom: 72px; }
  .slide--title .hero__logo { width: min(80%, 420px, 36svh); }
  .slide--title .hero__tag { font-size: clamp(1.1rem, 4.4vw, 1.6rem); }
  .slide--title .hero__goob img { max-height: 30svh; margin: 0 auto; }
  .slide--title .hero__art { margin: 0; width: 100%; justify-self: center; }
}
