/* ==========================================================================
   Flaw Interactive — site styles
   Flat and art-led: white pages, solid colour panels with big rounded corners,
   characters popping out of the cards, flat pill buttons, a black menu bar.
   No outlines, no drop shadows. Motion lives behind .js and respects
   reduced motion.
   ========================================================================== */

@font-face { font-family: "Unbounded"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../fonts/unbounded-800.woff") format("woff"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/space-grotesk-400.woff") format("woff"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/space-grotesk-700.woff") format("woff"); }

:root {
  --bg: #FFFFFF;
  --surface: #F4F4EF;
  --surface-2: #EAEAE3;
  --ink: #0F0F0F;
  --ink-2: #2A2A2A;
  --muted: #59616E;
  --line: #E6E6E0;
  --teal: #00917A;
  --teal-dark: #007A66;
  --blue: #7DCAF6;
  --blue-soft: #D6EEFC;
  --yellow: #FFDA57;
  --yellow-soft: #FFF0B8;
  --pink: #FFBBF4;
  --pink-soft: #FFE1FA;
  --coral: #F47575;
  --coral-soft: #FFD9D6;
  --lavender: #A293FF;
  --lav-soft: #DDD7FF;
  --mint: #C3F0E2;
  --night: #15102A;
  --radius-xl: clamp(28px, 3.6vw, 48px);
  --radius: 28px;
  --radius-sm: 18px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-head: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); overflow-x: clip; }
html.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.06; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(32px, 5.2vw, 64px); letter-spacing: -0.025em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 14px; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 12px; z-index: 200; }
.skip:focus { top: 12px; color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 36em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.kicker::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: currentColor; }
.center .kicker::after { content: ""; width: 30px; height: 3px; border-radius: 3px; background: currentColor; }

