@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../assets/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #10080b;
  --lacquer: #1a0c10;
  --panel: #160a0d;
  --cinnabar: #c4372c;
  --cinnabar-deep: #7c1e18;
  --gold: #e4c57a;
  --gold-dim: #9a7840;
  --ivory: #f6efe2;
  --paper: #f4ecdf;
  --muted: #b5a494;
  --line: rgba(228, 197, 122, 0.22);
  --celadon: #8fbfb2;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab: calc(62px + var(--safe-b));
  --top: calc(54px + var(--safe-t));
  --serif: "Instrument Serif", "Songti SC", "STSong", serif;
  --song: "Songti SC", "STSong", "PMingLiU", "Noto Serif SC", serif;
  --sans: Outfit, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  overflow: hidden;
}
body.is-in #intro {
  transform: translateY(-104%);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
  pointer-events: none;
}
.intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.intro-bg.bund { display: none; }
.intro-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 8, 11, 0.15) 0%, rgba(16, 8, 11, 0.05) 28%, rgba(16, 8, 11, 0.55) 52%, rgba(16, 8, 11, 0.94) 78%, #10080b 100%);
}
.vtext {
  display: none;
}
.intro-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--safe-t) + 18px) 20px calc(var(--safe-b) + 18px);
  gap: 18px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
.seal, .chop {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1.5px solid var(--cinnabar);
  color: #ffd9d2;
  background: rgba(196, 55, 44, 0.28);
  font-family: var(--song);
  font-size: 0.95rem;
  letter-spacing: 0;
  transform: rotate(-8deg);
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 12vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}
.lede {
  margin: 12px 0 0;
  max-width: 38rem;
  color: #eadfce;
  font-size: 1.02rem;
}
.moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.moods button {
  min-height: 76px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 8, 11, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
}
.moods button:active { transform: scale(0.97); background: rgba(196, 55, 44, 0.35); }
.moods b {
  font-family: var(--song);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.moods span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.intro-side {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.intro-cats {
  display: flex;
  gap: 12px;
}
.intro-cats figure { margin: 0; width: 92px; }
.intro-cats img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.intro-cats figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  text-align: center;
}
.intro-cats small {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
}
.enter {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 220, 170, 0.7);
  background:
    radial-gradient(circle at 38% 32%, #e15a48, #9b241c 62%, #5c120f 100%);
  box-shadow: 0 12px 36px rgba(160, 30, 24, 0.45), inset 0 0 0 5px rgba(80, 16, 12, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.enter:active { transform: scale(0.94) rotate(-6deg); }
.enter b {
  font-family: var(--song);
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.enter small {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

/* ---------- app shell ---------- */
#app { height: 100%; }
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-t) + 8px) 12px 8px;
  background: linear-gradient(180deg, rgba(16, 8, 11, 0.92), rgba(16, 8, 11, 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.mark, .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 8, 11, 0.72);
  font-family: var(--song);
  font-size: 1.15rem;
  flex: none;
}
#music[aria-pressed="false"] { color: var(--muted); border-color: transparent; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title strong {
  display: block;
  font-family: var(--song);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.topbar-title span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace { position: relative; height: 100%; }
#map { position: absolute; inset: 0; }
#panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(196, 55, 44, 0.16), transparent 50%),
    var(--ink);
  padding: var(--top) 16px calc(var(--tab) + 18px);
}
body[data-view="map"] #panel { display: none; }
body:not([data-view="map"]) #map,
body:not([data-view="map"]) .map-overlay,
body:not([data-view="map"]) .map-attrib { visibility: hidden; }

.map-overlay {
  position: absolute;
  left: 0; right: 0;
  top: var(--top);
  z-index: 2;
  pointer-events: none;
}
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 8px;
  scrollbar-width: none;
  pointer-events: auto;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 8, 11, 0.78);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  letter-spacing: 0.04em;
}
.chip[aria-pressed="true"] {
  background: var(--cinnabar);
  border-color: transparent;
  color: #fff8f2;
}
.map-attrib {
  position: absolute;
  right: 8px;
  bottom: calc(var(--tab) + 8px);
  margin: 0;
  z-index: 2;
  font-size: 0.6rem;
  color: rgba(246, 239, 226, 0.55);
  pointer-events: none;
}
.maplibregl-ctrl-attrib { display: none !important; }
.maplibregl-ctrl-bottom-right { display: none; }

