/* 모노톤 + 강조색 하나(토마토). 모서리 규칙: 조작 요소는 알약, 패널 24px, 사진 14-16px */
:root {
  --bg: #fdfbfa;
  --surface: #fffdfc;
  --surface-2: #f2ece9;
  --ink: #18181b;
  --muted: #6b6b73;
  --line: #e2e2df;
  --accent: #ef4f2b;
  --shadow: rgb(120 55 30 / .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);      /* 살짝 넘쳤다 돌아오는 튕김 */
  --spring-soft: cubic-bezier(.34, 1.2, .64, 1);
  --nav-h: 56px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113; --surface: #1b1a1c; --surface-2: #262327; --ink: #f2f2f0;
    --muted: #a1a1a9; --line: #2e2b30; --accent: #ff6340; --shadow: rgb(0 0 0 / .45);
  }
}

* { box-sizing: border-box; }
/* 배경: 문서 위쪽에만 주황빛을 깔고 아래로 가며 흰색으로 사라진다.
   별도 레이어 대신 문서 배경으로 둔다. 레이어를 쓰면 그 높이만큼 페이지가 길어져 아래에 빈 공간이 생긴다 */
html {
  scroll-behavior: smooth; scroll-padding-top: var(--nav-h);
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: 100% min(1600px, 190vh);
  background-image:
    radial-gradient(120% 78% at 88% -14%, color-mix(in srgb, var(--accent) 46%, transparent), transparent 62%),
    radial-gradient(95% 62% at 0% -6%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 58%),
    linear-gradient(180deg, #fff2ea 0%, #fef8f4 42%, color-mix(in srgb, var(--bg) 100%, transparent) 100%);
}
@media (prefers-color-scheme: dark) {
  html {
    background-image:
      radial-gradient(120% 78% at 88% -14%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
      radial-gradient(95% 62% at 0% -6%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 56%),
      linear-gradient(180deg, #20150f 0%, #171214 44%, color-mix(in srgb, var(--bg) 100%, transparent) 100%);
  }
}
body {
  margin: 0; background: transparent; color: var(--ink); /* 배경은 html이 그린다 */
  font: 16px/1.5 "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; /* 한글이 단어 중간에서 줄바꿈되지 않게 */
}
[hidden] { display: none !important; } /* .empty 같은 display 지정이 hidden 속성을 덮지 않게 */
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }

.app { max-width: 1120px; margin: 0 auto; padding: 0 16px 40px; }

/* ---- 상단 반투명 내비 (애플식 frosted glass 근사치, backdrop-filter) ---- */
.nav {
  position: sticky; top: 0; z-index: 10; height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; } }
.nav-in { max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.nav-name { font-weight: 800; letter-spacing: -.02em; }
/* 위치 전환: 상단 바 오른쪽 알약 */
.brand { flex: none; }
.locs {
  display: flex; gap: 2px; min-width: 0; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  overflow-x: auto; scrollbar-width: none; /* 위치가 더 늘어 좁은 화면을 넘으면 가로로 민다 */
}
.locs::-webkit-scrollbar { display: none; }
.loc {
  padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: .85rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease);
}
.loc:hover { color: var(--ink); }
.loc[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow), 0 0 0 1px var(--line); }
@media (max-width: 480px) { .nav-name { display: none; } .loc { padding: 6px 11px; } }
.mark {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 19px;
}

/* ---- 첫 화면: 큰 제목 + 근처 식당 사진 벽 ---- */
.hero { display: grid; gap: 28px; padding: 40px 0 36px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; min-height: min(80dvh, 700px); padding: 16px 0 48px; }
}
.hero-title { margin: 0; font-size: clamp(2.8rem, 1.4rem + 5vw, 4.9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.hero-title span { display: inline-block; }
.hero-title .line { white-space: nowrap; } /* '오늘 점심,' / '뭐 먹지?' 단위로만 줄바꿈 */
.hero-sub { margin-top: 18px; max-width: 32ch; color: var(--muted); font-size: clamp(1rem, .9rem + .4vw, 1.2rem); line-height: 1.55; }
.cta.hero-cta { display: inline-flex; width: auto; margin-top: 28px; padding: 14px 26px; text-decoration: none; }

.wall {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; height: 300px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
@media (min-width: 900px) { .wall { height: min(70dvh, 580px); } }
@media (max-width: 599px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wall-col:nth-child(4) { display: none; } }
.wall-col { display: flex; flex-direction: column; gap: 12px; animation: drift var(--dur, 40s) linear infinite; will-change: transform; }
.wall-col:nth-child(even) { animation-direction: reverse; }
.wall:hover .wall-col, .wall.paused .wall-col { animation-play-state: paused; } /* 화면 밖이면 멈춰서 배터리 아낌 */
.wall img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--surface-2); }
/* 한 열에 같은 사진을 두 벌 깔고 한 벌 높이(50% + gap 절반)만큼 올리면 이음매 없이 반복된다 */
@keyframes drift { to { transform: translateY(calc(-50% - 6px)); } }

/* ---- 레이아웃: 모바일 1열, 넓은 화면은 게임 | 결과(고정) ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } /* minmax(0): 긴 사진 띠가 칸을 늘리지 않게 */
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .result { position: sticky; top: calc(var(--nav-h) + 20px); }
}
.panel { background: var(--surface); border-radius: 24px; padding: 20px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px var(--shadow); }