/* ── Menu bar ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; }
.site-header .bar { max-width: 1320px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-family: var(--font-head);
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 34px; height: 34px; transition: transform 0.4s var(--ease-back); }
.brand:hover { color: #fff; }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand b { color: var(--yellow); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 15px; padding: 8px 0; transition: color 0.2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); transition: background 0.2s; }
.lang-switch:hover { color: #fff; background: rgba(255, 255, 255, 0.2); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 0; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 68px 0 0; z-index: 59; background: var(--ink); color: #fff; padding: 36px 24px 28px; display: flex;
  flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a.big { font-family: var(--font-head); font-size: clamp(34px, 9vw, 52px); line-height: 1.15; color: #fff; text-decoration: none; padding: 6px 0; }
.mobile-menu a.big:hover { color: var(--yellow); }
.mobile-menu .small-links { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mobile-menu .small-links a { color: rgba(255, 255, 255, 0.72); font-weight: 400; }
.mobile-menu .cast-row { display: flex; gap: 6px; margin-top: 28px; }
.mobile-menu .cast-row img { width: 52px; height: 58px; object-fit: contain; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .bar { gap: 16px; }
}
@media (max-width: 420px) {
  .site-header .bar { padding: 0 14px; }
  .header-actions .btn { display: none; }
  .brand { font-size: 13px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 900px) { html:not(.js) .site-nav { display: flex; gap: 14px; } html:not(.js) .site-nav .nav-extra { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 28px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font: 700 14px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-out); }
.btn:hover { color: #fff; background: var(--ink-2); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFD22E; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #fff; color: var(--ink); }
.btn-soft { background: rgba(15, 15, 15, 0.08); color: var(--ink); }
.btn-soft:hover { background: rgba(15, 15, 15, 0.14); color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 12px; }
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease-back); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-icon { width: 22px; height: 22px; border-radius: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center .btn-row { justify-content: center; }
.soon-note { font-size: 14px; font-weight: 700; color: var(--teal); min-height: 1.4em; margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { background: rgba(15, 15, 15, 0.06); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.center .tags { justify-content: center; }

/* ── Panels (big rounded colour blocks) ───────────────────────────────── */
.panel { position: relative; margin: 0 clamp(8px, 1.6vw, 22px); border-radius: var(--radius-xl); overflow: clip; }
.panel > .inner { padding: clamp(64px, 9vw, 120px) 0; }
.panel + .panel { margin-top: clamp(8px, 1.6vw, 22px); }
.panel-surface { background: var(--surface); }
.panel-yellow { background: var(--yellow); }
.panel-lavender { background: var(--lav-soft); }
.panel-pink { background: var(--pink-soft); }
.panel-night { background: radial-gradient(ellipse 60% 64% at 72% 46%, #3B2C78 0%, #251C4B 45%, var(--night) 100%); color: #F2EFFF; }
.panel-night h2, .panel-night h3 { color: #fff; }
.panel-night p, .panel-night .lead { color: #CFC9EA; }
.panel-night .kicker { color: var(--yellow); }
.panel-yellow .kicker, .panel-lavender .kicker, .panel-pink .kicker { color: var(--ink); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.grid-4 { grid-template-columns: 1fr; } }
/* Colour cards with a character popping out of the top edge */
.pop-grid { margin-top: 84px; row-gap: 84px; }
.pop-card { display: block; position: relative; background: var(--c, var(--surface)); border-radius: var(--radius); padding: 74px 30px 30px;
  color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease-out); }
.pop-card .pop { position: absolute; top: -58px; left: 22px; width: 112px; height: 116px; object-fit: contain; object-position: bottom left;
  transition: transform 0.45s var(--ease-back); }
.pop-card:hover { transform: translateY(-6px); color: var(--ink); }
.pop-card:hover .pop { transform: translateY(-8px) rotate(-6deg); }
.pop-card h3 { margin-bottom: 8px; }
.pop-card p { margin: 0; color: rgba(15, 15, 15, 0.78); }
.pop-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.pop-card .more .arrow { transition: transform 0.25s var(--ease-back); }
.pop-card:hover .more .arrow { transform: translateX(4px); }
.c-yellow { --c: var(--yellow); } .c-pink { --c: var(--pink); } .c-blue { --c: var(--blue); } .c-lav { --c: var(--lav-soft); }
.c-mint { --c: var(--mint); } .c-coral { --c: var(--coral-soft); } .c-surface { --c: var(--surface); }

/* ── Home hero: headline centred, the cast spilling in from both sides ── */
.hero { position: relative; overflow: clip; padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 10vw, 140px); }
.hero.panel { margin-top: clamp(8px, 1.6vw, 22px); }
.hero-copy { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; }
.display { font-size: clamp(46px, 7vw, 108px); line-height: 0.94; letter-spacing: -0.035em; margin-bottom: 26px; }
.display .line { display: block; }
.display .hl { color: var(--teal); }
.rotator { font-family: var(--font-head); font-size: clamp(20px, 2.5vw, 32px); line-height: 1.35; margin: 0 0 18px; }
.rotator .word { display: inline-block; border-radius: 14px; padding: 1px 14px 4px; background: var(--pink); color: var(--ink); white-space: nowrap; transform: rotate(-2deg); }
.rotator .word.flip { animation: flip-in 0.45s var(--ease-back); }
@keyframes flip-in { 0% { transform: rotate(-2deg) translateY(40%) rotateX(80deg); opacity: 0; } 100% { transform: rotate(-2deg); opacity: 1; } }
.hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero-cast { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 1480px); translate: -50% 0; z-index: 1; pointer-events: none; }
.hero-cast .ch { position: absolute; width: var(--w); animation: bob 4.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) * -0.5)); } }
.hero-cast .bubble { position: absolute; background: var(--ink); color: #fff; border-radius: 22px; padding: 12px 18px; font-weight: 700; white-space: nowrap;
  font-size: 16px; animation: bob 5s ease-in-out infinite; --rot: 2deg; }
