/* Coconut Rocket landing page. Colours, fonts, the logo, the buttons and the carved panels come straight from the
   game's own stylesheet (reference/prototype/index.html in the CoconutRocket repo, ported to lib/ui/theme). */
@font-face { font-family: 'Lilita One'; src: url('/coconut-rocket/assets/fonts/LilitaOne-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url('/coconut-rocket/assets/fonts/Nunito-SemiBold.ttf') format('truetype'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Nunito; src: url('/coconut-rocket/assets/fonts/Nunito-ExtraBold.ttf') format('truetype'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: Nunito; src: url('/coconut-rocket/assets/fonts/Nunito-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --night: #120B10;
  --basalt: #2B1D20;
  --basalt-hi: #4A3236;
  --magma: #FF5A1F;
  --ember: #FFB238;
  --leaf: #7CC04A;
  --cream: #FFF1D6;
  --ink: #1C0F0B;
  --muted: #C9AB95;
  --label: #F0BF86;
  --wallet: #FFE7B8;
  --card-hi: #45302F; --card-lo: #2E1F21; --card-lip: #1F1517;
  --tile-hi: #523936; --tile-lo: #39272A; --tile-lip: #261A1C;
  --rim: inset 0 1px 0 rgba(255, 226, 190, .12);
  --go-hi: #B4EC72; --go-mid: #7CC04A; --go-lo: #4F9A2A; --go-lip: #2F6A17; --go-ink: #1D3A0C;
  --gold-hi: #FFE08A; --gold-mid: #FFB238; --gold-lo: #E8781A; --gold-lip: #9A4A0C; --gold-ink: #4A2206;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --body: Nunito, ui-rounded, system-ui, -apple-system, sans-serif;
  --s: .9; /* scene scale: CSS px per game px (the game is 390 x 844), set by script.js */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font: 600 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--ember); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .01em; }
