/* Ghostmode migration layer.
   This file deliberately owns the product shell so legacy RUH experiments
   cannot override the map-first layout. Core component rules remain in
   styles.css until the incremental migration is complete. */

:root {
  --gm-bg: #f5f8fc;
  --gm-surface: rgba(255, 255, 255, 0.88);
  --gm-surface-solid: #ffffff;
  --gm-surface-muted: #edf3fa;
  --gm-text: #0c1526;
  --gm-muted: #667187;
  --gm-line: rgba(54, 79, 117, 0.18);
  --gm-blue: #4f7ff4;
  --gm-blue-strong: #3568ec;
  --gm-blue-soft: rgba(79, 127, 244, 0.14);
  --gm-danger: #e95f6a;
  --gm-shadow: 0 18px 60px rgba(28, 48, 82, 0.16);
  --gm-glow: 0 0 0 1px rgba(79, 127, 244, 0.25), 0 12px 36px rgba(79, 127, 244, 0.2);
  --gm-radius: 22px;
  --topbar-height: calc(72px + var(--safe-top));
  --font-body: "Cairo", system-ui, sans-serif;
  --font-display: "Cairo", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --gm-bg: #070b14;
  --gm-surface: rgba(14, 21, 36, 0.86);
  --gm-surface-solid: #0e1524;
  --gm-surface-muted: #151e30;
  --gm-text: #f3f6fc;
  --gm-muted: #98a4b9;
  --gm-line: rgba(174, 194, 230, 0.18);
  --gm-blue: #6190ff;
  --gm-blue-strong: #78a0ff;
  --gm-blue-soft: rgba(86, 135, 255, 0.16);
  --gm-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  --gm-glow: 0 0 0 1px rgba(91, 140, 255, 0.42), 0 0 30px rgba(67, 119, 255, 0.24);
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html, body { min-height: 100%; background: var(--gm-bg); color: var(--gm-text); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }

.noise { opacity: 0.025; }
.app-shell { width: 100%; min-height: 100dvh; background: var(--gm-bg); }

.topbar {
  height: var(--topbar-height);
  padding: var(--safe-top) max(20px, var(--safe-right)) 0 max(20px, var(--safe-left));
  background: color-mix(in srgb, var(--gm-surface-solid) 90%, transparent);
  border-bottom: 1px solid var(--gm-line);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  z-index: 80;
}

.brand { gap: 11px; color: var(--gm-text); text-transform: none; font-family: "Kanit", sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.brand-mark, .onboarding-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gm-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gm-text);
  color: var(--gm-surface-solid);
  box-shadow: 0 8px 20px rgba(26, 43, 74, 0.18);
  font: 600 23px/1 "Kanit", sans-serif;
  font-style: normal;
  transform: none;
}

.live-pill { border: 1px solid var(--gm-line); background: var(--gm-surface); color: var(--gm-muted); box-shadow: none; }
.live-dot { background: var(--gm-blue); box-shadow: 0 0 0 5px var(--gm-blue-soft); }
.map-quick-controls { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px; }
.map-quick-controls button { width: 40px; height: 40px; border: 1px solid var(--gm-line); border-radius: 13px; background: var(--gm-surface); color: var(--gm-text); font-size: 11px; font-weight: 800; }
.city-reveal { color: var(--gm-text); border: 1px solid var(--gm-line); background: var(--gm-surface); box-shadow: none; }
.city-locator { background: var(--gm-blue-soft); color: var(--gm-blue); }

.view { background: var(--gm-bg); }
.map-view.is-active { display: block; height: calc(100dvh - var(--topbar-height)); min-height: 560px; padding: 0; }
.map-stage { position: relative; width: 100%; height: 100%; min-height: 560px; overflow: hidden; background: var(--gm-bg); border: 0; }
.nearby-panel { display: none !important; }
.mapbox-map, .mapbox-fallback { inset: 0; width: 100%; height: 100%; }
html[data-theme="dark"] .mapbox-map,
html[data-theme="dark"] .mapbox-fallback { filter: brightness(.78) saturate(.72) contrast(1.06); }

.map-location-loader { background: var(--gm-bg); color: var(--gm-text); }
.map-location-loader small { color: var(--gm-muted); }
.map-loading-ring { border-color: var(--gm-line); border-top-color: var(--gm-blue); }