#peek {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tab) + 8px);
  z-index: 4;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(22, 10, 13, 0.94);
  backdrop-filter: blur(16px);
  color: var(--ivory);
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
#peek[hidden] { display: none; }
#peek strong {
  display: block;
  font-family: var(--song);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
#peek em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--gold);
  font-size: 0.85rem;
}
#peek small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  display: flex;
  padding: 4px 6px var(--safe-b);
  background: rgba(12, 6, 8, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.tabbar button {
  flex: 1;
  min-height: 52px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--muted);
}
.tabbar b {
  font-family: var(--song);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}
.tabbar span { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tabbar button[aria-current="page"] { color: var(--gold); }

/* ---------- list ---------- */
.panel-head h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 0.95;
}
.panel-head h2 em { font-style: italic; color: var(--gold); }
.panel-head p { margin: 8px 0 0; color: var(--muted); }
.search {
  display: flex;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 14px;
  font-size: 16px;
  outline: none;
}
.sorts { display: flex; gap: 8px; margin: 0 0 12px; }
.sorts button, .ghost, .solid, .back {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 14px;
}
.sorts button[aria-pressed="true"], .solid {
  background: var(--ivory);
  color: #1a0c0e;
  border-color: transparent;
}
.solid { font-weight: 600; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  position: relative;
  text-align: left;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 244, 226, 0.045), rgba(255, 244, 226, 0.015));
  padding: 14px 14px 12px;
  overflow: hidden;
}
.card:active { transform: scale(0.985); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card .cn {
  margin: 0;
  font-family: var(--song);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.card .en { margin: 2px 0 0; color: var(--gold); font-size: 0.82rem; }
.price-seal {
  flex: none;
  min-width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.price-seal b { display: block; font-size: 1rem; }
.price-seal span { color: var(--muted); font-size: 0.72rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}
.pill.crab { color: #ffd0c8; border-color: rgba(196, 55, 44, 0.6); }
.why {
  margin: 8px 0 0;
  color: #ddd1c2;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- detail ---------- */
.back {
  margin-bottom: 8px;
}
.detail-cn {
  margin: 4px 0 0;
  font-family: var(--song);
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.05;
}
.detail-en {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
}
.awards { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.awards span {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(228, 197, 122, 0.12);
  color: var(--gold);
}
.voice {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.voice img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.voice p { margin: 0; }
.voice small { color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.66rem; }
.prose p { margin: 8px 0; color: #efe6d8; }
.kicker {
  margin: 18px 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.dishes {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 12px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.dishes::-webkit-scrollbar { display: none; }
.dish {
  flex: 0 0 82%;
  scroll-snap-align: center;
  background: var(--paper);
  color: #1a0c0e;
  border-radius: 18px;
  padding: 16px 16px 14px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
}
.dish .kind {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cinnabar-deep);
}
.dish .cn {
  font-family: var(--song);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 6px 0 0;
  letter-spacing: 0.04em;
}
.dish .py { margin: 2px 0 0; color: #7a6558; font-size: 0.85rem; }
.dish .de { margin: 8px 0 0; flex: 1; }
.dish .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.dish .show {
  border: 0;
  background: #1a0c0e;
  color: var(--gold);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
}
.facts { display: flex; flex-direction: column; gap: 8px; }
.fact {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.fact b { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.actions .solid, .actions .ghost { flex: 1; min-width: 140px; }

/* ---------- stage ---------- */
#stage {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #070406;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-t) + 12px) 22px calc(var(--safe-b) + 16px);
}
#stage[hidden] { display: none; }
.stage-top { display: flex; justify-content: space-between; align-items: center; }
.stage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.stage-body .cn {
  margin: 0;
  font-family: var(--song);
  font-weight: 600;
  font-size: clamp(3.4rem, 16vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.stage-body .py { margin: 0; letter-spacing: 0.12em; color: #d9c7a4; font-size: 1.05rem; }
.stage-body .de { margin: 8px 0 0; max-width: 28rem; color: #efe6d8; font-size: 1.05rem; }
.stage-nav { display: flex; gap: 10px; }
.stage-nav button, .stage-top button {
  min-height: 48px;
  min-width: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 16px;
}

/* ---------- trip ---------- */
.day-switch { display: flex; gap: 8px; margin: 12px 0; }
.day-switch button {
  flex: 1;
  min-height: 64px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
}
.day-switch b { display: block; font-family: var(--song); font-size: 1.3rem; }
.day-switch span { font-size: 0.68rem; color: var(--muted); }
.day-switch button[aria-pressed="true"] {
  background: rgba(196, 55, 44, 0.22);
  border-color: rgba(196, 55, 44, 0.7);
}
.timeline { position: relative; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.stop {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 12px 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}
.stop:active { transform: scale(0.985); }
.when {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.stop strong { font-family: var(--song); font-size: 1.2rem; font-weight: 600; display: block; }
.stop em { font-style: normal; color: var(--muted); font-size: 0.85rem; }

/* ---------- cats ---------- */
.cat-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card {
  border: 0;
  padding: 0 0 10px;
  background: transparent;
  text-align: left;
  color: inherit;
}
.cat-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.cat-card[aria-pressed="true"] img { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cat-card strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.cat-card span { color: var(--muted); font-size: 0.8rem; }
.note-list { margin: 8px 0 0; padding: 0; list-style: none; }
.note-list li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab) + 12px);
  transform: translateX(-50%) translateY(12px);
  background: var(--ivory);
  color: #1a0c0e;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 40;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { color: var(--muted); padding: 24px 0; }

@media (min-width: 960px) {
  .intro-bg.alley { display: none; }
  .intro-bg.bund { display: block; object-position: center center; }
  .intro-shade {
    background:
      linear-gradient(90deg, rgba(16, 8, 11, 0.78) 0%, rgba(16, 8, 11, 0.42) 46%, rgba(16, 8, 11, 0.18) 100%);
  }
  .vtext {
    display: block;
    position: absolute;
    top: 8vh;
    right: 4vw;
    z-index: 1;
    margin: 0;
    writing-mode: vertical-rl;
    letter-spacing: 0.55em;
    font-family: var(--song);
    font-size: 0.95rem;
    color: rgba(246, 239, 226, 0.8);
  }
  .intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 640px) auto;
    align-items: end;
    justify-content: space-between;
    padding: 8vh 6vw 6vh;
    gap: 48px;
  }
  .intro-side { flex-direction: column; align-items: flex-end; gap: 22px; }
  .intro-cats figure { width: 120px; }
  .intro-cats img { width: 120px; height: 120px; }
  .moods { max-width: 460px; }
  .enter { width: 124px; height: 124px; }

  .topbar { left: 92px; }
  .tabbar {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 92px;
    flex-direction: column;
    border-top: 0;
    border-right: 1px solid var(--line);
    padding: calc(var(--safe-t) + 12px) 6px 12px;
    gap: 6px;
  }
  .tabbar button { flex: none; min-height: 72px; border-radius: 16px; }
  .tabbar button[aria-current="page"] { background: rgba(228, 197, 122, 0.08); }
  .workspace { margin-left: 92px; display: flex; height: 100%; }
  #panel {
    position: relative;
    inset: auto;
    display: block !important;
    width: min(440px, 40vw);
    flex: none;
    height: 100%;
    border-right: 1px solid var(--line);
    padding: calc(var(--safe-t) + 64px) 22px 28px;
  }
  #map { position: relative; flex: 1; height: 100%; }
  body:not([data-view="map"]) #map,
  body:not([data-view="map"]) .map-overlay,
  body:not([data-view="map"]) .map-attrib { visibility: visible; }
  .map-overlay { top: calc(var(--safe-t) + 62px); left: 0; }
  .map-attrib { bottom: 10px; }
  .dish { flex-basis: 70%; }
  #peek { display: none !important; }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(16, 8, 11, 0.62) 100%);
}
body[data-view="panel"] .vignette { display: none; }
@media (min-width: 960px) {
  body[data-view="panel"] .vignette { display: block; }
  .vignette { left: min(440px, 40vw); }
}

.card-photo, .hero-photo {
  width: calc(100% + 28px);
  margin: -14px -14px 12px;
  height: 168px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.hero-photo {
  width: 100%;
  margin: 8px 0 4px;
  height: 210px;
  border-radius: 18px;
  border: 1px solid var(--line);
  animation: ken 16s ease-in-out infinite alternate;
}
.credit { margin: 6px 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.35; }

.wx {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: calc(36px + var(--safe-t));
  padding: calc(var(--safe-t) + 4px) 10px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 6, 8, 0.9);
  backdrop-filter: blur(16px);
  text-align: left;
}
.wx-now { flex: none; font-size: 0.82rem; letter-spacing: 0.02em; }
.wx-hours {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.wx-hours::-webkit-scrollbar { display: none; }
.wx-hours i {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
  min-width: 28px;
}
.wx-hours b { font-weight: 500; color: var(--ivory); }
.wx-hours em { color: #9fd0ff; font-style: normal; font-size: 0.62rem; }
.wx-hours i.wet { color: #9fd0ff; }
.wx-warn {
  flex: none;
  background: var(--cinnabar);
  color: #fff8f2;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  animation: rainpulse 1.5s ease-in-out infinite;
}
.wx.warn { background: linear-gradient(90deg, rgba(90, 16, 14, 0.95), rgba(16, 8, 11, 0.92)); }
#wx-sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  padding: 12px 12px calc(var(--safe-b) + 12px);
}
#wx-sheet[hidden] { display: none; }
.wx-card {
  width: 100%;
  background: #1a0c10;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  animation: sheetUp 0.35s ease;
}
.wx-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wx-top strong { font-family: var(--song); letter-spacing: 0.08em; }
.wx-days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wx-days div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}
.wx-days b { display: block; font-family: var(--song); font-size: 1.05rem; }
.wx-days .wet { border-color: rgba(120, 180, 220, 0.7); }

.topbar { top: calc(46px + var(--safe-t)); }
:root { --top: calc(106px + var(--safe-t)); }

.motes, .steam { position: absolute; inset: 0; pointer-events: none; }
.motes i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  animation: mote 7s linear infinite;
}
.motes i:nth-child(1) { left: 12%; animation-duration: 8s; }
.motes i:nth-child(2) { left: 28%; animation-duration: 6.5s; animation-delay: -2s; }
.motes i:nth-child(3) { left: 46%; animation-duration: 9s; animation-delay: -4s; }
.motes i:nth-child(4) { left: 63%; animation-duration: 7.5s; animation-delay: -1s; }
.motes i:nth-child(5) { left: 78%; animation-duration: 8.5s; animation-delay: -3s; }
.motes i:nth-child(6) { left: 88%; animation-duration: 6s; animation-delay: -5s; }
.motes i:nth-child(7) { left: 20%; width: 2px; height: 2px; animation-duration: 10s; }
.motes i:nth-child(8) { left: 54%; width: 3px; height: 3px; animation-duration: 7s; animation-delay: -2.5s; }
.steam {
  background:
    radial-gradient(ellipse at 30% 80%, rgba(255,255,255,0.16), transparent 42%),
    radial-gradient(ellipse at 70% 74%, rgba(255,244,220,0.12), transparent 36%);
  animation: steam 8s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.intro-bg { animation: drift 26s ease-in-out infinite alternate; }
.seal { animation: chop 0.7s cubic-bezier(.2,.8,.2,1) 0.15s both; }
#intro h1 { animation: ink 0.9s ease 0.1s both; }
.lede, .moods { animation: ink 0.8s ease 0.28s both; }
.intro-cats figure { animation: floaty 3.6s ease-in-out infinite alternate; }
.intro-cats figure:nth-child(2) { animation-duration: 4.3s; animation-delay: -1s; }
.enter { animation: ring 2.4s ease-out infinite; }
#music[aria-pressed="true"] { animation: ring 2.8s ease-out infinite; }
.card { animation: rise 0.55s cubic-bezier(.2,.7,.2,1) both; }
.cards .card:nth-child(2) { animation-delay: .04s; }
.cards .card:nth-child(3) { animation-delay: .08s; }
.cards .card:nth-child(4) { animation-delay: .12s; }
.cards .card:nth-child(5) { animation-delay: .16s; }
.cards .card:nth-child(6) { animation-delay: .2s; }
.chip[aria-pressed="true"] { animation: stamp .35s cubic-bezier(.2,.8,.2,1); }
.tabbar button[aria-current="page"] b { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
.detail-cn, .stage-body .cn { animation: sealIn .5s cubic-bezier(.2,.8,.2,1); }
#peek { animation: sheetUp .35s ease; }
body.is-in #intro { transition: transform .85s cubic-bezier(.7,0,.2,1); }

@keyframes drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}
@keyframes ink {
  from { opacity: 0; transform: translateY(14px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes chop {
  0% { opacity: 0; transform: rotate(-20deg) scale(1.5); }
  70% { opacity: 1; transform: rotate(-8deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(228, 197, 122, .45); }
  100% { box-shadow: 0 0 0 14px rgba(228, 197, 122, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes stamp {
  0% { transform: scale(1.15) rotate(-8deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes pop {
  0% { transform: scale(.6); }
  100% { transform: scale(1); }
}
@keyframes sealIn {
  from { opacity: 0; transform: scale(1.12); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes sheetUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes mote {
  0% { transform: translateY(100vh); opacity: 0; }
  15% { opacity: .8; }
  100% { transform: translateY(-10vh); opacity: 0; }
}
@keyframes steam {
  from { opacity: .35; transform: translateY(6px); }
  to { opacity: .7; transform: translateY(-10px); }
}
@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@keyframes rainpulse {
  50% { filter: brightness(1.25); }
}

@media (max-width: 959px) {
  #intro h1 { font-size: 2.55rem; }
  .lede {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .intro-inner { gap: 10px; }
  .moods { margin-top: 10px; }
  .moods button { min-height: 64px; }
  .intro-cats figure { width: 72px; }
  .intro-cats img { width: 72px; height: 72px; }
  .enter { width: 84px; height: 84px; }
  .enter b { font-size: 1.35rem; }
  .wx-hours { max-width: 46vw; }
}

@media (min-width: 960px) {
  .wx { left: 92px; }
  #panel { padding-top: calc(var(--safe-t) + 126px); }
  .topbar { top: calc(46px + var(--safe-t)); right: auto; width: min(440px, 40vw); }
  .map-overlay {
    left: calc(92px + min(440px, 40vw));
    right: 0;
    top: calc(var(--safe-t) + 50px);
  }
  .map-overlay .chip-row { display: none; }
  .city-switch { padding: 0 16px; }
}

#plate, #live {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  padding: calc(var(--safe-t) + 24px) 16px calc(var(--safe-b) + 24px);
  background: rgba(6, 2, 4, 0.72);
}
#plate[hidden], #live[hidden] { display: none; }
.plate-card {
  width: min(440px, 100%);
  background: #14080c;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 16px 18px;
  animation: sealIn 0.6s cubic-bezier(.2,.8,.2,1);
}
.plate-card h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin: 8px 0; }
.plate-video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  background: #0c1218;
}
.plate-card button, #live-x {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 0 18px;
}
.where {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: calc(var(--tab) + 8px);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(12, 6, 8, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  pointer-events: none;
}
.city-switch { display: flex; gap: 8px; padding: 0 12px 8px; pointer-events: auto; }
.city-switch button {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 8, 11, 0.78);
  padding: 0 12px;
}
.city-switch button[aria-pressed="true"] { background: var(--ivory); color: #1a0c0e; }
#live { place-items: stretch; background: transparent; pointer-events: none; }
.live-badge {
  position: absolute;
  top: calc(var(--safe-t) + 52px);
  left: 14px;
  background: #e11;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 6px;
  padding: 4px 8px;
  animation: rainpulse 1s infinite;
}
.live-hosts {
  position: absolute;
  top: calc(var(--safe-t) + 48px);
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.live-hosts img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #e11; }
.live-comments {
  position: absolute;
  left: 12px;
  bottom: calc(var(--tab) + 70px);
  width: min(280px, 72%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.live-comments p {
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  animation: rise 0.35s ease;
}
.live-hearts { position: absolute; right: 8px; bottom: 18%; width: 90px; height: 46%; pointer-events: none; }
.live-hearts i {
  position: absolute;
  bottom: 0;
  font-style: normal;
  font-size: 1.7rem;
  animation: mote 2.2s linear forwards;
}
#live-x { position: absolute; top: calc(var(--safe-t) + 92px); left: 14px; pointer-events: auto; }

/* ---------- taxi card ---------- */
.taxi-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--cinnabar);
  background: linear-gradient(120deg, rgba(196,55,44,0.3), rgba(196,55,44,0.12));
  text-align: left;
}
.taxi-btn:active { transform: scale(0.98); }
.taxi-ico { font-size: 1.7rem; }
.taxi-btn b { display: block; font-size: 1.05rem; }
.taxi-btn small { color: var(--gold); }
.taxi-card {
  width: min(560px, 100%);
  background: var(--ivory);
  color: #16100a;
  border-radius: 24px;
  padding: 20px 20px 22px;
  animation: sealIn 0.4s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.taxi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--song);
  font-size: 1.3rem;
  color: var(--cinnabar-deep);
  border-bottom: 2px solid rgba(124,30,24,0.25);
  padding-bottom: 10px;
}
.taxi-head button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(124,30,24,0.3);
  background: transparent;
  color: #7c1e18;
  font-size: 1.1rem;
}
.taxi-ask { margin: 14px 0 4px; font-size: 1.1rem; color: #5a4632; }
.taxi-name {
  margin: 10px 0 6px;
  font-family: var(--song);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.1;
}
.taxi-addr {
  margin: 0;
  font-family: var(--song);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.3;
  font-weight: 600;
}
.taxi-metro { margin: 14px 0 0; font-size: 1.05rem; color: #5a4632; }
.taxi-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(124,30,24,0.3);
  color: #7a6552;
  font-size: 0.85rem;
}
.taxi-foot img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

#plate.taxi-mode {
  place-items: stretch;
  padding: 0;
  background: var(--ivory);
}
#plate.taxi-mode .taxi-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--safe-t) + 20px) 26px calc(var(--safe-b) + 24px);
}
#plate.taxi-mode .taxi-head { position: absolute; top: calc(var(--safe-t) + 14px); left: 26px; right: 26px; }
#plate.taxi-mode .taxi-name { font-size: clamp(2.6rem, 11vw, 4.2rem); }
#plate.taxi-mode .taxi-addr { font-size: clamp(2rem, 8.5vw, 3.2rem); }
#plate.taxi-mode .taxi-ask { font-size: 1.35rem; }
#plate.taxi-mode .taxi-foot { position: absolute; left: 26px; right: 26px; bottom: calc(var(--safe-b) + 18px); }

/* ---------- mini game ---------- */
.game-hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}
.game-hud span {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-hud b { display: block; font-size: 1.1rem; color: var(--gold); letter-spacing: 0; }
.game-stage {
  position: relative;
  width: 100%;
  height: min(60vh, 520px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 300px at 50% -10%, rgba(196,55,44,0.2), transparent 60%),
    linear-gradient(180deg, #1a0c10, #0c0608);
  touch-action: none;
}
.game-stage canvas { display: block; width: 100%; height: 100%; }
.game-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,5,7,0.55);
  backdrop-filter: blur(3px);
  text-align: center;
  padding: 16px;
}
.game-start img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.game-start img:nth-of-type(2) { margin-top: -54px; margin-left: 80px; }
.game-over { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); margin: 0; }

/* ---------- mascots ---------- */
.mascot {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  z-index: 3;
  pointer-events: none;
  animation: floaty 3.4s ease-in-out infinite alternate;
}
.panel-head { position: relative; }
.panel-head .mascot { top: -4px; right: 0; }

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