:root {
  --navy: #062b46;
  --navy-deep: #021a2d;
  --petrol: #005a5a;
  --gold: #fbbf24;
  --cream: #fffdf5;
  --white: #ffffff;
  --ink: #062b46;
  --muted: #527080;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--navy-deep); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--white); background: #052f50; }
button, summary { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, rgba(1,25,48,.2) 0%, rgba(4,44,75,.25) 48%, rgba(2,24,40,.94) 100%), url("creation-landscape.png") center top / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 30%, transparent 0 25%, rgba(1,20,36,.16) 60%, rgba(1,14,25,.42) 100%);
  pointer-events: none;
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; animation: twinkle 4s ease-in-out infinite; }
.ambient span:nth-child(1) { left: 18%; top: 18%; }
.ambient span:nth-child(2) { right: 18%; top: 28%; animation-delay: 1.4s; }
.ambient span:nth-child(3) { left: 58%; top: 10%; animation-delay: 2.2s; }
@keyframes twinkle { 0%,100% { opacity:.2; transform:scale(.7) } 50% { opacity:.9; transform:scale(1.2) } }

.app-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; position: relative; padding-bottom: calc(126px + var(--safe-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 12px; }
.brand { border: 0; background: none; color: #fff; display: flex; gap: 12px; align-items: center; padding: 0; text-align: left; cursor: pointer; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.brand-mark img { width: 38px; height: 42px; object-fit: contain; }
.brand strong { display:block; font-size: 1rem; letter-spacing: .045em; }
.brand small { display:block; margin-top: 3px; font-size: .875rem; letter-spacing: .035em; color: #cfe2ef; }
.event-badge { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; padding: 9px 13px; font-weight: 800; font-size: .875rem; letter-spacing: .05em; background: rgba(1,26,45,.38); backdrop-filter: blur(12px); }
.event-badge span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(251,191,36,.8); }

.view { display: none; padding: 22px 20px 34px; animation: reveal .38s ease both; }
.view.is-active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.home-hero { text-align: center; padding: 92px 0 36px; text-shadow: 0 2px 28px rgba(0,0,0,.3); }
.eyebrow { margin: 0 0 13px; color: #ffd66f; font-size: 1.15rem; font-weight: 850; letter-spacing: .08em; }
.home-hero h1 { margin: 0; font-size: clamp(3.35rem, 15vw, 5.7rem); line-height: .98; letter-spacing: .025em; font-weight: 900; }
.hero-subtitle { display: inline-block; margin: 20px auto 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold); font-size: 1.08rem; letter-spacing: .045em; }
.invitation { margin: 42px 0 0; font-size: clamp(1.3rem, 5.8vw, 1.8rem); line-height: 1.45; font-weight: 470; }

.journey-progress { text-align: center; margin: 24px 0 34px; }
.progress-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 15px; }
.progress-dot { width: 16px; height: 16px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: transparent; font-size: 0; display: grid; place-items: center; }
.progress-dot.is-done { width: 24px; height: 24px; margin-top: -4px; background: var(--dot); color: #062b46; font-size: .75rem; font-weight: 900; }
.journey-progress strong { font-size: 1rem; letter-spacing: .055em; color: #e8f2f7; }

.next-stop-card { color: var(--ink); background: rgba(255,253,245,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 34px; padding: 28px 24px 22px; box-shadow: 0 28px 80px rgba(0,15,29,.33); backdrop-filter: blur(18px); }
.card-kicker { display: inline-block; margin: 0 0 24px; padding: 11px 16px; border-radius: 999px; background: #f2b824; font-size: .875rem; font-weight: 900; letter-spacing: .035em; }
.station-heading { display: grid; grid-template-columns: 74px 1fr; align-items: end; gap: 15px; }
.station-number { color: var(--petrol); font-size: 3.15rem; font-weight: 900; line-height: .95; }
.station-heading small { display: block; margin-bottom: 7px; color: #607a88; font-size: .875rem; font-weight: 850; letter-spacing: .055em; }
.station-heading h2 { margin: 0; font-size: clamp(1.55rem, 7vw, 2.15rem); line-height: 1.08; text-transform: uppercase; }
.location-row { display: flex; align-items: center; gap: 13px; margin: 28px 0; }
.location-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #e1f4f1; color: var(--petrol); font-size: 1.45rem; }
.location-row strong { display: block; font-size: 1.22rem; }
.location-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 1rem; }

.primary-button { width: 100%; min-height: 62px; border: 0; border-radius: 22px; background: linear-gradient(135deg, #ffc42d, #f7ad13); color: #052e49; font-size: 1rem; line-height: 1.2; font-weight: 900; letter-spacing: .025em; padding: 16px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 12px 26px rgba(245,174,21,.24); cursor: pointer; }
.primary-button span { font-size: 1.4rem; }
.primary-button:active { transform: translateY(1px); }
.text-button { width: 100%; border: 0; background: transparent; color: var(--petrol); font-size: 1.05rem; font-weight: 850; padding: 18px 12px 4px; cursor: pointer; }

.section-intro { padding: 32px 4px 26px; }
.section-intro h1 { margin: 0 0 12px; font-size: clamp(2.45rem, 10vw, 4rem); line-height: 1; }
.section-intro > p:last-child { margin: 0; max-width: 540px; color: #d8e6ee; font-size: 1.08rem; line-height: 1.55; }
.floor-label { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 3px 13px; }
.floor-label span { color: #ffd66f; font-size: 1.05rem; font-weight: 900; letter-spacing: .08em; }
.floor-label small { color: #d5e4eb; font-size: .9rem; }
.route-list { display: grid; gap: 12px; }
.route-card { width: 100%; border: 1px solid rgba(255,255,255,.24); border-radius: 24px; padding: 15px; display: grid; grid-template-columns: 54px 1fr 24px; gap: 14px; align-items: center; color: #fff; background: rgba(3,35,59,.74); backdrop-filter: blur(18px); text-align: left; cursor: pointer; }
.route-card.is-done { border-color: rgba(251,191,36,.6); }
.route-number { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--route-a), var(--route-b)); color: #fff; font-size: 1.35rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.route-copy small { display: block; color: #ffd66f; font-size: .875rem; font-weight: 850; letter-spacing: .055em; }
.route-copy strong { display: block; margin: 3px 0 5px; font-size: 1.08rem; line-height: 1.25; }
.route-copy span { display: block; color: #c9dae4; font-size: .92rem; line-height: 1.35; }
.route-arrow { font-size: 1.4rem; }
.floor-transition { margin: 20px 0; padding: 17px; border-radius: 22px; display: flex; align-items: center; gap: 14px; background: #f4b91f; color: var(--ink); }
.floor-transition > span { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: #fff5ce; font-size: 1.55rem; font-weight: 900; }
.floor-transition strong, .floor-transition small { display:block; }
.floor-transition strong { font-size: 1rem; }
.floor-transition small { margin-top: 4px; font-size: .88rem; }

.back-button { border: 0; background: rgba(2,31,52,.6); color: #fff; border-radius: 999px; padding: 11px 15px; font-weight: 750; font-size: .95rem; cursor: pointer; }
.station-detail { --station-a:#fbbf24; --station-b:#f97316; padding-top: 26px; }
.station-orbit { width: 110px; height: 110px; margin: 8px auto 26px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--station-a) 0 22%, color-mix(in srgb, var(--station-a), transparent 70%) 23% 48%, transparent 49%); border: 1px solid color-mix(in srgb, var(--station-a), white 38%); box-shadow: 0 0 65px color-mix(in srgb, var(--station-a), transparent 55%); }
.station-orbit span { font-size: 2.7rem; color: #fff; }
.station-day { margin: 0; color: #ffd66f; font-size: 1rem; font-weight: 900; letter-spacing: .09em; text-align: center; }
.station-detail > h1 { margin: 10px auto 18px; max-width: 600px; text-align: center; font-size: clamp(2.65rem, 11vw, 4.6rem); line-height: 1.02; text-transform: uppercase; }
.station-detail blockquote { margin: 0 auto 28px; text-align: center; font-size: 1.22rem; line-height: 1.5; color: #ecf5f9; }
.station-detail cite { display: block; margin-top: 5px; color: #ffd66f; font-size: .9rem; font-style: normal; font-weight: 750; }
.destination-card { display: flex; gap: 14px; align-items: center; margin: 0 0 20px; padding: 20px; border-radius: 26px; background: rgba(255,253,245,.96); color: var(--ink); box-shadow: 0 22px 55px rgba(0,0,0,.24); }
.destination-card > span { flex: 0 0 48px; width: 48px; height: 48px; display:grid; place-items:center; border-radius: 16px; background: color-mix(in srgb, var(--station-a), white 78%); color: var(--ink); font-size: 1.5rem; }
.destination-card small { display: block; color: #65808c; font-size: .875rem; font-weight: 900; letter-spacing: .055em; }
.destination-card strong { display: block; margin: 3px 0; font-size: 1.3rem; }
.destination-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.insight-stack { display: grid; gap: 10px; margin: 0 0 20px; }
.insight-stack details { color: var(--ink); background: rgba(255,253,245,.94); border-radius: 22px; overflow: hidden; }
.insight-stack summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 17px; list-style: none; font-size: 1.03rem; font-weight: 850; cursor: pointer; }
.insight-stack summary::-webkit-details-marker { display:none; }
.insight-stack summary::after { content:"+"; margin-left:auto; font-size:1.35rem; color:var(--petrol); }
.insight-stack details[open] summary::after { content:"–"; }
.summary-icon { width: 37px; height: 37px; display:grid; place-items:center; border-radius: 12px; color:#fff; background:linear-gradient(135deg,var(--station-a),var(--station-b)); font-size:.875rem; }
.insight-stack p { margin: 0; padding: 0 18px 20px 66px; color: #355461; font-size: 1.02rem; line-height: 1.65; }
.complete-button { margin-top: 16px; }

.big-progress { padding: 27px 24px; color: var(--ink); background: rgba(255,253,245,.95); border-radius: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.big-progress > div:first-child { display: flex; align-items: flex-end; }
.big-progress span { font-size: 3.7rem; font-weight: 900; line-height: .9; color: var(--petrol); }
.big-progress small { margin-left: 7px; font-size: 1.3rem; color: var(--muted); }
.big-progress p { margin: 15px 0; font-size: .9rem; font-weight: 900; letter-spacing: .07em; }
.progress-track { height: 12px; background: #d9e7e6; border-radius: 99px; overflow: hidden; }
.progress-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#fbbf24,#f59e0b); transition:width .45s ease; }
.visit-list { display: grid; gap: 10px; margin: 18px 0; }
.visit-item { width:100%; display:grid; grid-template-columns:44px 1fr 20px; align-items:center; gap:12px; padding:14px; border:1px solid rgba(255,255,255,.2); border-radius:20px; color:#fff; background:rgba(2,34,57,.72); text-align:left; cursor:pointer; }
.visit-item > span { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; background:rgba(255,255,255,.12); font-weight:900; }
.visit-item.is-done > span { background:var(--gold); color:var(--ink); }
.visit-item strong, .visit-item small { display:block; }
.visit-item strong { font-size:1rem; }
.visit-item small { margin-top:4px; color:#c9dce6; font-size:.88rem; }
.visit-item i { font-style:normal; font-size:1.2rem; }
.final-message { margin-top:20px; padding:32px 24px; border-radius:30px; background:linear-gradient(145deg,#fff9df,#fff); color:var(--ink); text-align:center; }
.final-message > span { color:#f3af0d; font-size:2.4rem; }
.final-message h2 { margin:10px 0; font-size:1.8rem; }
.final-message p { margin:0; font-size:1.08rem; }
.final-message small { display:block; margin-top:7px; color:var(--muted); font-size:.9rem; }
.final-logo { display:block; width:86px; height:96px; object-fit:contain; margin:20px auto 0; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: calc(14px + var(--safe-bottom)); transform: translateX(-50%); width: min(calc(100% - 28px), 680px); min-height: 84px; padding: 8px; display: grid; grid-template-columns: repeat(3,1fr); background: rgba(2,29,49,.9); border: 1px solid rgba(255,255,255,.2); border-radius: 26px; box-shadow: 0 18px 55px rgba(0,0,0,.38); backdrop-filter: blur(22px); }
.bottom-nav button { border: 0; border-radius: 20px; background: transparent; color: #d6e5ec; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; font-size: .875rem; letter-spacing: .015em; cursor: pointer; }
.bottom-nav button > span { font-size: 1.3rem; line-height: 1; }
.bottom-nav button.is-active { color: #ffd05a; background: rgba(255,255,255,.06); }

@media (min-width: 721px) {
  .app-shell { padding-left: 24px; padding-right: 24px; }
  .topbar { padding-top: 30px; }
  .home-hero { padding-top: 110px; }
  .next-stop-card { padding: 34px; }
  .route-card:hover, .visit-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.55); }
}

@media (max-width: 390px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brand strong { font-size: .9rem; }
  .brand small { font-size: .875rem; }
  .brand-mark { width: 43px; height: 43px; }
  .event-badge { padding: 8px 10px; font-size: .875rem; }
  .view { padding-left: 15px; padding-right: 15px; }
  .home-hero { padding-top: 72px; }
  .station-heading { grid-template-columns: 62px 1fr; }
  .station-number { font-size: 2.7rem; }
  .next-stop-card { padding: 23px 19px 19px; border-radius: 28px; }
  .bottom-nav button { font-size: .875rem; }
  .insight-stack p { padding-left: 18px; }
}

@media (max-width: 350px) {
  .brand small { display: none; }
  .event-badge { font-size: .8rem; }
}

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