/* Citadot website (look B · Game Studio): loud, playful, bouncy. Bright fields of colour, chunky buttons you can press,
   pixel headlines with a thick outline. Fonts are on the site itself (fonts/, licences in fonts/LICENSES.txt). */
@font-face { font-family: 'Press Start 2P'; src: url('../fonts/pressstart2p-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --sky: #45b8ff; --sky-2: #7fd0ff; --ink: #1b1524; --yellow: #ffd23f; --yellow-lo: #f0a800; --pink: #ff5d8f; --mint: #3fd3c3;
  --orange: #ff8a3d; --cream: #fff8e8; --white: #ffffff; --lilac: #b9a6ff;
  --g: clamp(16px, 4vw, 48px);
  --display: 'Press Start 2P', ui-rounded, system-ui, sans-serif;
  --ui: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--sky); }
body { margin: 0; overflow-x: hidden; overflow-x: clip; background: var(--sky); color: var(--ink); font: 600 17px/1.5 var(--ui); }
img, canvas { display: block; max-width: 100%; }
canvas.px, .px { image-rendering: crisp-edges; image-rendering: pixelated; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--yellow); }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--white); border-radius: 10px; }
.skip:focus { top: 12px; }

/* chunky outlined pixel headlines */
.pop { font-family: var(--display); font-weight: 400; color: var(--white); line-height: 1.3; text-wrap: balance;
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 0 8px 0 var(--ink), 3px 8px 0 var(--ink), -3px 8px 0 var(--ink); }

/* chunky buttons you can press */
.btn { display: inline-block; font-family: var(--ui); font-weight: 800; font-size: 21px; line-height: 1.15; color: var(--ink); text-decoration: none; cursor: pointer; text-align: center;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 18px; padding: 15px 26px 17px;
  box-shadow: 0 8px 0 var(--ink), inset 0 -6px 0 var(--yellow-lo), inset 0 4px 0 #fff3a8; transition: transform 0.14s var(--spring), box-shadow 0.14s; }
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 11px 0 var(--ink), inset 0 -6px 0 var(--yellow-lo), inset 0 4px 0 #fff3a8; }
.btn:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink), inset 0 -3px 0 var(--yellow-lo), inset 0 3px 0 #fff3a8; }
.btn-s { font-size: 16px; padding: 7px 14px 9px; border-width: 3px; border-radius: 12px; box-shadow: 0 5px 0 var(--ink), inset 0 -4px 0 var(--yellow-lo); }
.btn-s:hover { box-shadow: 0 7px 0 var(--ink), inset 0 -4px 0 var(--yellow-lo); }
.btn-s:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-w { background: var(--white); box-shadow: 0 5px 0 var(--ink), inset 0 -4px 0 #e2dccb; }
.sticker { display: inline-block; font-family: var(--ui); font-weight: 800; font-size: 20px; color: var(--white); background: #df3a70; border: 3px solid var(--ink); border-radius: 12px; padding: 7px 13px; transform: rotate(-6deg); box-shadow: 0 5px 0 var(--ink); animation: wobble 3.2s ease-in-out infinite; }
.sticker-2 { background: var(--mint); color: var(--ink); transform: rotate(5deg); animation-name: wobble2; animation-delay: -1.2s; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-2deg) scale(1.05); } }
@keyframes wobble2 { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(1deg) scale(1.05); } }
.cta-note { display: block; flex-basis: 100%; min-height: 1.4em; margin: 6px 0 0; font-weight: 800; }

/* top bar */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top) + 10px) var(--g) 10px; transition: background 0.3s, box-shadow 0.3s; }
.top.solid, .doc .top { background: var(--sky); box-shadow: 0 4px 0 var(--ink); }
.logo { font-family: var(--display); font-size: clamp(15px, 1.6vw, 20px); color: var(--white); text-decoration: none; margin-right: auto;
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 4px 0 var(--ink); }
.top nav { display: flex; gap: 18px; font-weight: 800; font-size: 17px; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.snd { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 800; font-size: 15px; background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 10px 7px; box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s var(--spring); }
.snd canvas { width: 20px; height: 16px; image-rendering: pixelated; }
.snd[aria-pressed="true"] { background: var(--yellow); }
.snd:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 760px) { .top nav { display: none; } .snd .snd-l { display: none; } }

