/* Oroklini Halloween Map
   Lantern-lit night: aubergine dusk, pumpkin flame, bone-white text.
   Layout: the map is the page; one sheet slides up from the bottom (a side panel on wide screens). */

@font-face { font-family: "Jolly Lodger"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jolly-lodger-latin-400-normal.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: "Jolly Lodger"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jolly-lodger-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/commissioner-latin-400-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/commissioner-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/commissioner-latin-800-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/commissioner-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/commissioner-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/commissioner-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/commissioner-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/commissioner-greek-600-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/commissioner-greek-800-normal.woff2) format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }

:root {
  /* palette */
  --night: #15101c;
  --dusk: #1f1729;
  --dusk-2: #2a2036;
  --line: #3b2f4b;
  --bone: #f3e9d6;
  --bone-2: #c2b5a3;
  --bone-3: #8e8296;
  --pumpkin: #ff7b1c;
  --pumpkin-ink: #2a1206;
  --ember: #ffab52;
  --candle: #ffd76e;
  --moss: #8bd17d;
  --moss-ink: #10240c;
  --teal: #3ccbc3;
  --violet: #b896ea;
  --sky: #8fbcff;
  --ash: #7b7487;
  --danger: #ff7070;
  /* type */
  --f-display: "Jolly Lodger", "Commissioner", system-ui, sans-serif;
  --f-body: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --peek: 176px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 15px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ember); }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 2px; }

#app {
  height: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
}
/* fixed rows, so the map keeps its row when the announcement is hidden */
#app > .topbar { grid-row: 1; }
#app > .announcement { grid-row: 2; }
#app > .stage { grid-row: 3; }

/* ---------------------------------------------------------------- header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--safe-t) + 8px) 16px 8px;
  background: var(--night);
  border-bottom: 1px solid var(--line);
  z-index: 1200;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.wordmark {
  font-family: var(--f-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--pumpkin); }
.status-line {
  font-size: 12.5px;
  color: var(--bone-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--dusk);
  color: var(--bone);
}
.icon-btn.ghost { border-color: transparent; background: transparent; color: var(--bone-2); }
.icon-btn.small { width: 34px; height: 34px; }
.ico { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }

.announcement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  background: #3a2410;
  color: var(--candle);
  border-bottom: 1px solid #5a3a18;
  font-size: 14px;
  z-index: 1100;
}
.announcement p { flex: 1; min-width: 0; padding-top: 1px; }
.announcement .icon-btn { margin: -6px -4px -6px 0; color: var(--candle); }

/* ---------------------------------------------------------------- map */
.stage { position: relative; overflow: hidden; min-height: 0; }
.map { position: absolute; inset: 0; background: #241c2e; }
.map-night .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.55); }
.placing .map { cursor: crosshair; }
.leaflet-container { font-family: var(--f-body); background: #241c2e; }
.leaflet-container a { color: var(--ember); }
.leaflet-control-attribution {
  background: rgba(21, 16, 28, .78) !important;
  color: var(--bone-2) !important;
  font-size: 10.5px;
  border-radius: 8px 0 0 0;
}
.leaflet-bottom.leaflet-right { bottom: calc(var(--peek) + var(--safe-b)); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: none !important; }
.leaflet-bar a { background: var(--dusk) !important; color: var(--bone) !important; border-color: var(--line) !important; }
.leaflet-top.leaflet-right { top: 112px; }
@media (pointer: coarse) { .leaflet-control-zoom { display: none; } }

.map-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--dusk);
  color: var(--bone);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.tool-btn.active { color: var(--sky); border-color: var(--sky); }
