:root {
  --night: #080b19;
  --night-soft: #11162b;
  --panel: rgba(20, 25, 48, .76);
  --panel-strong: #151a32;
  --ink: #f7f2e8;
  --ink-soft: #c4c0c7;
  --muted: #85889a;
  --line: rgba(255, 255, 255, .12);
  --line-bright: rgba(255, 255, 255, .25);
  --orange: #ff795f;
  --peach: #ffb06f;
  --violet: #9b82ff;
  --cyan: #80dcda;
  --paper: #f5efe5;
  --paper-ink: #172022;
  --paper-soft: #687174;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--night); scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; padding: 16px; overflow-x: hidden; background: #050712; color: var(--ink); }
button, a, summary { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app-frame {
  position: relative;
  isolation: isolate;
  width: min(1440px, 100%);
  min-height: calc(100svh - 32px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 40%, rgba(95, 73, 190, .2), transparent 32%),
    radial-gradient(circle at 13% 84%, rgba(35, 141, 158, .13), transparent 30%),
    linear-gradient(145deg, #11162a 0%, #090d1c 48%, #080a16 100%);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.app-frame::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .7;
  background-image:
    radial-gradient(circle at 10% 18%, rgba(255,255,255,.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 12%, rgba(255,255,255,.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 87% 33%, rgba(255,255,255,.6) 0 1px, transparent 1.4px),
    radial-gradient(circle at 23% 66%, rgba(255,255,255,.38) 0 1px, transparent 1.4px),
    radial-gradient(circle at 74% 76%, rgba(255,255,255,.4) 0 1px, transparent 1.4px);
}

.ambient { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; display: block; border-radius: 50%; filter: blur(1px); opacity: .55; }
.ambient i:nth-child(1) { width: 340px; height: 340px; left: -190px; top: 18%; background: radial-gradient(circle, rgba(80,210,211,.18), transparent 66%); }
.ambient i:nth-child(2) { width: 420px; height: 420px; right: -240px; bottom: 1%; background: radial-gradient(circle, rgba(155,130,255,.22), transparent 68%); }
.ambient i:nth-child(3) { width: 3px; height: 3px; left: 24%; top: 21%; background: var(--peach); box-shadow: 0 0 16px 4px rgba(255,176,111,.54); }
.ambient i:nth-child(4) { width: 4px; height: 4px; right: 17%; top: 19%; background: var(--cyan); box-shadow: 0 0 18px 5px rgba(128,220,218,.46); }

.app-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(24px, 4.2vw, 62px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 31px; height: 31px; overflow: visible; }
.brand svg path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand svg circle { fill: var(--cyan); }
.brand span { font-size: 19px; font-weight: 760; letter-spacing: .14em; }
.header-context { display: flex; align-items: center; gap: 26px; }
.live-location { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.live-location i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(128,220,218,.1); }
.journal-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; background: transparent; color: var(--ink-soft); font-size: 11px; }
.journal-button span { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 99px; color: var(--peach); font-size: 9px; }

.home-screen {
  position: relative;
  min-height: calc(100svh - 106px);
  padding: clamp(24px, 3.3vh, 42px) clamp(24px, 5vw, 72px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-copy { position: relative; z-index: 2; text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--peach); font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.eyebrow span { width: 32px; height: 1px; background: var(--orange); }
.home-copy h1 { margin: 0; font-size: clamp(37px, 4.4vw, 65px); font-weight: 650; letter-spacing: -.065em; line-height: 1.03; }
.home-copy h1 em { color: var(--ink); font-style: normal; font-weight: 760; }
.home-copy > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.launch-stage { position: relative; flex: 0 0 auto; width: clamp(300px, 37vh, 370px); height: clamp(300px, 37vh, 370px); margin: clamp(12px, 1.4vh, 20px) auto 10px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; pointer-events: none; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; }
.orbit::before { width: 7px; height: 7px; top: 15%; left: 12%; background: var(--cyan); box-shadow: 0 0 12px rgba(128,220,218,.6); }
.orbit::after { width: 5px; height: 5px; right: 7%; bottom: 23%; background: var(--peach); }
.orbit-one { inset: 7px; transform: rotate(-17deg); animation: orbit-spin 26s linear infinite; }
.orbit-two { inset: 35px; border-style: dashed; border-color: rgba(255,255,255,.1); transform: rotate(20deg); animation: orbit-spin 34s linear infinite reverse; }
.orbit-two::before { top: auto; bottom: 4%; left: 39%; width: 4px; height: 4px; background: var(--violet); }
.orbit-two::after { display: none; }
@keyframes orbit-spin { to { transform: rotate(343deg); } }
.orbit-note { position: absolute; color: rgba(255,255,255,.26); font-size: 8px; letter-spacing: .23em; }
.orbit-note-a { left: -17px; top: 47%; transform: rotate(-90deg); }
.orbit-note-b { right: -13px; top: 46%; transform: rotate(90deg); }

.launch-button {
  position: relative;
  z-index: 2;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.35), transparent 19%),
    radial-gradient(circle at 70% 74%, rgba(126,71,218,.5), transparent 42%),
    linear-gradient(145deg, #ffb16f 0%, #ff765f 46%, #b85cd4 100%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(235,91,105,.34), inset 0 0 45px rgba(255,255,255,.13);
  transition: transform .25s ease, box-shadow .25s ease;
}
.launch-button::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.25); border-radius: inherit; }
.launch-button:hover { transform: scale(1.035); box-shadow: 0 30px 86px rgba(235,91,105,.43), inset 0 0 45px rgba(255,255,255,.18); }
.launch-button:active { transform: scale(.985); }
.launch-glint { position: absolute; width: 58%; height: 180%; left: -57%; top: -42%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: rotate(24deg); animation: glint 5.5s ease-in-out infinite; }
@keyframes glint { 0%, 62% { left: -57%; } 88%, 100% { left: 118%; } }
.launch-label { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.launch-label small { margin-bottom: 9px; color: rgba(255,255,255,.7); font-size: 9px; letter-spacing: .16em; }
.launch-label strong { font-size: clamp(27px, 3vw, 39px); font-weight: 730; letter-spacing: -.055em; }
.launch-label b { margin-top: 10px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.27); border-radius: 99px; background: rgba(33,18,59,.13); font-size: 9px; font-weight: 560; }
.launch-button > svg { position: absolute; right: 19%; bottom: 16%; width: 28px; height: 28px; }
.launch-button > svg path { fill: none; stroke: rgba(255,255,255,.82); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.home-controls { position: relative; z-index: 5; width: min(640px, 100%); }
.time-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 19px; background: rgba(9,12,26,.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); backdrop-filter: blur(18px); }
.time-chip { position: relative; min-height: 54px; border-radius: 13px; display: flex; justify-content: center; align-items: baseline; gap: 4px; background: transparent; color: var(--muted); transition: background .2s, color .2s, transform .2s; }
.time-chip:hover { color: var(--ink); }
.time-chip.is-selected { background: rgba(255,255,255,.11); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.time-chip.is-selected::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 2px; border-radius: 4px; background: var(--orange); transform: translateX(-50%); }
.time-chip strong { font-size: 16px; font-weight: 680; }
.time-chip span { font-size: 9px; }

.advanced-options { position: relative; margin-top: 8px; }
.advanced-options summary { min-height: 42px; padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 11px; list-style: none; color: var(--muted); cursor: pointer; }
.advanced-options summary::-webkit-details-marker { display: none; }
.advanced-options summary > span { display: flex; align-items: center; gap: 8px; }
.advanced-options summary b { color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.advanced-options summary small { font-size: 9px; }
.advanced-options summary i { position: relative; width: 17px; height: 17px; border: 1px solid var(--line); border-radius: 50%; }
.advanced-options summary i::before, .advanced-options summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1px; background: var(--ink-soft); transform: translate(-50%,-50%); }
.advanced-options summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .2s; }
.advanced-options[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.advanced-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 15px 18px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,17,34,.94); box-shadow: 0 22px 50px rgba(0,0,0,.24); backdrop-filter: blur(24px); }
.advanced-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.advanced-panel legend { margin-bottom: 9px; color: var(--muted); font-size: 9px; }
.advanced-panel fieldset > div { display: flex; flex-wrap: wrap; gap: 5px; }
.option-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink-soft); font-size: 9px; }
.option-chip:hover, .option-chip.is-selected { border-color: rgba(128,220,218,.55); background: rgba(128,220,218,.1); color: var(--ink); }