.hero-cast .bubble::after { content: ""; position: absolute; bottom: -9px; right: 30px; width: 20px; height: 20px; background: var(--ink); transform: rotate(45deg); border-radius: 3px; }
.hero-cast .bubble b { color: var(--yellow); }
@media (max-width: 1180px) {
  .hero { padding-bottom: 40px; }
  .hero-cast { position: relative; inset: auto; width: auto; translate: none; display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-top: 44px; }
  .hero-cast .ch { position: static; width: clamp(56px, 14vw, 96px) !important; }
  .hero-cast .ch.m-hide, .hero-cast .bubble { display: none; }
}

/* ── Game page hero ───────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.game-hero .logo { max-width: 470px; width: 100%; transform: rotate(-3deg); margin: 0 0 12px; }
.game-hero .tagline { font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.breadcrumb { font-size: 14px; margin: 0 0 18px; color: var(--muted); letter-spacing: 0.02em; }
.breadcrumb a { text-decoration: none; }

/* ── Phone mock-up ────────────────────────────────────────────────────── */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: min(300px, 72vw); aspect-ratio: 540 / 1170; background: var(--ink); border-radius: 46px; padding: 11px; transform: rotate(4deg); z-index: 1; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: var(--ink); border-radius: 12px; z-index: 3; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--surface); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .phone .screen[data-slides] img { opacity: 0; transition: opacity 0.7s ease; }
.js .phone .screen[data-slides] img.active { opacity: 1; }
.phone-wrap .ch { position: absolute; width: 27%; animation: bob 4.5s ease-in-out infinite; z-index: 2; }
.phone-wrap .p1 { left: 0; bottom: 6%; --rot: -8deg; }
.phone-wrap .p2 { right: -2%; top: 5%; --rot: 8deg; --dl: -2s; }