.tool-btn.busy .ico { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pins */
.pin-icon { background: none; border: 0; }
.pin { width: 100%; height: 100%; }
.pin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pin-shadow { fill: rgba(0, 0, 0, .35); }
.pin-body { fill: var(--pumpkin); stroke: var(--pumpkin-ink); stroke-width: 1.6; }
.pin-rib { fill: none; stroke: rgba(42, 18, 6, .28); stroke-width: 1.2; }
.pin-stem { fill: #4f7d36; }
.pin-face { fill: var(--pumpkin-ink); }
.pin-badge { display: none; }
.pin-badge circle { fill: var(--moss); stroke: var(--night); stroke-width: 1.6; }
.pin-badge path { fill: none; stroke: var(--moss-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin.visited .pin-badge { display: inline; }
.pin.st-open svg { filter: drop-shadow(0 0 6px rgba(255, 190, 80, .9)); }
.pin.st-open .pin-face { fill: #fff3c4; animation: flicker 2.6s ease-in-out infinite; }
.pin.st-closed .pin-body, .pin.st-out .pin-body, .pin.st-over .pin-body { fill: var(--ash); stroke: #2a2530; }
.pin.st-closed .pin-face, .pin.st-out .pin-face, .pin.st-over .pin-face { fill: #2f2937; }
.pin.st-closed, .pin.st-out { opacity: .82; }
.pin.selected svg { filter: drop-shadow(0 0 7px rgba(243, 233, 214, .75)); }
.pin.selected.st-open svg { filter: drop-shadow(0 0 9px rgba(255, 200, 90, 1)); }
.pin.draft .pin-body { fill: var(--candle); stroke: var(--pumpkin-ink); }
.pin.draft svg { animation: bob 1.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .86; } 55% { opacity: .97; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.me-dot { fill: var(--sky); fill-opacity: 1; stroke: #fff; stroke-width: 3; }
.me-accuracy { fill: var(--sky); fill-opacity: .12; stroke: var(--sky); stroke-opacity: .35; stroke-width: 1; }

/* ---------------------------------------------------------------- sheet */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  height: calc(var(--peek) + var(--safe-b));
  background: var(--dusk);
  border-top: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .45);
  transition: height .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet[data-state="tall"] { height: min(360px, 62%); }
.sheet[data-state="half"] { height: 60%; }
.sheet[data-state="full"] { height: calc(100% - 10px); }
.sheet-handle {
  flex: none;
  display: grid;
  place-items: center;
  height: 24px;
  cursor: grab;
  touch-action: none;
}
.sheet-handle span { width: 42px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(20px + var(--safe-b));
}

@media (min-width: 900px) {
  .sheet, .sheet[data-state] {
    left: 16px;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 400px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
  }
  .sheet-handle { display: none; }
  .sheet-body { padding-top: 16px; }
  .leaflet-bottom.leaflet-right { bottom: 0; }
  .wordmark { font-size: 31px; }
}

/* ---------------------------------------------------------------- views */
.view { display: flex; flex-direction: column; gap: 14px; }
.view-top { display: flex; align-items: center; gap: 8px; margin-left: -8px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pumpkin);
}
.eyebrow .ico { width: 14px; height: 14px; }
.muted { color: var(--bone-2); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.notice {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 215, 110, .08);
  border: 1px solid rgba(255, 215, 110, .28);
  color: var(--candle);
  font-size: 14px;
}

.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-text { min-width: 0; }
.summary h2 { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary p { font-size: 13px; color: var(--bone-2); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pumpkin); color: var(--pumpkin-ink); }
.btn-primary:hover { background: #ff8c3a; }
.btn-secondary { background: var(--dusk-2); color: var(--bone); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--bone-2); }
.btn-done { background: var(--moss); color: var(--moss-ink); }
.btn-danger { background: var(--danger); color: #2a0606; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions > .btn { flex: 1 1 auto; }
.actions.wrap > .btn { flex: 0 1 auto; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--bone-2);
  font-size: 13.5px;
}
.link .ico { width: 16px; height: 16px; }

/* filter chips */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone-2);
  font-size: 13.5px;
  font-weight: 600;
}
.chip.on { background: var(--dusk-2); border-color: var(--pumpkin); color: var(--bone); }

.tag-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--bone-3); }
.tag-teal { background: var(--teal); }
.tag-littles { background: var(--moss); }
.tag-spooky { background: var(--violet); }
.tag-decor { background: var(--ember); }
.tag-access { background: var(--sky); }
.tag-pets { background: var(--bone-2); }

/* callouts */
.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--dusk-2);
  color: inherit;
  text-align: left;
}
.callout img { flex: none; border-radius: 10px; }
.callout > .ico { color: var(--pumpkin); width: 24px; height: 24px; }
.callout-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.callout-text strong { font-size: 14.5px; }
.callout-text span { font-size: 13px; color: var(--bone-2); overflow: hidden; text-overflow: ellipsis; }
.callout-go { flex: none; color: var(--pumpkin); font-weight: 800; font-size: 14px; }
.callout.next { border-color: rgba(143, 188, 255, .45); }
.callout.next > .ico { color: var(--sky); }

/* list */
.house-list { list-style: none; margin: 0; padding: 0; }
.house-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
}
.house-list li:last-child .house-row { border-bottom: 0; }
.house-row:hover { background: rgba(255, 255, 255, .02); }
.house-row.is-visited .row-name { color: var(--bone-2); }
.row-pin { display: block; width: 30px; height: 38px; }
.row-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.row-name { font-weight: 800; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--bone-2); min-width: 0; }
.row-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-dist { font-size: 12.5px; color: var(--bone-2); font-variant-numeric: tabular-nums; }

