/* =====================================================================
   Porchlight — prototype styles
   ===================================================================== */
:root {
  --night-950: #08071a;
  --night-900: #0d0b1f;
  --night-850: #121030;
  --night-800: #15122e;
  --night-700: #1e1a40;
  --night-600: #2a2556;
  --amber-500: #ff9f2e;
  --amber-400: #ffb547;
  --amber-300: #ffd27a;
  --amber-100: #fff3c9;
  --rose: #e8607a;
  --teal: #4fb3a9;
  --ink: #f6f1e7;
  --ink-soft: #d8d0ea;
  --muted: #9e97c0;
  --line: rgba(246, 241, 231, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  --font-hand: "Caveat", cursive;
  --font-dot: "DotGothic16", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--night-900); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--amber-300); outline-offset: 3px; border-radius: 8px; }
svg { display: block; }

/* ---------- stage (standalone, desktop) ---------- */
.stage { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px; padding: 24px 40px; background: radial-gradient(90% 70% at 50% 110%, #3a2c6b 0%, #1b1640 45%, var(--night-950) 80%); overflow: hidden; }
.stage-art { position: absolute; inset: 0; pointer-events: none; }
.stage-art img { position: absolute; left: 0; bottom: 0; width: 100%; height: 50vh; object-fit: cover; object-position: 50% 100%; }
.sa-rockies { filter: brightness(.38) saturate(.7) hue-rotate(8deg); bottom: 6vh !important; }
.sa-hills { filter: brightness(.32) saturate(.7); }
.sa-fore { filter: brightness(.4) saturate(.6) hue-rotate(10deg); height: 34vh !important; }
.stage-wick { width: 120px; height: auto; margin-bottom: 14px; filter: brightness(.9) drop-shadow(0 12px 20px rgba(0, 0, 0, .5)); }
.stage-side { position: relative; z-index: 1; max-width: 300px; }
.stage-left { justify-self: end; }
.stage-right { justify-self: start; }
.stage-back { color: var(--muted); text-decoration: none; font-size: 14px; }
.stage-back:hover { color: var(--amber-300); }
.stage-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 54px; letter-spacing: -0.04em; margin: 18px 0 6px; line-height: 1; position: relative; }
.stage-i { position: relative; }
.stage-i::after { content: ""; position: absolute; left: 50%; top: 2px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--amber-300); box-shadow: 0 0 14px 4px rgba(255, 181, 71, .7); }
.stage-lede { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 26px; }
.stage-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-300); margin: 0 0 8px; font-weight: 600; }
.jump { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.jump button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); transition: background .2s, color .2s; }
.jump button span { font-family: var(--font-dot); color: var(--muted); font-size: 12px; padding-top: 2px; }
.jump button:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.jump button.on { background: rgba(255, 181, 71, .14); color: var(--amber-300); }
.stage-reset { font-size: 14px; color: var(--muted); padding: 8px 10px; }
.stage-reset:hover { color: var(--amber-300); }
.stage .hand { font-family: var(--font-hand); font-size: 26px; line-height: 1.1; color: var(--amber-300); margin: 0 0 18px; transform: rotate(-3deg); }
.stage-note { font-size: 13px; color: var(--muted); line-height: 1.5; }

.device { position: relative; z-index: 1; height: min(844px, calc(100vh - 48px)); width: min(390px, calc((100vh - 48px) * 390 / 844)); min-width: 0; border-radius: 56px; padding: 12px; background: linear-gradient(145deg, #2d2756, #0b0918 60%); box-shadow: 0 0 0 1.5px #3b3368, 0 60px 120px -30px rgba(0, 0, 0, .85), 0 0 140px -30px rgba(255, 181, 71, .4); }
.device::before { content: ""; position: absolute; top: 24px; left: 50%; width: 100px; height: 28px; margin-left: -50px; border-radius: 20px; background: #05040c; z-index: 20; }
.app { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--night-900); display: flex; flex-direction: column; isolation: isolate; }

@media (max-width: 1100px) { .stage-right { display: none; } .stage { grid-template-columns: 1fr auto; } }
@media (max-width: 760px), (max-height: 560px) {
  .stage { display: block; padding: 0; }
  .stage-side, .stage-art { display: none; }
  .device { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .device::before { display: none; }
  .app { border-radius: 0; }
}
/* embedded in the story site's phone frame */
.is-embed .stage { display: block; padding: 0; background: none; }
.is-embed .stage-side, .is-embed .stage-art { display: none; }
.is-embed .device { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; padding: 0; box-shadow: none; background: none; }
.is-embed .device::before { display: none; }
.is-embed .app { border-radius: 0; }

/* ---------- status + tab bar ---------- */
.statusbar { flex: none; height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 34px; font-size: 14px; font-weight: 600; position: relative; z-index: 5; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons i { display: block; background: var(--ink); border-radius: 2px; }
.sb-sig { width: 16px; height: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sb-wifi { width: 14px; height: 10px; border-radius: 10px 10px 2px 2px !important; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
.sb-bat { width: 24px; height: 11px; border-radius: 3px !important; box-shadow: inset 0 0 0 1.5px var(--ink); background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) !important; }
@media (max-width: 760px) { .statusbar { display: none; } }
.is-embed .statusbar { display: flex; padding-inline: 28px 24px; height: 42px; font-size: 13px; }

.screens { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; position: relative; }
.screens::-webkit-scrollbar { display: none; }
.tabbar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 26px 22px; background: linear-gradient(transparent, rgba(8, 7, 26, .9) 30%); position: relative; z-index: 6; transition: transform .45s var(--ease), opacity .3s; }
.tabbar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); transition: color .2s; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--amber-300); }
.tab-lamp { width: 64px; height: 64px; margin-top: -26px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffd27a, #ff9f2e); color: var(--night-900); justify-content: center; box-shadow: 0 0 0 6px var(--night-900), 0 0 36px 6px rgba(255, 181, 71, .55); animation: breathe 3s ease-in-out infinite; }
.tab-lamp svg { width: 34px; height: 34px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px var(--night-900), 0 0 52px 12px rgba(255, 181, 71, .7); } }

.toast { position: absolute; left: 14px; right: 14px; top: 52px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgba(40, 34, 82, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 210, 122, .25); font-size: 14px; line-height: 1.35; transform: translateY(-140%); opacity: 0; transition: transform .5s var(--ease), opacity .3s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }

/* ---------- shared bits ---------- */
.scr { min-height: 100%; padding: 6px 20px 28px; position: relative; display: flex; flex-direction: column; }
.av { flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--s) * .44); color: #170f2b; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 0 18px -2px var(--c); }
.btn-primary { display: block; width: 100%; padding: 16px 20px; border-radius: 18px; background: var(--amber-400); color: var(--night-900); font-weight: 700; font-size: 16px; text-align: center; box-shadow: 0 10px 30px -10px rgba(255, 159, 46, .8); transition: transform .15s, box-shadow .3s, background .2s; }
.btn-primary:hover { background: var(--amber-300); box-shadow: 0 0 40px 2px rgba(255, 181, 71, .5); }
.btn-primary:active { transform: scale(.97); }
.btn-primary.sticky { position: sticky; bottom: 14px; margin-top: auto; }
.btn-text { display: block; width: 100%; padding: 12px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.btn-text:hover { color: var(--ink); }
.btn-ghost { display: block; width: 100%; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); text-align: center; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-300); margin: 0 0 8px; }
.big { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 10px; }
.sub { color: var(--ink-soft); font-size: 15px; line-height: 1.45; margin: 0 0 18px; }
.sub b { color: var(--ink); }
.center { text-align: center; }
.hand { font-family: var(--font-hand); color: var(--amber-300); font-size: 22px; }
.back { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 18px; margin-bottom: 14px; flex: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 18px; flex: none; }