.home-foot { width: 100%; margin-top: auto; padding-top: 13px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.3); font-size: 9px; }
.soft-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; background: transparent; color: var(--muted); font-size: 10px; }
.soft-link span { color: var(--orange); font-size: 16px; }

.quest-screen { min-height: calc(100svh - 106px); padding: 24px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr); gap: 24px; }
.quest-scene { position: relative; min-height: 600px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #11182b; }
.quest-scene > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(.92) brightness(.84); }
.scene-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,19,.38), transparent 40%, rgba(8,11,25,.68)); }
.back-button { position: absolute; z-index: 2; left: 22px; top: 20px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 99px; background: rgba(8,11,25,.35); color: var(--ink); font-size: 10px; backdrop-filter: blur(12px); }
.back-button span { color: var(--peach); font-size: 15px; }
.scene-label { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 23px; display: flex; justify-content: space-between; align-items: flex-end; }
.scene-label span { padding: 9px 12px; border-radius: 99px; background: var(--peach); color: #24202a; font-size: 10px; font-weight: 680; }
.scene-label b { color: rgba(255,255,255,.62); font-size: 9px; font-weight: 560; letter-spacing: .13em; }
.route-line { position: absolute; z-index: 1; right: 5%; bottom: 11%; width: min(67%, 520px); overflow: visible; }
.route-line path { fill: none; stroke: rgba(255,176,111,.88); stroke-width: 1.4; stroke-dasharray: 5 7; }
.route-line circle { fill: var(--peach); }

.quest-card { align-self: center; width: min(100%, 570px); margin: 0 auto; padding: clamp(30px, 4vw, 54px); border-radius: 28px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 30px 90px rgba(0,0,0,.27); animation: card-enter .45s ease both; }
@keyframes card-enter { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.quest-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; color: #9b543f; font-size: 9px; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; }
.save-button { width: 38px; height: 38px; border: 1px solid rgba(23,32,34,.16); border-radius: 50%; background: transparent; color: var(--paper-ink); font-size: 19px; }
.save-button.is-saved { border-color: var(--orange); background: var(--orange); color: white; }
.quest-reason { margin: 0 0 14px; color: #bc654e; font-size: 10px; }
.quest-card h2 { max-width: 500px; margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 720; letter-spacing: -.07em; line-height: 1.04; }
.quest-description { max-width: 480px; margin: 20px 0 0; color: var(--paper-soft); font-size: 13px; line-height: 1.8; }
.quest-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.quest-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(23,32,34,.12); border-radius: 99px; color: var(--paper-soft); font-size: 9px; }
.quest-facts i { color: #bd624d; font-style: normal; }
.quest-facts b { color: var(--paper-ink); font-weight: 600; }
.quest-actions { display: grid; grid-template-columns: minmax(130px, 1fr) auto 44px; gap: 8px; margin-top: 31px; }
.quest-primary, .quest-secondary, .quest-cycle { min-height: 48px; border-radius: 14px; font-size: 11px; font-weight: 670; }
.quest-primary { display: flex; align-items: center; justify-content: space-between; padding: 0 17px; background: var(--paper-ink); color: white; }
.quest-primary span { color: var(--peach); font-size: 16px; }
.quest-secondary, .quest-cycle { border: 1px solid rgba(23,32,34,.15); background: transparent; color: var(--paper-soft); }
.quest-secondary { padding: 0 15px; }
.quest-cycle { font-size: 18px; }
.quest-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 15px; border-top: 1px solid rgba(23,32,34,.12); color: #9a9b96; font-size: 9px; }
.quest-card-foot button { padding: 0; background: transparent; color: var(--paper-ink); font-size: 9px; }
.quest-card-foot button span { color: #bc654e; font-size: 13px; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; max-width: min(410px, calc(100% - 28px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; background: rgba(16,20,38,.93); color: var(--ink); font-size: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.34); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .24s, transform .24s; backdrop-filter: blur(18px); }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(3,5,14,.7); opacity: 0; pointer-events: none; transition: opacity .24s; backdrop-filter: blur(7px); }
.modal-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 41; left: 50%; top: 50%; width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 40px); overflow: auto; padding: 38px 38px 34px; border: 1px solid rgba(23,32,34,.15); border-radius: 26px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 30px 100px rgba(0,0,0,.46); opacity: 0; pointer-events: none; transform: translate(-50%, calc(-50% + 16px)) scale(.985); transition: opacity .24s, transform .24s; }
.sheet.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.sheet-handle { display: none; }
.sheet-close { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(23,32,34,.06); color: var(--paper-ink); font-size: 22px; line-height: 1; }
.sheet-eyebrow { margin: 0 0 18px; color: #b85e48; font-size: 9px; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.sheet h2 { margin: 0; font-size: 38px; letter-spacing: -.06em; line-height: 1.05; }
.sheet > p:not(.sheet-eyebrow) { color: var(--paper-soft); font-size: 13px; line-height: 1.75; }
.step-list { display: grid; gap: 13px; margin: 27px 0; padding: 0; list-style: none; }
.step-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-top: 13px; border-top: 1px solid rgba(23,32,34,.12); }
.step-list li > span { color: #b85e48; font-size: 9px; }
.step-list b, .step-list small { display: block; }
.step-list b { font-size: 12px; }
.step-list small { margin-top: 4px; color: #90928f; font-size: 10px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-primary, .sheet-secondary { min-height: 45px; border-radius: 13px; font-size: 11px; font-weight: 650; }
.sheet-primary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 18px; background: var(--paper-ink); color: white; }
.sheet-primary span { color: var(--peach); }
.sheet-secondary { padding: 0 15px; border: 1px solid rgba(23,32,34,.15); background: transparent; color: var(--paper-soft); }
.feedback { margin-top: 25px; padding-top: 15px; border-top: 1px solid rgba(23,32,34,.12); color: #90928f; font-size: 9px; }
.feedback > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feedback button { padding: 7px 9px; border: 1px solid rgba(23,32,34,.14); border-radius: 99px; background: transparent; color: var(--paper-soft); font-size: 9px; }
.feedback button.is-selected { border-color: #bd624d; background: rgba(189,98,77,.1); color: var(--paper-ink); }
.journal-list { margin-top: 25px; }
.journal-entry { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid rgba(23,32,34,.12); }
.journal-entry time { color: #999c98; font-size: 9px; }
.journal-entry b, .journal-entry small { display: block; }
.journal-entry b { font-size: 11px; }
.journal-entry small { margin-top: 4px; color: var(--paper-soft); font-size: 10px; }
.journal-entry strong { color: #b85e48; font-size: 9px; }
.safety-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%; background: rgba(189,98,77,.12); color: #b85e48; font-size: 23px; }
.safety-sheet > small { display: block; margin-top: 18px; color: #949692; font-size: 9px; line-height: 1.6; }
.companion-options { display: grid; gap: 7px; margin-top: 22px; }
.companion-options button { padding: 13px 14px; border: 1px solid rgba(23,32,34,.14); border-radius: 13px; background: transparent; color: var(--paper-soft); text-align: left; font-size: 11px; }
.companion-options button:hover { border-color: #bd624d; color: var(--paper-ink); }
.companion-reply { min-height: 20px; margin-top: 18px; color: #b85e48; font-size: 11px; }

@media (max-width: 900px) {
  .quest-screen { grid-template-columns: minmax(0,1fr) minmax(370px,.92fr); }
  .quest-card { padding: 34px; }
  .quest-card h2 { font-size: 40px; }
}

@media (max-width: 720px) {
  body { padding: 0; }
  .app-frame { width: 100%; min-height: 100svh; border: 0; border-radius: 0; }
  .app-header { min-height: 64px; padding: 0 17px; }
  .brand svg { width: 28px; height: 28px; }
  .brand span { font-size: 17px; }
  .header-context { gap: 11px; }
  .live-location { font-size: 9px; }
  .journal-button { font-size: 9px; }
  .journal-button span { min-width: 21px; height: 20px; }
  .home-screen { min-height: calc(100svh - 64px); padding: 28px 17px 16px; }
  .eyebrow { margin-bottom: 10px; }
  .home-copy h1 { font-size: clamp(35px, 10.7vw, 45px); }
  .home-copy > p:last-child { margin-top: 11px; font-size: 11px; }
  .launch-stage { width: min(71vw, 275px); height: min(71vw, 275px); margin: 15px auto 10px; }
  .launch-button { width: 76%; }
  .launch-label strong { font-size: clamp(26px, 8.6vw, 34px); }
  .launch-label small { margin-bottom: 7px; }
  .launch-label b { margin-top: 8px; padding: 6px 9px; }
  .launch-button > svg { width: 24px; height: 24px; }
  .orbit-note { display: none; }
  .time-selector { gap: 4px; padding: 5px; border-radius: 16px; }
  .time-chip { min-height: 51px; border-radius: 11px; gap: 3px; }
  .time-chip strong { font-size: 14px; }
  .time-chip span { font-size: 8px; }
  .advanced-options summary { min-height: 40px; }
  .advanced-panel { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .advanced-panel fieldset { display: block; }
  .advanced-panel legend { padding-top: 0; margin-bottom: 8px; }
  .advanced-panel .option-chip { white-space: nowrap; }
  .home-foot { padding-top: 8px; }
  .home-foot > span { display: none; }
  .quest-screen { min-height: calc(100svh - 64px); padding: 0; display: block; background: var(--paper); }
  .quest-scene { min-height: 285px; height: 39svh; max-height: 330px; border: 0; border-radius: 0; }
  .back-button { left: 15px; top: 14px; }
  .scene-label { left: 17px; right: 17px; bottom: 42px; }
  .route-line { bottom: 15%; width: 72%; }
  .quest-card { position: relative; z-index: 3; width: 100%; min-height: calc(61svh + 38px); margin-top: -38px; padding: 25px 20px calc(25px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; box-shadow: 0 -15px 40px rgba(0,0,0,.15); }
  .quest-card-head { margin-bottom: 18px; }
  .quest-card h2 { font-size: clamp(32px, 9.7vw, 40px); }
  .quest-description { margin-top: 14px; font-size: 12px; line-height: 1.68; }
  .quest-facts { margin-top: 18px; }
  .quest-actions { margin-top: 22px; }
  .quest-card-foot { margin-top: 23px; }
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 88svh; padding: 29px 20px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 28px 28px 0 0; opacity: 0; transform: translateY(18px); }
  .sheet.is-visible { transform: translateY(0); }
  .sheet-handle { display: block; width: 39px; height: 4px; margin: -14px auto 21px; border-radius: 99px; background: rgba(23,32,34,.18); }
  .sheet h2 { font-size: 33px; }
  .sheet-close { top: 15px; }
}

@media (max-width: 350px) {
  .live-location { display: none; }
  .home-screen { padding-top: 23px; }
  .home-copy h1 { font-size: 34px; }
  .home-copy > p:last-child { display: none; }
  .launch-stage { width: 230px; height: 230px; margin-top: 12px; }
  .launch-label strong { font-size: 27px; }
  .time-chip { min-height: 49px; flex-direction: column; align-items: center; gap: 1px; }
  .time-chip.is-selected::after { bottom: 4px; }
  .advanced-options summary { min-height: 38px; }
  .soft-link { font-size: 9px; }
  .quest-scene { min-height: 260px; height: 36svh; }
  .quest-card { padding-left: 17px; padding-right: 17px; }
  .quest-card h2 { font-size: 31px; }
  .quest-actions { grid-template-columns: minmax(118px,1fr) auto 43px; }
}

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