/* Glimmer Isles. The page travels one continuous sky, from Dawn Meadow to Starfall and back to sunrise.
   Colours come from the game's Palette and WORLDS tables. */

@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #231a52;
  --ink-soft: #5d5594;
  --sun: #ffc93a;
  --sun-deep: #ff8f2e;
  --sun-edge: #d7601c;
  --paper: #fffaf3;
  --glass: rgba(255, 255, 255, .82);
  --glass-edge: rgba(255, 255, 255, .95);
  --shade: rgba(35, 26, 82, .22);
  --night: #140033;
  --extrude: #4a2f9a;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--night); overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--night); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible { outline-color: #fff; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 12px; background: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* Display type: the chunky toy lettering of the in-game logo. */
.display { font-family: var(--display); font-weight: 700; line-height: .92; letter-spacing: -.015em; color: #fff; text-wrap: balance; text-shadow: 0 .035em 0 var(--extrude), 0 .07em 0 color-mix(in srgb, var(--extrude) 70%, transparent), 0 .13em .22em rgba(35, 26, 82, .32); }
.h-xl { font-size: clamp(4rem, 8.6vw, 8.75rem); }
.h-lg { font-size: clamp(2.9rem, 6vw, 5.75rem); }
.h-md { font-size: clamp(2.3rem, 3.8vw, 3.5rem); line-height: 1; }
.kicker { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: clamp(1.13rem, 1.5vw, 1.32rem); line-height: 1.5; max-width: 34em; }

/* Toy buttons */
.btn { --edge: #c9c3df; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 9px 28px 11px; border: 2px solid var(--glass-edge); border-radius: 20px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--edge), 0 12px 22px var(--shade); transition: transform .12s ease, box-shadow .12s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge), 0 16px 26px var(--shade); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 4px 10px var(--shade); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-sun { --edge: var(--sun-edge); background: linear-gradient(180deg, var(--sun), var(--sun-deep)); border-color: rgba(255, 240, 200, .9); }
.btn-main { font-size: 1.3rem; font-weight: 700; }
.btn small { font-family: var(--body); font-size: .82rem; font-weight: 600; opacity: .82; }
.btn-lg { min-height: 72px; padding-inline: 44px; border-radius: 24px; }
.btn-lg .btn-main { font-size: 1.55rem; }

/* Navigation */
.nav { position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 28px), 980px); display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border: 1.5px solid var(--glass-edge); border-radius: 22px; background: rgba(255, 255, 255, .76); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 10px 28px rgba(35, 26, 82, .2); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--display); font-weight: 700; font-size: 1.16rem; text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 7px 13px; border-radius: 12px; font-family: var(--display); font-weight: 500; text-decoration: none; }
.nav-links a:hover { background: rgba(35, 26, 82, .08); }
.nav-cta { padding: 8px 17px; border-radius: 14px; background: linear-gradient(180deg, var(--sun), var(--sun-deep)); box-shadow: 0 3px 0 var(--sun-edge); font-family: var(--display); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Skies */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sky i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.sky i.on { opacity: 1; }
.sky .w0 { background: linear-gradient(180deg, #4fb4ff 0%, #a9d2f0 34%, #ffd9bd 66%, #ff9db2 100%); }
.sky .w1 { background: linear-gradient(180deg, #0b9fc4 0%, #63e2d2 58%, #e3fff3 100%); }
.sky .w2 { background: linear-gradient(180deg, #7a3fa8 0%, #d9648a 40%, #ff8a5c 68%, #ffd772 100%); }
.sky .w3 { background: linear-gradient(180deg, #070b33 0%, #262a8f 58%, #12b89a 100%); }
.sky .w4 { background: linear-gradient(180deg, #140033 0%, #5b1c96 58%, #ff62a5 100%); }
.sky .w3::after, .sky .w4::after, .starfield::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 27% 42%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 44% 12%, #ffe9a8 50%, transparent 52%), radial-gradient(1px 1px at 58% 34%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 73% 16%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 86% 40%, #fff 50%, transparent 52%), radial-gradient(2px 2px at 93% 9%, #bdf7ff 50%, transparent 52%), radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 36% 60%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 66% 54%, #fff 50%, transparent 52%); background-size: 620px 520px; opacity: .85; pointer-events: none; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-in { min-height: min(100svh, 1000px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(8px, 2vw, 32px); padding-top: 92px; padding-bottom: 28px; }
.hero-copy { position: relative; z-index: 3; display: grid; gap: 22px; justify-items: start; }
.hero .kicker { color: #fff; text-shadow: 0 1px 0 var(--extrude), 0 2px 8px rgba(35, 26, 82, .35); }
.hero-pitch { display: grid; gap: 14px; padding: 18px 22px; border: 1.5px solid var(--glass-edge); border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 28px var(--shade); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink-soft); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun-deep); }

/* The playable isle */
.play { position: relative; height: min(calc(100svh - 124px), 860px); min-height: 560px; border-radius: 28px; outline-offset: 4px; }
.play canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.gl-fallback { display: none; height: 100%; width: auto; margin-inline: auto; border-radius: 34px; box-shadow: 0 24px 50px var(--shade); }
.no-gl .gl-fallback { display: block; }
.no-gl canvas, .no-gl .play-hud, .no-gl .play-controls { display: none; }
.play-hud { position: absolute; z-index: 2; top: 6px; left: 0; right: 0; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.world-pill { display: grid; justify-items: center; padding: 6px 22px 7px; border: 1.5px solid var(--glass-edge); border-radius: 18px; background: var(--glass); box-shadow: 0 4px 0 rgba(35, 26, 82, .16); font-family: var(--display); line-height: 1.12; }
.world-pill b { font-size: 1.1rem; font-weight: 700; }
.world-pill span { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.play-score { display: flex; align-items: center; gap: 14px; color: #fff; font-family: var(--display); text-shadow: 0 2px 0 rgba(35, 26, 82, .55); }
.play-score b { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.play-score small { font-size: .74rem; font-weight: 600; letter-spacing: .14em; line-height: 1.15; text-transform: uppercase; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 20px; height: 20px; fill: var(--sun); filter: drop-shadow(0 1px 0 var(--sun-edge)); transition: fill .2s ease; }
.stars svg.off { fill: rgba(255, 255, 255, .42); filter: none; }
.play-par { padding: 2px 11px; border-radius: 9px; background: rgba(35, 26, 82, .5); color: #fff; font-family: var(--display); font-weight: 600; font-size: .84rem; }
.play-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.tool { min-width: 84px; min-height: 58px; padding: 7px 14px; border-radius: 18px; font-size: 1rem; }
.tool.btn-sun { min-width: 96px; min-height: 66px; font-weight: 700; }
.play-msg { position: absolute; z-index: 3; left: 50%; bottom: 96px; transform: translate(-50%, 8px); max-width: calc(100% - 24px); width: max-content; padding: 8px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 500; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.play-msg.show { opacity: 1; transform: translate(-50%, 0); }
.coach { position: absolute; z-index: 2; left: 0; top: 0; padding: 6px 13px; border-radius: 13px; background: #fff; font-family: var(--display); font-weight: 600; font-size: .95rem; white-space: nowrap; box-shadow: 0 6px 16px var(--shade); pointer-events: none; }
.coach::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 13px; height: 13px; margin-left: -6px; background: #fff; border-radius: 3px; transform: rotate(45deg); }
.win { position: absolute; z-index: 4; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(calc(100% - 16px), 430px); display: grid; justify-items: center; gap: 8px; padding: 26px 22px 22px; border: 2px solid var(--glass-edge); border-radius: 30px; background: rgba(255, 252, 248, .96); box-shadow: 0 24px 50px rgba(35, 26, 82, .36); text-align: center; animation: win-in .42s cubic-bezier(.2, 1.4, .4, 1); }
.play.won .play-controls { visibility: hidden; }
.win h3 { font-family: var(--display); font-size: 2.15rem; font-weight: 700; line-height: 1; }
.win p { color: var(--ink-soft); font-family: var(--display); font-weight: 500; }
.win-stars { display: flex; align-items: flex-end; gap: 4px; margin-top: -54px; margin-bottom: 4px; }
.win-stars svg { width: 54px; height: 54px; fill: var(--sun); stroke: #fff; stroke-width: 1.6; paint-order: stroke; filter: drop-shadow(0 3px 3px rgba(215, 96, 28, .45)); }
.win-stars svg:nth-child(2) { width: 70px; height: 70px; }
.win-stars svg.off { fill: #ded9ee; filter: none; }
.win-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; width: 100%; margin-top: 8px; }
@keyframes win-in { from { transform: translate(-50%, 28px) scale(.92); opacity: 0; } }

/* Crew */
.crew { position: relative; padding-block: clamp(72px, 9vw, 130px) clamp(64px, 8vw, 110px); background: linear-gradient(180deg, #ff9db2 0%, #ffd9bd 56%, #4fb4ff 100%); }
.crew-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: clamp(24px, 4vw, 60px); row-gap: 24px; }
.crew-head { grid-column: 2; grid-row: 1; align-self: end; display: grid; gap: 12px; }
.crew-head .display { font-size: clamp(2.7rem, 4.3vw, 4.3rem); }
.crew-head .lead { font-size: 1.12rem; }
.crew-stage { position: relative; grid-column: 1; grid-row: 1 / span 2; height: min(76svh, 660px); min-height: 420px; }
.crew-list { grid-column: 2; grid-row: 2; align-self: start; }
.crew-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crew-stage .gl-fallback { height: 100%; }
.crew-list { display: grid; gap: 6px; }
.crew-list button { width: 100%; display: grid; grid-template-columns: 22px 70px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .5); text-align: left; cursor: pointer; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.crew-list button:hover { background: rgba(255, 255, 255, .74); }
.crew-list button[aria-pressed="true"] { background: #fff; border-color: var(--c); transform: translateX(6px); box-shadow: 0 8px 20px var(--shade); }
.crew-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -4px 0 rgba(35, 26, 82, .2); }
.crew-name { font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 1; }
.crew-rule { font-size: 1rem; line-height: 1.3; }

/* Isles journey */
.isles { position: relative; isolation: isolate; }
.isles .sky { position: sticky; inset: 0 auto auto; width: 100%; height: 100svh; }
.isles-in { margin-top: -100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 40px); }
.isles-steps { padding-block: 12svh 26svh; display: grid; gap: 34svh; position: relative; z-index: 2; }
.isles-title { display: grid; gap: 16px; margin-bottom: -18svh; min-height: 40svh; align-content: center; color: #fff; }
.isles-title p { max-width: 28em; text-shadow: 0 1px 8px rgba(35, 26, 82, .45); font-weight: 500; }
.isle-step { display: grid; gap: 10px; padding: 26px 28px; border: 2px solid var(--glass-edge); border-radius: 28px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 36px rgba(35, 26, 82, .24); transition: transform .35s ease; }
.isle-step.on { transform: scale(1.02); }
.isle-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tag { padding: 3px 11px; border-radius: 9px; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.tag-free { background: #c9f5a0; color: #1f4a12; }
.tag-full { background: var(--ink); color: #fff; }
.isle-step h3 { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; line-height: 1; }
.isles-stage { position: sticky; top: 0; height: 100svh; }
.isles-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.isles-stage .gl-fallback { height: 76%; margin-top: 12svh; }
.isle-rail { position: absolute; z-index: 2; right: 8px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.isle-rail span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: transform .25s ease, background .25s ease; }
.isle-rail span.on { background: #fff; transform: scale(1.5); }

/* Features */
.features { position: relative; color: #fff; padding-block: clamp(120px, 14vw, 210px) clamp(70px, 8vw, 120px); background: linear-gradient(180deg, #ff62a5 0%, #5b1c96 15%, #1f0a58 48%, #140033 100%); }
.starfield::before { z-index: 0; }
.features > .wrap, .price > .wrap, .finale > .wrap { position: relative; z-index: 1; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 110px); }
.feature + .feature { margin-top: clamp(80px, 10vw, 150px); }
.feature:nth-of-type(even) .phone-wrap { order: -1; }
.feature-copy { display: grid; gap: 18px; justify-items: start; }
.feature-copy .kicker { color: var(--sun); }
.feature-copy .display { --extrude: #6a3bc4; }
.feature-copy p:not(.kicker) { color: #e6dcff; }
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--halo, #ff62a5) 0%, transparent 68%); opacity: .62; }
.phone { position: relative; width: min(330px, 72vw); aspect-ratio: 1320 / 2868; padding: 9px; border-radius: 52px; background: #0e0a24; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 34px 70px rgba(5, 0, 25, .62); transform: rotate(var(--tilt, 3deg)); transition: transform .5s cubic-bezier(.2, 1, .3, 1); }
.phone:hover { transform: rotate(0deg) scale(1.02); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 43px; }
.calm-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: clamp(84px, 10vw, 150px); padding-top: 34px; border-top: 2px solid rgba(255, 255, 255, .18); }
.calm-list h3 { font-family: var(--display); font-size: 1.42rem; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.calm-list p { color: #d9ceF8; font-size: 1rem; line-height: 1.45; }

/* The deal */
.price { position: relative; color: #fff; padding-block: clamp(60px, 7vw, 110px); background: linear-gradient(180deg, #140033 0%, #1b0b52 100%); }
.price-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.price-copy { display: grid; gap: 18px; justify-items: start; }
.price-copy .display { --extrude: #6a3bc4; }
.price-copy p { color: #e6dcff; }
.price-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.price-perks li { padding: 5px 13px; border: 1.5px solid rgba(255, 255, 255, .34); border-radius: 12px; font-family: var(--display); font-weight: 600; }
.map { display: grid; gap: 18px; padding: clamp(20px, 3vw, 34px); border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 30px; background: rgba(255, 255, 255, .06); }
.map-row { display: grid; gap: 7px; }
.map-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.map-cells { height: 22px; background: repeating-linear-gradient(90deg, var(--c) 0 calc(100% / 36 - 2px), transparent calc(100% / 36 - 2px) calc(100% / 36)); border-radius: 4px; }
.map-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1.5px solid rgba(255, 255, 255, .2); font-family: var(--display); font-weight: 600; color: #e6dcff; font-variant-numeric: tabular-nums; }

/* Finale */
.finale { position: relative; padding-block: clamp(100px, 13vw, 190px) 0; text-align: center; background: linear-gradient(180deg, #1b0b52 0%, #5b1c96 36%, #ff62a5 68%, #ffb56b 90%, #ffd772 100%); }
.finale-in { display: grid; justify-items: center; gap: 26px; padding-bottom: clamp(90px, 11vw, 150px); }
.finale img { width: clamp(112px, 13vw, 164px); aspect-ratio: 1; border-radius: 24%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 22px 60px rgba(255, 201, 58, .55); }
.finale p { max-width: 30em; color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(35, 26, 82, .42); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid rgba(35, 26, 82, .2); color: var(--ink); font-family: var(--display); font-weight: 500; text-align: left; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { font-weight: 600; text-underline-offset: 3px; }

/* Privacy and support */
.doc-page { min-height: 100svh; background: linear-gradient(180deg, #4fb4ff 0, #ffd9bd 360px, #ffe9d6 700px, var(--paper) 1100px); }
.doc-head { padding-block: 128px 40px; display: grid; gap: 14px; }
.doc-head .kicker { color: #fff; text-shadow: 0 1px 0 var(--extrude), 0 2px 8px rgba(35, 26, 82, .35); }
.doc-head .lead { font-weight: 500; }
.doc { width: min(100%, 860px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: 72px; }
.doc-card { padding: clamp(24px, 5vw, 56px); border: 2px solid var(--glass-edge); border-radius: 32px; background: #fff; box-shadow: 0 20px 50px rgba(35, 26, 82, .14); }
.doc-card > * + * { margin-top: 14px; }
.doc-card h2 { margin-top: 38px; font-family: var(--display); font-size: 1.62rem; font-weight: 700; line-height: 1.15; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card ul { display: grid; gap: 8px; }
.doc-card ul li { position: relative; padding-left: 22px; }
.doc-card ul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun-deep); }
.doc-card a { color: #3f2fa8; font-weight: 600; text-underline-offset: 3px; }
.tldr { padding: 20px 24px; border-radius: 22px; background: #fff6d8; }
.tldr strong { font-family: var(--display); font-size: 1.2rem; }
.meta { color: var(--ink-soft); font-size: .95rem; }
.contact { display: grid; gap: 8px; margin-bottom: 22px; padding: clamp(22px, 4vw, 34px); border-radius: 28px; background: var(--ink); color: #fff; }
.contact h2 { font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.contact .mail { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 600; color: var(--sun); overflow-wrap: anywhere; }
.contact p { color: #ddd6f7; }
.faq-group { margin-top: 34px; font-family: var(--display); font-size: 1.42rem; font-weight: 700; }
.faq-group:first-child { margin-top: 0; }
details { border-bottom: 1.5px solid #ece8f6; }
details + details { margin-top: 0 !important; }
summary { position: relative; padding: 14px 34px 14px 0; font-family: var(--display); font-size: 1.13rem; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--sun-edge); }
details[open] summary::after { content: "\2212"; }
details p { padding-bottom: 16px; }
.doc-foot { background: var(--paper); }
.doc-foot .foot { border-top-color: #e6e0f2; }
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; text-align: center; background: linear-gradient(180deg, #140033 0%, #5b1c96 58%, #ff62a5 100%); color: #fff; }

/* Gentle scroll-linked drift, only where supported. Elements stay fully visible at rest. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .phone-wrap { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(46px); } to { transform: translateY(-46px); } }
  }
}

@media (max-width: 1020px) {
  /* The puzzle comes straight after the headline so it is on screen without scrolling. */
  .hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 86px; min-height: 0; text-align: center; }
  .hero-copy { display: contents; }
  .hero .kicker { order: 1; font-size: .76rem; }
  .hero h1 { order: 2; }
  .play { order: 3; height: clamp(480px, 122vw, 720px); min-height: 0; }
  .hero-pitch { order: 4; justify-items: center; }
  .hero-copy > .btn { order: 5; align-self: center; }
  .hero-facts { justify-content: center; }
  .crew-in, .price-in { grid-template-columns: minmax(0, 1fr); }
  .crew-head, .crew-stage, .crew-list { grid-column: 1; grid-row: auto; }
  .crew-stage { height: clamp(260px, 66vw, 460px); min-height: 0; }
  .crew-list button[aria-pressed="true"] { transform: none; }
  .isles-in { grid-template-columns: minmax(0, 1fr); }
  .isles-stage { grid-row: 1; height: 48svh; z-index: 1; }
  .isles-steps { padding-block: 0 22svh; gap: 42svh; }
  .isles-title { margin-bottom: -26svh; min-height: 0; padding: 12px 18px; border-radius: 22px; background: rgba(35, 26, 82, .46); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .phone-wrap { order: 0; }
  .calm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .brand { font-size: 1.05rem; }
  .h-xl { font-size: clamp(3.5rem, 17.5vw, 5rem); }
  .btn-lg { width: 100%; }
  .crew-list button { grid-template-columns: 20px 72px minmax(0, 1fr); padding: 10px 12px; gap: 9px; }
  .crew-name { font-size: 1.14rem; }
  .crew-rule { font-size: .94rem; }
  .play { height: clamp(480px, 132vw, 620px); }
  .play-hud { display: flex; justify-content: center; align-items: center; gap: 12px; top: 2px; }
  .world-pill { padding: 4px 15px 5px; }
  .world-pill b { font-size: 1rem; }
  .play-par { display: none; }
  .play-score { gap: 8px; }
  .play-score b { font-size: 2rem; }
  .stars svg { width: 16px; height: 16px; }
  .play-controls { bottom: 6px; }
  .play-msg { bottom: 76px; }
  .tool { min-width: 76px; min-height: 48px; padding-block: 5px; }
  .tool.btn-sun { min-width: 86px; min-height: 54px; }
  .isle-step { padding: 20px; }
  .calm-list { grid-template-columns: minmax(0, 1fr); }
  .map-cells { height: 15px; background: repeating-linear-gradient(90deg, var(--c) 0 calc(100% / 36 - 1px), transparent calc(100% / 36 - 1px) calc(100% / 36)); }
  .foot { justify-content: center; text-align: center; }
  .foot nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