h2 { font-size: clamp(34px, 5.4vw, 54px); margin-bottom: 14px; color: var(--cream); text-shadow: 0 3px 0 rgba(90, 40, 14, .85), 0 0 18px rgba(0, 0, 0, .35); text-wrap: balance; }
h2 em { font-style: normal; color: var(--ember); }
h3 { font-size: 24px; margin-bottom: 6px; color: var(--cream); text-shadow: 0 2px 0 rgba(90, 40, 14, .8); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 14px; background: var(--ember); color: var(--ink); font-weight: 900; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.eyebrow { margin: 0 0 10px; color: var(--label); font: 900 13px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.lede { max-width: 60ch; margin: 0 0 14px; color: var(--muted); font-size: 18px; font-weight: 700; }
.lede strong { color: var(--cream); }

/* ---- The game's buttons ---- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 24px; border: 0; border-radius: 22px; cursor: pointer;
  font: 400 24px/1 var(--display); letter-spacing: .02em; color: var(--go-ink); text-decoration: none;
  background: linear-gradient(var(--go-hi), var(--go-mid) 55%, var(--go-lo)); box-shadow: 0 5px 0 var(--go-lip), 0 10px 24px rgba(60, 140, 30, .25), inset 0 2px 0 rgba(255, 255, 255, .45); transition: transform .08s, box-shadow .08s, filter .15s; }
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--go-lip), inset 0 2px 0 rgba(255, 255, 255, .45); }
.cta.gold { color: var(--gold-ink); background: linear-gradient(var(--gold-hi), var(--gold-mid) 55%, var(--gold-lo)); box-shadow: 0 5px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .5); }
.cta.gold:active { box-shadow: 0 1px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .5); }
.cta.small { min-height: 42px; padding: 6px 16px; border-radius: 16px; font-size: 18px; box-shadow: 0 4px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .5); }
.cta svg { width: 24px; height: 24px; flex: none; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-button { flex-direction: column; gap: 3px; min-width: 220px; min-height: 66px; padding: 8px 22px 10px; }
.store-button small { display: inline-flex; align-items: center; gap: 6px; font: 800 13px var(--body); letter-spacing: 0; opacity: .85; }
.store-button small svg { width: 16px; height: 16px; }
.store-button strong { font-weight: 400; font-size: 26px; }

/* The round orb buttons on the home screen's rails, used as feature badges. */
.orb { position: relative; flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--o-hi), var(--o-mid) 55%, var(--o-lo)); box-shadow: 0 4px 0 var(--o-lip), 0 8px 16px rgba(0, 0, 0, .3); }
.orb::before { content: ''; position: absolute; left: 13%; top: 7%; width: 52%; height: 30%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)); }
.orb svg { position: relative; width: 32px; height: 32px; filter: drop-shadow(0 2px 0 var(--o-lip)); }
.orb.blue { --o-hi: #A8E6FF; --o-mid: #3FA8EA; --o-lo: #2378C4; --o-lip: #164F8A; }
.orb.orange { --o-hi: #FFD08A; --o-mid: #FF8A2E; --o-lo: #E05A14; --o-lip: #93360A; }
.orb.pink { --o-hi: #FFB6E6; --o-mid: #E05AB4; --o-lo: #B03A8C; --o-lip: #6E1F58; }
.orb.green { --o-hi: #D4F7A0; --o-mid: #7CC04A; --o-lo: #4F9A2A; --o-lip: #2F6A17; }

/* The front end's cards: soft gradients with a darker same-hue lip and a faint light rim, no dark outlines. */
.card { border-radius: 22px; background: radial-gradient(140% 90% at 20% 0%, rgba(255, 255, 255, .06), transparent 55%), linear-gradient(var(--card-hi), var(--card-lo)); box-shadow: 0 5px 0 var(--card-lip), 0 18px 40px rgba(0, 0, 0, .35), var(--rim); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; background: linear-gradient(#4A3230, #33221F); box-shadow: 0 3px 0 var(--card-lip), var(--rim); color: var(--wallet); font: 400 18px/1.2 var(--display); letter-spacing: .02em; white-space: nowrap; }
.chip.label { font: 900 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }

/* ---- The logo: Lilita One with a warm extruded edge, no outline (the home screen's h1.logo) ---- */
.logo { display: inline-flex; flex-direction: column; align-items: center; margin: 0; line-height: .82; font: 400 1em/.82 var(--display); letter-spacing: .01em; transform: rotate(-3deg); animation: logoBob 4s ease-in-out infinite; }
.logo span { display: block; }
.logo .l1 { font-size: .52em; margin-right: 22%; color: #FFF3DC; background: linear-gradient(#FFFAF0 30%, #FFE2B0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #C98A52) drop-shadow(0 2px 0 #9A5A2C) drop-shadow(0 2px 0 #6E3818) drop-shadow(0 6px 10px rgba(30, 10, 4, .45)); }
.logo .l2 { font-size: 1em; margin-top: -.02em; color: #FFB238; background: linear-gradient(#FFF2A8 8%, #FFD04A 38%, #FF9A22 70%, #F06A12); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(255, 250, 220, .8)) drop-shadow(0 2px 0 #E0661A) drop-shadow(0 2px 0 #B8460E) drop-shadow(0 3px 0 #8A2E0A) drop-shadow(0 10px 14px rgba(40, 10, 2, .5)); }
@keyframes logoBob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2.2deg) translateY(-3px); } }

/* ---- Header ---- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; padding: 10px 0; background: linear-gradient(rgba(18, 11, 16, .78), rgba(18, 11, 16, .5)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 226, 190, .08); transition: background .25s; }
.site-header.scrolled { background: rgba(18, 11, 16, .9); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 400 24px/1 var(--display); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(90, 40, 14, .85); }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 3px 0 var(--card-lip); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--cream); font-weight: 800; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ember); }
@media (max-width: 820px) { .nav-link { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---- The scene: a game level in game px x --s ---- */
.scene { position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s)); overflow: hidden; background: #1A2414 var(--zone, url('/coconut-rocket/assets/images/zone-jungle.jpg')) center / 100% 100% no-repeat; }
.scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: linear-gradient(to bottom, rgba(14, 8, 10, .5) 0, rgba(14, 8, 10, 0) 22%, rgba(14, 8, 10, 0) 70%, rgba(18, 8, 6, .55) 100%), radial-gradient(120% 60% at 50% 46%, rgba(0, 0, 0, 0) 55%, rgba(8, 4, 6, .35) 100%); }
.scene > * { position: absolute; pointer-events: none; }
.pilot { z-index: 2; left: 0; top: 0; width: calc(var(--pw) * 1px * var(--s)); height: auto; translate: -50% -29.6%; transform: translate(calc(195px * var(--s)), calc(420px * var(--s))); will-change: transform; filter: drop-shadow(0 calc(6px * var(--s)) calc(8px * var(--s)) rgba(0, 0, 0, .25)); }
.poison { z-index: 3; left: 0; bottom: calc(-8px * var(--s)); width: 100%; height: auto; will-change: transform; }
.poison-live { z-index: 3; left: 0; top: calc(220px * var(--s)); width: 100%; height: calc(624px * var(--s)); }
/* A coin is one cell of the game's coin sheet; script.js steps through its frames. */
.coin { z-index: 1; left: 0; top: 0; width: calc(34px * var(--s)); height: calc(34px * var(--s)); translate: -50% -50%; background: var(--coin-img) 0 0 no-repeat; will-change: transform; }
.coin.got { animation: coinGot .35s ease-out forwards; }
@keyframes coinGot { to { opacity: 0; scale: 1.8; } }
.mote { z-index: 1; width: calc(4px * var(--s)); height: calc(4px * var(--s)); border-radius: 50%; background: #FFD08A; box-shadow: 0 0 calc(6px * var(--s)) #FFB238; opacity: .7; animation: moteRise linear infinite; }
@keyframes moteRise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .75; } to { transform: translateY(calc(-420px * var(--s))); opacity: 0; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 86px 0 40px; background: var(--night); }
.hero-ambient { position: absolute; inset: -40px; background: url('/coconut-rocket/assets/images/zone-jungle-sm.jpg') center 30% / cover; filter: blur(26px) saturate(1.1) brightness(.45); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(28px, 5vw, 70px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero-copy .logo { font-size: clamp(84px, 10vw, 128px); margin: 10px 0 8px 10px; }
.hero-lede { margin: 0; max-width: 34ch; font-size: 20px; font-weight: 700; color: rgba(255, 241, 214, .9); }
.hero-lede strong { color: var(--ember); font-weight: 900; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-stage { position: relative; }
.hero-stage .scene { border-radius: calc(44px * var(--s)); box-shadow: 0 0 0 calc(10px * var(--s)) #0C0709, 0 0 0 calc(12px * var(--s)) rgba(255, 226, 190, .12), 0 30px 70px rgba(0, 0, 0, .6); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage-logo, .stage-cta { display: none; }

@media (max-width: 860px) {
  .hero { padding: 62px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; width: 100%; }
  .hero-copy { display: none; }
  .hero-stage { width: 100%; }
  .hero-stage .scene { margin: 0 auto; border-radius: 0; box-shadow: none; }
  /* On a phone the hero is the home screen: the logo up top, the Play style store button in the thumb zone. */
  .stage-logo { display: flex; position: absolute; z-index: 6; left: 0; right: 0; top: calc(92px * var(--s)); justify-content: center; pointer-events: none; }
  .stage-logo .logo { font-size: calc(80px * var(--s)); }
  .stage-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; z-index: 6; left: calc(20px * var(--s)); right: calc(20px * var(--s)); bottom: calc(30px * var(--s)); }
  .stage-cta .store-buttons { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .stage-cta .store-button { flex: 1 1 0; min-width: 0; padding: 8px 10px; }
  .stage-cta .store-button strong { font-size: 21px; white-space: nowrap; }
  .stage-cta .store-button small { font-size: 12px; white-space: nowrap; }
  }

/* ---- Bands ---- */
.band { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.band.basalt { background: radial-gradient(120% 70% at 15% 0%, rgba(255, 178, 56, .07), transparent 60%), linear-gradient(var(--night), #1E1418); }
.band.ember { background: radial-gradient(90% 70% at 85% 10%, rgba(255, 90, 31, .16), transparent 65%), linear-gradient(#1E1418, #24161A); }
.band.leaf { background: radial-gradient(90% 70% at 10% 0%, rgba(124, 192, 74, .14), transparent 65%), linear-gradient(#141A12, #101410); }
.band + .band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 226, 190, .14), transparent); }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 26px 24px 24px; }
.steps p { margin: 0; color: var(--muted); font-weight: 700; }
.step-num { display: block; margin-bottom: 14px; font: 400 40px/1 var(--display); color: #FFE14A; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.zones { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zone { overflow: hidden; display: flex; flex-direction: column; }
.zone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 560; object-fit: cover; object-position: center 40%; }
.zone div { padding: 18px 22px 22px; }
.zone p { margin: 0; color: var(--muted); font-weight: 700; }
.zone .chip { margin-bottom: 10px; }
@media (max-width: 860px) { .zones { grid-template-columns: 1fr; } .zone img { aspect-ratio: 390 / 300; } }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.daily-card { padding: 30px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.daily-card .big { font: 400 clamp(46px, 6vw, 62px)/1 var(--display); color: var(--cream); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); margin: 0; }
.daily-card p { margin: 0; color: var(--muted); font-weight: 700; }
.streak { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0; padding: 0; list-style: none; }
.streak li { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 400 17px/1 var(--display); color: var(--gold-ink); background: linear-gradient(var(--gold-hi), var(--gold-mid) 55%, var(--gold-lo)); box-shadow: 0 3px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .5); }
.streak li.next { color: var(--muted); background: linear-gradient(var(--tile-hi), var(--tile-lo)); box-shadow: 0 3px 0 var(--tile-lip), var(--rim); }

.crew { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 640px) { .crew { grid-template-columns: repeat(2, 1fr); } }
.crew li.more { justify-content: center; }
.crew li.more b { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 18px; border-radius: 50%; font: 400 38px/1 var(--display); color: var(--ink); background: radial-gradient(circle at 35% 30%, #FFE08A, var(--ember) 60%, #D9741C); box-shadow: 0 5px 0 #8A4A12, inset 0 2px 0 rgba(255, 255, 255, .5); }
.crew li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 14px; border-radius: 16px; text-align: center;
  background: radial-gradient(90% 70% at 50% 30%, rgba(124, 192, 74, .2), transparent 70%), linear-gradient(#3D4A36, #263022); box-shadow: 0 4px 0 #182013, var(--rim); }
.crew li.equipped { box-shadow: 0 0 0 3px var(--ember), 0 4px 0 #182013; }
.crew img { width: auto; height: 150px; object-fit: contain; object-position: top; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.crew strong { font: 400 18px/1.15 var(--display); letter-spacing: .01em; }
.crew span { font: 800 13px/1.3 var(--body); color: var(--muted); }

.features { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.features p { margin: 0; color: var(--muted); font-weight: 700; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

.shots { display: flex; justify-content: safe center; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(16px, (100% - 1120px) / 2) 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 226, 190, .3) transparent; }
.shots figure { flex: none; width: clamp(200px, calc((min(1120px, 100vw - 32px) - 88px) / 5), 250px); margin: 0; scroll-snap-align: center; }
.shots img { display: block; width: 100%; height: auto; border-radius: 30px; border: 6px solid #0C0709; box-shadow: 0 0 0 2px rgba(255, 226, 190, .14), 0 22px 40px rgba(0, 0, 0, .45); background: #0C0709; }
.shots figcaption { margin-top: 14px; text-align: center; font: 400 19px var(--display); letter-spacing: .02em; }

.faq-list { margin-top: 26px; display: grid; gap: 12px; max-width: 820px; }
.faq-list details { border-radius: 16px; background: linear-gradient(var(--tile-hi), var(--tile-lo)); box-shadow: 0 4px 0 var(--tile-lip), var(--rim); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font: 400 21px/1.25 var(--display); letter-spacing: .01em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: 22px; height: 22px; color: var(--ember); transition: transform .2s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-weight: 700; }

/* The closing scene: the level at a fixed scale behind the card. */
.cta-band { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 120px) 0; background: var(--night); }
.cta-band .hero-ambient { background-image: url('/coconut-rocket/assets/images/zone-magma-sm.jpg'); filter: blur(22px) saturate(1.15) brightness(.5); }
.cta-card { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 46px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 6px 0 var(--card-lip), 0 16px 30px rgba(0, 0, 0, .4); }
.cta-card h2 { margin: 0; }
.cta-card p { margin: 0; color: var(--muted); font-size: 18px; font-weight: 700; }
.cta-card .store-buttons { justify-content: center; }

.site-footer { background: #0C0709; padding: 30px 0 40px; box-shadow: 0 -1px 0 rgba(255, 226, 190, .08); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-row p { margin: 0; color: var(--muted); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a, .footer-link { color: var(--cream); font: 800 15px var(--body); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-links a:hover, .footer-link:hover { color: var(--ember); }

dialog { width: min(420px, calc(100% - 32px)); padding: 30px 24px 24px; border: 0; border-radius: 26px; color: var(--cream); text-align: center;
  background: radial-gradient(140% 90% at 20% 0%, rgba(255, 255, 255, .07), transparent 55%), linear-gradient(170deg, var(--card-hi), var(--card-lo)); box-shadow: 0 6px 0 var(--card-lip), 0 30px 80px rgba(0, 0, 0, .6), var(--rim); }
dialog::backdrop { background: rgba(10, 5, 8, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog h2 { font-size: 32px; }
dialog p { color: var(--muted); font-weight: 700; }
dialog img { width: 110px; height: auto; margin: -4px 0 6px; }
dialog .cta { margin-top: 6px; }
.dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 13px; cursor: pointer; color: var(--cream); background: linear-gradient(var(--tile-hi), var(--tile-lo)); box-shadow: 0 3px 0 var(--tile-lip), var(--rim); }
.dialog-close svg { width: 18px; height: 18px; }

/* ---- Sub pages (privacy, support): a short level band with the title, then the text on a carved panel ---- */
.page-hero { position: relative; overflow: hidden; height: clamp(300px, 42vw, 420px); background: #1A2414 url('/coconut-rocket/assets/images/zone-jungle.jpg') center 38% / cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(18, 11, 16, .55), rgba(18, 11, 16, .15) 45%, var(--night)); }
.page-hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 50px; }
.page-title { font: 400 clamp(46px, 8vw, 82px)/.95 var(--display); color: var(--cream); text-shadow: 0 4px 0 rgba(90, 40, 14, .9), 0 0 30px rgba(0, 0, 0, .4); }
.page-title em { font-style: normal; color: var(--ember); }
.page-pilot { position: absolute; z-index: 1; right: max(16px, (100% - 1120px) / 2 + 40px); top: 54%; width: clamp(110px, 16vw, 190px); height: auto; translate: 0 -50%; animation: hover 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (max-width: 640px) { .page-pilot { width: 96px; right: 14px; top: 62%; } .page-hero-copy { padding-right: 110px; } }
.doc-band { padding-top: 10px; }
.doc { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 52px); }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: clamp(26px, 3.4vw, 32px); color: var(--ember); margin: 40px 0 10px; text-shadow: 0 2px 0 rgba(90, 40, 14, .8); }
.doc h3 { font-size: 21px; margin: 24px 0 6px; }
.doc p, .doc li { color: rgba(255, 241, 214, .86); max-width: 72ch; font-weight: 600; }
.doc p { margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--ember); }
.doc strong { color: var(--cream); font-weight: 800; }
.doc a { color: var(--ember); text-underline-offset: 3px; }
.doc a.cta { color: var(--gold-ink); text-decoration: none; }
.doc-summary { margin-bottom: 8px; padding: 20px 24px; border-radius: 18px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 2px rgba(255, 178, 56, .32); }
.doc-summary p:last-child { margin-bottom: 0; }
.doc-summary .doc-summary-title { font: 400 24px/1.2 var(--display); color: var(--cream); }
.doc-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.doc-contact p { margin: 0; flex: 1 1 260px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo, .mote, .page-pilot { animation: none; }
  .mote { display: none; }
  .cta { transition: none; }
}
.motion-paused .logo, .motion-paused .mote, .motion-paused .page-pilot { animation-play-state: paused; }