/* ── Marquee of in-game orders ────────────────────────────────────────── */
.marquee { display: flex; overflow: hidden; background: var(--ink); color: #fff; user-select: none; margin: clamp(8px, 1.6vw, 22px) clamp(8px, 1.6vw, 22px) 0; border-radius: 999px; }
.marquee .track { display: flex; flex: 0 0 auto; align-items: center; gap: 30px; padding: 20px 15px; white-space: nowrap; }
.marquee .word { font-family: var(--font-head); font-size: clamp(24px, 3.4vw, 42px); line-height: 1; }
.marquee .word:nth-of-type(6n+1) { color: var(--blue); }
.marquee .word:nth-of-type(6n+2) { color: var(--yellow); }
.marquee .word:nth-of-type(6n+3) { color: var(--pink); }
.marquee .word:nth-of-type(6n+4) { color: var(--coral); }
.marquee .word:nth-of-type(6n+5) { color: var(--lavender); }
.marquee .word:nth-of-type(6n+6) { color: #7DE3C9; }
.marquee img { width: 40px; height: 44px; object-fit: contain; }
.js .marquee .track { animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── Manifesto ────────────────────────────────────────────────────────── */
.manifesto { padding: clamp(90px, 13vw, 180px) 0 clamp(70px, 10vw, 140px); }
.manifesto .big { font-family: var(--font-head); font-size: clamp(28px, 4.5vw, 60px); line-height: 1.14; letter-spacing: -0.02em; max-width: 21em; }
.manifesto .w { transition: opacity 0.35s, color 0.35s; }
.js .manifesto .w { opacity: 0.14; }
.js .manifesto .w.on { opacity: 1; }
.manifesto .w.em { color: var(--teal); }
.manifesto .sign { margin-top: 36px; display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 18px; }
.manifesto .sign img { width: 60px; }

/* ── Story cards (moments) ────────────────────────────────────────────── */
.stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.story { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c, var(--yellow)); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out); }
.story:hover { transform: translateY(-6px); }
.story .shot { aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); }
.story .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform 0.7s var(--ease-out); }
.story:hover .shot img { transform: scale(1.06); }
.story figcaption { padding: 20px 22px 24px; }
.story figcaption strong { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.2; margin-bottom: 6px; }
.story figcaption span { font-size: 15px; color: rgba(15, 15, 15, 0.75); line-height: 1.4; display: block; }
@media (max-width: 1000px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .stories { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 36px -24px 0; padding: 0 24px 8px; scrollbar-width: none; }
  .stories::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ── Featured game ────────────────────────────────────────────────────── */
.feature .logo { max-width: 440px; width: 100%; transform: rotate(-3deg); margin-bottom: 20px; }
.feature .tagline { font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature p { font-size: 18px; max-width: 32em; }
.stats { display: flex; flex-wrap: wrap; margin-top: 34px; }
.stat { flex: 1 1 0; min-width: 104px; padding: 4px 20px; border-left: 2px solid rgba(15, 15, 15, 0.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.stat span { display: block; font-size: 14px; font-weight: 700; margin-top: 6px; line-height: 1.25; }
@media (max-width: 520px) { .stat { flex: 1 1 45%; padding: 12px 0; border-left: 0; } }

/* ── The 10-second mini-game ──────────────────────────────────────────── */
.try { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.try .countdown-word { font-family: var(--font-head); font-size: clamp(76px, 11vw, 150px); line-height: 0.85; letter-spacing: -0.04em; margin: 0 0 16px; color: var(--lavender); }
.arena { position: relative; background: #fff; border-radius: 34px; aspect-ratio: 4 / 3; overflow: hidden;
  background-image: radial-gradient(rgba(15, 15, 15, 0.08) 1.5px, transparent 1.6px); background-size: 22px 22px; touch-action: manipulation; }
.arena-hud { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 3; pointer-events: none; }
.arena-score { font-family: var(--font-head); font-size: 20px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 16px; min-width: 52px; text-align: center; }
.arena-cmd { font-family: var(--font-head); font-size: clamp(17px, 2.3vw, 24px); }
.ring { width: 56px; height: 56px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: #EEEEE8; }
.ring .fg { stroke: var(--teal); stroke-linecap: round; transition: stroke 0.3s; }
.ring.low .fg { stroke: var(--coral); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 17px; }
.arena-field { position: absolute; inset: 0; }
.target { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -50%) scale(0);
  animation: pop-in 0.22s var(--ease-back) forwards; -webkit-tap-highlight-color: transparent; }
.target img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.target.hit { animation: hit 0.28s ease-out forwards; }
.target.gone { animation: pop-out 0.16s ease-in forwards; }
@keyframes pop-in { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes pop-out { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(0); } }
@keyframes hit { 0% { transform: translate(-50%, -50%) scale(1.15) rotate(0); } 100% { transform: translate(-50%, -80%) scale(0) rotate(40deg); opacity: 0; } }
.floater { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-head); font-size: 24px; color: var(--teal); pointer-events: none;
  animation: float-up 0.7s ease-out forwards; z-index: 4; }
@keyframes float-up { to { transform: translate(-50%, -150%); opacity: 0; } }
.arena-flash { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; font-family: var(--font-head);
  font-size: clamp(56px, 9vw, 110px); color: var(--ink); }
.arena-flash .n { animation: flash 0.45s var(--ease-back); }
@keyframes flash { from { transform: scale(0.3) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.arena-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 26px;
  background: rgba(255, 255, 255, 0.94); z-index: 6; transition: opacity 0.25s; }
.arena-overlay.hide { opacity: 0; pointer-events: none; }
.arena-overlay .who { display: flex; gap: 6px; justify-content: center; }
.arena-overlay .who img { width: 58px; animation: bob 3s ease-in-out infinite; }
.arena-overlay .who img:nth-child(2) { --dl: -1s; } .arena-overlay .who img:nth-child(3) { --dl: -2s; }
.arena-result { font-weight: 700; font-size: 18px; max-width: 26em; margin: 0; }
.arena-result b { display: block; font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; margin-bottom: 6px; }
.js .nojs-only { display: none; }
html:not(.js) .js-only { display: none !important; }
@media (max-width: 900px) { .try { grid-template-columns: 1fr; } .arena { aspect-ratio: 1 / 1.05; } }

/* ── Game night ───────────────────────────────────────────────────────── */
.stars { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 22% 70%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 35% 30%, #FFDA57 50%, transparent 52%), radial-gradient(2px 2px at 48% 82%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 60% 12%, #fff 50%, transparent 52%), radial-gradient(3px 3px at 72% 60%, #FFBBF4 50%, transparent 52%),
    radial-gradient(2px 2px at 86% 26%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 94% 78%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 14% 46%, #7DCAF6 50%, transparent 52%), radial-gradient(2px 2px at 54% 50%, #fff 50%, transparent 52%);
  animation: twinkle 3.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }
.moon { position: absolute; top: 56px; right: 7%; width: 86px; height: 86px; border-radius: 50%; background: #FFF3C7; box-shadow: inset -16px -8px 0 #F1DB8A; }
.night-grid { position: relative; z-index: 1; }
.night-grid .phone { transform: rotate(-4deg); background: #000; }
.mode-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mode-pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 6px 18px 6px 6px; color: #fff; font-weight: 700; }
.mode-pill img { width: 42px; height: 42px; object-fit: contain; }
.host-quote { margin-top: 30px; display: flex; align-items: flex-end; gap: 14px; }
.host-quote img { width: 76px; flex: 0 0 76px; }
.host-quote p { background: #fff; color: var(--ink); border-radius: 20px 20px 20px 4px; padding: 12px 18px; font-weight: 700; margin: 0; }
@media (max-width: 900px) { .moon { width: 58px; height: 58px; top: 28px; } }

/* ── Studio promise & contact ─────────────────────────────────────────── */
.promise { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; font-family: var(--font-head);
  font-size: clamp(20px, 2.8vw, 32px); letter-spacing: -0.02em; }
.promise span { display: inline-flex; align-items: center; gap: 12px; }
.promise span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.promise span:nth-child(2)::before { background: var(--coral); } .promise span:nth-child(3)::before { background: var(--lavender); }
.promise-note { text-align: center; color: var(--muted); margin-top: 12px; }
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .say { font-size: clamp(56px, 10.5vw, 150px); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 20px; }
.contact .mail { display: inline-block; font-family: var(--font-head); font-size: clamp(20px, 3.6vw, 40px); color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em; background: linear-gradient(var(--yellow), var(--yellow)) left 88% / 100% 0.28em no-repeat; padding: 0 4px; overflow-wrap: anywhere;
  transition: background-size 0.3s var(--ease-out), color 0.2s; }
.contact .mail:hover { color: var(--ink); background-size: 100% 0.9em; }
.contact .wavers { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.contact .wavers img { width: 76px; transform-origin: 50% 100%; animation: wave 2.4s ease-in-out infinite; }
.contact .wavers img:nth-child(2) { animation-delay: -0.6s; } .contact .wavers img:nth-child(3) { animation-delay: -1.2s; }
@keyframes wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ── Game page sections ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 48px; }
.step .num { display: block; font-family: var(--font-head); font-size: clamp(80px, 10vw, 136px); line-height: 0.8; letter-spacing: -0.05em; margin-bottom: 18px; color: var(--coral); }
.step:nth-child(2) .num { color: var(--lavender); } .step:nth-child(3) .num { color: var(--teal); }
.step h3 { font-size: 26px; }
.step p { color: var(--muted); }
.step .order { display: inline-block; font-family: var(--font-head); font-size: 14px; background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 9px; margin: 2px 2px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } }
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 24px 26px; margin: 34px -24px 0;
  scrollbar-width: thin; scrollbar-color: rgba(15, 15, 15, 0.5) transparent; }
.shots figure { flex: 0 0 auto; width: min(250px, 64vw); margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; aspect-ratio: 540 / 1170; object-fit: cover; border-radius: 26px; background: #fff; transition: transform 0.35s var(--ease-out); }
.shots figure:hover img { transform: translateY(-6px); }
.shots figcaption { text-align: center; font-size: 14px; font-weight: 700; margin-top: 14px; }
.shots-hint { font-size: 14px; color: rgba(15, 15, 15, 0.65); }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.mode { display: flex; gap: 20px; align-items: center; border-radius: var(--radius); padding: 30px; background: var(--c, var(--surface)); transition: transform 0.35s var(--ease-out); }
.mode:hover { transform: translateY(-5px); }
.mode img { width: 100px; height: 100px; object-fit: contain; flex: 0 0 100px; transition: transform 0.4s var(--ease-back); }
.mode:hover img { transform: rotate(-8deg) scale(1.08); }
.mode h3 { margin-bottom: 6px; font-size: 23px; }
.mode p { margin: 0; color: rgba(15, 15, 15, 0.78); }
.mode.m-tower { background: radial-gradient(ellipse 80% 90% at 85% 10%, #3B2C78, var(--night) 75%); color: #fff; }
.mode.m-tower p { color: #CFC9EA; }
@media (max-width: 760px) { .modes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .mode { flex-direction: column; align-items: flex-start; } .mode img { width: 76px; height: 76px; flex-basis: auto; } }
.cast { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 40px; }
.cast figure { margin: 0; display: flex; gap: 16px; align-items: center; background: var(--surface); border-radius: 24px; padding: 16px 20px; transition: background 0.35s, transform 0.3s var(--ease-out); }
.cast figure:hover { background: var(--c, var(--yellow)); transform: translateY(-4px); }
.cast img { width: 70px; height: 78px; object-fit: contain; flex: 0 0 70px; transition: transform 0.4s var(--ease-back); }
.cast figure:hover img { transform: scale(1.14) rotate(-8deg); }
.cast figcaption strong { display: block; font-family: var(--font-head); font-size: 17px; letter-spacing: -0.01em; }
.cast figcaption span { font-size: 14px; color: rgba(15, 15, 15, 0.7); line-height: 1.35; display: block; margin-top: 2px; }
@media (max-width: 360px) { .cast { grid-template-columns: 1fr; } }
.facts { width: 100%; max-width: 880px; border-collapse: collapse; background: var(--surface); border-radius: 24px; overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 16px 24px; border-bottom: 1px solid rgba(15, 15, 15, 0.07); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 36%; font-weight: 700; }
.facts td { overflow-wrap: anywhere; color: var(--ink-2); }
@media (max-width: 560px) {
  .facts th, .facts td { display: block; width: auto; }
  .facts th { border-bottom: 0; padding-bottom: 0; color: var(--muted); font-size: 14px; }
  .facts td { padding-top: 2px; }
}

/* ── Inner pages (help & legal) ───────────────────────────────────────── */
.page-hero { margin: clamp(8px, 1.6vw, 22px) clamp(8px, 1.6vw, 22px) 0; border-radius: var(--radius-xl); position: relative; overflow: clip;
  padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 92px); background: var(--c, var(--surface)); }
/* The character stands in the bottom-right corner, whole; the text keeps clear of it. */
.page-hero .wrap { position: relative; padding-right: clamp(24px, 22vw, 280px); }
.page-hero h1 { font-size: clamp(36px, 6.4vw, 72px); letter-spacing: -0.035em; max-width: 12em; margin-bottom: 12px; }
.page-hero .meta { color: rgba(15, 15, 15, 0.7); font-size: 15px; margin: 0; max-width: 40em; }
.page-hero .peek { position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(18px, 2.6vw, 34px); width: clamp(112px, 15vw, 190px); height: auto; transform: rotate(-6deg); animation: bob 4.5s ease-in-out infinite; --rot: -6deg; }
@media (max-width: 700px) { .page-hero { padding-bottom: 136px; } .page-hero .wrap { padding-right: 24px; } .page-hero .peek { width: 96px; bottom: 20px; right: 20px; } .page-hero h1 { max-width: 8.5em; } }
.legal { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.legal h2 { font-size: 23px; letter-spacing: -0.01em; margin: 48px 0 12px; }
.legal h3 { font-size: 18px; margin: 26px 0 6px; }
.legal .meta { color: var(--muted); font-size: 15px; }
.legal .card { margin: 26px 0; }
.legal .card ul { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); display: block; overflow-x: auto; border-radius: 18px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(15, 15, 15, 0.07); }
.legal th { background: var(--ink); color: #fff; }
.legal code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.legal li { margin: 4px 0; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.todo { background: var(--yellow-soft); border-radius: 6px; padding: 0 5px; box-shadow: inset 0 -2px 0 #E0B400; }
.draft-note { background: var(--yellow); color: var(--ink); text-align: center; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 60px 22px 0; font-weight: 700; font-size: 19px; list-style: none; position: relative; transition: color 0.2s; }
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); font-family: var(--font-head); font-size: 18px; line-height: 1; transition: transform 0.3s var(--ease-back), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--ink); color: #D6D6D0; margin-top: 170px; padding: 92px 0 34px; }
.footer-cast { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-84%); display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(4px, 1.4vw, 14px); pointer-events: none; }
.footer-cast img { width: clamp(46px, 7.4vw, 92px); }
.footer-cast img:nth-child(odd) { transform: rotate(-4deg); } .footer-cast img:nth-child(even) { transform: rotate(4deg); }
@media (max-width: 560px) { .footer-cast img { width: clamp(46px, 14vw, 72px); } .footer-cast img:nth-child(n+7) { display: none; } }
.footer-word { font-family: var(--font-head); font-size: clamp(30px, 10.5vw, 150px); line-height: 0.9; letter-spacing: -0.035em; margin: 0 0 48px; color: #fff; }
.footer-word span { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: #fff; font-weight: 400; text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); }
.footer-grid .brand { margin-bottom: 14px; }
.footer-grid .copy { color: rgba(255, 255, 255, 0.55); font-size: 15px; max-width: 26em; }
.footer-love { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 14px; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .about { grid-column: 1 / -1; } }

/* ── Pixel Party ──────────────────────────────────────────────────────── */
/* Navy panel from the game's own menu (#1A237E fading to black); text colours keep 4.5:1 or more. */
.panel-pp { background: radial-gradient(ellipse 70% 75% at 76% 40%, #2A36B0 0%, #1A237E 45%, #0B0F2E 100%); color: #F2F3FF; }
.panel-pp h1, .panel-pp h2, .panel-pp h3 { color: #fff; }
.panel-pp p, .panel-pp .lead { color: #CFD3F5; }
.panel-pp .kicker { color: var(--yellow); }
.panel-pp .breadcrumb { color: #AEB4E6; }
.panel-pp a:not(.btn) { color: var(--yellow); }
.panel-pp a:not(.btn):hover { color: #fff; }
.panel-pp .tags li { background: rgba(255, 255, 255, 0.12); color: #fff; }
.panel-pp .soon-note { color: var(--yellow); }
.panel-pp .stat { border-left-color: rgba(255, 255, 255, 0.2); }
.panel-pp .stat span { color: #CFD3F5; }
.panel-pp .phone { background: #000; }
.logo-wide { transform: rotate(-2deg); }
.game-hero .logo.logo-wide { max-width: 560px; margin-bottom: 22px; }
.feature .logo.logo-wide { max-width: 520px; margin-bottom: 26px; }
.tag-new { display: inline-block; vertical-align: middle; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 6px 12px;
  font: 700 12px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.pop-card .tag-new, .mode .tag-new { background: var(--ink); color: #fff; }
.game-status { display: inline-block; margin-bottom: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .grid.grid-2 { grid-template-columns: 1fr; } }
/* Boss cards: the world's frame 0 as poster, its loop plays on hover (site.js), the boss on top */
.bosses { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.boss { margin: 0; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.07); transition: transform 0.35s var(--ease-out); }
.boss:hover { transform: translateY(-5px); }
.boss .stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0B0F2E; }
.boss .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boss .portrait { position: absolute; right: 5%; bottom: 3%; width: auto; height: 86%; max-width: 58%; object-fit: contain; object-position: bottom right;
  animation: bob 4.6s ease-in-out infinite; --rot: -2deg; }
.boss .num { position: absolute; left: 16px; top: 14px; font-family: var(--font-head); font-size: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 13px; }
.boss figcaption { padding: 20px 24px 26px; }
.boss figcaption strong { display: block; font-family: var(--font-head); font-size: 22px; line-height: 1.15; color: #fff; margin-bottom: 8px; }
.boss figcaption p { margin: 0; font-size: 15px; }
.boss.wide { grid-column: 1 / -1; }
.boss.wide .stage { aspect-ratio: 21 / 9; }
.boss.wide .portrait { right: 8%; }
@media (max-width: 760px) { .bosses { grid-template-columns: minmax(0, 1fr); } .boss.wide .stage { aspect-ratio: 16 / 9; } }
/* Only the Beach Swimmer is open at the start: bosses 2-5 are black silhouettes, "???" and a lock, as in the game */
.boss-path { position: relative; z-index: 1; list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.boss-path li { position: relative; margin: 0; padding: 16px 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); text-align: center; }
.boss-path .num { display: inline-block; font-family: var(--font-head); font-size: 13px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; }
.boss-path img { display: block; width: 100%; height: clamp(80px, 10vw, 130px); object-fit: contain; margin: 16px auto 12px; }
.boss-path strong { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: 0.14em; color: #A39DCB; }
.boss-path .lock { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; fill: #A39DCB; }
@media (max-width: 760px) { .boss-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* Home: the Pixel Party bosses in a row (the Beach Swimmer, then the locked ones) */
.boss-lineup { position: relative; z-index: 1; list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px 3%; }
.boss-lineup li { position: relative; flex: 0 1 15%; min-width: 104px; margin: 0; padding: 16px 10px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); text-align: center; }
.boss-lineup .locked span[aria-hidden] { letter-spacing: 0.14em; color: #AEB4E6; }
.boss-lineup .lock { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; fill: #AEB4E6; }
.boss-lineup img { display: block; width: 100%; height: clamp(84px, 11vw, 150px); object-fit: contain; object-position: bottom; animation: bob 4.6s ease-in-out infinite; animation-delay: var(--dl, 0s); --rot: -2deg; }
.boss-lineup li:nth-child(even) img { --rot: 2deg; --dl: -2.3s; }
.boss-lineup span { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #CFD3F5; }
/* Jokers */
.jokers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 40px; }
.joker { margin: 0; display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: 24px; padding: 18px 20px;
  transition: transform 0.3s var(--ease-out); }
.joker:hover { transform: translateY(-4px); }
.joker .disc { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: #1D4ED8; display: grid; place-items: center; transition: transform 0.4s var(--ease-back); }
.joker:hover .disc { transform: rotate(-10deg) scale(1.08); }
.joker .disc img { width: 28px; height: 28px; }
.joker figcaption strong { display: block; font-family: var(--font-head); font-size: 17px; letter-spacing: -0.01em; }
.joker figcaption span { display: block; font-size: 14px; color: rgba(15, 15, 15, 0.72); line-height: 1.4; margin-top: 3px; }
.joker figcaption .where { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 360px) { .jokers { grid-template-columns: 1fr; } }
/* The game's own combo call-outs, as stickers */
.combo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; margin-top: 56px; }
.combo-row img { width: clamp(150px, 20vw, 230px); }
.combo-row img:nth-child(odd) { transform: rotate(-4deg); } .combo-row img:nth-child(even) { transform: rotate(3deg); }
/* Home: a third button on the navy panel, and the help links under "Let's talk" */
.btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.help-row { margin-top: 30px; }
.help-row .btn-row { justify-content: center; margin-top: 12px; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 80px 24px 40px; }
.not-found img { width: 190px; margin: 0 auto 22px; animation: bob 3.5s ease-in-out infinite; --rot: -6deg; }
.not-found h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; }

/* ── Reveal on scroll (enabled by site.js) ────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .manifesto .w { opacity: 1; }
  .marquee .track { animation: none !important; }
}
