/* TravelShield — premium dark. Ivory text, champagne-gold accents, threat colours only where they mean something. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/serif-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/serif-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --card-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f3efe6;
  --text-2: #bdb9b0;
  --text-3: #85827b;
  --gold: #d8b46a;
  --gold-2: #f0d79b;
  --gold-ink: #1a1408;
  --safe: #3ccb7f;
  --alert: #f2b33d;
  --unsafe: #ff7f45;
  --dangerous: #ff4d57;
  --radius: 22px;
  --radius-s: 14px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -180px, rgba(216, 180, 106, 0.13), transparent 70%),
    radial-gradient(700px 500px at 100% 0%, rgba(80, 110, 160, 0.07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--top)) 20px 14px;
  background: linear-gradient(to bottom, rgba(7, 8, 11, 0.92), rgba(7, 8, 11, 0));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -0.01em; font-weight: 600; font-size: 17px; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-weight: 600; }
.brand span { color: var(--gold-2); font-weight: 500; }
.top-link { font-size: 14px; color: var(--text-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.top-link:hover { color: var(--text); border-color: var(--line-2); }

main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px calc(40px + var(--bottom)); }
.view { animation: in 0.55s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(216, 180, 106, 0.28); background: rgba(216, 180, 106, 0.06);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(216, 180, 106, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 180, 106, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(216, 180, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 180, 106, 0); } }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font-family: var(--serif); font-size: clamp(48px, 11vw, 96px); line-height: 0.98; letter-spacing: -0.02em; }
.display em, .q em { font-style: italic; color: var(--gold-2); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 36em; margin: 0; }
.q { font-family: var(--serif); font-size: clamp(36px, 8vw, 54px); line-height: 1.04; letter-spacing: -0.015em; }
.h2 { font-family: var(--serif); font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.label { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* ---------- home ---------- */
.hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding: clamp(36px, 9vh, 90px) 0 28px; }
.choices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 760px; margin: 18px auto 0; }
@media (min-width: 720px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  text-align: left; padding: 22px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.choice:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--card-2); }
.choice.primary { border-color: rgba(216, 180, 106, 0.38); background: linear-gradient(160deg, rgba(216, 180, 106, 0.13), rgba(216, 180, 106, 0.03)); }
.choice.primary:hover { border-color: rgba(216, 180, 106, 0.6); }
.choice .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); }
.choice.primary .icon { background: rgba(216, 180, 106, 0.16); border-color: rgba(216, 180, 106, 0.35); color: var(--gold-2); }
.choice .icon svg { width: 24px; height: 24px; }
.choice b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.choice small { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.choice { text-decoration: none; color: var(--text); }
.choice .go { color: var(--text-3); transition: transform 0.4s var(--ease), color 0.3s; display: grid; }
.choice .go svg, .trip-row > svg { width: 20px; height: 20px; }
.choice:hover .go { transform: translateX(4px); color: var(--text); }

.section { margin: clamp(56px, 10vh, 110px) auto 0; max-width: 980px; }
.section-head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: 30px; }
.levels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.level-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; }
.level-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.promises { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promise { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.promise svg { width: 26px; height: 26px; color: var(--gold-2); }
.promise h3 { font-size: 18px; font-weight: 600; margin: 14px 0 6px; letter-spacing: -0.01em; }
.promise p { margin: 0; color: var(--text-2); font-size: 15px; }
.trips { max-width: 760px; margin: 34px auto 0; display: grid; gap: 10px; }
.trip-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.trip-row:hover { border-color: var(--line-2); }
.trip-row span { flex: 1; min-width: 0; }
.trip-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-row small { color: var(--text-3); }

/* ---------- meter ---------- */
.meter { display: flex; gap: 5px; width: 100%; }
.meter i { flex: 1; height: 8px; border-radius: 8px; background: var(--card-3); transform-origin: left; }
.meter.big i { height: 10px; }
.meter.on-safe i:nth-child(-n+1) { background: var(--safe); }
.meter.on-alert i:nth-child(-n+2) { background: var(--alert); }
.meter.on-unsafe i:nth-child(-n+3) { background: var(--unsafe); }
.meter.on-dangerous i:nth-child(-n+4) { background: var(--dangerous); }
.meter.animate i { animation: grow 0.9s var(--ease) both; }
.meter.animate i:nth-child(2) { animation-delay: 0.12s; }
.meter.animate i:nth-child(3) { animation-delay: 0.24s; }
.meter.animate i:nth-child(4) { animation-delay: 0.36s; }
@keyframes grow { from { transform: scaleX(0); opacity: 0.3; } to { transform: none; opacity: 1; } }
.lvl-safe { color: var(--safe); }
.lvl-alert { color: var(--alert); }
.lvl-unsafe { color: var(--unsafe); }
.lvl-dangerous { color: var(--dangerous); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); white-space: nowrap; }

/* ---------- question flow ---------- */
.flow { max-width: 620px; margin: 0 auto; min-height: calc(100dvh - 80px); display: flex; flex-direction: column; }
.flow-top { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; }
.back { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; }
.back:hover { border-color: var(--line-2); }
.back svg { width: 18px; height: 18px; }
.progress { flex: 1; height: 3px; border-radius: 3px; background: var(--card-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px; transition: width 0.6s var(--ease); }
.count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.step { flex: 1; display: flex; flex-direction: column; gap: 22px; padding-top: clamp(8px, 4vh, 40px); animation: stepin 0.4s var(--ease) both; }
.step.back-anim { animation-name: stepback; }
@keyframes stepin { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepback { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.step .hint { margin: -8px 0 0; color: var(--text-2); font-size: 16.5px; }
.bodyguard { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.bodyguard svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 1px; }

.field { position: relative; }
.input {
  width: 100%; font-size: 19px; padding: 19px 20px 19px 54px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--card-2); outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.input.plain { padding-left: 20px; }
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: rgba(216, 180, 106, 0.65); background: var(--card-3); box-shadow: 0 0 0 5px rgba(216, 180, 106, 0.1); }
.field > svg { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-3); pointer-events: none; }
textarea.input { min-height: 96px; resize: vertical; font-size: 17px; line-height: 1.5; }
.suggest { margin-top: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.suggest button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); }
.suggest button:first-child { border-top: 0; }
.suggest button:hover, .suggest button.active { background: var(--card-2); }
.suggest svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.suggest b { font-weight: 500; }
.suggest small { display: block; color: var(--text-3); font-size: 13.5px; }
.picked { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(216, 180, 106, 0.45); background: rgba(216, 180, 106, 0.08); }
.picked svg { width: 22px; height: 22px; color: var(--gold-2); flex: none; }
.picked span { flex: 1; min-width: 0; }
.picked b { display: block; font-weight: 600; }
.picked small { color: var(--text-2); }
.link { background: none; border: 0; padding: 6px 2px; color: var(--gold-2); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(240, 215, 155, 0.35); }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.option:hover { border-color: var(--line-2); background: var(--card-2); }
.option:active { transform: scale(0.99); }
.option[aria-pressed='true'] { border-color: rgba(216, 180, 106, 0.7); background: rgba(216, 180, 106, 0.1); }
.option .oi { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.option[aria-pressed='true'] .oi { background: rgba(216, 180, 106, 0.2); color: var(--gold-2); }
.option .oi svg { width: 21px; height: 21px; }
.option b { font-weight: 600; font-size: 17px; display: block; }
.option small { color: var(--text-2); font-size: 14px; }
.option .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.option[aria-pressed='true'] .tick { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.option .tick svg { width: 13px; height: 13px; opacity: 0; }
.option[aria-pressed='true'] .tick svg { opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  font-size: 15.5px; font-weight: 500; transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.28); }
.chip[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--text-2); transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed='true'] { background: var(--text); color: var(--bg); }
.row-q { display: grid; gap: 12px; }
.row-q > span { font-weight: 600; font-size: 17px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card-2); font-size: 22px; line-height: 1; display: grid; place-items: center; }
.stepper button:hover { background: var(--card-3); }
.stepper output { min-width: 92px; text-align: center; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.date-input { font-size: 17px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); color-scheme: dark; }
.until { color: var(--text-2); font-size: 15px; }

