/* Loose Pump — the chase, the lost poster, the road sign, the road */
@font-face { font-family: "Sigmar"; src: url(../assets/fonts/Sigmar-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sniglet"; src: url(../assets/fonts/Sniglet-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sniglet"; src: url(../assets/fonts/Sniglet-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root { --dusk: #2E2160; --plum: #7A3E86; --coral: #F0705A; --peach: #FFB86B; --pump: #F2740F; --pump-d: #A93F08; --cream: #F4E6D0;
  --bark: #5B2E16; --tar: #2B2533; --amber: #FFB020; --leaf: #3E6B23;
  --f-h: "Sigmar", "Sniglet", system-ui, sans-serif; --f-b: "Sniglet", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tar); color: var(--cream); font: 400 18px/1.5 var(--f-b); overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* the sticker that jumps to the poster */
.find { position: fixed; z-index: 30; top: 18px; right: 18px; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #FFC15C, var(--pump) 55%, var(--pump-d)); color: #fff; text-decoration: none; transform: rotate(10deg);
  box-shadow: 0 0 0 5px #fff, 0 12px 24px -8px rgba(0, 0, 0, .55); transition: transform .2s; }
.find span { font: 800 14px/1 var(--f-b); }
.find b { font: 400 22px/1.1 var(--f-h); }
.find:hover { transform: rotate(-4deg) scale(1.06); }
.find.gone { opacity: 0; pointer-events: none; transform: rotate(10deg) scale(.6); }
.find { transition: transform .2s, opacity .25s; }

/* the chase */
.story { position: relative; height: 560vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--dusk); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cap { position: absolute; left: 50%; top: 10vh; width: min(92vw, 1100px); margin: 0; text-align: center; transform: translate(-50%, 16px); opacity: 0; transition: opacity .35s, transform .35s;
  font: 400 clamp(34px, 5.6vw, 82px)/1.04 var(--f-h); color: #fff; text-shadow: 0 4px 0 rgba(58, 22, 6, .55), 0 18px 34px rgba(30, 10, 40, .45); pointer-events: none; }
.cap.on { opacity: 1; transform: translate(-50%, 0); }
.cap em { font-style: normal; color: #FFD24A; }
.cap .sm { font: 800 clamp(18px, 2vw, 26px)/1.3 var(--f-b); text-shadow: 0 2px 8px rgba(30, 10, 40, .7); margin-top: 14px; color: var(--cream); }
.cap p { margin: 0; }
.c0 { top: 5vh; }
.c0 h1 { margin: 0; display: flex; flex-direction: column; align-items: center; font: 400 clamp(68px, min(12vw, 19vh), 168px)/.86 var(--f-h); letter-spacing: .01em;
  color: #FFE7A8; -webkit-text-stroke: 3px #5B2E16; text-shadow: 0 8px 0 #A93F08, 0 14px 0 #5B2E16, 0 30px 40px rgba(30, 10, 40, .5); }
.c0 h1 span:last-child { color: #FFB443; transform: rotate(-3deg); }
.c0 .tk { margin: 22px 0 0; display: inline-block; font: 800 clamp(20px, 2.4vw, 30px)/1 var(--f-b); color: #fff; background: rgba(46, 33, 96, .72); border: 3px solid #fff; border-radius: 999px; padding: 10px 22px; text-shadow: none; }
.c0 .hint { margin: 16px 0 0; font: 800 18px/1 var(--f-b); color: #fff; text-shadow: 0 2px 8px rgba(30, 10, 40, .7); }
.c0 .hint::after { content: ""; display: block; width: 14px; height: 14px; margin: 12px auto 0; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(8px) rotate(45deg); } }
.track { position: absolute; left: 50%; bottom: 22px; width: min(60vw, 420px); height: 8px; transform: translateX(-50%); border-radius: 8px; background: rgba(255, 255, 255, .25); }
.track i { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFC15C, var(--pump) 60%, var(--pump-d)); box-shadow: 0 0 0 3px #fff; }

/* the lost poster on the fence, the road sign */
.lost { position: relative; overflow: hidden; padding: 110px 24px 120px; background:
  linear-gradient(180deg, rgba(43, 37, 51, .9), transparent 160px),
  repeating-linear-gradient(90deg, #8E5B31 0 6px, #A8703F 6px 112px, #7E4E2B 112px 118px, #9A6338 118px 226px); }
.lost::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 26px; background: linear-gradient(#7E4E2B, #5B3A1E); box-shadow: 0 6px 12px rgba(0, 0, 0, .3); z-index: 0; }
.fence { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 56px; align-items: start; }
.poster { position: relative; background: #FFF9EC; color: #2B1A10; padding: 30px 30px 0; transform: rotate(-1.6deg); box-shadow: 0 28px 50px -22px rgba(0, 0, 0, .7);
  background-image: radial-gradient(rgba(150, 110, 60, .08) 1px, transparent 1px); background-size: 6px 6px; }
.tape { position: absolute; top: -16px; width: 110px; height: 34px; background: rgba(255, 240, 190, .78); box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.t1 { left: -20px; transform: rotate(-18deg); } .t2 { right: -20px; transform: rotate(14deg); }
.poster h2 { margin: 0; text-align: center; font: 400 clamp(70px, 9vw, 112px)/.9 var(--f-h); color: #C2410C; letter-spacing: .04em; }
.p-sub { text-align: center; font: 800 21px/1.35 var(--f-b); margin: 10px 0 6px; }
.p-sub b { color: #C2410C; }
.p-pic { display: block; width: 78%; margin: 0 auto; height: auto; }
.p-what { font-size: 16.5px; line-height: 1.5; margin: 10px 0 14px; }
.p-what a { color: #C2410C; font-weight: 800; }
.p-ca { display: grid; gap: 6px; padding: 14px; border: 3px dashed #2B1A10; border-radius: 12px; margin-bottom: 14px; }
.p-l { font: 800 15px/1.2 var(--f-b); color: #7A4B2A; }
.p-ca code { font: 600 14px/1.45 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; word-break: break-all; }
.p-ca button { justify-self: start; font: 800 17px/1 var(--f-b); color: #fff; background: #C2410C; border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; box-shadow: 0 4px 0 #7A2A08; }
.p-ca button:active { transform: translateY(2px); box-shadow: 0 2px 0 #7A2A08; }
#caOk { font: 800 15px/1.2 var(--f-b); color: #2F6B2A; min-height: 1.2em; }
.p-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; text-align: center; }
.p-facts div { background: #F6E4C4; border-radius: 10px; padding: 8px 4px; }
.p-facts dt { font: 800 13px/1.2 var(--f-b); color: #7A4B2A; }
.p-facts dd { margin: 4px 0 0; font: 400 clamp(12px, 3.4vw, 17px)/1.1 var(--f-h); color: #2B1A10; white-space: nowrap; }
.tabs { list-style: none; margin: 0 -30px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px dashed #B79B78; }
.tabs li { border-right: 2px dashed #B79B78; }
.tabs li:last-child { border-right: 0; }
.tabs li[hidden] { display: none; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 18px; text-decoration: none; font: 800 14px/1.1 var(--f-b); color: #2B1A10; }
.tabs a:hover { background: #FFF0D2; color: #C2410C; }
.tabs img { border-radius: 7px; object-fit: cover; }
.tabs span { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 120px; overflow: hidden; }
.p-note { margin: 0 -30px; padding: 12px 30px 16px; background: #F6E4C4; font-size: 14px; line-height: 1.45; color: #5B3A1E; }

.board { position: relative; padding: 26px; background: linear-gradient(180deg, #33373F, #1E2127); border-radius: 22px; border: 6px solid #4B505A; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); margin-bottom: 110px; }
.led { display: grid; gap: 4px; padding: 16px 20px; background: #0B0C0E; border-radius: 12px; margin-bottom: 18px;
  background-image: radial-gradient(rgba(255, 176, 32, .07) 1.2px, transparent 1.3px); background-size: 7px 7px; }
.led-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 400 clamp(20px, 2.4vw, 30px)/1.25 var(--f-h); color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 32, .75), 0 0 22px rgba(255, 120, 0, .35); }
.led-row span { opacity: .78; }
.led-row b { font-weight: 400; white-space: nowrap; }
.led-row b sub { font-size: .6em; vertical-align: baseline; position: relative; top: .25em; }
.led-row .up-v { color: #9BFF6A; text-shadow: 0 0 8px rgba(155, 255, 106, .7); }
.led-row .down-v { color: #FF6A5A; text-shadow: 0 0 8px rgba(255, 106, 90, .7); }
.led-at { margin: 6px 0 0; font: 800 14px/1.3 var(--f-b); color: #A88A55; }
.screen { position: relative; height: 470px; border-radius: 12px; overflow: hidden; background: #0B0C0E; border: 4px solid #0B0C0E; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wait { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1.3 var(--f-b); color: #A88A55; text-align: center; padding: 20px; }
.wait.off { display: none; }
.board-out { display: inline-block; margin-top: 14px; font: 800 16px/1 var(--f-b); color: var(--amber); }
.leg { position: absolute; bottom: -100px; width: 18px; height: 100px; background: linear-gradient(90deg, #6B707A, #9AA0AA, #5A5F68); }
.l1 { left: 22%; } .l2 { right: 22%; }
.wheel { position: absolute; bottom: -118px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, #9AA0AA 0 30%, #1E1A24 32%); }
.w1 { left: calc(22% - 18px); } .w2 { right: calc(22% - 18px); }

/* the road at the bottom */
.road { position: relative; background: linear-gradient(180deg, #3A3344, #2B2533 40%, #221D29); padding: 60px 24px 80px; overflow: hidden; border-top: 10px solid #E9E1CF; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; background: repeating-linear-gradient(90deg, #FFD24A 0 90px, transparent 90px 160px); opacity: .85; }
.paint { position: relative; max-width: 1100px; margin: 0 auto; display: grid; gap: 34px; justify-items: center; text-align: center; }
.slow { margin: 0; font: 400 clamp(46px, 7vw, 92px)/.95 var(--f-h); color: #F4F1E8; opacity: .92; transform: perspective(500px) rotateX(28deg); letter-spacing: .05em; text-transform: uppercase; }
.pl { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; background: var(--tar); padding: 10px 18px; border-radius: 10px; }
.pl a { font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--f-h); color: #F4F1E8; text-decoration: none; letter-spacing: .03em; }
.pl a:hover { color: #FFD24A; }
.pl a[hidden] { display: none; }
.fine { margin: 0; max-width: 680px; font-size: 15px; color: #CFC6B4; background: var(--tar); padding: 6px 14px; border-radius: 8px; }

@media (max-width: 900px) {
  .fence { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .poster { max-width: 520px; margin: 0 auto; width: 100%; }
  .board { margin-bottom: 120px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .find { width: 84px; height: 84px; top: 12px; right: 12px; }
  .find b { font-size: 17px; }
  .find span { font-size: 12px; }
  .cap { top: 12vh; }
  .c0 { top: 9vh; }
  .c0 h1 { -webkit-text-stroke: 2px #5B2E16; }
  .lost { padding: 80px 14px 100px; }
  .poster { padding: 22px 18px 0; }
  .t1 { left: -4px; } .t2 { right: -4px; }
  .tabs, .p-note { margin: 0 -18px; }
  .p-note { padding: 12px 18px 16px; }
  .board { padding: 14px; border-width: 4px; }
  .screen { height: 400px; }
  .led { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