/* ---------- welcome ---------- */
.scr-welcome { justify-content: flex-end; text-align: center; padding-bottom: 34px; overflow: hidden; }
.wl-sky { position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, #3a2c6b, transparent 70%); z-index: -1; }
.wl-moon { position: absolute; right: 40px; top: 40px; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -8px -4px 0 0 #fff3c9; transform: rotate(-20deg); }
.wl-glow-old { position: absolute; inset: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, .55), rgba(255, 159, 46, .1) 45%, transparent 68%); }
.wl-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: 50px; line-height: 1; letter-spacing: -0.05em; margin: 0; }
.wl-title span { position: relative; }
.wl-title span::after { content: ""; position: absolute; left: 50%; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--amber-300); box-shadow: 0 0 12px 3px rgba(255, 181, 71, .8); }
.wl-tag { font-family: var(--font-hand); font-size: 28px; color: var(--amber-300); margin: 4px 0 12px; }
.wl-copy { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 auto 26px; max-width: 30ch; }
.wl-fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* ---------- map ---------- */
.scr-map { padding: 0; }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 20px 10px; }
.hi { margin: 0; font-size: 13px; color: var(--muted); }
.map-head h2 { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.map-head h2 b { color: var(--amber-300); }
.chips { display: flex; gap: 8px; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.chip.on { background: var(--ink); color: var(--night-900); }
.map-wrap { position: relative; margin: 0 12px; border-radius: 26px; overflow: hidden; height: 330px; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.scr-map .map-wrap { flex: 1 1 auto; height: auto; min-height: 300px; }
.map { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-ground { fill: #17143a; }
.map-snow { fill: #24204d; }
.path { stroke: #2c2760; stroke-width: 9; fill: none; stroke-linecap: round; }
.rail { stroke: #332d66; stroke-width: 6; fill: none; }
.rail-ties { stroke: #17143a; stroke-width: 6; stroke-dasharray: 2 8; fill: none; }
.platform { fill: #2c2760; }
.bld rect:first-child { fill: #2a2558; }
.bld-roof { fill: #3a3478; }
.bwin { fill: #ffc35c; animation: winFlick 3s ease-in-out infinite; }
@keyframes winFlick { 50% { opacity: .45; } }
.bld-label { font-size: 8.5px; font-weight: 700; letter-spacing: .12em; fill: #7d76ad; text-anchor: middle; font-family: var(--font-body); }
.tree path { fill: #0e0c26; }
.you-dot { fill: #6fb6ff; stroke: #fff; stroke-width: 2; }
.you-pulse { fill: rgba(111, 182, 255, .25); animation: youPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes youPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.pin { cursor: pointer; }
.pin-glow { fill: url(#pg); animation: glowPulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glowPulse { 50% { transform: scale(1.25); opacity: .7; } }
.pin-ring { fill: none; stroke: #ffd27a; stroke-width: 2; opacity: .8; animation: ring 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.pin-dot { stroke: #fff3c9; stroke-width: 2.5; }
.pin:hover .pin-dot, .pin:focus .pin-dot, .pin.is-sel .pin-dot { stroke: #fff; stroke-width: 4; }
.pin.is-sel .pin-glow { transform: scale(1.6); }
.cards { display: flex; gap: 10px; overflow-x: auto; padding: 12px 12px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.lcard { flex: none; width: 260px; scroll-snap-align: start; display: flex; gap: 12px; text-align: left; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, #26214f, #1a1640); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .2s; }
.lcard:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 210, 122, .5), 0 0 30px -10px rgba(255, 181, 71, .6); }
.lcard:active { transform: scale(.98); }
.lc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-main b { font-size: 15px; }
.lc-main b i { font-style: normal; }
.lc-main > span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; }
.lc-main small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lcard.preview { width: 100%; margin-bottom: 22px; }

/* ---------- detail sheet ---------- */
.scr-detail { padding: 0; }
.map-wrap.dim { height: 230px; opacity: .55; filter: saturate(.8); }
.sheet { margin-top: -26px; position: relative; z-index: 2; flex: 1; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #221d4c, var(--night-900) 70%); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); padding: 10px 20px 22px; }
.grab { display: block; width: 40px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin: 0 auto 16px; }
.dt-head { display: flex; align-items: center; gap: 14px; }
.dt-head h2 { margin: 0; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.dt-head p { margin: 0; color: var(--muted); font-size: 14px; }
.dt-vibe { margin-left: auto; font-size: 30px; }
.dt-note { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.3; margin: 18px 0 14px; color: var(--ink); }
.dt-ask { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 16px; background: rgba(255, 181, 71, .1); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .25); margin-bottom: 14px; }
.dt-ask span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-300); }
.dt-ask b { font-family: var(--font-hand); font-size: 24px; font-weight: 700; line-height: 1.1; }
.dt-meta { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.dt-meta i { font-style: normal; margin-right: 8px; }

/* ---------- forecast / reality faces ---------- */
.scr-forecast { padding-top: 10px; }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 20px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 2px 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), background .2s, box-shadow .2s; }
.face small { font-size: 11px; color: var(--muted); font-weight: 600; }
.face.on { background: rgba(255, 181, 71, .16); box-shadow: inset 0 0 0 2px var(--amber-400), 0 0 26px -6px rgba(255, 181, 71, .8); transform: translateY(-4px); }
.face.on small { color: var(--amber-300); }
.note { margin-top: auto; text-align: center; transform: rotate(-2deg); }

/* ---------- on the way ---------- */
.ow-head { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; }
.ow-head b { display: block; font-size: 16px; }
.ow-head small { color: var(--muted); font-size: 13px; }
.route { border-radius: 22px; background: #17143a; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 10px 8px; margin-bottom: 16px; }
.route svg { width: 100%; height: auto; }
.route-path { fill: none; stroke: var(--amber-300); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 181, 71, .8)); }
.route-you { fill: #6fb6ff; stroke: #fff; stroke-width: 2; }
.route-host { stroke: #fff3c9; stroke-width: 3; }
.eta { margin: 4px 6px 0; font-size: 13px; color: var(--muted); }
.eta b { color: var(--ink); }
.spark { perspective: 900px; width: 100%; height: 170px; margin-bottom: 4px; }
.spark-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.spark.flipped .spark-inner { transform: rotateY(180deg); }
.spark-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 22px; text-align: center; }
.spark-front { background: radial-gradient(120% 120% at 50% 0%, #ffd27a, #ff9f2e 60%, #e8607a); color: var(--night-900); box-shadow: 0 16px 40px -14px rgba(255, 159, 46, .8); }
.spark-front i { font-style: normal; font-size: 30px; }
.spark-front b { font-family: var(--font-display); font-size: 22px; }
.spark-front small { font-weight: 600; opacity: .7; }
.spark-back { transform: rotateY(180deg); background: #fff8ec; color: #241a3f; }
.spark-back small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b06a1e; }
.spark-back b { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.shuffle { padding: 8px; margin-bottom: 8px; }

/* ---------- kindle ---------- */
.scr-kindle { justify-content: flex-start; padding-top: 24px; }
.merge { position: relative; height: 150px; display: grid; place-items: center; margin-bottom: 6px; }
.merge span { position: absolute; border-radius: 50%; }
.m-burst { width: 80px; height: 80px; border: 3px solid var(--amber-300); }
.ember { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 8px 2px rgba(255, 159, 46, .9); }
.later { margin-top: auto; padding: 18px 16px 10px; border-radius: 24px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.later h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; }

/* ---------- result ---------- */
.scr-result { padding-top: 22px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 10px 0 18px; }
.vs-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px; border-radius: 22px; background: rgba(255, 255, 255, .05); }
.vs-col:last-child { background: rgba(255, 181, 71, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 122, .5); }
.vs-col small { font-size: 12px; color: var(--muted); font-weight: 600; }
.vs-col b { font-size: 15px; }
.vs-arrow { display: flex; flex-direction: column; align-items: center; color: var(--amber-300); padding: 0 6px; }
.vs-arrow svg { width: 46px; }
.vs-delta { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--amber-300); text-shadow: 0 0 18px rgba(255, 181, 71, .7); }
.ember-ask { margin-top: auto; padding: 18px 16px 6px; border-radius: 24px; background: linear-gradient(170deg, #26214f, #17143a); box-shadow: inset 0 0 0 1px var(--line); }
.ember-ask h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; }
.ember-ask p { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- sky ---------- */
.scr-sky { padding-top: 4px; }
.sky-head h2 { font-family: var(--font-display); font-size: 28px; margin: 0; letter-spacing: -0.02em; }
.sky-svg { width: 100%; height: auto; margin: 4px 0 6px; overflow: visible; }
.bgstar { fill: #cfc8ff; animation: tw 3s ease-in-out infinite alternate; }
@keyframes tw { from { opacity: .25; } to { opacity: .9; } }
.sky-line { stroke: rgba(255, 210, 122, .55); stroke-width: 1.3; }
.sky-line.faint { stroke: rgba(255, 210, 122, .18); stroke-dasharray: 3 4; }
.sky-line.is-new { stroke: #ffd27a; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255, 181, 71, .9)); }
.sky-me { fill: #6fb6ff; stroke: #fff; stroke-width: 2.5; }
.sky-star circle { fill: #ffe2a0; filter: drop-shadow(0 0 5px rgba(255, 181, 71, .9)); }
.sky-star.is-new circle { fill: #fff; animation: newStar 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes newStar { 50% { transform: scale(1.4); } }
.sky-name { font-size: 10px; font-weight: 600; fill: var(--ink-soft); text-anchor: middle; font-family: var(--font-body); }
.sky-name.me { fill: #9fd0ff; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpis div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.kpis b { font-family: var(--font-display); font-size: 26px; color: var(--amber-300); line-height: 1.1; }
.kpis small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.panel { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
.panel h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.dumbbells { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.dumbbells li { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.db { position: relative; height: 12px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 25%); }
.db i { position: absolute; top: 50%; }
.db-line { height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, #6fb6ff, var(--amber-400)); border-radius: 3px; }
.db-g, .db-r { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; }
.db-g { background: #6fb6ff; }
.db-r { background: var(--amber-400); box-shadow: 0 0 8px rgba(255, 181, 71, .8); }
.legend { margin: 10px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend i { position: static; display: inline-block; margin: 0 0 0 8px; }
.legend i:first-child { margin-left: 0; }
.warm { display: flex; flex-wrap: wrap; gap: 6px; }
.warm-chip { padding: 6px 12px; border-radius: 99px; font-size: 13px; background: rgba(255, 181, 71, calc(.06 + var(--w) * .07)); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, calc(.1 + var(--w) * .1)); }
.warm-chip b { color: var(--amber-300); }

/* ---------- light-your-lamp flow ---------- */
.flow-head { display: flex; align-items: center; justify-content: space-between; }
.flow-head .back { margin-bottom: 10px; }
.steps { display: flex; gap: 5px; }
.steps i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.steps i.on { background: var(--amber-400); }
.radio-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.radio { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 13px 16px 13px 48px; border-radius: 16px; background: rgba(255, 255, 255, .05); position: relative; text-align: left; transition: background .2s, box-shadow .2s; }
.radio::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); transition: box-shadow .2s; }
.radio.on { background: rgba(255, 181, 71, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 122, .6); }
.radio.on::before { box-shadow: inset 0 0 0 6px var(--amber-400); }
.radio b { font-size: 15px; }
.radio small { color: var(--muted); font-size: 13px; }
.radio em { color: #9fd0ff; font-style: normal; }
.vibes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 18px; }
.vibe { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600; text-align: left; transition: background .2s, box-shadow .2s, transform .2s; }
.vibe span { font-size: 22px; }
.vibe.on { background: rgba(255, 181, 71, .14); box-shadow: inset 0 0 0 1.5px var(--amber-400); transform: translateY(-2px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field small { color: var(--muted); font-weight: 500; }
.field input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .07); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.field input::placeholder { color: #6f6894; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--amber-400); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 18px; }
.seg button { display: flex; flex-direction: column; align-items: center; padding: 12px 0 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; transition: background .2s, color .2s; }
.seg small { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.seg button.on { background: var(--amber-400); color: var(--night-900); }
.seg button.on small { color: rgba(13, 11, 31, .7); }
.stepper { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); margin-bottom: 22px; font-weight: 600; font-size: 15px; }
.stepper div { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .09); font-size: 18px; }
.stepper b { font-family: var(--font-display); font-size: 20px; min-width: 14px; text-align: center; }
.btn-lamp { background: radial-gradient(circle at 50% 0%, #ffe39b, var(--amber-400) 60%); }

/* ---------- lit ---------- */
.scr-lit { justify-content: flex-start; padding-top: 30px; }
.lit-lamp { position: relative; width: 200px; height: 200px; margin: 0 auto 18px; display: grid; place-items: center; }
.lit-glow { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, .6), rgba(255, 159, 46, .12) 45%, transparent 68%); animation: glowPulse 3s ease-in-out infinite; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--amber-300); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 181, 71, .9)); }
.seen { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.incoming { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, #2b2560, #1c1844); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 122, .4), 0 0 40px -12px rgba(255, 181, 71, .7); margin-bottom: 16px; }
.incoming b { display: block; font-size: 15px; }
.incoming small { color: var(--ink-soft); font-size: 13px; }
.incoming[hidden] { display: none; }
.scr-lit .btn-ghost { margin-top: auto; }

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

/* ===================== v2: icons, lantern faces, Wick ===================== */
.ic { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .f { fill: currentColor; stroke: none; }
.ic.inline { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
.ic.xs { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.ic.lg { width: 34px; height: 34px; stroke-width: 1.5; }
.ic.amber { color: var(--amber-300); }
.mono { font-family: var(--font-mono); font-variation-settings: "wdth" 87.5; }
.eyebrow, .stage-label, .bld-label, .jump button span { font-family: var(--font-mono); font-variation-settings: "wdth" 87.5; }
.eyebrow { font-size: 10.5px; letter-spacing: .14em; font-weight: 500; }
.stage-label { font-size: 10.5px; }
.jump button span { font-size: 10.5px; }

/* welcome with Wick */
.wl-stars { position: absolute; inset: 0 0 50% 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 70% 18%, #fff3c9 50%, transparent 51%), radial-gradient(1px 1px at 45% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 40%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 12% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 42%, #fff 50%, transparent 51%); opacity: .7; }
.wl-wick { position: relative; width: 128px; height: 196px; margin: 0 auto 4px; }
.wl-wick img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.wl-glow { position: absolute; left: 50%; top: 52%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, .5), rgba(255, 159, 46, .12) 42%, transparent 68%); }
.wl-fine { display: block; font-size: 11.5px; line-height: 1.45; color: var(--muted); margin: 12px auto 0; max-width: 30ch; text-wrap: balance; }

/* map icons */
.pin-ic { fill: none; stroke: #1b1236; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.pin-ic .f { fill: #1b1236; stroke: none; }
.bld-shadow { fill: #0f0c28 !important; opacity: .7; }
.path-edge { stroke: #221e50; stroke-width: 13; fill: none; stroke-linecap: round; }
.tree-snow { fill: none; stroke: #3a3478; stroke-width: 2; stroke-linecap: round; }
.chip { display: inline-grid; place-items: center; min-width: 44px; height: 34px; padding: 0 14px; }
.chip .ic { width: 18px; height: 18px; }
.empty { margin: 4px 8px; color: var(--muted); font-size: 14px; }
.icon-btn { display: grid; place-items: center; color: var(--amber-300); }
.icon-btn .ic { width: 20px; height: 20px; }
.lc-main b { display: inline-flex; align-items: center; gap: 6px; }
.lc-main b .ic { color: var(--amber-300); }
.back { display: grid; place-items: center; }
.back .ic { width: 18px; height: 18px; }

/* detail */
.dt-vibe { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.dt-vibe .ic { width: 24px; height: 24px; }
.dt-vibe small { font-size: 10px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.dt-meta li { display: flex; align-items: center; gap: 10px; }
.dt-meta .ic { width: 18px; height: 18px; color: var(--amber-300); }

/* lantern faces scale */
.faces { gap: 4px; }
.face { padding: 10px 0 9px; gap: 4px; }
.lf { overflow: visible; transition: transform .35s var(--ease); }
.lf-halo { fill: #ffb547; opacity: calc(var(--g) * .28); filter: blur(4px); }
.lf-wire { fill: none; stroke: #6c5f9e; stroke-width: 1.6; stroke-linecap: round; }
.lf-cap { fill: #3a3166; }
.lf-body { stroke: rgba(120, 80, 60, .35); stroke-width: 1; }
.lf-rib { fill: none; stroke: rgba(150, 100, 70, .35); stroke-width: 1; }
.lf-face { fill: none; stroke: #2b1d2f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lf-face .fe, .lf-face .fm { fill: #2b1d2f; stroke: none; }
.lf-face .fm { fill: #8a2f3a; stroke: #2b1d2f; stroke-width: 1.2; }
.lf-face .fb { fill: #ff8f8f; stroke: none; opacity: .55; }
.lf-face .sweat { fill: #9fd0ff; stroke: none; }
.face:hover .lf { transform: translateY(-3px) rotate(-4deg); }
.face.on .lf { transform: translateY(-4px) scale(1.08); }
.face.on .lf-halo { opacity: calc(.25 + var(--g) * .45); }
.note-row { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; }
.note-wick { width: 92px; height: auto; flex: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
.note-row .note { margin: 0 0 18px; text-align: left; font-size: 21px; line-height: 1.05; }

/* on the way */
.route-bg { fill: none; stroke: #2a2556; stroke-width: 9; stroke-linecap: round; }
.route-host-glow { fill: url(#none); fill: rgba(255, 181, 71, .25); animation: glowPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.spark-front .ic { color: var(--night-900); }
.shuffle, .btn-text { display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary .ic.inline { margin-left: 4px; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 4px; }

/* kindle */
.merge { height: 190px; }
.m-wick { position: relative; z-index: 1; height: 170px; width: auto; filter: drop-shadow(0 0 30px rgba(255, 181, 71, .55)); }
.m-burst { left: 50%; top: 50%; margin: -40px 0 0 -40px; }

/* result */
.vs-col .lf { margin: 4px 0 2px; }

/* lit */
.lit-wick { position: relative; z-index: 1; height: 132px; width: auto; filter: drop-shadow(0 0 22px rgba(255, 181, 71, .6)); }

/* toast */
.toast .ic { width: 18px; height: 18px; flex: none; }
.vibe .ic { width: 22px; height: 22px; color: var(--amber-300); }
.vibe.on .ic { color: var(--amber-400); }
.stepper > span { display: inline-flex; align-items: center; gap: 8px; }
.stepper .ic { color: var(--amber-300); }

/* ===================== v3: richer app ===================== */
/* avatars */
.av { position: relative; overflow: visible; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.has-img .av-l { visibility: hidden; }
.av-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.avr-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 2; }
.avr-fg { fill: none; stroke: var(--amber-300); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 181, 71, .8)); }

/* welcome */
.scr-welcome { padding: 0 0 26px; justify-content: flex-start; }
.wl-art { position: absolute; left: 0; right: 0; top: 0; height: 58%; overflow: hidden; z-index: -1; }
.wl-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: brightness(.72) saturate(1.05); }
.wl-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 11, 31, .55) 0%, rgba(13, 11, 31, 0) 26%, rgba(13, 11, 31, .2) 60%, var(--night-900) 98%); }
.scr-welcome .wl-sky { display: none; }
.wl-wick { margin: auto auto -6px; width: 120px; height: 184px; }
.wl-body { padding: 0 22px; display: flex; flex-direction: column; align-items: center; }
.wl-pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; }
.wl-dots { display: flex; gap: 6px; margin: 0 0 18px; }
.wl-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); }
.wl-dots i.on { width: 20px; background: var(--amber-300); }
.btn-mail { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(13, 11, 31, .14); font-size: 13px; font-weight: 800; margin-right: 6px; }

/* map screen */
.map-head { align-items: center; gap: 10px; padding: 4px 16px 10px; }
.me-av { flex: none; width: 40px; height: 40px; border-radius: 13px; overflow: hidden; background: radial-gradient(circle at 50% 70%, #3a2f6e, #1d1846); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .3); display: grid; place-items: end center; }
.me-av img { width: 30px; height: auto; margin-bottom: -4px; }
.mh-text { flex: 1; min-width: 0; }
.map-head h2 { font-size: 21px; }
.weather { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: rgba(255, 255, 255, .06); }
.weather .ic { color: #9fd0ff; }
.chips { padding: 0 16px 10px; }
.chip { gap: 6px; display: inline-flex; align-items: center; }
.chip span { font-size: 12.5px; }
.scr-map .map-wrap { margin: 0 12px; border-radius: 24px; min-height: 330px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -20px rgba(0, 0, 0, .7); }
.map-chrome { position: absolute; inset: 0; pointer-events: none; font-size: 10.5px; }
.map-chrome > * { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; background: rgba(13, 11, 33, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ink-soft); font-family: var(--font-mono); font-variation-settings: "wdth" 87.5; letter-spacing: .06em; }
.live { left: 10px; top: 10px; color: var(--ink) !important; font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5d5d; box-shadow: 0 0 8px #ff5d5d; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.legend { left: 10px; bottom: 10px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); box-shadow: 0 0 8px var(--amber-400); }
.zoom { right: 10px; bottom: 10px; flex-direction: column; gap: 0 !important; padding: 2px !important; border-radius: 12px !important; }
.zoom b { display: grid; place-items: center; width: 28px; height: 26px; font-size: 15px; font-family: var(--font-body); color: var(--ink); }
.zoom b + b { border-top: 1px solid rgba(255, 255, 255, .1); }
.compass { right: 10px; top: 10px; width: 30px; height: 30px; padding: 0 !important; justify-content: center; font-weight: 700; color: var(--amber-300) !important; }

.b-shadow { fill: #0c0a24; opacity: .55; }
.b-front { fill: #2c2763; }
.b-side { fill: #1e1a4a; }
.b-top { fill: #4a4392; }
.b-snow { fill: none; stroke: #c9c2f0; stroke-width: 2.2; stroke-linecap: round; opacity: .75; }
.b-dome { fill: #3c3685; stroke: #c9c2f0; stroke-width: 1.4; stroke-opacity: .5; }
.bw-on { fill: #ffc35c; animation: winFlick 4s ease-in-out infinite; filter: drop-shadow(0 0 2px rgba(255, 181, 71, .9)); }
.bw-off { fill: #201c4e; }
.b-tag { fill: rgba(13, 11, 33, .7); stroke: rgba(255, 255, 255, .08); }
.bld-label { font-size: 7.4px; font-weight: 500; letter-spacing: .1em; fill: #b9b2e0; text-anchor: middle; font-family: var(--font-mono); }
.bld-label.station { text-anchor: start; fill: #8f88bd; }
.pond { opacity: .9; }
.ice-shine { fill: none; stroke: #9fb6ff; stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.path-edge { stroke: #1a1640; stroke-width: 15; fill: none; stroke-linecap: round; }
.path { stroke: #3a3478; stroke-width: 10; fill: none; stroke-linecap: round; }
.path-dash { stroke: #5a53a2; stroke-width: 1.2; stroke-dasharray: 3 6; fill: none; opacity: .7; }
.lamp-glow { fill: url(#lg); }
.lamp-dot { fill: #ffe2a0; }
.rail-bed { stroke: #15123a; stroke-width: 16; fill: none; }
.rail { stroke: #6f68a8; stroke-width: 1.4; fill: none; }
.rail-ties { stroke: #3a3478; stroke-width: 9; stroke-dasharray: 2 7; fill: none; }
.train-body { fill: #e8384f; }
.train-win { fill: #ffe7a8; }
.train-light { fill: #fff3c9; filter: drop-shadow(0 0 3px #ffd27a); }
.platform { fill: #3a3478; }
.t-shadow { fill: #0c0a24; opacity: .5; }
.tree path:not(.tree-snow) { fill: #120f30; }
.tree-snow { fill: none; stroke: #b8b0e8; stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.you-cone { fill: rgba(111, 182, 255, .18); }
.pin-glow { fill: url(#pg); }
.pin-ring { fill: none; stroke-width: 2; opacity: .8; animation: ring 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.pin-shadow { fill: #07061a; opacity: .6; }
.pin-body { transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.pin-body > path { stroke: #fff3c9; stroke-width: 1.6; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pin-face { fill: #fff8ec; }
.pin-letter { font-family: var(--font-display); font-weight: 700; font-size: 11px; fill: #241a3f; text-anchor: middle; pointer-events: none; }
.pin-badge { fill: #1b1236; stroke: #ffd27a; stroke-width: 1.2; }
.pin-ic { fill: none; stroke: #ffd27a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pin-ic .f { fill: #ffd27a; }
.pin:hover .pin-body, .pin.is-sel .pin-body { transform: scale(1.18); }
.m-route-bg { fill: none; stroke: rgba(255, 210, 122, .18); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.m-route { fill: none; stroke: #ffd27a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 181, 71, .9)); }
.m-route.flow { animation: routeFlow 1s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -11; } }

.cards-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px 0; }
.cards-head b { font-size: 14px; }
.cards-head .mono { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.cards { padding: 10px 12px 16px; }
.lcard { flex-direction: column; width: 272px; gap: 10px; padding: 14px 14px 13px; position: relative; overflow: hidden; }
.lcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.lc-top { display: flex; align-items: center; gap: 12px; }
.lc-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lc-who b { font-size: 15px; }
.lc-who small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-vibe { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.lc-vibe .ic { width: 18px; height: 18px; }
.lc-note { font-family: var(--font-display); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--ink); }
.lc-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-soft); }
.lc-meta > span { display: inline-flex; align-items: center; }
.lc-meta .ic.xs { color: var(--amber-300); }
.seats { margin-left: auto; gap: 3px; }
.seats i { width: 9px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1.3px var(--amber-300); }
.seats i.taken { background: var(--c); box-shadow: none; }

/* detail */
.sheet { padding-bottom: 24px; }
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; border-radius: 28px 28px 0 0; background: radial-gradient(80% 100% at 20% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); pointer-events: none; }
.dt-vibe { color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.dt-table { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.dt-table svg { width: 132px; height: auto; flex: none; }
.dt-table b { display: block; font-size: 15px; }
.dt-table small { font-size: 12.5px; color: var(--muted); }
.tb-top { fill: #6b4a5e; }
.tb-grain { fill: none; stroke: #8a6474; stroke-width: 1; stroke-dasharray: 30 6 12 8; opacity: .6; }
.tb-cup { fill: #fff3c9; stroke: #b4785a; stroke-width: 1.5; }
.tb-book { fill: #8f86c4; }
.seat-taken { stroke: #fff3c9; stroke-width: 1.5; }
.seat-l { font: 700 9px var(--font-display); fill: #1b1236; text-anchor: middle; }
.seat-free { fill: rgba(255, 210, 122, .08); stroke: var(--amber-300); stroke-width: 1.4; stroke-dasharray: 3 2.5; }
.seat-plus { stroke: var(--amber-300); stroke-width: 1.5; stroke-linecap: round; }
.dt-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; }
.dt-meta li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.dt-meta li span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.dt-meta li b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-meta li small { font-size: 11px; color: var(--muted); }

/* on the way */
.ow-head { gap: 12px; }
.ow-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 5px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.ow-live i { width: 6px; height: 6px; border-radius: 50%; background: #5cd68a; box-shadow: 0 0 8px #5cd68a; animation: livePulse 1.6s infinite; }
.route-map { position: relative; height: 176px; border-radius: 22px; overflow: hidden; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.route-map .map { width: 100%; height: 100%; }
.eta-chip { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; padding: 7px 11px; border-radius: 12px; background: rgba(13, 11, 33, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.eta-chip b { font-size: 15px; color: var(--amber-300); }
.eta-chip span { font-size: 11px; color: var(--ink-soft); }
.spark-back { background-color: #fff8ec; background-image: linear-gradient(transparent 31px, rgba(176, 106, 30, .12) 32px); background-size: 100% 32px; }
.sp-num { position: absolute; right: 14px; bottom: 11px; font-size: 9px !important; letter-spacing: .12em; color: #b48a6a; }
.sp-stamp { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1.5px rgba(27, 18, 54, .25); }

/* light-where */
.flow-head { gap: 10px; }
.step-of { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.flow-head .steps { margin-left: auto; }
.spot-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.spot { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 18px; background: rgba(255, 255, 255, .045); text-align: left; transition: background .2s, box-shadow .2s; }
.spot.on { background: rgba(255, 181, 71, .1); box-shadow: inset 0 0 0 1.5px var(--amber-400), 0 0 26px -10px rgba(255, 181, 71, .8); }
.spot-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--amber-300); }
.spot.on .spot-ic { background: var(--amber-400); color: var(--night-900); }
.spot-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.spot-txt b { font-size: 14.5px; }
.spot-txt small { font-size: 12px; color: var(--muted); }
.spot-txt em { color: #9fd0ff; font-style: normal; }
.spot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.spot-meta small { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; }
.busy { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.busy i { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.busy i:nth-child(1) { height: 4px; } .busy i:nth-child(2) { height: 7px; } .busy i:nth-child(3) { height: 10px; } .busy i:nth-child(4) { height: 12px; }
.busy i.on { background: var(--amber-300); }

/* sky */
.sky-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.streak { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 99px; color: var(--amber-300); background: rgba(255, 181, 71, .12); }
.sky-card { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 12px; background: radial-gradient(120% 90% at 50% 0%, #241e58, #100d2a 70%); box-shadow: inset 0 0 0 1px var(--line); }
.sky-mtn { position: absolute; left: -10%; right: -10%; bottom: -14%; width: 120%; height: auto; filter: brightness(.32) saturate(.6) hue-rotate(10deg); opacity: .95; }
.sky-card .sky-svg { position: relative; margin: 0; }
.sky-me-glow { fill: rgba(111, 182, 255, .2); animation: glowPulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.kpis small { font-family: var(--font-body); }
.kpis div { position: relative; overflow: hidden; }
.kpi-hot { background: rgba(255, 181, 71, .12) !important; box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .35); }
.spark-line { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 14px; display: flex; align-items: flex-end; gap: 3px; opacity: .35; }
.spark-line span { flex: 1; background: var(--amber-300); border-radius: 2px 2px 0 0; }
.kpis b { position: relative; }
.panel h3 { display: flex; justify-content: space-between; align-items: baseline; }
.panel h3 .mono { font-size: 9.5px; color: var(--muted); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.warm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.warm-bars li { display: grid; grid-template-columns: 72px 1fr 16px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.warm-bars i { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.warm-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #ff7a3d, var(--amber-300)); box-shadow: 0 0 10px rgba(255, 181, 71, .6); }
.warm-bars b { text-align: right; color: var(--amber-300); font-size: 12.5px; }

/* tab bar refinement */
.tabbar { background: linear-gradient(transparent, rgba(8, 7, 26, .94) 34%); }
.tabbar::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 58px; border-radius: 22px; background: rgba(28, 23, 66, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 30px -12px rgba(0, 0, 0, .7); z-index: -1; }

/* v3 fixes */
.wl-wick { width: 104px; height: 160px; }
.wl-title { font-size: 44px; }
.wl-tag { margin: 2px 0 8px; font-size: 25px; }
.wl-copy { margin-bottom: 16px; font-size: 14.5px; }
.scr-welcome .btn-primary { font-size: 15px; white-space: nowrap; }
.wl-fine { margin-top: 12px; }
.map-head h2 { font-size: 19px; white-space: nowrap; }
.kpis div { padding-bottom: 22px; }
.spark-line { bottom: 5px; height: 11px; }
.dt-table svg { width: 150px; }
.tb-shadow { fill: #0c0a24; opacity: .5; }
.tb-grain { fill: none; stroke: #8a6474; stroke-width: 1.2; stroke-linecap: round; opacity: .7; }
.tb-coffee { fill: #6b3d2a; }
.tb-spine { stroke: #5a4f96; stroke-width: 1.4; }
.ow-head b { font-size: 15px; }
@media (max-width: 360px) {
  .weather { display: none; }
  .map-head h2 { font-size: 18px; }
  .map-chrome { font-size: 9px; }
  .legend { display: none !important; }
}

/* ===================== v4: ambient decor behind every screen ===================== */
.app { background: radial-gradient(140% 70% at 50% 0%, #1d1748 0%, #120f2c 55%, #0d0b21 100%); }
.app-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.screens { z-index: 1; }
.statusbar { z-index: 5; }
.ad-aurora { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .5; mix-blend-mode: screen; animation: adDrift 18s ease-in-out infinite alternate; }
.a1 { width: 70%; height: 22%; left: -12%; top: -4%; background: radial-gradient(closest-side, rgba(92, 194, 182, .55), transparent); }
.a2 { width: 64%; height: 20%; right: -14%; top: 2%; background: radial-gradient(closest-side, rgba(139, 124, 255, .55), transparent); animation-duration: 22s; animation-delay: -6s; }
.a3 { width: 50%; height: 16%; left: 26%; top: 10%; background: radial-gradient(closest-side, rgba(255, 181, 71, .28), transparent); animation-duration: 26s; animation-delay: -12s; }
@keyframes adDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 3%) scale(1.12); } 100% { transform: translate(-6%, 1%) scale(.95); } }
.ad-stars { position: absolute; inset: 0 0 55% 0; opacity: .75; animation: adTw 5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1px 1px at 8% 12%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 22% 30%, #fff3c9 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 48% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 20%, #fff3c9 50%, transparent 51%), radial-gradient(1px 1px at 94% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 62%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 80% 60%, #fff 50%, transparent 51%); }
@keyframes adTw { from { opacity: .45; } to { opacity: .9; } }
.ad-moon { position: absolute; right: 9%; top: 9%; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -6px -3px 0 1px #fff1cf; transform: rotate(-22deg); filter: drop-shadow(0 0 10px rgba(255, 240, 207, .55)); opacity: .85; }
.ad-snow i { position: absolute; top: -10px; width: calc(4px * var(--s)); height: calc(4px * var(--s)); border-radius: 50%; background: #fff; opacity: .55; animation: adFall linear infinite; }
@keyframes adFall { from { transform: translate3d(0, -10px, 0); } 50% { transform: translate3d(10px, 50vh, 0); } to { transform: translate3d(-6px, 105vh, 0); } }
.ad-hills, .ad-fore { position: absolute; left: -20%; width: 140%; height: auto; max-width: none; bottom: 0; }
.ad-hills { bottom: 7%; filter: brightness(.36) saturate(.7) hue-rotate(10deg); opacity: .75; }
.ad-fore { filter: brightness(.3) saturate(.6) hue-rotate(14deg); opacity: .85; }
.ad-grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* screens that already paint a full backdrop hide the decor behind them */
.app[data-screen="welcome"] .ad-hills, .app[data-screen="welcome"] .ad-fore, .app[data-screen="welcome"] .ad-moon { opacity: 0; }
.app[data-screen="map"] .ad-hills, .app[data-screen="detail"] .ad-hills { opacity: .35; }
.ad-hills, .ad-fore, .ad-moon { transition: opacity .6s; }
/* glassier surfaces so the decor reads through */
.lcard, .panel, .kpis div, .later, .ember-ask, .spot, .vibe, .stepper, .seg button, .field input, .dt-table, .dt-meta li, .face, .incoming {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel, .later, .kpis div, .spot, .vibe, .stepper, .face, .dt-meta li { background-color: rgba(30, 24, 70, .55) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .06); }
.spot.on, .vibe.on, .face.on { background-color: rgba(255, 181, 71, .16) !important; }
.big { text-shadow: 0 2px 18px rgba(13, 11, 33, .7); }
.scr-flow .big::after, .scr-forecast .big::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--amber-400), transparent); }
@media (prefers-reduced-motion: reduce) { .ad-aurora, .ad-snow i, .ad-stars { animation: none; } }
.ad-moon { opacity: 0; }
.app[data-screen="forecast"] .ad-moon, .app[data-screen="kindle"] .ad-moon, .app[data-screen="result"] .ad-moon, .app[data-screen="lit"] .ad-moon { opacity: .85; }