.chip-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  color: var(--bone-2);
}
.chip-status.st-open { background: var(--candle); border-color: var(--candle); color: #2a1a00; }
.chip-status.st-soon { border-color: var(--ember); color: var(--ember); }
.chip-status.st-out, .chip-status.st-closed, .chip-status.st-over { color: var(--bone-3); }
.chip-status.st-upcoming { color: var(--bone); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; text-align: center; color: var(--bone-2); }
.empty-title { color: var(--bone); font-weight: 800; font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 4px; border-top: 1px solid var(--line); }

/* house details */
.house-name { font-size: 25px; font-weight: 800; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.meta { font-size: 13.5px; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.address { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; }
.address .ico { color: var(--pumpkin); margin-top: 1px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--dusk-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
}
.host-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--pumpkin);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--dusk-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.small-links { font-size: 13.5px; }

/* add flow */
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step-head h2 { font-size: 21px; font-weight: 800; margin-top: 2px; }
.step-head .icon-btn { margin: -4px -10px 0 0; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.search-row .btn { flex: none; width: 50px; padding: 0; }
input[type="text"], input[type="search"], input[type="time"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--night);
  color: var(--bone);
  font-size: 16px;
}
textarea { resize: vertical; min-height: 72px; }
input::placeholder, textarea::placeholder { color: var(--bone-3); }
input:focus, textarea:focus { outline: 2px solid var(--pumpkin); outline-offset: 0; border-color: transparent; }
.results { list-style: none; margin: 0; padding: 0; }
.results:empty { display: none; }
.results li.muted { padding: 8px 2px; font-size: 14px; }
.result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
}
.result .ico { color: var(--pumpkin); }
.hint { font-size: 13.5px; color: var(--bone-2); }
.chosen, .pin-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--dusk-2);
  border: 1px dashed var(--line);
  font-size: 14.5px;
}
.chosen .ico, .pin-summary .ico { color: var(--candle); }
.pin-summary { border-style: solid; }
.pin-summary > span:not(.ico) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-summary .btn { margin: -6px -8px -6px 0; color: var(--ember); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.field > label, .field legend { font-weight: 800; font-size: 14.5px; }
.help { font-size: 12.5px; color: var(--bone-2); }
.time-row { display: flex; align-items: center; gap: 10px; }
.time-row input { flex: 1; font-variant-numeric: tabular-nums; }
.time-row span { color: var(--bone-2); font-size: 14px; }
fieldset.tags { border: 0; padding: 0; display: grid; gap: 8px; }
fieldset.tags legend { padding: 0; margin-bottom: 6px; }
.check {
  display: grid;
  grid-template-columns: 22px 10px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 400;
  cursor: pointer;
}
.check:has(input:checked) { border-color: var(--pumpkin); background: rgba(255, 123, 28, .07); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pumpkin); }
.check .tag-dot { margin-top: 6px; }
.check strong { display: block; font-size: 14.5px; }
.check small { display: block; font-size: 12.5px; color: var(--bone-2); }
.check.consent { grid-template-columns: 22px minmax(0, 1fr); font-size: 14px; }
.consent-privacy { display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.consent-privacy .ico { width: 14px; height: 14px; color: var(--candle); }
.consent-privacy a { font-weight: 600; }
.tags .check, .check small { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--danger);
  background: rgba(255, 112, 112, .1);
  color: #ffc0c0;
  font-size: 14px;
}

/* done + private link */
.view-done { align-items: stretch; text-align: center; padding-top: 6px; }
.view-done > p { color: var(--bone-2); }
.done-art { align-self: center; }
.view-done h2 { font-family: var(--f-display); font-size: 40px; font-weight: 400; color: var(--pumpkin); letter-spacing: .02em; }
.private-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 215, 110, .35);
  background: var(--dusk-2);
  text-align: left;
}
.private-link .eyebrow { color: var(--candle); }
.link-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px !important; }

