/* Dodge! website styles for 1.2.0 ("Sticker Court"): the landing page, privacy policy and 404.
   The top is the wooden gym court; below its baseline the page switches to the
   1.2.0 store colours, blue and yellow bands with stripes. Game pop-up texts,
   taped cards and stickers sit at a slight tilt. Characters are the game's own
   renders, only placed and scaled. */

@font-face { font-family: "Luckiest Guy"; src: url(assets/fonts/luckiest-guy-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald"; font-weight: 700; src: url(assets/fonts/oswald-latin-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; src: url(assets/fonts/inter-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; src: url(assets/fonts/inter-latin-700-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #2b2a33;
  --court: #d4a373;
  --blue: #2f78c8;
  --yellow: #ffcc2e;
  --red: #dc3b30;
  --hot: #ff6159;
  --orange: #f2a324;
  --night: #24232c;
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --label: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); background: var(--blue); color: #fff; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
main { position: relative; overflow-x: clip; }
section { position: relative; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stripes-blue { background-color: var(--blue); background-image: repeating-linear-gradient(-28deg, rgba(255,255,255,0.08) 0 26px, transparent 26px 64px); }
.stripes-yellow { background-color: var(--yellow); background-image: repeating-linear-gradient(-28deg, rgba(255,255,255,0.22) 0 26px, transparent 26px 64px); color: var(--ink); }
.parchment { background-color: #f1e6c8; background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.35) 0 22px, transparent 22px 52px); color: var(--ink); }
.stripes-night { background-color: var(--night); background-image: repeating-linear-gradient(-28deg, rgba(255,255,255,0.05) 0 26px, transparent 26px 64px); }

/* Type in the game's style */
.wordmark { font-family: var(--display); font-weight: 400; color: var(--red); line-height: 0.9; letter-spacing: 0.01em; margin: 0; }
.cap { font-family: var(--display); font-weight: 400; color: #fff; -webkit-text-stroke: 0.1em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink); line-height: 1; margin: 0; text-wrap: balance; letter-spacing: 0.01em; text-align: center; font-size: clamp(42px, 6vw, 68px); }
.cap .hl { color: var(--yellow); }
.pill { display: inline-block; font-family: var(--display); color: var(--ink); background: var(--yellow); border: 4px solid var(--ink); border-radius: 14px; padding: 0.45em 0.9em 0.3em; box-shadow: 0 5px 0 var(--ink); transform: rotate(-2deg); letter-spacing: 0.02em; }
.pop { position: absolute; z-index: 2; font-family: var(--display); color: var(--orange); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; font-size: 26px; white-space: nowrap; pointer-events: none; }
.pop.y { color: var(--yellow); }
.pop.r { color: var(--hot); }
.stuck { position: absolute; z-index: 2; pointer-events: none; }
.char { filter: drop-shadow(0 6px 0 rgba(0,0,0,0.18)); }
.ball { width: 30px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ff8a7a, #e8463b 45%, #c63228); border: 5px solid var(--ink); position: relative; }
.ball::after { content: ""; position: absolute; right: 80%; top: 10%; width: 90px; height: 9px; border-radius: 9px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75)); transform: rotate(-28deg); transform-origin: right center; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
.bob { animation: bob 2.8s ease-in-out infinite; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: #111; color: #fff; border: 3px solid #111; border-radius: 14px; padding: 8px 18px 8px 14px; box-shadow: 0 5px 0 rgba(0,0,0,0.35); transition: transform .12s ease, box-shadow .12s ease; }
.store:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0,0,0,0.35); }
.store:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.store b { display: block; font-size: 19px; line-height: 1.05; }

/* Hero: one whole wooden court, trailer on the centre line */
.hero { background: var(--court); color: var(--ink); overflow: hidden; border-bottom: 6px solid var(--ink); }
.lines { position: absolute; inset: 0; pointer-events: none; }
.lines .side { position: absolute; top: 0; bottom: 0; left: 50%; width: min(900px, 92vw); transform: translateX(-50%); border-inline: 6px solid rgba(255,255,255,0.35); }
.lines .box { position: absolute; left: 50%; width: min(340px, 56vw); height: 130px; transform: translateX(-50%); border: 6px solid rgba(255,255,255,0.35); }
.lines .box.t { top: -6px; }
.lines .box.b { bottom: -6px; }
.lines .mid { position: absolute; left: 0; right: 0; top: 66%; border-top: 6px dashed rgba(220,59,48,0.55); }
.lines .circle { position: absolute; left: 50%; top: 66%; width: min(280px, 60vw); aspect-ratio: 1; transform: translate(-50%, -50%); border: 6px solid rgba(255,255,255,0.35); border-radius: 50%; }
.hero .wrap { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: 70px 150px; }
.hero .wordmark { font-size: clamp(96px, 15vw, 190px); text-shadow: 6px 6px 0 var(--ink); transform: rotate(-3deg); }
.hero .pill { font-size: clamp(16px, 2vw, 22px); }
.hero .lede { font-size: 20px; font-weight: 700; line-height: 1.45; max-width: 30ch; margin: 4px 0 0; }
.stage { position: relative; width: min(300px, 72vw); margin-top: 22px; }
.phone { position: relative; background: #111; border-radius: 34px; padding: 10px; box-shadow: 0 18px 0 rgba(0,0,0,0.18), 0 30px 60px rgba(0,0,0,0.25); transform: rotate(4deg); }
.phone video { border-radius: 25px; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; background: #111; }
.stage .peek { position: absolute; width: 36%; left: -30%; bottom: 10%; --r: -8deg; }
.stage .peek2 { position: absolute; width: 30%; right: -26%; top: 14%; --r: 9deg; }
.stage .badge { position: absolute; top: -20px; left: -30px; transform: rotate(-10deg); font-size: 17px; z-index: 3; }

/* How to play: three taped cards */
.how .wrap { padding-block: 70px 80px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 44px; }
.card { background: #fff; color: var(--ink); border: 5px solid var(--ink); border-radius: 22px; padding: 14px 14px 20px; box-shadow: 0 9px 0 var(--ink); transform: rotate(var(--r)); transition: transform .18s ease; position: relative; }
.card:hover { transform: rotate(0deg) translateY(-6px); }
.card::before { content: ""; position: absolute; top: -16px; left: 50%; width: 90px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,204,46,0.9); border: 3px solid rgba(43,42,51,0.25); }
.card img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 62%; width: 100%; background: #111; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 14px 0 4px; letter-spacing: .02em; }
.card p { margin: 0; line-height: 1.5; font-size: 16px; }
.card .pop { right: -14px; top: 38%; transform: rotate(8deg); font-size: 22px; }

/* Bosses on the dashed line */
.bosses { border-block: 6px solid var(--ink); }
.bosses .wrap { padding-block: 70px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.bosses .cap .hl { color: var(--hot); }
.bosses p { font-size: 18px; line-height: 1.55; max-width: 44ch; margin: 0; color: #e3e3ec; }
.lineup { position: relative; display: flex; justify-content: center; gap: 22px; padding-block: 26px; width: 100%; }
.lineup::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 7px dashed rgba(220,59,48,0.85); }
.lineup img { position: relative; width: 92px; }
.lineup img:nth-child(odd) { transform: translateY(-14px) rotate(-6deg); }
.lineup img:nth-child(even) { transform: translateY(16px) rotate(5deg); }
.sparks { font-family: var(--display); font-size: 22px; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); border-radius: 12px; padding: 8px 16px 4px; box-shadow: 0 5px 0 var(--ink); transform: rotate(2deg); }

/* Locker sneak peek: a few faces, the rest locked */
.locker { border-bottom: 6px solid var(--ink); }
.locker .wrap { padding-block: 80px; text-align: center; }
.locker .cap .hl { color: var(--red); }
.locker .sub { font-size: 19px; font-weight: 700; margin: 14px auto 36px; max-width: 40ch; line-height: 1.5; }
.shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.slot { width: 116px; display: grid; justify-items: center; gap: 8px; background: var(--ink); color: #fff; border: 4px solid var(--ink); box-shadow: 0 6px 0 rgba(43,42,51,0.45); border-radius: 18px; padding: 16px 8px 10px; transform: rotate(var(--r, 0deg)); }
.slot:nth-child(odd) { --r: -2deg; }
.slot:nth-child(even) { --r: 1.5deg; }
.slot img { width: 76px; height: 76px; object-fit: contain; }
.slot span { font-family: var(--label); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.slot.lock { background: #3b3a45; }
.slot.lock span { color: rgba(255,255,255,0.6); }
.slot.lock:hover img { animation: wiggle .4s ease-in-out 2; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.locker .more { margin-top: 32px; font-size: 20px; background: #fff; }

/* Live leaderboard: a podium for the top 3, then 4 to 10, then the score to beat.
   Names and scores only, never characters, so the board can't give away locked ones. */
.boardsec .wrap { padding-block: 80px 110px; display: grid; justify-items: center; gap: 30px; }
.board-stage { position: relative; width: min(640px, 100%); }
.board { position: relative; z-index: 1; background: var(--ink); border: 5px solid #000; border-radius: 26px; padding: 20px 24px 24px; box-shadow: 0 10px 0 #000; transform: rotate(-1.5deg); overflow: hidden; }
.board-top { position: relative; z-index: 2; display: grid; justify-items: center; padding-top: 4px; }
/* The title is a tilted yellow sign */
.board h3.marquee { position: relative; margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .03em; color: var(--ink); background: var(--yellow); border: 5px solid #000; border-radius: 16px; padding: 14px 30px 8px; box-shadow: 0 6px 0 #000; transform: rotate(-2deg); }
.board .live { position: absolute; right: 0; top: 0; font-family: var(--label); font-size: 13px; letter-spacing: .1em; color: #fff; background: var(--red); border: 3px solid #000; border-radius: 999px; padding: 3px 10px 2px 8px; display: inline-flex; align-items: center; gap: 6px; transform: rotate(3deg); }
.board .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.board ol { list-style: none; margin: 0; padding: 0; }
.board .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.board .score { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Confetti falls over the podium */
.confetti { position: absolute; inset: 0 0 auto; height: 360px; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border: 2px solid #000; border-radius: 2px; animation: fall 3.6s linear infinite; }
@keyframes fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(380px) rotate(540deg); } }
.confetti i:nth-child(1) { left: 3%; background: var(--yellow); animation-delay: -0.4s; animation-duration: 3.6s; }
.confetti i:nth-child(2) { left: 9%; background: var(--hot); animation-delay: -0.2s; animation-duration: 3.6s; }
.confetti i:nth-child(3) { left: 19%; background: #fff; animation-delay: -2.9s; animation-duration: 4.2s; }
.confetti i:nth-child(4) { left: 23%; background: var(--blue); animation-delay: -1.9s; animation-duration: 3.4s; }
.confetti i:nth-child(5) { left: 30%; background: #3ddc84; animation-delay: -0.4s; animation-duration: 3.3s; }
.confetti i:nth-child(6) { left: 40%; background: var(--orange); animation-delay: -3.0s; animation-duration: 4.3s; }
.confetti i:nth-child(7) { left: 46%; background: var(--yellow); animation-delay: -0.7s; animation-duration: 3.5s; }
.confetti i:nth-child(8) { left: 52%; background: var(--hot); animation-delay: -2.6s; animation-duration: 4.4s; }
.confetti i:nth-child(9) { left: 60%; background: #fff; animation-delay: -0.3s; animation-duration: 4.0s; }
.confetti i:nth-child(10) { left: 66%; background: var(--blue); animation-delay: -1.8s; animation-duration: 3.3s; }
.confetti i:nth-child(11) { left: 72%; background: #3ddc84; animation-delay: -0.3s; animation-duration: 4.5s; }
.confetti i:nth-child(12) { left: 80%; background: var(--orange); animation-delay: -2.0s; animation-duration: 3.5s; }
.confetti i:nth-child(13) { left: 87%; background: var(--yellow); animation-delay: -2.1s; animation-duration: 4.4s; }
.confetti i:nth-child(14) { left: 94%; background: var(--hot); animation-delay: -1.8s; animation-duration: 3.7s; }

/* Podium: 2nd, 1st, 3rd, with sunburst rays behind the winner */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: -78px -24px 0 !important; padding: 112px 24px 0 !important; position: relative; overflow: hidden; isolation: isolate; }
.podium::before { content: ""; position: absolute; left: 50%; top: 40%; width: 760px; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(rgba(255,204,46,0.28) 0 9deg, rgba(47,120,200,0.18) 9deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 25%, transparent); mask: radial-gradient(closest-side, #000 25%, transparent); animation: spin 40s linear infinite; pointer-events: none; z-index: -1; }
@keyframes spin { to { rotate: 360deg; } }
.step { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; }
.step:nth-child(1) { order: 2; }
.step:nth-child(2) { order: 1; }
.step:nth-child(3) { order: 3; }
.step .medal { --c: var(--yellow); width: 46px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 24px; padding-top: 4px; color: var(--ink); background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--c); border: 4px solid #000; box-shadow: 0 4px 0 #000; position: relative; }
.step:nth-child(1) .medal { width: 58px; font-size: 30px; }
.step:nth-child(2) .medal { --c: #d9dbe6; }
.step:nth-child(3) .medal { --c: #e39a5c; }
.step .who { font-size: 16px; max-width: 100%; padding-inline: 2px; }
.step:nth-child(1) .who { font-size: 19px; }
.step .score { --c: var(--yellow); width: 100%; display: grid; place-items: center; height: 74px; font-size: 30px; color: #fff; -webkit-text-stroke: 6px #000; paint-order: stroke fill; border: 4px solid #000; border-bottom: 0; border-radius: 14px 14px 0 0; background: repeating-linear-gradient(-28deg, rgba(255,255,255,0.18) 0 12px, transparent 12px 28px), var(--c); }
.step:nth-child(1) .score { height: 112px; font-size: 40px; }
.step:nth-child(2) .score { --c: #a9adc0; height: 90px; }
.step:nth-child(3) .score { --c: #c9773b; height: 64px; }
.podium + .rest { border-top: 5px solid #000; margin-inline: -24px; margin-top: 0; padding-inline: 24px; padding-top: 8px; background: rgba(0,0,0,0.18); }

/* 4 to 10 */
.rest li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 2px solid rgba(255,255,255,0.08); }
.rest li:last-child { border-bottom: 0; }
.rest .rank { font-family: var(--display); font-size: 20px; color: #9a99a8; padding-top: 3px; }
.rest .score { font-size: 22px; line-height: 1; padding-top: 4px; }
.rest .who { line-height: 1.2; }
.board li.ghost .who, .board li.ghost .score { color: transparent; -webkit-text-stroke: 0; background: rgba(255,255,255,0.08); border-radius: 6px; }
.board li.ghost .who { width: 70%; }

/* The score to beat, on a strip of yellow tape */
.tobeat { margin: 18px -4px 0; text-align: center; font-family: var(--display); font-size: 21px; letter-spacing: .02em; color: var(--ink); background: var(--yellow); border: 4px solid #000; border-radius: 12px; padding: 10px 14px 6px; transform: rotate(1.2deg); box-shadow: 0 5px 0 #000; }
.tobeat b { font-weight: 400; color: var(--red); font-size: 1.2em; }
.board .note { margin: 14px 0 0; text-align: center; color: #b9b8c6; font-size: 15px; }
/* Fans beside the board (desktop), peeking over its top edge (phone) */
.fans img { position: absolute; z-index: 2; }
.fans .f1 { width: 150px; left: -190px; top: 110px; --r: -10deg; }
.fans .f2 { width: 104px; left: -150px; top: 420px; --r: 8deg; animation-delay: .7s; }
.fans .f3 { width: 140px; right: -185px; top: 180px; --r: 9deg; animation-delay: .35s; }
.fans .f4 { width: 104px; right: -150px; top: 480px; --r: -7deg; animation-delay: 1s; }
.boardsec p.after { font-size: 18px; font-weight: 700; margin: 0; text-align: center; max-width: 40ch; line-height: 1.5; }

@media (max-width: 520px) {
  .board { padding: 16px 14px 18px; }
  .podium + .rest, .podium { margin-inline: -14px !important; padding-inline: 14px !important; }
  .podium { gap: 6px; }
  .step .who { font-size: 13px; }
  .step:nth-child(1) .who { font-size: 15px; }
  .step .score { font-size: 24px; height: 62px; -webkit-text-stroke-width: 5px; }
  .step:nth-child(1) .score { font-size: 30px; height: 92px; }
  .step:nth-child(2) .score { height: 76px; }
  .step:nth-child(3) .score { height: 54px; }
  .step .medal { width: 38px; font-size: 20px; }
  .step:nth-child(1) .medal { width: 48px; font-size: 25px; }
  .tobeat { font-size: 18px; }
  .board-stage { margin-top: 44px; }
  .fans img { z-index: 0; }
  .fans .f2, .fans .f4 { display: none; }
  .fans .f1 { width: 84px; left: 2px; top: -58px; }
  .fans .f3 { width: 78px; left: auto; right: 2px; top: -50px; }
  .board h3.marquee { font-size: 26px; padding: 12px 20px 6px; }
  .board-top { padding-top: 34px; }
  .board .live { top: -4px; right: -2px; font-size: 12px; }
  .podium { margin-top: -110px !important; padding-top: 150px !important; }
}

/* Final call: characters peek over the yellow band's edge */
.cta { border-top: 6px solid var(--ink); }
.peekers { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-72%); display: flex; justify-content: center; align-items: flex-end; gap: 10px; pointer-events: none; }
.peekers img { width: 76px; }
.peekers img.big { width: 104px; }
.cta .wrap { padding-block: 90px 70px; display: grid; justify-items: center; text-align: center; gap: 22px; }
.cta .cap { font-size: clamp(42px, 6.4vw, 76px); }
.cta .cap .hl { color: var(--hot); }

footer { background: var(--ink); color: #c9c8d3; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
footer .wordmark { font-size: 28px; }
footer nav { display: flex; gap: 20px; margin-left: auto; }

@media (max-width: 820px) {
  .pop.hide-m, .stuck.hide-m { display: none; }
  .hero .wrap { padding-block: 50px 140px; }
  .lines .mid, .lines .circle { top: 68%; }
  .cards { grid-template-columns: 1fr; gap: 44px; max-width: 340px; margin-inline: auto; }
  .stage .peek { left: -18%; }
  .stage .peek2 { right: -14%; }
  .stage .badge { left: -12px; }
  .lineup { gap: 8px; }
  .lineup img { width: 62px; }
  .shelf { gap: 8px; }
  .slot { width: calc((100% - 24px) / 4); padding: 10px 4px 8px; }
  .slot img { width: 48px; height: 48px; }
  .slot span { font-size: 11px; }
  .peekers img { width: 58px; }
  .peekers img.big { width: 80px; }
  footer nav { margin-left: 0; }
  .page-nav .wordmark { font-size: 26px; }
  .back { padding: 6px 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Inner pages (privacy policy, 404): a short court header, then blue ---------- */
.page-top { position: relative; background: var(--court); color: var(--ink); border-bottom: 6px solid var(--ink); overflow: hidden; }
.page-top .lines .mid { top: auto; bottom: 0; }
.page-top .lines .circle { top: 100%; }
.page-top .wrap { position: relative; z-index: 1; padding-block: 22px 56px; display: grid; gap: 34px; }
.page-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-nav .wordmark { font-size: 34px; text-shadow: 3px 3px 0 var(--ink); text-decoration: none; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; padding: 8px 16px; box-shadow: 0 5px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease; }
.back:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.back:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.back svg { width: 18px; height: 18px; }
.page-top .cap { font-size: clamp(44px, 8vw, 84px); transform: rotate(-2deg); }
.page-top .updated { justify-self: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; background: var(--ink); color: #fff; padding: 5px 14px; border-radius: 8px; margin-top: -14px; }
/* Plain variant (Terms): no court, the page's blue stripes run up behind the header */
.page-top.plain { background: none; border-bottom: 0; color: #fff; }
.page-top.plain .wrap { padding-bottom: 0; }
.page-top.plain + .doc-wrap { padding-top: 40px; }

.doc-wrap { padding-block: 56px 90px; }
.doc { max-width: 820px; margin: 0 auto; background: #fff; color: var(--ink); border: 6px solid var(--ink); border-radius: 32px; box-shadow: 0 12px 0 var(--ink); padding: clamp(24px, 5vw, 56px); font-size: 17px; line-height: 1.65; }
.doc > p:first-child { font-size: 18px; margin-top: 0; }
.doc section { margin-top: 38px; }
.doc h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 4px dashed rgba(220,59,48,0.45); }
.doc p { margin: 0 0 14px; }
.doc strong { font-weight: 700; }
.doc ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.doc li { position: relative; padding-left: 30px; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; background: var(--orange); border: 3px solid var(--ink); border-radius: 50%; }
.doc a { color: var(--blue); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc .warn { background: #fff4cc; border: 4px solid var(--ink); border-radius: 18px; padding: 18px 20px 6px; margin: 18px 0; box-shadow: 0 5px 0 var(--ink); }
.doc .warn h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; }
.doc .warn svg { width: 28px; height: 28px; flex: none; }
.doc .mail { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; background: var(--ink); border-radius: 14px; padding: 12px 20px; box-shadow: 0 5px 0 rgba(0,0,0,0.3); }
.doc .mail svg { width: 20px; height: 20px; }

/* 404: off the court */
.lost { text-align: center; min-height: calc(100svh - 76px); display: grid; align-items: center; }
.lost .lines .mid, .lost .lines .circle { display: none; }
.lost .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; padding-block: 60px 150px; }
.lost .num { font-family: var(--display); font-size: clamp(110px, 22vw, 220px); line-height: .85; color: var(--yellow); -webkit-text-stroke: 0.06em var(--ink); paint-order: stroke fill; text-shadow: 0 0.06em 0 var(--ink); transform: rotate(-4deg); margin: 0; }
.lost .who { position: relative; width: 120px; margin-top: 10px; }
.lost .who .ball { position: absolute; right: -70px; top: -30px; }
.lost p { font-size: 20px; font-weight: 700; margin: 0; max-width: 30ch; line-height: 1.45; }
.lost .pop { position: static; display: inline-block; transform: rotate(-6deg); font-size: clamp(30px, 5vw, 44px); }

/* ---------- Roadmap: a World Tour flight route on parchment, six numbered stops ---------- */
.rm .wrap { padding-block: 22px 40px; }
.rm-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-top: 34px; }
.rm-head .cap { font-size: clamp(54px, 9vw, 96px); transform: rotate(-2deg); }
.rm-head p { font-size: 19px; font-weight: 700; line-height: 1.45; max-width: 34ch; margin: 0; }
.route { position: relative; max-width: 980px; margin: 0 auto; padding: 70px 0 60px; list-style: none; }
.route::before { content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; border-left: 6px dashed rgba(220,59,48,0.75); transform: translateX(-50%); }
.stop { position: relative; display: grid; grid-template-columns: 1fr 76px 1fr; align-items: start; margin-bottom: 46px; }
.stop:last-child { margin-bottom: 0; }
.stop .pin { grid-column: 2; grid-row: 1; justify-self: center; width: 56px; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; border: 5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: 28px; padding-top: 4px; z-index: 1; }
.stop.done .pin { background: #2fbf6a; }
.stop.later .pin { background: #fffaf0; color: var(--ink); }
.ticket { grid-column: 3; grid-row: 1; background: #fffdf6; border: 5px solid var(--ink); border-radius: 22px; padding: 18px 20px 20px; box-shadow: 0 8px 0 var(--ink); transform: rotate(var(--r, 1deg)); position: relative; }
.stop:nth-child(even) .ticket { grid-column: 1; --r: -1.2deg; }
/* After the full-width World Tour card the zigzag restarts on the right (two-column layout only) */
@media (min-width: 821px) {
  .stop.big ~ .stop:nth-child(even) .ticket { grid-column: 3; --r: 1deg; }
  .stop.big ~ .stop:nth-child(odd) .ticket { grid-column: 1; --r: -1.2deg; }
}
.ticket::before { content: ""; position: absolute; top: -15px; left: 50%; width: 84px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,204,46,0.9); border: 3px solid rgba(43,42,51,0.25); }
.ticket .ver { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; opacity: .7; }
.ticket h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 4px 0 6px; letter-spacing: .02em; }
.ticket p { margin: 0; line-height: 1.5; }
.status { position: absolute; top: -14px; right: -10px; font-family: var(--display); font-size: 15px; letter-spacing: .03em; padding: 6px 12px 3px; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); transform: rotate(-3deg); color: var(--ink); background: #e6e3f2; white-space: nowrap; }
.status.out { background: #3ddc84; }
.status.now { background: var(--yellow); }
.status.next { background: #8fd3ff; }
.status.some { background: #3b3a45; color: #fff; }
/* Christmas sneak peek: candy-stripe tape, green pin, falling snow and wrapped gifts */
.stop.xmas .pin { background: #1f9d55; }
.stop.xmas .ticket { background: linear-gradient(180deg, #eef5fc 0%, #fffdf6 55%); }
.stop.xmas .ticket::before { background: repeating-linear-gradient(45deg, #dc3b30 0 10px, #fff 10px 20px); z-index: 2; }
.stop.xmas .ticket > * { position: relative; z-index: 1; }
.stop.xmas .ticket > .status { position: absolute; z-index: 3; }
.stop.xmas h2 .hl { color: var(--red); }
.status.peek { background: #dc3b30; color: #fff; }
.snow { position: absolute !important; inset: 0; border-radius: 17px; z-index: 0 !important; pointer-events: none; opacity: .9;
  background-image: radial-gradient(circle, #c9dcf0 0 2.5px, transparent 3.5px), radial-gradient(circle, #d6e4f3 0 1.8px, transparent 2.8px), radial-gradient(circle, #c3d7ee 0 3.2px, transparent 4.2px);
  background-size: 90px 90px, 60px 60px, 140px 140px; background-position: 0 0, 20px 30px, 50px 10px;
  animation: snowfall 14s linear infinite; }
@keyframes snowfall { to { background-position: 30px 90px, 0 90px, 80px 140px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }
.gifts { display: flex; gap: 12px; margin-top: 18px; }
.gift { width: 50px; height: 50px; overflow: visible; transform-origin: 50% 100%; animation: wobble 2.6s ease-in-out infinite; }
.gift .box, .gift .lid { fill: var(--c); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.gift .lid { filter: brightness(1.08); }
.gift .rib, .gift .bow, .gift .knot { fill: var(--r); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.gift:nth-child(2) { animation-delay: .3s; } .gift:nth-child(3) { animation-delay: .6s; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-8deg); } 84% { transform: rotate(7deg); } 92% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .gift { animation: none; } }

/* Lunar New Year sneak peek: red and gold, gold-pattern tape, swinging lanterns and a lucky envelope */
.stop.lny .pin { background: #c8231c; color: #ffd76a; }
.stop.lny .ticket { background: linear-gradient(180deg, #fff1d6 0%, #fffdf6 60%); }
.stop.lny .ticket::before { background: repeating-linear-gradient(90deg, #c8231c 0 12px, #f4b821 12px 16px); z-index: 2; }
.stop.lny .ticket > * { position: relative; z-index: 1; }
.stop.lny .ticket > .status { position: absolute; z-index: 3; }
.stop.lny h2 .hl { color: #c8231c; }
.stop.lny .status.peek { background: #c8231c; color: #ffd76a; }
.lanterns { display: flex; align-items: flex-start; gap: 14px; margin-top: 16px; }
.lantern { width: 40px; height: 62px; overflow: visible; transform-origin: 50% 0; animation: swing 3.2s ease-in-out infinite; }
.lantern:nth-child(2) { animation-delay: .5s; height: 54px; } .lantern:nth-child(3) { animation-delay: 1s; }
.lantern .cord { stroke: var(--ink); stroke-width: 2.4; }
.lantern .body { fill: #dc2b22; stroke: var(--ink); stroke-width: 2.6; }
.lantern .rib { fill: none; stroke: #8f150f; stroke-width: 2; }
.lantern .cap { fill: #f4b821; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.lantern .tassel { stroke: #f4b821; stroke-width: 3; stroke-linecap: round; }
.envelope { width: 40px; height: 54px; margin-left: 6px; align-self: flex-end; transform: rotate(8deg); overflow: visible; }
.envelope .env { fill: #dc2b22; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.envelope .flap { fill: #c8231c; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.envelope .seal { fill: #f4b821; stroke: var(--ink); stroke-width: 2.2; }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .lantern { animation: none; } }

.stop.big .ticket { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; --r: 0deg; padding: 22px; }
.feat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: center; margin-top: 14px; }
.shot { border: 5px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink); background: #e9dfc3; overflow: hidden; }
.shot img { width: 100%; height: auto; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 11px; height: 11px; background: var(--orange); border: 3px solid var(--ink); border-radius: 50%; }
.here { position: absolute; right: calc(50% + 46px); top: 0; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; z-index: 2; pointer-events: none; }
.here img { width: 52px; }
.here span { font-family: var(--display); font-size: 16px; color: var(--red); -webkit-text-stroke: 4px #f1e6c8; paint-order: stroke fill; transform: rotate(-6deg); white-space: nowrap; }
.rm-cta .fine { font-size: 16px; font-weight: 700; max-width: 44ch; margin: 0; line-height: 1.5; }

/* Landing page: World Tour teaser that leads to the roadmap */
.next-up { border-top: 6px solid var(--ink); }
.next-up .wrap { padding-block: 80px 130px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; }
.next-up .cap { text-align: left; }
.next-up .cap .hl { color: var(--red); }
.next-up p { font-size: 18px; font-weight: 700; line-height: 1.55; margin: 16px 0 26px; max-width: 40ch; }
.next-up .shot { transform: rotate(1.5deg); }
.go { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: .02em; background: var(--red); color: #fff; border: 4px solid var(--ink); border-radius: 14px; padding: 12px 20px 8px; box-shadow: 0 5px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease; }
.go:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.go:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }

@media (max-width: 820px) {
  .rm-head { margin-top: 26px; }
  .route { padding: 90px 0 50px; }
  .route::before { left: 28px; transform: none; }
  .stop { grid-template-columns: 56px 1fr; gap: 14px; }
  .stop .pin { grid-column: 1; width: 48px; font-size: 24px; }
  .ticket, .stop:nth-child(even) .ticket, .stop.big .ticket { grid-column: 2; grid-row: 1; margin-top: 0; }
  .feat { grid-template-columns: 1fr; }
  .ticket h2 { font-size: 27px; }
  .here { right: auto; left: 0; top: -54px; flex-direction: row; }
  .here img { width: 40px; }
  .next-up .wrap { grid-template-columns: 1fr; padding-block: 60px 110px; }
  .next-up .cap { text-align: center; }
  .next-up .copy { text-align: center; }
  .next-up p { margin-inline: auto; }
}