/* entrance: things pop in with a spring */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(0.94); transition: opacity 0.5s, transform 0.6s var(--spring); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- HERO */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(env(safe-area-inset-top) + 92px) var(--g) 80px; text-align: center; overflow: hidden; }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.clouds canvas { position: absolute; left: 0; image-rendering: pixelated; animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(115vw); } }
.hero-letters { position: relative; display: flex; justify-content: center; margin: 0 auto; }
.hero-letters canvas { image-rendering: pixelated; }
.hero-letters #letters { cursor: pointer; touch-action: manipulation; }
.actors { position: absolute; top: 0; left: 50%; transform: translateX(-50%); pointer-events: none; }
.hero-copy { position: relative; max-width: 1240px; margin: 18px auto 0; }
.hero h1 { margin: 0 0 24px; font-size: clamp(27px, 4vw, 58px); }
.sub { margin: 0 auto 30px; max-width: 30em; font-size: clamp(18px, 1.7vw, 22px); }
.buy { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 24px; }

/* ---------------------------------------------------------------- THE CAKE-SLICE CITY TOUR */
.city { position: relative; background: var(--sky); border-top: 6px solid var(--ink); }
.city::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.sec-head { position: relative; max-width: 1100px; margin: 0 auto; padding: 96px var(--g) 30px; text-align: center; }
.sec-head h2 { margin: 0 0 22px; font-size: clamp(26px, 4.2vw, 56px); }
.sec-head p { margin: 0 auto; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); }
.tour { position: relative; height: 760vh; }
.tour-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.isle-area { position: absolute; inset: 0; }
.isle { position: absolute; inset: 0; }
.isle canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.steps { position: absolute; z-index: 4; left: max(var(--g), calc(50% - 640px)); top: 52%; width: min(430px, 36vw); min-height: 340px; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); pointer-events: none; }
.step { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-40%) scale(0.92); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.5s var(--spring), visibility 0s 0.5s; }
.step.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 0.3s, transform 0.5s var(--spring), visibility 0s; }
.num { display: block; margin-bottom: 18px; font-family: var(--display); font-size: clamp(48px, 7vw, 104px); line-height: 1; color: var(--yellow);
  text-shadow: 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink), 4px 4px 0 var(--ink), -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink), 0 10px 0 var(--ink), 4px 10px 0 var(--ink), -4px 10px 0 var(--ink); }