/* ---- 탭 (세그먼트) ---- */
.seg { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; background: var(--surface-2); border-radius: 999px; }
/* 선택 표시가 탭 사이를 미끄러져 이동한다 */
.seg::before {
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--surface); box-shadow: 0 1px 3px var(--shadow), 0 0 0 1px var(--line);
  transition: transform .55s var(--spring-soft);
}
.seg[data-active="roulette"]::before { transform: translateX(100%); }
.seg[data-active="worldcup"]::before { transform: translateX(200%); }
.seg button {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px;
  border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 700;
  transition: color .3s var(--ease);
}
.seg button i { font-size: 1.15rem; }
.seg button[aria-selected="true"] { color: var(--ink); }

/* ---- 종목 칩 ---- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 14px -20px 0; padding: 2px 20px 4px; scroll-padding-inline: 20px; /* 스냅이 패딩을 무시하고 가장자리에 붙지 않게 */
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); font-size: .92rem; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:hover { border-color: var(--muted); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.stage { margin-top: 20px; }
.hint { text-align: center; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hint.warn { padding: 24px 8px; }

/* ---- 사진 자리 (사진이 없거나 깨지면 아이콘이 보인다) ---- */
.pic { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--muted); }
.pic i { font-size: 1.8rem; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- 사진 릴 ---- */
.reel {
  position: relative; overflow: hidden; margin: 12px -20px 20px; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.reel::before, .reel::after {
  content: ""; position: absolute; left: 50%; z-index: 2; transform: translateX(-50%);
  border: 9px solid transparent;
}
.reel::before { top: 0; border-top: 13px solid var(--accent); }
.reel::after { bottom: 0; border-bottom: 13px solid var(--accent); }
.strip { display: flex; gap: 10px; width: max-content; }
.strip.moving { transition: transform 5.5s cubic-bezier(.08, .75, .15, 1); }
.tile {
  position: relative; flex: none; width: 128px; aspect-ratio: 1; margin: 0; border-radius: 16px; overflow: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), box-shadow .35s var(--ease);
}
.tile .pic { position: absolute; inset: 0; }
.tile figcaption {
  position: absolute; inset: auto 0 0; padding: 20px 8px 7px; color: #fff; font-size: .78rem; font-weight: 700;
  background: linear-gradient(transparent, rgb(0 0 0 / .72)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.strip.done .tile { opacity: .35; }
.strip.done .tile.on {
  opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 3px var(--accent), 0 14px 30px -10px var(--shadow); z-index: 1;
  transition: transform .7s var(--spring), box-shadow .4s var(--ease), opacity .3s;
}

.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 1.05rem; font-weight: 800;
  transition: transform .2s var(--ease), opacity .2s;
}
.cta i { font-size: 1.25rem; }
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .4; cursor: default; transform: none; }

/* ---- 월드컵 ---- */
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 14px; }
.size {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
.size strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.size span { color: var(--muted); font-size: .8rem; }
.size:hover { border-color: var(--accent); transform: translateY(-2px); }
.size:active { transform: scale(.97); }

.round { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.round strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.round span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.match { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px 16px;
  border: 2px solid var(--line); border-radius: 24px; background: var(--surface);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card .pic { width: 100%; max-width: 136px; aspect-ratio: 1; border-radius: 16px; }
.card { text-align: center; }
.card strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.card small { color: var(--muted); font-size: .8rem; text-align: center; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 30px -18px var(--shadow); }
.card:active { transform: scale(.97); }
.vs {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 900; box-shadow: 0 0 0 4px var(--surface);
  pointer-events: none;
}

/* ---- 함께 고르기 ---- */
.people { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.people .hint, .group-foot .hint { text-align: left; }
.stepper { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: var(--surface-2); font-weight: 700; }
.stepper button {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--spring), opacity .2s;
}
.stepper button:active { transform: scale(.88); }
.stepper button:disabled { opacity: .35; cursor: default; transform: none; }
.stepper output { display: inline-block; min-width: 1.5em; text-align: center; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.stepper output.enter { animation: bump .45s var(--spring); }
@keyframes bump { from { transform: scale(1.5); color: var(--accent); } }

.picks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pick {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; border-radius: 20px; background: var(--surface-2);
}
.pick .thumb { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); }
.pick .thumb i { font-size: 1.2rem; }
.pick-body { position: relative; display: grid; min-width: 0; padding-right: 24px; border-radius: 8px; }
.pick-body:has(.menu-select:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; } /* 키보드로 움직일 때만 테두리 */
.pick-name, .pick-menus { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-name { font-weight: 700; }
.pick.unset .pick-name { color: var(--muted); font-weight: 600; }
.pick-menus { color: var(--muted); font-size: .8rem; }
.who { color: var(--muted); font-size: .76rem; font-weight: 600; }
.menu-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; } /* 16px: iOS 확대 방지 */
.pick-body .ph-caret-down { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 1.2rem;
  transition: transform .35s var(--spring);
}
.icon-btn:hover { transform: rotate(-14deg); }
.icon-btn:active { transform: scale(.88); }
.pick.new { animation: rise .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.pick.flash { animation: flash .9s var(--ease); }
.pick.flash .thumb { animation: fade-scale .55s var(--spring); }
@keyframes flash { from { box-shadow: 0 0 0 2px var(--accent); } }

.group-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.ghost {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 700;
  transition: border-color .2s, transform .2s var(--spring);
}
.ghost:hover { border-color: var(--accent); }
.ghost:active { transform: scale(.95); }
.ghost:disabled { opacity: .4; cursor: default; transform: none; }
#group-reel.enter { animation: fade-scale .5s var(--ease) backwards; }
#draw { margin-top: 16px; }

/* ---- 결과 ---- */
.empty { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; text-align: center; color: var(--muted); }
.empty i { font-size: 2.6rem; }
.label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.label i { color: var(--accent); font-size: 1.05rem; }
#result-title { margin: 4px 0 14px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
#map { height: 260px; border-radius: 18px; margin-bottom: 10px; z-index: 0; }
#places { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
#places li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px; margin: 0 -8px; border-radius: 16px; transition: background .2s;
}
#places li:hover { background: var(--surface-2); }
#places li.none { display: block; color: var(--muted); padding: 16px 8px; }
.thumb { width: 56px; height: 56px; border-radius: 14px; }
.thumb i { font-size: 1.3rem; }
.place { min-width: 0; padding: 0; border: 0; background: none; text-align: left; display: grid; }
.place strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place span { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links { display: grid; justify-items: end; gap: 2px; }
.go {
  display: inline-flex; align-items: center; gap: 3px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.go i { color: var(--accent); }
.go:hover { background: var(--line); }
.source { color: var(--muted); font-size: .72rem; text-decoration: none; }
.source:hover { text-decoration: underline; }

/* ---- 지도 마커 ---- */
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-bar { border: 0 !important; box-shadow: 0 0 0 1px var(--line), 0 4px 12px var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.me, .pin { display: grid; place-items: center; }
.me { border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 18px; box-shadow: 0 0 0 3px var(--surface), 0 6px 14px var(--shadow); }
.pin { color: var(--accent); font-size: 32px; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3)); }
@media (prefers-color-scheme: dark) { .leaflet-tile-pane { filter: brightness(.78) contrast(1.08) saturate(.8); } }

footer { margin-top: 24px; text-align: center; color: var(--muted); font-size: .8rem; }

/* ---- 모션 ----
   fill은 backwards만 쓴다. both로 끝 상태를 붙잡으면 hover 같은 transform 전환이 막힌다. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes focus { from { opacity: 0; filter: blur(12px); transform: translateY(18px); } }
@keyframes fade-scale { from { opacity: 0; transform: scale(.94); } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(.94); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } }

/* 첫 화면: 제목이 단어 단위로 흐림에서 또렷해진다 */
.hero-title span:not(.line), .hero-sub, .hero-cta { animation: focus 1s var(--ease) backwards; animation-delay: calc(.1s + var(--i, 0) * .09s); }
.wall { animation: fade-scale 1.4s var(--ease) .3s backwards; }

/* 스크롤: 첫 화면이 위로 빠지며 흐려지고, 내비에 이름이 나타난다 (지원 브라우저만) */
@supports (animation-timeline: view()) {
  .hero-copy { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  .wall-stage { animation: wall-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  .nav-name { animation: brand-in linear both; animation-timeline: scroll(root); animation-range: 160px 360px; }
  @keyframes hero-out { to { opacity: 0; transform: translateY(-60px); } }
  @keyframes wall-out { to { opacity: .1; transform: scale(.9); } }
  @keyframes brand-in { from { opacity: 0; transform: translateY(8px); } }
}

/* 스크롤해서 들어오는 패널: 아래에서 떠오른다 (app.js IntersectionObserver가 .in을 붙인다) */
.js .reveal { opacity: 0; transform: translateY(56px) scale(.97); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* 탭 전환, 강 선택, 대결 카드 */
.stage.enter { animation: rise .5s var(--ease) backwards; }
.round { animation: rise .4s var(--ease) backwards; }
.size { animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.match .card { animation: card-in .65s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.vs { animation: pop .55s var(--spring) .18s backwards; }

/* 결과: 라벨, 제목(흐림에서 또렷), 지도, 목록 순서로 */
#result-body.enter > * { animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
#result-body.enter > #result-title { animation-name: focus; animation-duration: .85s; }
#result-body.enter > #map { animation-name: fade-scale; animation-duration: .8s; }
#result-body.enter > #places { animation: none; }
#result-body.enter #places li { animation: rise .5s var(--ease) backwards; animation-delay: calc(.26s + var(--i, 0) * 50ms); }
#result { scroll-margin-top: calc(var(--nav-h) + 12px); }

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