.mode-switch {
  top: 22px;
  left: 50%;
  width: min(430px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid var(--gm-line);
  border-radius: 20px;
  padding: 5px;
  background: var(--gm-surface);
  box-shadow: var(--gm-shadow);
  backdrop-filter: blur(18px);
}
.mode-button { min-height: 58px; border-radius: 15px; color: var(--gm-muted); }
.mode-button.is-active { color: white; background: var(--gm-blue); box-shadow: 0 10px 26px rgba(53,104,236,.28); }
.mode-button small { color: currentColor; opacity: .66; letter-spacing: 1.1px; }
.mode-icon { font-size: 20px; }

.radius-ring span {
  border: 1px solid color-mix(in srgb, var(--gm-blue) 58%, transparent);
  background: color-mix(in srgb, var(--gm-surface-solid) 86%, transparent);
  color: var(--gm-blue-strong);
  box-shadow: 0 7px 20px rgba(43, 82, 156, 0.12);
}
body.post-mode .post-ring span { background: var(--gm-blue); border-color: var(--gm-blue); color: #fff; }

.map-actions { right: max(18px, var(--safe-right)); bottom: calc(102px + var(--safe-bottom)); border: 1px solid var(--gm-line); border-radius: 17px; overflow: hidden; background: var(--gm-surface); box-shadow: var(--gm-shadow); }
.round-button { border: 0; border-bottom: 1px solid var(--gm-line); border-radius: 0; background: transparent; color: var(--gm-text); box-shadow: none; }
.round-button:last-child { border-bottom: 0; }
.place-button { bottom: calc(104px + var(--safe-bottom)); border: 1px solid var(--gm-blue); border-radius: 999px; background: var(--gm-surface); color: var(--gm-blue-strong); box-shadow: var(--gm-glow); }

.bottom-nav {
  width: min(410px, calc(100vw - 28px - var(--safe-left) - var(--safe-right)));
  justify-content: stretch;
  bottom: calc(16px + var(--safe-bottom));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--gm-line);
  border-radius: 24px;
  background: var(--gm-surface);
  box-shadow: var(--gm-shadow);
  backdrop-filter: blur(22px) saturate(1.3);
}
.nav-button { flex: 1; min-width: 0; min-height: 58px; border-radius: 18px; color: var(--gm-muted); }
.nav-button.is-active { background: var(--gm-blue-soft); color: var(--gm-blue-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gm-blue) 55%, transparent), 0 8px 24px rgba(55,100,214,.16); }
.nav-button.map-button { min-width: 0; }
.nav-button svg { width: 22px; height: 22px; }