/* my house */
.mine-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--dusk-2);
}
.mine-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mine-head h3 { font-size: 18px; font-weight: 800; }
.pill { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill.pending { background: rgba(184, 150, 234, .18); color: var(--violet); }
.pill.live { background: rgba(139, 209, 125, .18); color: var(--moss); }
.pill.hidden { background: rgba(123, 116, 135, .25); color: var(--bone-2); }
.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--night);
  cursor: pointer;
}
.switch-row strong { display: block; }
.switch-row small { display: block; color: var(--bone-2); font-size: 12.5px; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bone);
  transition: transform .2s;
}
.switch-row input:checked + .switch { background: var(--pumpkin); }
.switch-row input:checked + .switch::after { transform: translateX(22px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--candle); outline-offset: 2px; }
.confirm-text { width: 100%; font-weight: 600; }

/* ---------------------------------------------------------------- menu, modal, toast */
.menu {
  position: fixed;
  top: calc(var(--safe-t) + 62px);
  right: 12px;
  z-index: 3000;
  width: min(310px, calc(100vw - 24px));
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--dusk);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--bone);
  text-align: left;
  font-weight: 600;
}
.menu-item .ico { color: var(--pumpkin); }
.menu-item:hover { background: var(--dusk-2); }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.menu-label { padding: 4px 12px; font-size: 12px; color: var(--bone-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.lang-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px 6px 8px; }
.lang-switch button {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone-2);
  font-weight: 800;
}
.lang-switch button.on { background: var(--pumpkin); border-color: var(--pumpkin); color: var(--pumpkin-ink); }
.menu-foot { padding: 8px 12px 4px; font-size: 12.5px; color: var(--bone-3); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 5, 12, .72);
}
.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 88%;
  overflow-y: auto;
  padding: 16px 18px calc(22px + var(--safe-b));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--dusk);
  border: 1px solid var(--line);
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-card { border-radius: var(--r-lg); padding-bottom: 22px; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modal-head h2 { font-size: 20px; font-weight: 800; }
.modal-head .icon-btn { margin-right: -10px; }
.prose { display: flex; flex-direction: column; gap: 10px; }
.prose h3 { font-size: 13px; font-weight: 800; color: var(--pumpkin); text-transform: uppercase; letter-spacing: .07em; margin-top: 8px; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--pumpkin); font-weight: 800; }
.kbd { display: inline-grid; place-items: center; vertical-align: middle; width: 28px; height: 28px; border-radius: 8px; background: var(--dusk-2); border: 1px solid var(--line); color: var(--sky); }
.kbd .ico { width: 18px; height: 18px; }
.share { display: flex; flex-direction: column; gap: 14px; }
.qr { display: block; align-self: center; width: 230px; max-width: 100%; height: auto; border-radius: 14px; background: #fff; image-rendering: pixelated; }

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-t) + 70px);
  transform: translateX(-50%);
  z-index: 5000;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--bone);
  color: var(--night);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.noscript { padding: 24px; text-align: center; }

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

/* walking route */
.callout.route-cta { border-color: rgba(255, 215, 110, .45); }
.callout.route-cta > .ico { color: var(--candle); }
.route-head { display: flex; flex-direction: column; gap: 4px; }
.route-head h2 { font-size: 22px; font-weight: 800; }
.route-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.route-list li:last-child .house-row { border-bottom: 0; }
.route-n, .route-num span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--candle);
  color: #2a1a00;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.route-num { background: none; border: 0; }
.route-num span { width: 24px; height: 24px; border: 2px solid var(--night); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.route-line { stroke: var(--candle); stroke-width: 4; stroke-opacity: .95; stroke-dasharray: 1 10; stroke-linecap: round; fill: none; }
.map-night .route-line { stroke: var(--candle); }

/* password field + host login */
.pw-row { display: flex; gap: 8px; align-items: stretch; }
.pw-row input { flex: 1; min-width: 0; }
.pw-row .pw-toggle { flex: none; min-width: 84px; border: 1px solid var(--line); }
input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--night);
  color: var(--bone);
  font-size: 16px;
}
input[type="email"]:focus, input[type="password"]:focus { outline: 2px solid var(--pumpkin); outline-offset: 0; border-color: transparent; }
.login-details { border: 1px solid var(--line); border-radius: 16px; background: var(--dusk-2); }
.login-details > summary { padding: 14px; font-weight: 800; cursor: pointer; list-style-position: inside; }
.login-details[open] > summary { padding-bottom: 6px; }
.login-box { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
