/* Jumpy Unit: shared styles, studio pages and the home page.
   Game pages load this first, then their own sheet (crooked.css / ominous.css), which re-themes the top bar. */

:root {
  --plum: #3d1240;
  --plum-2: #4b1a50;
  --plum-3: #2c0b2f;
  --plum-ink: #1b0620;
  --yolk: #fad027;
  --yolk-2: #ffe27a;
  --cream: #fff1d6;
  --lilac: #cfb6d1;

  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Recursive", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* the page's own colours; game sheets override these */
  --bg: var(--plum);
  --fg: var(--cream);
  --accent: var(--yolk);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.6 var(--body);
  font-variation-settings: "CASL" 0, "MONO" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* paper grain over everything, so flat colour never looks flat */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: var(--grain); opacity: .07; mix-blend-mode: overlay;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, .world__hook, .ct-hero__hook, .om-hero__line { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--yolk); color: var(--plum-ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yolk); color: var(--plum-ink); padding: 10px 16px; border-radius: 99px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
  font: 500 13px/1.3 var(--body); font-variation-settings: "MONO" 1, "CASL" 0;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

/* ---------- buttons: pills, like the dashes in the logo ---------- */
.btn {
  --btn-bg: var(--yolk); --btn-fg: var(--plum-ink);
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.35em; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 18px/1 var(--display); letter-spacing: .01em; text-decoration: none;
  transition: translate .25s var(--bounce), background .2s;
}
.btn::before, .btn::after { /* speed lines that trail behind on hover */
  content: ""; position: absolute; top: 50%; height: 8px; border-radius: 99px; background: var(--btn-bg);
  translate: 0 -50%; opacity: 0; transition: opacity .2s, translate .3s var(--ease);
}
.btn::before { right: calc(100% + 6px); width: 18px; margin-top: -7px; }
.btn::after { right: calc(100% + 6px); width: 8px; margin-top: 7px; }
.btn:hover { translate: 6px 0; }
.btn:hover::before { opacity: 1; translate: -2px -50%; }
.btn:hover::after { opacity: 1; translate: -12px -50%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost::before, .btn--ghost::after { background: currentColor; }
.btn svg { width: 1.1em; height: 1.1em; }

.link { font: 600 17px/1 var(--display); color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.link:hover { color: var(--accent); }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--yolk); }
.bar__brand .rabbit { width: 62px; }
.bar__brand span { font: 600 19px/1 var(--display); letter-spacing: .02em; color: var(--fg); }
.bar__nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bar__nav a {
  padding: 9px 15px; border-radius: 99px; text-decoration: none;
  font: 500 16px/1 var(--display); color: var(--fg); transition: background .2s, color .2s;
}
.bar__nav a:hover, .bar__nav a[aria-current] { background: var(--accent); color: var(--plum-ink); }
@media (max-width: 640px) {
  .bar { padding-top: 12px; }
  .bar__brand span { display: none; }
  .bar__brand .rabbit { width: 52px; }
  .bar__nav a { padding: 8px 10px; font-size: 15px; }
}

/* ---------- the rabbit (inline SVG, every dash its own element) ---------- */
.rabbit { overflow: visible; fill: currentColor; }
.rabbit .dash, .rabbit .dot {
  transform-box: fill-box; transform-origin: 100% 50%;
  scale: calc(1 + var(--speed, 0) * var(--k, 1)) 1;
  transition: scale .3s var(--ease);
}
.rabbit .lid { transform-box: fill-box; transform-origin: 50% 50%; scale: 1 0; animation: blink 6s infinite 2s; }
@keyframes blink { 0%, 94%, 100% { scale: 1 0; } 96.5% { scale: 1 1; } }

.rabbit--full .dash, .rabbit--full .dot { animation: dash-in .8s var(--ease) both; animation-delay: calc(.25s + var(--i) * 55ms); }
.rabbit--full .head { animation: head-in .9s var(--bounce) both .15s; }
.rabbit--full .word > * { animation: word-in .6s var(--bounce) both; }
.rabbit--full .word > :nth-child(1) { animation-delay: .7s; }
.rabbit--full .word > :nth-child(2) { animation-delay: .75s; }
.rabbit--full .word > :nth-child(3) { animation-delay: .8s; }
.rabbit--full .word > :nth-child(4) { animation-delay: .85s; }
.rabbit--full .word > :nth-child(5) { animation-delay: .9s; }
.rabbit--full .word > :nth-child(6), .rabbit--full .word > :nth-child(7) { animation-delay: .95s; }
.rabbit--full .word > :nth-child(n+8) { animation-delay: 1s; }
.rabbit--full .word .dash { animation: dash-in .7s var(--ease) both 1.05s; }
@keyframes dash-in { from { translate: -160px 0; opacity: 0; } }
@keyframes head-in { from { translate: -260px 0; opacity: 0; } 50% { opacity: 1; } }
@keyframes word-in { from { translate: 0 40px; opacity: 0; } }

.hop .mark { animation: hop .7s var(--bounce); }
@keyframes hop { 0% { translate: 0 0; } 30% { translate: 22px -60px; } 65% { translate: 6px 6px; } 100% { translate: 0 0; } }

/* ---------- intro ---------- */
.intro {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  max-width: var(--wide); margin: 0 auto; min-height: min(100svh, 940px);
  padding: 130px var(--gutter) 72px;
}
.intro h1 { margin-top: 18px; font: 700 clamp(44px, 6vw, 98px)/.95 var(--display); letter-spacing: -.02em; text-wrap: nowrap; }
.intro h1 em { white-space: nowrap; }
.intro h1 em { display: block; font-style: normal; color: var(--yolk); }
.intro__body { margin-top: 26px; max-width: 34em; color: var(--lilac); font-size: clamp(17px, 1.35vw, 19px); }
.intro__links { display: flex; align-items: center; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.intro__rabbit { position: relative; color: var(--yolk); }
.rabbit-btn { display: block; width: 100%; max-width: 540px; margin-left: auto; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; min-height: 0; padding-top: 110px; gap: 8px; }
  .intro__rabbit { order: -1; width: min(72vw, 330px); margin: 0 auto 10px; }
}

/* ---------- morse line (built by site.js) ---------- */
.morse { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 9px; padding: 0 var(--gutter); color: var(--yolk); }
.morse i { display: block; height: 12px; width: 12px; border-radius: 99px; background: currentColor; }
.morse i.m-dash { width: 34px; }
.morse b { width: 22px; }

/* ---------- games ---------- */
.games { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.games__head { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; max-width: var(--wide); margin: 0 auto 36px; padding: 0 var(--gutter); }
.games__head { flex-direction: column; align-items: flex-start; }
.games__head h2 { font: 700 clamp(40px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.015em; }
.games__sub { font: 500 clamp(19px, 1.8vw, 26px)/1.2 var(--display); color: var(--yolk); }

.world {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: clamp(560px, 86vh, 860px);
  margin-inline: max(var(--gutter), calc((100% - var(--wide)) / 2));
  border-radius: clamp(20px, 2.4vw, 36px);
  background: #000;
}
.world + .world { margin-top: clamp(20px, 3vw, 40px); }
.world__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.world__body { position: relative; max-width: 640px; padding: clamp(26px, 5vw, 72px); }
.world__title img { width: min(420px, 78vw); height: auto; }
.world__hook { margin-top: 22px; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; }
.world__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.world__tags li { padding: 6px 12px; border-radius: 99px; font: 500 12.5px/1.3 var(--body); font-variation-settings: "MONO" 1; letter-spacing: .08em; text-transform: uppercase; }
.world__links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; }

.stamp {
  display: inline-block; padding: 7px 14px 6px; border: 2.5px solid currentColor; border-radius: 6px;
  font: 600 14px/1 var(--body); font-variation-settings: "MONO" 1; letter-spacing: .16em; text-transform: uppercase;
  rotate: -4deg; margin-bottom: 26px;
}
[data-in] .stamp, .stamp[data-in] { scale: 1.8; opacity: 0; transition: scale .35s cubic-bezier(.5, 0, .75, 0), opacity .2s; }
.is-in .stamp, .stamp.is-in { scale: 1; opacity: 1; }

/* The Crooked Table panel */
.world--ct { background: #1a0e08; font-family: "Alegreya", Georgia, serif; }
.world--ct::before { /* warm light from the candles, darker behind the text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(255, 170, 70, .16), transparent 70%),
    linear-gradient(90deg, rgba(20, 10, 5, .94) 0%, rgba(20, 10, 5, .75) 38%, rgba(20, 10, 5, .1) 70%),
    linear-gradient(0deg, rgba(20, 10, 5, .85), transparent 45%);
}
.world--ct::after { /* thin gilt border, like the card frames */
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(227, 177, 92, .45); border-radius: clamp(12px, 1.8vw, 26px); pointer-events: none;
}
.world--ct .stamp { color: #e9b45a; }
.world--ct .world__hook { color: #f3e3c4; font-style: italic; }
.world--ct .world__tags li { color: #f0d8a8; background: rgba(233, 180, 90, .12); box-shadow: inset 0 0 0 1px rgba(233, 180, 90, .35); }
.world--ct .btn { --btn-bg: #e9b45a; --btn-fg: #22130a; }
.world--ct .link { color: #f3e3c4; text-decoration-color: #e9b45a; }
.world--ct .link:hover { color: #e9b45a; }

.fan { position: absolute; right: clamp(-40px, 2vw, 40px); bottom: clamp(-150px, -9vw, -60px); width: clamp(240px, 30vw, 430px); aspect-ratio: 1; pointer-events: none; }
.pcard { position: absolute; left: 30%; bottom: 0; width: 46%; transform-origin: 50% 110%; rotate: var(--r); translate: 0 0; transition: rotate .5s var(--bounce), translate .5s var(--bounce); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.pcard img { width: 100%; }
.pcard__val { position: absolute; left: 0; right: 0; top: 64%; text-align: center; font: 700 clamp(18px, 2.2vw, 30px)/1 "Alegreya", Georgia, serif; color: #2b1a10; }
.pcard:nth-child(1) { --r: -24deg; }
.pcard:nth-child(2) { --r: -6deg; }
.pcard:nth-child(3) { --r: 13deg; }
.world--ct:hover .pcard:nth-child(1), .world--ct:focus-within .pcard:nth-child(1) { --r: -34deg; translate: -6% -4%; }
.world--ct:hover .pcard:nth-child(2), .world--ct:focus-within .pcard:nth-child(2) { --r: -8deg; translate: 0 -10%; }
.world--ct:hover .pcard:nth-child(3), .world--ct:focus-within .pcard:nth-child(3) { --r: 22deg; translate: 6% -4%; }
@media (max-width: 760px) {
  .world--ct::before { background: linear-gradient(0deg, rgba(20, 10, 5, .96) 30%, rgba(20, 10, 5, .55) 65%, rgba(20, 10, 5, .2)); }
  .world { min-height: 0; }
  .world--ct { padding-top: min(74vw, 400px); }
  .fan { top: 5%; bottom: auto; right: 50%; translate: 50% 0; width: min(64vw, 340px); }
}


/* Ominous panel */
.world--om { font-family: "IM Fell English", Georgia, serif; color: #ece6dc; }
.world--om .stamp { color: #ff4a3d; }
.world--om .world__title img { width: min(400px, 74vw); }
.world--om .world__hook { color: #d9d2c6; font-style: italic; }
.world--om .world__tags li { color: #e8dfd2; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.world--om .btn { --btn-bg: #e9e2d6; --btn-fg: #0a0607; }
.world--om .link { color: #ece6dc; text-decoration-color: #ff4a3d; }
.world--om .link:hover { color: #ff4a3d; }
.world--om .world__body::before { content: ""; position: absolute; inset: -30% -60% -10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, .78), transparent); pointer-events: none; }
.world--om .hall__hint { position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px); }
@media (max-width: 760px) {
  .world--om { padding-top: 44vh; }
  .world--om .hall__hint { top: 22px; bottom: auto; }
}

/* ---------- the hallway: dark, a flashlight, and something waiting (home panel + Ominous hero) ---------- */
.hall { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; cursor: none; }
.hall__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .08s; }
.hall__img--dim { filter: brightness(.2) saturate(.55) contrast(1.15); }
.hall__img--lit {
  -webkit-mask-image: radial-gradient(circle var(--beam, 210px) at var(--fx, 50%) var(--fy, 50%), #000 0%, rgba(0, 0, 0, .92) 38%, rgba(0, 0, 0, .45) 68%, transparent 100%);
          mask-image: radial-gradient(circle var(--beam, 210px) at var(--fx, 50%) var(--fy, 50%), #000 0%, rgba(0, 0, 0, .92) 38%, rgba(0, 0, 0, .45) 68%, transparent 100%);
  filter: brightness(2.1) contrast(1.06) saturate(1.1);
}
.hall__glow { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity .08s;
  background: radial-gradient(circle calc(var(--beam, 210px) * .85) at var(--fx, 50%) var(--fy, 50%), rgba(255, 228, 176, .2), rgba(255, 228, 176, .07) 55%, transparent 78%); }
.hall.is-out .hall__glow { opacity: 0; }
.hall__img[hidden] { display: block; opacity: 0; }
.hall.is-out .hall__img { opacity: 0; }
.hall::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .14; mix-blend-mode: screen; animation: grain .6s steps(3) infinite; pointer-events: none; }
@keyframes grain { 33% { background-position: 40px 70px; } 66% { background-position: -60px 20px; } }
.hall__hint { font: 400 14px/1 "Special Elite", "Courier New", monospace; letter-spacing: .12em; text-transform: lowercase; color: rgba(236, 230, 220, .55); pointer-events: none; }
.world--om .world__body { cursor: auto; }
.world--om .world__body a { cursor: pointer; }
@media (hover: none) { .hall { cursor: auto; } }

/* ---------- studio ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center;
  max-width: var(--wide); margin: 0 auto; padding: clamp(70px, 10vw, 150px) var(--gutter);
}
.about h2 { font: 700 clamp(40px, 5.2vw, 74px)/.98 var(--display); letter-spacing: -.015em; margin-bottom: 28px; }
.about h2 em { font-style: normal; color: var(--yolk); }
.about p + p { margin-top: 16px; }
.about p { color: var(--lilac); max-width: 34em; }
.about p a { color: var(--cream); text-decoration-color: var(--yolk); text-underline-offset: 4px; }
.follow { margin-top: 34px; padding-top: 22px; border-top: 2px dashed rgba(250, 208, 39, .35); }
.follow ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.follow a { display: inline-block; padding: 8px 15px; border-radius: 99px; box-shadow: inset 0 0 0 2px rgba(250, 208, 39, .55); font: 500 15px/1 var(--display); text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; }
.follow a:hover { background: var(--yolk); color: var(--plum-ink); box-shadow: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px dashed rgba(250, 208, 39, .35); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 2px dashed rgba(250, 208, 39, .35); }
.facts dt { font: 500 12px/1.2 var(--body); font-variation-settings: "MONO" 1; letter-spacing: .14em; text-transform: uppercase; color: var(--yolk); }
.facts dd { margin-top: 6px; font: 600 21px/1.2 var(--display); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }


/* ---------- press strip ---------- */
.press-strip { background: var(--plum-3); padding: clamp(70px, 9vw, 130px) var(--gutter); }
.press-strip__in { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.press-strip h2 { font: 700 clamp(34px, 4vw, 56px)/1.02 var(--display); letter-spacing: -.01em; }
.press-strip p { margin-top: 20px; color: var(--lilac); max-width: 32em; }
.press-strip p a { color: var(--yolk); }
.kits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 22px; }
.kit {
  --tab: var(--yolk); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 230px;
  padding: 22px 20px 20px; border-radius: 4px 18px 18px 18px; background: var(--tab); color: var(--plum-ink); text-decoration: none;
  transition: translate .3s var(--bounce), rotate .3s var(--bounce);
}
.kit::before { /* folder tab */
  content: ""; position: absolute; left: 0; bottom: 100%; width: 46%; height: 20px; background: inherit; border-radius: 10px 14px 0 0;
}
.kit:hover { translate: 0 -8px; rotate: -1.5deg; }
.kit img { height: 74px; width: auto; align-self: flex-start; }
.kit--om img { height: 104px; margin: -4px 0 -26px -6px; } /* the full logo has drips below the ring, so it gets a little more room */
.kit b { display: block; font: 600 22px/1.1 var(--display); }
.kit span { display: block; margin-top: 6px; font: 500 12px/1.3 var(--body); font-variation-settings: "MONO" 1; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.kit--ct { background: #e9b45a; }
.kit--om { background: #0c0809; color: #ece6dc; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.kit--om::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.kit .rabbit { width: 110px; color: var(--plum); align-self: flex-start; }
@media (max-width: 960px) { .press-strip__in { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .kits { grid-template-columns: 1fr; gap: 40px; } .kit { min-height: 0; flex-direction: row; align-items: center; } .kit img, .kit .rabbit { order: 2; height: 56px; width: auto; align-self: center; } .kit--om img { height: 76px; margin: -8px 0; } }

/* ---------- footer (the studio, on every page) ---------- */
.foot { position: relative; background: var(--plum); color: var(--cream); padding: 0 0 26px; font: 400 17px/1.6 var(--body); }
.foot ::selection { background: var(--yolk); color: var(--plum-ink); }
.foot .morse { padding-top: 0; translate: 0 -50%; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); max-width: var(--wide); margin: 0 auto; padding: clamp(50px, 7vw, 100px) var(--gutter) clamp(50px, 6vw, 80px); }
.foot__mail { display: inline-block; margin-top: 14px; font: 700 clamp(26px, 3.5vw, 54px)/1.05 var(--display); letter-spacing: -.015em; color: var(--yolk); text-decoration: none; overflow-wrap: anywhere; }
.foot__mail:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.foot__hello p:last-child { margin-top: 18px; color: var(--lilac); max-width: 30em; }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot .foot__cols h2 { font: 500 12px/1.3 var(--body); font-variation-settings: "MONO" 1; letter-spacing: .14em; text-transform: uppercase; color: var(--yolk); margin-bottom: 14px; }
.foot__cols li + li { margin-top: 8px; }
.foot__cols a { text-decoration: none; font: 500 17px/1.3 var(--display); }
.foot__cols a:hover { color: var(--yolk); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--wide); margin: 0 auto; padding: 22px var(--gutter) 0; border-top: 2px dashed rgba(250, 208, 39, .3); font-size: 14px; color: var(--lilac); }
.foot__base .rabbit { width: 54px; color: var(--yolk); }
.foot__base a { color: var(--cream); }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- screenshot galleries + lightbox (game pages) ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.shots a { display: block; overflow: hidden; border-radius: 8px; background: #000; }
.shots a:first-child { grid-column: span 2; grid-row: span 2; }
.shots img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: scale .6s var(--ease), filter .3s; }
.shots a:hover img { scale: 1.04; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } .shots a:first-child { grid-row: auto; } }

.lightbox { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 2, 6, .94); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(94vw, 1800px); max-height: 84vh; width: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox p { margin-top: 14px; text-align: center; font: 500 14px/1.4 var(--body); opacity: .75; }
.lightbox figure { display: grid; justify-items: center; padding: 0 64px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox [data-close] { top: 16px; right: 16px; }
.lightbox [data-prev] { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox [data-next] { right: 12px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lightbox figure { padding: 0 8px; } .lightbox [data-prev], .lightbox [data-next] { top: auto; bottom: 18px; translate: none; } }

/* ---------- "also from Jumpy Unit" pill at the end of a game page ---------- */
.also { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 50px var(--gutter) 110px; }
.also a { display: flex; align-items: center; gap: 20px; padding: 12px 28px 12px 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); text-decoration: none; transition: background .2s, translate .3s var(--bounce); }
.also a:hover { background: rgba(255, 255, 255, .1); translate: 6px 0; }
.also img { width: 110px; height: 62px; object-fit: cover; border-radius: 99px; }
.also span { display: block; }
.also small { display: block; font: 500 12px/1.2 var(--body); font-variation-settings: "MONO" 1; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, var(--lilac)); }
.also b { font-size: 24px; font-weight: 400; }

/* ---------- press hub page ---------- */
.hub { max-width: var(--wide); margin: 0 auto; padding: 150px var(--gutter) clamp(70px, 9vw, 130px); }
.hub h1 { font: 700 clamp(48px, 7vw, 104px)/.92 var(--display); letter-spacing: -.02em; margin-top: 16px; }
.hub__lede { margin-top: 24px; max-width: 36em; color: var(--lilac); font-size: clamp(18px, 1.5vw, 21px); }
.hub .kits { margin-top: 64px; }
.hub__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 80px); margin-top: clamp(60px, 8vw, 110px); }
.hub h2 { font: 700 clamp(28px, 3vw, 40px)/1.05 var(--display); margin-bottom: 18px; }
.hub p { color: var(--lilac); }
.hub p + p { margin-top: 14px; }
.copybox { position: relative; margin-top: 18px; padding: 20px 22px; border-radius: 14px; background: var(--plum-3); color: var(--cream) !important; }
.copybox button { margin-top: 14px; padding: 8px 14px; border-radius: 99px; border: 0; background: var(--yolk); color: var(--plum-ink); font: 600 14px/1 var(--display); cursor: pointer; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.logo-row a { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 16px; padding: 18px; text-decoration: none; }
.logo-row a:nth-child(1) { background: var(--plum-3); color: var(--yolk); }
.logo-row a:nth-child(2) { background: var(--yolk); color: var(--plum); }
.logo-row a:nth-child(3) { background: var(--cream); color: var(--plum); }
.logo-row svg, .logo-row img { width: 100%; height: auto; }
@media (max-width: 860px) { .hub__cols { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost .rabbit { width: min(340px, 70vw); margin: 0 auto 40px; color: var(--yolk); animation: run-off 2.4s var(--ease) infinite; }
@keyframes run-off { 0%, 30% { translate: 0 0; opacity: 1; } 70% { translate: 60vw 0; opacity: 0; } 71% { translate: -60vw 0; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.lost h1 { font: 700 clamp(44px, 7vw, 96px)/.95 var(--display); }
.lost p { margin: 18px auto 30px; color: var(--lilac); max-width: 30em; }

/* ---------- in-view reveals (used sparingly) ---------- */
[data-in].rise { opacity: 0; translate: 0 30px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
[data-in].rise.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rabbit .lid { animation: none; }
}