.feed-view, .profile-view { min-height: calc(100dvh - var(--topbar-height)); padding: 54px max(24px, var(--safe-right)) 150px max(24px, var(--safe-left)); background: var(--gm-bg); }
.page-head, .feed-filters, .feed-grid, .profile-hero, .profile-stats, .profile-layout { width: min(920px, 100%); margin-left: auto; margin-right: auto; }
.page-head h1, .profile-hero h1 { color: var(--gm-text); font-size: clamp(40px, 7vw, 68px); letter-spacing: -3px; }
.eyebrow { color: var(--gm-blue-strong); letter-spacing: 2.2px; }
.new-post, .next-button, .primary-button, .post-note-button, .unlock-button, .sign-button { border: 0; border-radius: 14px; background: var(--gm-blue); color: #fff; box-shadow: 0 10px 24px rgba(53,104,236,.24); }
.feed-filters { gap: 8px; border: 0; }
.filter { border: 1px solid var(--gm-line); border-radius: 999px; background: var(--gm-surface); color: var(--gm-muted); }
.filter.is-active { border-color: var(--gm-blue); background: var(--gm-blue); color: white; }
.feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feed-card, .profile-hero, .profile-stats, .badge-card, .settings-card, .bookmark-item {
  border-color: var(--gm-line);
  border-radius: var(--gm-radius);
  background: var(--gm-surface-solid);
  color: var(--gm-text);
  box-shadow: 0 10px 34px rgba(28,48,82,.08);
}
.feed-card { overflow: hidden; }
.feed-card::after { box-shadow: none; }
.feed-card-head { background: var(--gm-surface-muted) !important; color: var(--gm-text) !important; border-bottom: 1px solid var(--gm-line); }
.feed-card p, .feed-card h3, .feed-card b, .feed-card span { text-shadow: none !important; }
.feed-actions, .note-stats { border-color: var(--gm-line); }
.place-tag, .note-place { color: var(--gm-muted); }

.profile-avatar, .identity-preview { border-color: var(--gm-blue); background: var(--gm-blue-soft); box-shadow: var(--gm-glow); }
.profile-stats { overflow: hidden; }
.profile-stats > div { border-color: var(--gm-line); }

.modal-backdrop { background: rgba(2, 7, 18, .58); backdrop-filter: blur(8px); }
.modal, .note-preview, .comments-modal, .report-modal {
  border: 1px solid var(--gm-line);
  border-radius: 24px;
  background: var(--gm-surface-solid);
  color: var(--gm-text);
  box-shadow: var(--gm-shadow);
}
.composer { width: min(620px, calc(100vw - 24px)); }
.composer-body textarea, .poll-builder input, .photo-caption-input, .comment-form input, .report-modal textarea, .report-modal select { background: var(--gm-surface-muted); border-color: var(--gm-line); color: var(--gm-text); }
.media-types { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.media-types button { flex: 0 0 76px; border-color: var(--gm-line); color: var(--gm-muted); }
.media-types button.is-active { background: var(--gm-blue); border-color: var(--gm-blue); color: white; }
.review-builder { display: grid; gap: 16px; }
.review-builder textarea { min-height: 130px; width: 100%; resize: vertical; padding: 14px; border: 1px solid var(--gm-line); border-radius: 14px; background: var(--gm-surface-muted); color: var(--gm-text); }
.review-stars { display: flex; justify-content: center; gap: 7px; }
.review-stars button { border: 0; background: transparent; color: var(--gm-line); font-size: 34px; line-height: 1; }
.review-stars button.is-selected { color: var(--gm-blue); text-shadow: 0 0 16px rgba(79,127,244,.38); }
.note-review-stars { margin: 14px 0; color: var(--gm-blue); font-size: 24px; letter-spacing: 4px; }

.note-preview { width: min(430px, calc(100vw - 24px)); top: 50%; max-height: calc(100dvh - 150px); background: var(--gm-surface-solid); }
.note-map-link { display: none; }
.stat-button, .vote, .translate-button { border-color: var(--gm-line); background: transparent; color: var(--gm-text); }

.user-location { z-index: 2147483000 !important; }
.user-location > span { border-color: #eaf1ff; background: var(--gm-blue); box-shadow: 0 0 0 7px rgba(79,127,244,.18), 0 0 30px rgba(79,127,244,.38); }
.user-location em { border-color: var(--gm-blue); background: var(--gm-surface-solid); color: var(--gm-blue-strong); }
.note-pin { filter: saturate(.7); }
.note-pin.locked { filter: grayscale(1) saturate(0) opacity(.42); }

/* Launch/auth surface. The smoke canvas is a real WebGL layer mounted by
   ghost-smoke.js; the older ASCII canvas remains only as a graceful fallback. */
.launch-splash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  z-index: 45;
  background: var(--gm-bg);
  color: var(--gm-text);
}
.launch-atmosphere, .launch-smoke, .launch-ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
.launch-ascii { opacity: 0; }
.launch-atmosphere { z-index: 1; opacity: .72; pointer-events: none; }
.launch-smoke { z-index: 2; opacity: .9; touch-action: none; }
html[data-theme="dark"] .launch-atmosphere { opacity: .88; }
html[data-theme="dark"] .launch-smoke { opacity: 1; }
.launch-ascii-fallback { display: none; }
.launch-brand-lockup { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.launch-ghost-mark { width: 86px; height: 104px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid color-mix(in srgb, var(--gm-blue) 58%, transparent); border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%; background: color-mix(in srgb, var(--gm-surface) 72%, transparent); color: var(--gm-text); box-shadow: var(--gm-glow); }
.launch-ghost-mark span { font: 600 38px/1 "Kanit", sans-serif; }
.launch-title { position: static; transform: none; font: 600 clamp(48px, 9vw, 78px)/1 "Kanit", sans-serif; letter-spacing: -3px; color: var(--gm-text); text-shadow: none; }
.launch-title::first-letter { color: var(--gm-blue); }
.launch-kicker { margin-top: 14px; color: var(--gm-blue-strong); font-size: 12px; font-weight: 700; letter-spacing: 4px; }
.launch-brand-lockup p { margin: 10px 0 0; color: var(--gm-muted); font-size: 14px; }
.launch-progress { z-index: 5; bottom: 74px; width: min(260px, 54vw); height: 3px; background: var(--gm-line); }
.launch-progress i { background: var(--gm-blue); box-shadow: 0 0 14px var(--gm-blue); }
.launch-status { z-index: 5; bottom: 94px; color: var(--gm-muted); }

/* Onboarding reuses the real Google host and profile persistence but adopts
   the supplied Ghostmode hierarchy and restrained glass treatment. */
.onboarding {
  width: min(560px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
  min-height: 0;
  max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
  padding: 28px;
  border-radius: 30px;
  background: var(--gm-surface);
  backdrop-filter: blur(28px) saturate(1.25);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.onboarding-step { min-height: min(540px, calc(100dvh - 80px - var(--safe-top) - var(--safe-bottom))); gap: 12px; }
.onboarding-step h2 { color: var(--gm-text); font-size: clamp(35px, 7vw, 54px); line-height: 1.02; letter-spacing: -2.5px; }
.onboarding-step > p { color: var(--gm-muted); font-size: 14px; line-height: 1.7; }
.onboarding-logo { width: 72px; height: 72px; margin-bottom: 18px; font-size: 34px; }
.google-button { border: 1px solid var(--gm-line); border-radius: 14px; background: var(--gm-surface-solid); color: var(--gm-text); box-shadow: 0 12px 34px rgba(25,50,94,.14); }
.concept-deck { width: 100%; }
.concept-card { border: 1px solid var(--gm-line); border-radius: 18px; background: var(--gm-surface-muted); color: var(--gm-text); box-shadow: none; }
.concept-card.is-active { border-color: var(--gm-blue); background: var(--gm-blue-soft); box-shadow: var(--gm-glow); }
.concept-card b { color: var(--gm-blue-strong); font: 700 12px "Cairo", sans-serif; }
.concept-card small { color: var(--gm-muted); }
.onboarding-language-grid { display: grid; grid-template-columns: 1fr 1fr; direction: ltr !important; width: 100%; gap: 12px; margin: 24px 0; }
.onboarding-language-grid button { min-height: 112px; display: grid; place-items: center; gap: 4px; border: 1px solid var(--gm-line); border-radius: 18px; background: var(--gm-surface-muted); color: var(--gm-text); }
.onboarding-language-grid [data-onboarding-language="en"] { grid-column: 1; direction: ltr; }
.onboarding-language-grid [data-onboarding-language="ar"] { grid-column: 2; direction: rtl; }
.onboarding-language-grid button.is-active { border-color: var(--gm-blue); background: var(--gm-blue-soft); box-shadow: var(--gm-glow); }
.onboarding-language-grid b { color: var(--gm-blue-strong); font-size: 26px; }
.paper { background: #f7f3e9; color: #111827; }
.promise-step { max-width: 100%; min-height: 0; justify-content: flex-start; }
.signature-draw { border-color: rgba(59,96,169,.24); }
.signature-draw .draw-start { stroke: var(--gm-blue); }
.signature-draw .draw-end { fill: #78d8ff; }
.signature-clear,
.signature-footer span:first-child { color: var(--gm-blue-strong); }
.pen-flourish span { background: linear-gradient(90deg, #163fae, #2f7cff 62%, #78d8ff); }

.territory-game, .territory-prompt, .treasure-box { display: none !important; }

body:has(.onboarding.is-open .auth-step.is-active) .onboarding {
  width: 100vw;
  max-width: none;
  min-height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none !important;
}
body:has(.onboarding.is-open .auth-step.is-active) .modal-backdrop { background: transparent; backdrop-filter: none; }
body:has(.onboarding.is-open .auth-step.is-active) .launch-brand-lockup { opacity: 0; }
body:has(.onboarding.is-open .auth-step.is-active) .launch-status,
body:has(.onboarding.is-open .auth-step.is-active) .launch-progress { opacity: 0; }
body:has(.onboarding.is-open .auth-step.is-active) .auth-step {
  position: fixed;
  inset: auto 0 max(34px, calc(var(--safe-bottom) + 22px));
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 20px;
  display: block;
  pointer-events: none;
}
body:has(.onboarding.is-open .auth-step.is-active) .auth-step button,
body:has(.onboarding.is-open .auth-step.is-active) .auth-step a,
body:has(.onboarding.is-open .auth-step.is-active) .auth-step input,
body:has(.onboarding.is-open .auth-step.is-active) .auth-step iframe { pointer-events: auto; }
body:has(.onboarding.is-open .auth-step.is-active) .auth-actions {
  width: min(390px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  justify-items: stretch;
  pointer-events: auto;
}
body:has(.onboarding.is-open .auth-step.is-active) .auth-actions > small {
  color: var(--gm-muted);
  text-align: center;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px var(--gm-bg);
}
body:has(.onboarding.is-open .auth-step.is-active) .google-button,
body:has(.onboarding.is-open .auth-step.is-active) .google-button-host {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  overflow: hidden;
}

/* The launch screen owns the full viewport. Only its compact preference
   controls remain above the smoke; normal app chrome arrives afterward. */
body.launch-active .topbar {
  position: fixed;
  inset: 0 0 auto;
  height: calc(62px + var(--safe-top));
  padding: var(--safe-top) max(18px, var(--safe-right)) 0 max(18px, var(--safe-left));
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  z-index: 90;
}
/* A transformed ancestor becomes the containing block for fixed children.
   Legacy view transitions transform `.view`, which used to offset the
   full-screen launch surface below the header on phones. */
body.launch-active #mapView {
  transform: none !important;
  animation: none !important;
}
body.launch-active #launchSplash {
  inset: 0 !important;
  height: 100dvh !important;
}
body.launch-active .topbar .brand,
body.launch-active .topbar .live-pill,
body.launch-active .topbar .city-reveal { visibility: hidden; }
body.launch-active .topbar .map-quick-controls {
  position: absolute;
  top: calc(var(--safe-top) + 11px);
  right: max(18px, var(--safe-right));
  left: auto;
  margin: 0;
  pointer-events: auto;
}
html[dir="rtl"] body.launch-active .topbar .map-quick-controls {
  direction: ltr;
  left: auto !important;
  right: max(18px, var(--safe-right)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.launch-active #onboarding.is-open {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 70;
}
body.launch-active #onboarding.is-open .close-button { display: none; }
body.launch-active #onboarding.is-open:not(:has(.auth-step.is-active)) {
  pointer-events: auto !important;
}
body.launch-active #onboarding.is-open:not(:has(.auth-step.is-active)) .onboarding-step,
body.launch-active #onboarding.is-open:not(:has(.auth-step.is-active)) .onboarding-step * {
  pointer-events: auto;
}
body.launch-active #onboarding.is-open .auth-actions,
body.launch-active #onboarding.is-open .auth-actions * { pointer-events: auto; }
body.launch-active .topbar { z-index: 100 !important; }

@media (max-width: 720px) {
  :root { --topbar-height: calc(64px + var(--safe-top)); }
  .topbar { padding-left: max(14px, var(--safe-left)); padding-right: max(14px, var(--safe-right)); }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; font-size: 20px; }
  .live-pill { display: none; }
  .map-quick-controls { margin-left: auto; margin-right: 5px; }
  .map-quick-controls button { width: 36px; height: 36px; }
  .city-reveal { max-width: 44%; }
  .city-copy b { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mode-switch { top: 14px; width: calc(100% - 28px); }
  .mode-button { min-height: 55px; }
  .map-actions { bottom: calc(100px + var(--safe-bottom)); right: max(12px, var(--safe-right)); }
  .place-button { bottom: calc(102px + var(--safe-bottom)); }
  .feed-view, .profile-view { padding: 34px max(18px, var(--safe-right)) 140px max(18px, var(--safe-left)); }
  .feed-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-head h1, .profile-hero h1 { font-size: 46px; letter-spacing: -2.5px; }
  .page-head { align-items: flex-end; }
  .new-post { padding: 12px 14px; }
  .onboarding { width: calc(100vw - 16px - var(--safe-left) - var(--safe-right)); max-height:calc(100dvh - 16px - var(--safe-top) - var(--safe-bottom)); padding: 20px 16px calc(20px + var(--safe-bottom)); }
  .onboarding-step { min-height: min(540px, calc(100dvh - 64px - var(--safe-top) - var(--safe-bottom))); }
  .onboarding-step h2 { font-size: 38px; }
  .onboarding-language-grid { gap: 10px; margin: 18px 0; }
  .onboarding-language-grid button { min-height: 96px; }
  .launch-title { font-size: 52px; letter-spacing: -2px; }
  .launch-brand-lockup p { font-size: 12px; }
  body.launch-active .topbar { grid-template-columns: 1fr auto; }
  body.launch-active .topbar .map-quick-controls,
  html[dir="rtl"] body.launch-active .topbar .map-quick-controls {
    top: calc(var(--safe-top) + 13px);
    right: max(14px, var(--safe-right)) !important;
  }
}

@media (max-height: 760px) {
  .onboarding { padding-top: 18px; padding-bottom: calc(18px + var(--safe-bottom)); }
  .onboarding-step { min-height: 0; }
  .promise-heading { margin-bottom: 10px; }
  .promise-heading h2 { font-size: clamp(30px, 6vw, 42px); }
  .paper { padding-top: 24px; padding-bottom: 18px; }
  .promise-copy { margin: 12px auto; font-size: 16px; }
  .signature-draw { height: clamp(130px, 24dvh, 175px); }
  .promise-actions { padding-bottom: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-atmosphere { opacity: .42; }
  .launch-smoke { display: none; }
}
