/* hUlahoot website — an old arcade cabinet you walk into. One dark arcade look (single theme, chosen on purpose).
   Layout: a cabinet hero the camera zooms into on scroll, then full-width "levels" of the game, each with one moving
   pixel scene; the support page is the cabinet's HELP DESK. */
:root {
  --night: #0c0a1f;        /* the sky over Pasadena after dark, page background */
  --deep: #1a1430;         /* panels, cabinet wood */
  --violet: #3a2a6e;       /* cabinet side art, lines */
  --u: #b98cff;            /* the purple U of hUlahoot */
  --cream: #f6e7c8;        /* text, like a lit marquee */
  --muted: #a99fcc;        /* second-level text */
  --pink: #ff6fa3;         /* arcade buttons, the A button */
  --cyan: #7fe0f0;         /* CRT glow, the B button */
  --gold: #ffd27a;         /* coins, the golden cow */
  --mint: #7ee08a;         /* OPEN signs */
  --red: #ff3b47;          /* the red bike */
  --display: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --body: "VT323", ui-monospace, "Courier New", monospace;
  --read: "Atkinson Hyperlegible", -apple-system, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body); font-size: 22px; line-height: 1.2;
  -webkit-text-size-adjust: 100%; overflow-x: hidden; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; max-width: 100%; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 2px solid var(--violet); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { font-family: var(--display); font-size: 14px; color: var(--cream); text-decoration: none; letter-spacing: 1px; }
.logo b { color: var(--u); font-weight: normal; }
.bar nav { display: flex; gap: 18px; align-items: center; }
.bar nav a { font-family: var(--display); font-size: 9px; color: var(--muted); text-decoration: none; letter-spacing: 1px; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--cream); }

/* ---------- pressable things (the Apple-like "press and it answers") ---------- */
.press { transition: transform .18s cubic-bezier(.2,.9,.3,1.4); cursor: pointer; }
.press:active, .press.hit { transform: scale(.92); }
.pop { animation: pop .55s cubic-bezier(.2,.9,.3,1.5); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-3deg); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }

/* ---------- HERO: the arcade cabinet; the camera zooms into its screen as you scroll ---------- */
.zoom { position: relative; height: 230vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 30%, #241a52 0%, var(--night) 62%); }
.cab { position: relative; width: min(460px, 82vw, 58vh); transform-origin: 50% 31%;
  transform: scale(calc(1 + var(--p, 0) * var(--p, 0) * 6.5)); will-change: transform; }
.cab .marquee { position: relative; background: var(--deep); border: 6px solid #000; border-bottom: 0; padding: 18px 10px 14px; text-align: center;
  box-shadow: inset 0 0 0 4px var(--violet); }
.cab .marquee h1 { margin: 0; font-family: var(--display); font-weight: normal; font-size: clamp(22px, 7vw, 34px); color: var(--cream);
  text-shadow: 0 0 10px rgba(185,140,255,.8), 3px 3px 0 #000; letter-spacing: 2px; }
.cab .marquee h1 b { color: var(--u); font-weight: normal; animation: flicker 4s steps(1) infinite; }
@keyframes flicker { 0%, 92%, 96%, 100% { opacity: 1; } 94% { opacity: .35; } }
.cab .marquee p { margin: 8px 0 0; font-family: var(--display); font-size: 8px; color: var(--gold); letter-spacing: 1px; }
.cab .body { background: linear-gradient(90deg, #2c1f5c 0 9%, var(--deep) 9% 91%, #2c1f5c 91%); border: 6px solid #000; padding: 22px 7% 18px; }
.cab .crt { position: relative; border-radius: 18px / 14px; overflow: hidden; border: 6px solid #05040c; background: #000;
  box-shadow: 0 0 0 4px #2a2160, 0 0 30px rgba(127,224,240,.35); aspect-ratio: 4 / 3; }
.cab .crt canvas { width: 100%; height: 100%; }
.cab .crt::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.55));
  opacity: calc(1 - var(--p, 0) * 1.3); }
.cab .insert { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font-family: var(--display); font-size: clamp(8px, 2.4vw, 11px);
  color: var(--cream); text-shadow: 2px 2px 0 #000; animation: blink 1.1s steps(1) infinite; opacity: calc(1 - var(--p, 0) * 3); }
@keyframes blink { 50% { visibility: hidden; } }
.cab .panel { position: relative; margin: 20px -10% 0; background: linear-gradient(#2a2160, #17123a); border: 6px solid #000; border-radius: 6px;
  padding: 18px 8% 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transform: perspective(500px) rotateX(24deg); }
.stick { position: relative; width: 58px; height: 58px; border-radius: 50%; background: #0c0a1f; border: 4px solid #000; display: grid; place-items: center; }
.stick i { width: 18px; height: 42px; background: #222; border-radius: 9px; position: absolute; bottom: 24px; transform-origin: 50% 100%; transition: transform .15s; }
.stick i::before { content: ""; position: absolute; left: -12px; top: -24px; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #d61f2b 60%, #7a0d14); border: 3px solid #000; }
.stick.l i { transform: rotate(-18deg); } .stick.r i { transform: rotate(18deg); }
.btns { display: flex; gap: 14px; align-items: center; }
.abtn { width: 54px; height: 54px; border-radius: 50%; border: 4px solid #000; font-family: var(--display); font-size: 14px; color: #1a1430;
  box-shadow: 0 6px 0 #000, inset 0 -6px 0 rgba(0,0,0,.25), inset 0 5px 0 rgba(255,255,255,.35); display: grid; place-items: center; }
.abtn.a { background: var(--pink); } .abtn.b { background: var(--cyan); width: 46px; height: 46px; font-size: 12px; }
.abtn:active, .abtn.hit { transform: translateY(5px); box-shadow: 0 1px 0 #000, inset 0 -3px 0 rgba(0,0,0,.25); }
.cab .label { display: block; text-align: center; font-family: var(--display); font-size: 7px; color: var(--muted); margin-top: 8px; }
.cab .feet { height: 26px; margin: 0 6%; background: var(--deep); border: 6px solid #000; border-top: 0; }
.through { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(12,10,31,.86) 0%, rgba(12,10,31,.62) 55%, rgba(12,10,31,.25) 100%);
  opacity: clamp(0, calc((var(--p, 0) - .64) * 3.4), 1); }
.through > div { max-width: 640px; padding: 0 20px; }
.through h2 { font-family: var(--display); font-weight: normal; font-size: clamp(18px, 4.4vw, 36px); line-height: 1.5; margin: 0 0 18px; text-wrap: balance;
  text-shadow: 3px 3px 0 #000; }
.through p { font-size: clamp(22px, 3.2vw, 30px); margin: 0; color: var(--cream); text-shadow: 2px 2px 0 #000; }
.through p em { font-style: normal; color: var(--gold); }
.scrollhint { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; font-family: var(--display);
  font-size: 8px; color: var(--muted); opacity: calc(1 - var(--p, 0) * 4); }

/* ---------- LEVELS: each section is a level of the game ---------- */
.level { position: relative; padding-block: 90px; border-top: 2px solid var(--violet); }
.tag { display: inline-block; font-family: var(--display); font-size: 9px; color: var(--night); background: var(--gold); padding: 7px 9px 6px; letter-spacing: 1px; }
.level h2 { font-family: var(--display); font-weight: normal; font-size: clamp(20px, 4vw, 38px); line-height: 1.45; margin: 18px 0 16px; text-wrap: balance; max-width: 18ch; }
.level .lead { font-size: clamp(24px, 2.6vw, 30px); max-width: 34ch; color: var(--cream); margin: 0 0 28px; }
.level .lead em { font-style: normal; color: var(--gold); }
.small { font-size: 20px; color: var(--muted); }

/* LEVEL 1: Pasadena panorama, pans sideways while it sits on screen */
.pan { position: relative; height: 260vh; }
.pan .stick2 { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.pan .scene { width: max(1600px, 260vw); transform: translateX(calc(var(--p, 0) * (100vw - max(1600px, 260vw)))); will-change: transform; }
.pan .scene canvas { width: 100%; height: auto; }
.pan .cap { padding-top: 26px; }
.pan .cap h2 { margin-top: 12px; }
.pins { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pins span { font-family: var(--display); font-size: 8px; padding: 7px 9px 6px; border: 2px solid var(--violet); color: var(--muted); }

/* LEVEL 2: how a booking works — a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--deep); border: 4px solid #000; box-shadow: 6px 6px 0 #000; padding: 18px 18px 22px; }
.step canvas { width: 100%; height: auto; background: #120e2a; border: 3px solid #000; margin-bottom: 16px; }
.step h3 { font-family: var(--display); font-weight: normal; font-size: 13px; line-height: 1.5; margin: 0 0 8px; color: var(--cream); }
.step h3 span { color: var(--gold); margin-right: 8px; }
.step p { margin: 0; font-size: 21px; color: var(--muted); }

/* LEVEL 3: ten cows; the golden one grows on scroll */
.herd { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.cow { background: #120e2a; border: 3px solid #000; padding: 10px 6px 8px; text-align: center; color: var(--cream); font: inherit; }
.cow canvas { width: 100%; height: auto; }
.cow b { display: block; font-family: var(--display); font-weight: normal; font-size: 7px; margin-top: 6px; color: var(--muted); }
.cow[aria-pressed="true"] { border-color: var(--gold); }
.skill { min-height: 64px; margin-top: 18px; padding: 14px 16px; border: 3px dashed var(--violet); font-size: 22px; }
.skill strong { font-family: var(--display); font-weight: normal; font-size: 10px; color: var(--gold); display: block; margin-bottom: 6px; }
.gold { position: relative; height: 200vh; }
.gold .stick2 { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.gold .big { width: min(560px, 88vw); transform: scale(calc(.35 + var(--p, 0) * 1.1)) rotate(calc((1 - var(--p, 0)) * -8deg)); will-change: transform; }
.gold .big canvas { width: 100%; height: auto; }
.gold .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,210,122,.32), transparent 55%); opacity: var(--p, 0); pointer-events: none; }
.gold h2 { font-family: var(--display); font-weight: normal; font-size: clamp(18px, 3.6vw, 32px); margin: 18px 0 8px; color: var(--gold); text-shadow: 3px 3px 0 #000; }
.gold p { margin: 0 auto; max-width: 30ch; font-size: 24px; }

/* LEVEL 4: the UFO crosses the sky with the scroll */
.sky { position: relative; height: 180vh; }
.sky .stick2 { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sky canvas.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .ufo { position: absolute; top: 6%; left: 0; width: min(300px, 60vw); transform: translateX(10vw); will-change: transform;
  border: 0; background: none; padding: 0; cursor: pointer; }
.sky .ufo canvas { width: 100%; height: auto; }
.sky .text { position: absolute; left: 0; right: 0; bottom: 10%; }
.flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 40; }
.flash.on { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(120px); z-index: 41;
  font-family: var(--display); font-size: 10px; background: var(--gold); color: var(--night); padding: 12px 14px 11px; border: 3px solid #000; transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.toast.on { transform: translateX(-50%) translateY(0); }

/* LEVEL 5: bikes */
.bikes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bike { text-align: center; }
.bike canvas { width: 100%; height: auto; background: #120e2a; border: 3px solid #000; }
.bike b { display: block; font-family: var(--display); font-weight: normal; font-size: 8px; margin-top: 8px; }
.bike span { display: block; font-size: 19px; color: var(--muted); }

/* LEVEL 6: shops; LEVEL 7: price */
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.two > * { min-width: 0; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { padding-left: 26px; position: relative; font-size: 23px; }
.list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; background: var(--gold); box-shadow: 2px 2px 0 #000; }
.shopcv canvas { width: 100%; height: auto; border: 4px solid #000; box-shadow: 8px 8px 0 #000; background: #120e2a; }
.ticket { position: relative; background: var(--cream); color: var(--night); border: 4px solid #000; box-shadow: 8px 8px 0 #000; padding: 26px 24px; max-width: 460px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--night); border: 4px solid #000; transform: translateY(-50%); }
.ticket::before { left: -15px; } .ticket::after { right: -15px; }
.ticket .free { font-family: var(--display); font-size: clamp(30px, 6vw, 46px); color: var(--night); }
.ticket .free span { color: #c8892e; }
.ticket p { font-size: 23px; margin: 10px 0 0; }
.ticket hr { border: 0; border-top: 3px dashed #000; margin: 18px 0; }
.ticket .price { font-family: var(--display); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 11px; text-decoration: none; color: var(--night);
  background: var(--pink); border: 4px solid #000; box-shadow: 0 6px 0 #000; padding: 16px 18px 14px; }
.btn.cyan { background: var(--cyan); } .btn.ghost { background: var(--deep); color: var(--cream); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #000; }
.soon { font-family: var(--display); font-size: 9px; color: var(--muted); margin-top: 16px; }

.plain { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; }
.plain.block { display: block; width: 100%; }
.sky h2 { font-family: var(--display); font-weight: normal; font-size: clamp(20px, 4vw, 38px); line-height: 1.45; margin: 18px 0 12px; text-shadow: 3px 3px 0 #000; }
.sky .lead { margin: 0; text-shadow: 2px 2px 0 #000; }

/* ================= MORE MOTION (owner, Nov 11 2026: "ทำให้ล้ำกว่านี้") ================= */
/* health-bar scroll progress with a cow running along it */
.hp { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 6px; z-index: 31; background: #05040c; pointer-events: none; }
.hp i { display: block; height: 100%; width: calc(var(--s, 0) * 100%); background: repeating-linear-gradient(90deg, var(--pink) 0 10px, var(--gold) 10px 20px); box-shadow: 0 0 10px var(--pink); }
.hp canvas { position: absolute; top: -2px; left: calc(var(--s, 0) * (100% - 40px)); width: 40px; height: 28px; }
.bar { top: calc(env(safe-area-inset-top, 0px) + 6px); }

/* the cabinet floats, tilts toward your finger, and switches on like an old CRT */
.tilt { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.crt canvas { animation: crton 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes crton { 0% { transform: scale(1, .004); filter: brightness(6); } 35% { transform: scale(1, .004); filter: brightness(6); } 60% { transform: scale(1, 1); filter: brightness(2.4); } 100% { transform: none; filter: none; } }
.crt { animation: glowpulse 3s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 4px #2a2160, 0 0 46px rgba(127,224,240,.6); } }
.bulbs { position: absolute; left: 6px; right: 6px; height: 8px; display: flex; justify-content: space-between; pointer-events: none; }
.bulbs.top { top: 5px; } .bulbs.bottom { bottom: 5px; }
.bulbs i { width: 6px; height: 6px; border-radius: 50%; background: #5a4a20; animation: chase 1.2s steps(1) infinite; animation-delay: calc(var(--k) * -.1s); }
@keyframes chase { 0%, 49% { background: var(--gold); box-shadow: 0 0 8px var(--gold); } 50%, 100% { background: #5a4a20; box-shadow: none; } }
.slot { display: block; width: 56px; height: 14px; margin: 5px auto 0; background: #05040c; border: 3px solid #333; box-shadow: 0 0 10px rgba(255,59,71,.7); position: relative; }
.slot i { position: absolute; left: 22px; top: 2px; width: 6px; height: 4px; background: var(--red); box-shadow: 0 0 6px var(--red); animation: blink 1s steps(1) infinite; }
.coinfly { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 45%, #c8892e); border: 3px solid #000;
  opacity: 0; pointer-events: none; left: 50%; top: 10%; }
.coinfly.go { animation: coin 0.75s cubic-bezier(.3,.1,.5,1) forwards; }
@keyframes coin { 0% { opacity: 1; transform: translate(-50%, -60px) scaleX(1); } 50% { transform: translate(-50%, 30vh) scaleX(.2); } 80% { opacity: 1; transform: translate(-50%, 58vh) scaleX(1); } 100% { opacity: 0; transform: translate(-50%, 62vh) scaleX(.1); } }

/* everything that enters the screen arrives (it is always readable: it starts at 45 % and moves only a little) */
[data-in] { --v: 1; transform: translateY(calc((1 - var(--v)) * 46px)) scale(calc(.94 + var(--v) * .06)); opacity: calc(.45 + var(--v) * .55); }
.tag[data-in] { transform: rotate(calc((1 - var(--v)) * -8deg)) scale(calc(.6 + var(--v) * .4)); transform-origin: 0 50%; }
.herd .cow { transform: translateX(calc((1 - var(--v, 1)) * -40vw * (1 + var(--i, 0) * .15))) rotate(calc((1 - var(--v, 1)) * -12deg)); }
.herd[data-in], .bikes[data-in] { transform: none; opacity: 1; }
.bikes .bike { transform: translateX(calc((1 - var(--v, 1)) * -70vw * (1 + var(--i, 0) * .25))); }

/* heading letters that decode like an old terminal */
.scr { color: var(--cyan); }

/* the golden cow: rays turning behind it, a burst when you press it */
.gold .rays { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,210,122,.16) 0 9deg, transparent 9deg 18deg); opacity: var(--p, 0);
  animation: spin 40s linear infinite; mask-image: radial-gradient(circle, #000 0 25%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 0 25%, transparent 60%); }
@keyframes spin { to { rotate: 360deg; } }
.gold .big { display: block; margin: 0 auto; }
.burst { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 42; }

/* the shop: an iPhone-style order notice slides in */
.shopcv { position: relative; }
.notice { position: absolute; left: 6%; right: 6%; top: -18px; z-index: 2; background: rgba(246,231,200,.96); color: var(--night); border: 3px solid #000; border-radius: 14px;
  padding: 10px 14px; font-family: var(--read); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(calc((1 - clamp(0, (var(--v, 1) - .55) * 3, 1)) * -40px)) scale(calc(.85 + clamp(0, (var(--v, 1) - .55) * 3, 1) * .15)); opacity: clamp(0, (var(--v, 1) - .5) * 3, 1); }
.notice b { display: block; font-size: 12px; color: #6b5a8f; } .notice span { display: block; font-weight: 700; font-size: 16px; } .notice em { font-style: normal; }
.shopcv[data-in] { transform: scale(calc(.86 + var(--v) * .14)); opacity: 1; }

/* the price ticket tilts toward your finger and a shine passes over it */
.ticket { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .2s ease-out; overflow: hidden; }
.ticket .shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 45%, transparent 60%); transform: translateX(-120%); animation: shine 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }

/* a tap anywhere throws out a few pixels */
.px { position: fixed; width: 6px; height: 6px; pointer-events: none; z-index: 43; animation: px .55s ease-out forwards; }
@keyframes px { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--violet); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-family: var(--read); font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer nav a { color: var(--cream); text-decoration: none; } footer nav a:hover { text-decoration: underline; }

/* ---------- SUPPORT: the help desk ---------- */
.help-head { padding-block: 46px 30px; }
.mini { display: inline-block; background: var(--deep); border: 6px solid #000; box-shadow: inset 0 0 0 4px var(--violet), 8px 8px 0 #000; padding: 16px 22px 14px; }
.mini h1 { margin: 0; font-family: var(--display); font-weight: normal; font-size: clamp(20px, 5vw, 34px); text-shadow: 0 0 10px rgba(185,140,255,.7), 3px 3px 0 #000; }
.mini h1 b { color: var(--u); font-weight: normal; }
.help-head p { font-size: 26px; max-width: 36ch; margin: 22px 0 0; }
.search { display: flex; gap: 10px; margin-top: 26px; max-width: 640px; }
.search input { flex: 1; min-width: 0; font-family: var(--read); font-size: 18px; padding: 14px 16px; background: #120e2a; color: var(--cream); border: 4px solid #000;
  box-shadow: inset 0 0 0 2px var(--violet); border-radius: 0; -webkit-appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.chip { font-family: var(--display); font-size: 9px; padding: 10px 12px 9px; background: var(--deep); color: var(--muted); border: 3px solid #000; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.faq { display: grid; gap: 12px; padding-block: 10px 40px; }
.faq h2 { font-family: var(--display); font-weight: normal; font-size: 12px; color: var(--gold); margin: 26px 0 4px; letter-spacing: 1px; }
details { background: var(--deep); border: 3px solid #000; box-shadow: 5px 5px 0 #000; }
details summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; position: relative; font-size: 24px; color: var(--cream); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-family: var(--display); font-size: 16px; color: var(--cyan); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details .a { padding: 0 16px 18px; font-family: var(--read); font-size: 17px; line-height: 1.55; color: var(--cream); transform-origin: 0 0; }
details[open] .a { animation: grow .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes grow { from { opacity: 0; transform: scale(.94) translateY(-6px); } to { opacity: 1; transform: none; } }
details .a p { margin: 0 0 10px; max-width: 68ch; }
details .a b { color: var(--gold); font-weight: 700; }
.none { font-size: 22px; color: var(--muted); padding: 10px 0; }
.contact { background: var(--cream); color: var(--night); border: 4px solid #000; box-shadow: 8px 8px 0 #000; padding: 22px; display: grid; gap: 10px; max-width: 640px; }
.contact h2 { font-family: var(--display); font-weight: normal; font-size: 14px; margin: 0; }
.contact p { font-family: var(--read); font-size: 17px; margin: 0; line-height: 1.5; }
.mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail code { font-family: var(--display); font-size: 12px; background: #fff; border: 3px solid #000; padding: 10px 12px; user-select: all; word-break: break-all; }
.mail button { font-family: var(--display); font-size: 9px; background: var(--night); color: var(--cream); border: 3px solid #000; padding: 12px; cursor: pointer; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 20px; }
  .bar nav { gap: 12px; } .bar nav a.hide-s { display: none; }
  .steps, .two { grid-template-columns: minmax(0, 1fr); }
  .herd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bikes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zoom, .pan, .gold, .sky { height: auto; }
  .stage, .pan .stick2, .gold .stick2, .sky .stick2 { position: relative; height: auto; min-height: 80vh; padding-block: 60px; }
  .cab, .pan .scene, .gold .big, .sky .ufo { transform: none !important; }
  .pan .scene { width: 100%; }
  .through { position: relative; opacity: 1; padding-top: 30px; }
  .sky .ufo { position: relative; top: auto; margin: 40px auto 0; display: block; }
  .insert, .cab .marquee h1 b { animation: none; }
  .pop, details[open] .a { animation: none; }
  .tilt, .crt, .crt canvas, .bulbs i, .gold .rays, .ticket .shine, .slot i { animation: none !important; }
  [data-in], .herd .cow, .bikes .bike, .notice, .shopcv[data-in] { transform: none !important; opacity: 1 !important; }
  .hp, .burst { display: none; }
}