.step h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2vw, 28px); line-height: 1.35; color: var(--white); text-wrap: balance;
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 5px 0 var(--ink); }
.step p { margin: 0; max-width: 24em; padding: 14px 16px; font-size: clamp(17px, 1.5vw, 20px); background: var(--white); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
.dots { position: absolute; z-index: 4; right: max(var(--g), calc(50% - 640px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dots button { width: 18px; height: 18px; padding: 0; cursor: pointer; background: var(--white); border: 3px solid var(--ink); border-radius: 50%; transition: transform 0.25s var(--spring), background 0.2s; }
.dots button[aria-current="true"] { background: var(--yellow); transform: scale(1.35); }
.maps-switch { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 88px); left: 38%; right: var(--g); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.maps-switch button { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 800; font-size: 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 3px 9px 3px 3px; box-shadow: 0 4px 0 var(--ink); transition: transform 0.15s var(--spring), background 0.2s; }
.maps-switch canvas { width: 30px !important; height: 21px !important; border-radius: 4px; image-rendering: pixelated; }
.maps-switch button:hover { transform: translateY(-2px) rotate(-2deg); }
.maps-switch button[aria-pressed="true"] { background: var(--yellow); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; transition: opacity 0.3s; }
.tag b { display: block; position: relative; padding: 3px 7px 4px; white-space: nowrap; font-weight: 800; font-size: 12px; line-height: 1.2; letter-spacing: 0.02em; background: var(--white); border: 3px solid var(--ink); border-radius: 9px; box-shadow: 0 3px 0 var(--ink); transition: background 0.25s, transform 0.3s var(--spring); }
.tag::after { content: ''; position: absolute; left: calc(50% + var(--lean, 0px) / 2); top: 100%; width: 3px; height: var(--stem, 10px); background: var(--ink); transform: translateX(-50%); }
.tag.on b { background: var(--yellow); transform: scale(1.15) rotate(-3deg); }
.tag.dim { opacity: 0.35; }
.tag.minor { opacity: 0; }
.hint { position: absolute; z-index: 4; bottom: 22px; left: 64%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-weight: 800; font-size: 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px 5px; box-shadow: 0 4px 0 var(--ink); }
.hint::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #3dd65a; box-shadow: 0 0 0 2px var(--ink); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.bcard { position: absolute; left: 0; top: 0; z-index: 5; width: 236px; padding: 10px 12px 12px; background: var(--cream); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); opacity: 0; transform-origin: 50% 100%; pointer-events: none; transition: opacity 0.2s; }
.bcard.on { opacity: 1; animation: cardpop 0.4s var(--spring); }
@keyframes cardpop { from { scale: 0.7; } to { scale: 1; } }
.bcard .c-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bcard canvas { width: 22px; height: 22px; image-rendering: pixelated; }
.bcard .c-name { font-family: var(--display); font-size: 12px; line-height: 1.4; }
.bcard .c-desc { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.bcard .c-cat { display: inline-block; font-size: 12px; font-weight: 800; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 1px 7px; }
@media (max-width: 860px) {
  .tour { height: 720vh; }
  .steps { left: 10px; right: 10px; top: auto; bottom: 12px; width: auto; min-height: 180px; transform: none; }
  .step { top: 0; transform: translateY(16px) scale(0.94); }
  .step.on { transform: none; }
  .num { display: inline-block; margin: 0 10px 8px 0; font-size: 30px; vertical-align: middle; text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 0 6px 0 var(--ink); }
  .step h3 { display: inline; font-size: 15px; vertical-align: middle; }
  .step p { margin-top: 8px; padding: 10px 12px; font-size: 16px; max-width: none; }
  .dots { right: 6px; top: 42%; gap: 8px; }
  .dots button { width: 14px; height: 14px; border-width: 2px; }
  .maps-switch { left: 10px; right: 10px; top: calc(env(safe-area-inset-top) + 66px); gap: 4px; }
  .maps-switch button { padding: 2px; } .maps-switch button span { display: none; }
  .maps-switch canvas { width: 34px !important; height: 24px !important; }
  .tag b { font-size: 10px; padding: 2px 5px 3px; border-width: 2px; }
  .tag.dim { opacity: 0; }
  .hint { left: 50%; bottom: 204px; font-size: 12px; }
  .bcard { width: 210px; }
}

/* ---------------------------------------------------------------- THE SIX WORLDS */
.worlds { position: relative; background: var(--mint); border-top: 6px solid var(--ink); }
.track { position: relative; height: 690vh; padding: 0 var(--g) 60px; }
.screen { position: sticky; top: calc(env(safe-area-inset-top) + 74px); height: calc(100vh - 100px); height: calc(100svh - 100px); max-width: 1280px; margin: 0 auto; border: 6px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: 0 10px 0 var(--ink); background: var(--ink); }
.screen-cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; touch-action: pan-y; }
.map-path { position: absolute; left: 0; right: 0; top: 0; height: 62px; padding: 0 22px; background: rgba(27, 21, 36, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 4px solid var(--ink); }
.map-path ol { position: relative; display: flex; justify-content: space-between; align-items: center; height: 100%; margin: 0; padding: 0; list-style: none; }
.map-path ol::before { content: ''; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 4px dashed rgba(255, 255, 255, 0.55); }
.map-path li { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; font-weight: 800; font-size: 15px; transition: transform 0.3s var(--spring), background 0.3s; }
.map-path li canvas { width: 30px !important; height: 21px !important; image-rendering: pixelated; border-radius: 4px; }
.map-path li.on { background: var(--yellow); transform: scale(1.12) rotate(-3deg); }
.map-path li.done { background: #c8f5ec; }
.walker { position: absolute; top: 4px; left: 0; width: 24px; height: 33px; transition: left 0.12s linear; image-rendering: pixelated; z-index: 2; }
@media (max-width: 900px) { .map-path li span { display: none; } .map-path li { padding: 4px; } .map-path { padding: 0 12px; } }
.title-sticker { position: absolute; left: 18px; top: 82px; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; background: var(--white); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); font-family: var(--display); font-size: clamp(15px, 2vw, 26px); line-height: 1.2; transform: rotate(-3deg); }
.title-sticker canvas { width: 52px !important; height: 36px !important; image-rendering: pixelated; border-radius: 6px; }
.title-sticker.bump { animation: bump 0.55s var(--spring); }
@keyframes bump { 0% { transform: rotate(-3deg) scale(0.6); } 60% { transform: rotate(2deg) scale(1.12); } 100% { transform: rotate(-3deg) scale(1); } }
.tod { position: absolute; right: 18px; top: 84px; display: flex; gap: 6px; }
.tod button { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 800; font-size: 16px; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 5px 10px; box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s var(--spring); }
.tod button canvas { width: 22px !important; height: 22px !important; image-rendering: pixelated; }
.tod button[aria-pressed="true"] { background: var(--yellow); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tod button[data-tod="night"][aria-pressed="true"] { background: #1d2350; color: #f4ecff; }
.dialogs { position: absolute; left: 18px; top: 148px; width: min(480px, calc(100% - 36px)); }
.dlg { position: absolute; left: 0; top: 0; width: 100%; padding: 16px 18px 14px; background: rgba(255, 248, 232, 0.86); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); opacity: 0; transform: translateY(16px) scale(0.92); transform-origin: 20% 0; visibility: hidden; transition: opacity 0.25s, transform 0.5s var(--spring), visibility 0s 0.5s; }
.dlg.on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.25s, transform 0.5s var(--spring), visibility 0s; }
.dlg-line { margin: 0 0 6px; font-weight: 800; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.15; min-height: 1.15em; }
.dlg-detail { margin: 0 0 12px; font-size: 16px; }
.pals { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; font-weight: 800; font-size: 15px; }
.pals li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pals canvas { image-rendering: pixelated; }
.dlg.on .pals li { animation: popin 0.5s var(--spring) both; }
.dlg.on .pals li:nth-child(2) { animation-delay: 0.12s; } .dlg.on .pals li:nth-child(3) { animation-delay: 0.24s; }
@keyframes popin { from { transform: translateY(14px) scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .track { padding: 0 10px 40px; }
  .screen { border-width: 5px; border-radius: 24px; top: calc(env(safe-area-inset-top) + 66px); height: calc(100svh - 84px); }
  .title-sticker { left: 12px; top: 74px; max-width: calc(100% - 24px); } .tod { right: 12px; top: auto; bottom: 12px; }
  .tod button span { display: none; }
  .dialogs { left: 12px; top: 132px; width: calc(100% - 24px); }
  .dlg-detail { font-size: 15px; } .pals { gap: 14px; }
}

/* ---------------------------------------------------------------- DAILY CHALLENGE */
.daily { background: var(--yellow); border-top: 6px solid var(--ink); padding: 110px var(--g); }
.daily-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.daily h2 { margin: 0 0 24px; font-size: clamp(21px, 2.6vw, 38px); line-height: 1.35; }
.daily-copy > p { margin: 0 0 22px; max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); }
.twists { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.twists li { font-weight: 800; font-size: 20px; background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 13px; box-shadow: 0 5px 0 var(--ink); transform: rotate(-3deg); transition: transform 0.3s var(--spring); }
.twists li:nth-child(2) { transform: rotate(2deg); background: var(--mint); } .twists li:nth-child(3) { transform: rotate(-1deg); background: #df3a70; color: var(--white); }
.twists li:hover { transform: rotate(0) scale(1.08); }
.facts-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.facts-list li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 5px; background: var(--ink); clip-path: polygon(0 40%, 40% 40%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%); }
.board { background: var(--white); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 var(--ink); padding: 24px clamp(14px, 2.4vw, 28px) 26px; }
.board h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.7vw, 21px); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, 1vw, 10px); margin: 0 0 22px; padding: 0; list-style: none; }
.week li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; background: #f3efe4; border: 3px solid var(--ink); border-radius: 14px; font-weight: 800; }
.week .d { font-size: clamp(14px, 1.6vw, 18px); }
.week .meter { display: flex; flex-direction: column-reverse; gap: 2px; height: 64px; }
.week .meter i { display: block; width: clamp(14px, 2vw, 22px); height: 7px; border-radius: 2px; background: #d8d2c4; }
.week .meter i.f { background: var(--mint); } .week li:nth-child(n+4) .meter i.f { background: var(--yellow-lo); } .week li:nth-child(7) .meter i.f { background: var(--pink); }
.week .lb { font-size: 11px; line-height: 1.1; text-align: center; min-height: 2.2em; }
.week li.today { background: var(--yellow); animation: hop 1.8s var(--spring) infinite; }
.week li.today::after { content: 'Today'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-4deg); font-size: 12px; color: var(--white); background: var(--pink); border: 2px solid var(--ink); border-radius: 8px; padding: 1px 6px; white-space: nowrap; }
@keyframes hop { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -8px; } }
.board-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 3px dashed #e2dccb; }
.stars { display: flex; gap: clamp(8px, 2vw, 16px); }
.stars canvas { image-rendering: pixelated; transform: scale(0.4); opacity: 0; }
.board.in .stars canvas { animation: star 0.6s var(--spring) forwards; }
.board.in .stars canvas:nth-child(2) { animation-delay: 0.25s; } .board.in .stars canvas:nth-child(3) { animation-delay: 0.5s; }
@keyframes star { 0% { transform: scale(0.4) rotate(-40deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.streak { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; background: #fff1d6; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 12px; }
.streak canvas { width: 22px !important; height: 22px !important; image-rendering: pixelated; }
@media (max-width: 860px) { .daily-in { grid-template-columns: minmax(0, 1fr); gap: 44px; } .daily { padding: 84px var(--g); } .week .lb { font-size: 10px; } }

/* ---------------------------------------------------------------- DANGERS AND WEATHER */
.dangers { background: var(--orange); border-top: 6px solid var(--ink); padding: 100px var(--g) 110px; }
.dangers .sec-head { padding-top: 0; }
.cards4 { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 0; list-style: none; }
.dcard { background: var(--white); border: 5px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; transition: transform 0.3s var(--spring); }
.dcard:nth-child(odd) { transform: rotate(-1.5deg); } .dcard:nth-child(even) { transform: rotate(1.5deg); }
.dcard:hover { transform: rotate(0) translateY(-6px); }
.dcard .scene { aspect-ratio: 6 / 5; border-bottom: 5px solid var(--ink); background: #8fd0ff; }
.dcard:nth-child(2) .scene { background: #6a7aa8; } .dcard:nth-child(3) .scene, .dcard:nth-child(4) .scene { background: #141a44; }
.dcard canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.dcard h3 { margin: 16px 16px 6px; font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.4; }
.dcard p { margin: 0 16px 18px; font-size: 16px; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards4 { gap: 14px; } .dcard h3 { margin: 12px 12px 4px; font-size: 12px; } .dcard p { margin: 0 12px 14px; font-size: 14px; } .dcard { border-width: 4px; border-radius: 18px; } }

/* ---------------------------------------------------------------- GALLERY */
.gallery { background: var(--cream); border-top: 6px solid var(--ink); padding: 100px 0 110px; }
.gallery .sec-head h2 { color: var(--white); }
.shelf { display: flex; gap: 26px; margin: 0; padding: 18px var(--g) 30px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.shelf::-webkit-scrollbar { display: none; }
.shelf li { flex: none; width: min(64vw, 270px); scroll-snap-align: center; }
.shelf figure { margin: 0; }
.phone { padding: 9px; background: var(--ink); border-radius: 36px; box-shadow: 0 10px 0 rgba(27, 21, 36, 0.25); transition: transform 0.3s var(--spring); }
.shelf li:nth-child(odd) .phone { transform: rotate(-2deg); } .shelf li:nth-child(even) .phone { transform: rotate(2deg); }
.shelf li:hover .phone { transform: rotate(0) translateY(-6px); }
.phone img { width: 100%; height: auto; border-radius: 28px; background: #2a2032; aspect-ratio: 440 / 956; }
.shelf figcaption { margin-top: 14px; text-align: center; font-weight: 800; font-size: 16px; }
.shelf-nav { display: flex; justify-content: center; gap: 14px; }
.shelf-nav button { font-size: 22px; width: 54px; padding: 8px 0 10px; }

/* ---------------------------------------------------------------- FAQ */
.faqs { background: var(--sky); border-top: 6px solid var(--ink); padding: 100px var(--g) 110px; }
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faqs details { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.faqs summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 800; font-size: clamp(17px, 1.6vw, 20px); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: '+'; margin-left: auto; flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--display); font-size: 16px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 10px; transition: transform 0.3s var(--spring); }
.faqs details[open] summary::after { content: '-'; transform: rotate(180deg); background: var(--mint); }
.faqs details p { margin: 0; padding: 0 18px 18px; font-size: 17px; font-weight: 600; }

/* ---------------------------------------------------------------- BUY */
.get { position: relative; background: var(--pink); border-top: 6px solid var(--ink); padding: 110px var(--g) 120px; text-align: center; overflow: hidden; }
.get h2 { margin: 0 0 18px; font-size: clamp(28px, 4.6vw, 60px); }
.price { margin: 0 0 6px; font-family: var(--display); font-size: clamp(50px, 9vw, 120px); line-height: 1.15; color: var(--yellow);
  text-shadow: 5px 0 0 var(--ink), -5px 0 0 var(--ink), 0 5px 0 var(--ink), 0 -5px 0 var(--ink), 5px 5px 0 var(--ink), -5px -5px 0 var(--ink), 5px -5px 0 var(--ink), -5px 5px 0 var(--ink), 0 12px 0 var(--ink), 5px 12px 0 var(--ink), -5px 12px 0 var(--ink); }
.price-sub { margin: 18px 0 30px; font-family: var(--display); font-size: clamp(14px, 1.6vw, 20px); color: var(--white); text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 4px 0 var(--ink); }
.get .cta-note { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px auto 0; padding: 0; list-style: none; max-width: 820px; }
.chips li { font-weight: 800; font-size: 18px; background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 13px; box-shadow: 0 5px 0 var(--ink); }
.fine { margin: 26px 0 0; font-size: 16px; font-weight: 800; color: var(--ink); }

/* ---------------------------------------------------------------- FOOTER */
.foot { background: var(--ink); color: var(--white); }
.street-cv { width: 100%; height: 170px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 26px var(--g) 40px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; font-weight: 800; font-size: 18px; }
.foot p { margin: 0 0 4px; color: #e8e2f0; font-weight: 600; }

/* coins and sparkles on top of everything */
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* ---------------------------------------------------------------- SUPPORT, PRIVACY AND 404 PAGES */
.doc main { padding: calc(env(safe-area-inset-top) + 100px) var(--g) 80px; }
.paper { max-width: 860px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); background: var(--cream); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 10px 0 var(--ink); font-weight: 500; font-size: 17px; line-height: 1.6; }
.paper h1 { margin: 0 0 22px; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 3vw, 32px); line-height: 1.35; }
.paper h2 { margin: 34px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.8vw, 19px); line-height: 1.4; }
.paper p, .paper ul { margin: 0 0 14px; }
.paper ul { padding-left: 22px; }
.paper li { margin: 4px 0; }
.paper a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.paper .box { padding: 14px 16px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; }
.paper .faq { margin: 0 0 14px; padding: 14px 16px; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); border-top-width: 3px; }
.paper .faq .q { margin-bottom: 4px; font-weight: 800; }
.backrow { max-width: 860px; margin: 0 auto 26px; }
.backrow:last-child { margin: 30px auto 0; }
.lost { text-align: center; }
.lost .lostcv { width: min(100%, 360px); height: auto; margin: 0 auto 10px; image-rendering: pixelated; }
.docfoot { background: var(--ink); color: #e8e2f0; padding: 0 0 30px; font-size: 15px; }
.docfoot p { max-width: 1200px; margin: 0 auto; padding: 22px var(--g) 0; }

.reduce .clouds canvas, .reduce .sticker, .reduce .week li.today, .reduce .isle, .reduce .isle-shadow, .reduce .hint::before { animation: none; }
.reduce .stars canvas { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 760px) { .doc .top nav { display: flex; gap: 12px; font-size: 14px; } .doc .top .btn-s { display: none; } .doc .logo { font-size: 13px; } }
/* Support and Privacy: colourful pixel headings with an ink outline (cycling yellow, pink, mint, orange, lilac) */
.paper h1, .paper h2 { color: var(--yellow); text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 4px 0 var(--ink), 2px 4px 0 var(--ink), -2px 4px 0 var(--ink); letter-spacing: 0.02em; }
.paper h2:nth-of-type(5n+1) { color: var(--pink); }
.paper h2:nth-of-type(5n+2) { color: var(--mint); }
.paper h2:nth-of-type(5n+3) { color: var(--orange); }
.paper h2:nth-of-type(5n+4) { color: var(--lilac); }
.paper h2:nth-of-type(5n+5) { color: var(--yellow); }
.paper h1 { line-height: 1.5; }
.paper h2 { line-height: 1.6; }