.dock {
  position: sticky; bottom: 0; z-index: 10; margin-top: auto;
  padding: 22px 0 calc(18px + var(--bottom));
  background: linear-gradient(to top, var(--bg) 62%, rgba(7, 8, 11, 0));
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 26px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2);
  font-weight: 600; font-size: 17px; letter-spacing: -0.005em; text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
}
.btn:hover { background: var(--card-3); }
.btn:active { transform: scale(0.985); }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(216, 180, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.gold:hover { filter: brightness(1.04); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; box-shadow: none; }
.btn.gold[disabled] { background: var(--card-2); color: var(--text-3); border-color: var(--line); opacity: 1; }
.suggesting .dock { display: none; }
.btn svg { width: 19px; height: 19px; }

/* ---------- working ---------- */
.working { max-width: 520px; margin: 0 auto; min-height: calc(100dvh - 90px); display: grid; align-content: center; justify-items: center; gap: 28px; text-align: center; padding-bottom: 40px; }
.shield-anim { position: relative; width: 132px; height: 132px; }
.shield-anim svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shield-anim .ring { animation: spin 2.8s linear infinite; transform-origin: 50% 50%; }
.shield-anim .ring2 { animation: spin 5.5s linear infinite reverse; transform-origin: 50% 50%; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 100%; text-align: left; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; color: var(--text-3); transition: color 0.4s, background 0.4s; }
.steps li.now { color: var(--text); background: var(--card); }
.steps li.done { color: var(--text-2); }
.steps .st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.steps li.now .st { border-color: var(--gold); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.done .st { border-color: var(--safe); background: rgba(60, 203, 127, 0.15); color: var(--safe); }
.steps .st svg { width: 12px; height: 12px; opacity: 0; }
.steps li.done .st svg { opacity: 1; }
.steps em { font-style: normal; margin-left: auto; font-size: 13px; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ---------- briefing ---------- */
.brief { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; padding-top: 8px; }
.brief-head { display: grid; gap: 10px; padding: 10px 0 8px; }
.brief-head .h2 { font-size: clamp(40px, 8vw, 64px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 24px; }
.card > .label { display: block; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.overall { display: grid; gap: 16px; padding: 28px; background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); }
.overall .lv { font-family: var(--serif); font-size: clamp(42px, 8vw, 60px); line-height: 1; }
.overall .headline { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.overall p { margin: 0; color: var(--text-2); font-size: 16.5px; }
.says { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.says li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 17px; }
.says li::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 30px; color: var(--gold-2); line-height: 1; }
.map-card { padding: 0; overflow: hidden; }
.map-wrap { position: relative; height: clamp(300px, 52vh, 460px); background: #0b0d10; }
.map-wrap > .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tools { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .seg { background: rgba(10, 12, 16, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(0, 0, 0, 0.55); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); }
.mk svg { width: 15px; height: 15px; }
.mk.stay { background: var(--gold); color: var(--gold-ink); width: 36px; height: 36px; }
.mk.you { background: var(--text); color: var(--bg); width: 22px; height: 22px; box-shadow: 0 0 0 7px rgba(243, 239, 230, 0.18), 0 6px 16px rgba(0, 0, 0, 0.55); }
.mk.hospital { background: #f3efe6; color: #c62f3a; }
.mk.police { background: #3d6bd6; color: #fff; }
.mk.pharmacy { background: #2fa56a; color: #fff; }
.maplibregl-ctrl-attrib { background: rgba(10, 12, 16, 0.7) !important; color: var(--text-3) !important; font-size: 10.5px !important; }
.maplibregl-ctrl-attrib a { color: var(--text-2) !important; }
.maplibregl-ctrl-group { background: rgba(10, 12, 16, 0.85) !important; border: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button span { filter: invert(1); }
.maplibregl-popup-content { background: #12151b !important; color: var(--text) !important; border-radius: 12px !important; border: 1px solid var(--line-2); font: 14px var(--sans); padding: 10px 14px !important; }
.maplibregl-popup-tip { border-top-color: #12151b !important; border-bottom-color: #12151b !important; }

.list { display: grid; gap: 2px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.item:first-child { border-top: 0; padding-top: 2px; }
.item b { font-weight: 600; }
.item b { font-size: 17px; }
.item p { grid-column: 1 / -1; margin: 0; color: var(--text-2); font-size: 15.5px; }
.item .lv2 { display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 640px) { .item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; } .item .lv2 { justify-content: flex-end; } }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.bul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bul li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text); font-size: 15.5px; }
.bul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 9px; }
.plan { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.plan:first-child { border-top: 0; padding-top: 2px; }
.plan-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.plan p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.places { display: grid; gap: 8px; }
.place { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.place:hover { border-color: var(--line-2); }
.place .mk { width: 34px; height: 34px; box-shadow: none; border: 0; }
.place b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place small { color: var(--text-3); }
.place .go { font-size: 13px; color: var(--gold-2); font-weight: 500; white-space: nowrap; }
.sos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sos a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 77, 87, 0.07); border: 1px solid rgba(255, 77, 87, 0.25); text-decoration: none; }
.sos a:hover { border-color: rgba(255, 77, 87, 0.5); }
.sos a b { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sos a small { color: var(--text-2); }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin: 0; flex: none; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--gold-ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:checked + span { color: var(--text-3); text-decoration: line-through; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(242, 179, 61, 0.3); background: rgba(242, 179, 61, 0.06); color: var(--text-2); font-size: 15px; }
.note svg { width: 20px; height: 20px; color: var(--alert); flex: none; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px 0 6px; }
.fine { text-align: center; font-size: 13px; color: var(--text-3); max-width: 560px; margin: 26px auto 0; }

/* ---------- now ---------- */
.now-start { max-width: 560px; margin: 0 auto; display: grid; gap: 22px; padding-top: clamp(18px, 6vh, 60px); }
.now-res { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; padding-top: 8px; }
.now-main { display: grid; gap: 14px; padding: 26px; }
.now-main .where { font-size: 14px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.now-main .where svg { width: 15px; height: 15px; }
.now-main .lv { font-family: var(--serif); font-size: clamp(46px, 10vw, 64px); line-height: 1; }
.now-main .instruction { font-size: 20px; line-height: 1.45; letter-spacing: -0.005em; margin: 0; }

.error-card { max-width: 520px; margin: 12vh auto 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.error-card svg { width: 40px; height: 40px; color: var(--alert); }

footer { text-align: center; padding: 50px 20px calc(30px + var(--bottom)); color: var(--text-3); font-size: 13px; }
footer a { color: var(--text-2); text-decoration: none; }

@media (max-width: 520px) {
  main { padding-left: 16px; padding-right: 16px; }
  .top { padding-left: 16px; padding-right: 16px; }
  .card { padding: 20px; }
  .overall { padding: 22px; }
  .input { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- reassurance row (home) ---------- */
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.assure span { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 13px 20px; border-radius: 999px; background: #f3efe6; color: #07080b; font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body[data-page='plan'] footer, body[data-page='now'] footer { display: none; }
