:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --panel: #fffcf6;
  --ink: #251e18;
  --muted: #665b51;
  --line: #e3d9cd;
  --rust: #a33a26;
  --rust-dark: #812b1c;
  --rust-soft: #f4e8de;
  --jade: #365746;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", SimSun, serif;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bb6e37; outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--serif); line-height: 1.23; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 8; background: white; padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: #fbf8f2; }
.header-row { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 800; line-height: 1.05; white-space: nowrap; width: fit-content; }
.brand small { font: 9px/1 var(--sans); letter-spacing: .24em; display: block; margin-top: 6px; }
.seal { background: var(--rust); border: 1px solid var(--rust); border-radius: 5px; color: #fff5e6; width: 37px; height: 37px; display: inline-grid; place-items: center; position: relative; font-family: var(--serif); font-size: 23px; font-weight: 800; }
.seal::after { content: ""; position: absolute; inset: 3px; border-radius: 3px; border: 1px solid #efb7a7; }
.nav { display: flex; gap: 31px; align-self: stretch; color: var(--muted); white-space: nowrap; }
.nav a { display: grid; place-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--rust-dark); border-color: var(--rust); }
.saved-link { justify-self: end; border: 1px solid var(--line); border-radius: 6px; padding: 7px 13px; font-size: 14px; white-space: nowrap; }
.saved-link span:first-child { color: var(--rust); font-size: 20px; line-height: 1; vertical-align: -2px; }
.saved-link:hover, .saved-link[aria-current] { border-color: var(--rust); }
#main { min-height: 58vh; }
#main:focus { outline: none; }
.loading { padding-block: 70px; }
.hero { position: relative; min-height: min(500px, 60vw); margin-top: 24px; background: #201812 url('/assets/hero.webp') 58% center / cover no-repeat; isolation: isolate; overflow: hidden; border-radius: 10px; display: grid; align-items: center; color: #fff5e5; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#1a120f 0%,#1b120ed6 20%,#1a120f64 47%, transparent 72%); }
.hero-copy { padding: 60px clamp(28px,7vw,112px); }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #f0ba9e; letter-spacing: .24em; font-weight: 700; }
.hero-kicker::before { content: ""; height: 1px; width: 25px; background: currentColor; }
.hero h1 { margin: 18px 0; font-size: clamp(54px, 6.6vw, 102px); letter-spacing: .06em; }
.hero h1 span { display: block; color: #f2b996; }
.hero p { color: #efe2d2; max-width: 34em; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero .actions { margin-top: 27px; }
.button { border-radius: 5px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 10px 17px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-align: center; font-size: 14px; font-weight: 700; }
.button:hover { border-color: var(--rust); color: var(--rust-dark); }
.button.primary { background: var(--rust); color: #fffdf7; border-color: var(--rust); }
.button.primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.hero .primary { background: #aa4a34; border-color: #aa4a34; }
.hero .ghost { background: #24181266; color: #fff5e5; border-color: #9a7968; }
.hero .ghost:hover { background: #3a281e; }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-top: 16px; }
.stat-band a { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 14px 10px; }
.stat-band a + a { border-left: 1px solid var(--line); }
.stat-band strong { font-family: var(--serif); color: var(--rust-dark); font-size: 29px; }
.stat-band a:hover span { color: var(--rust); text-decoration: underline; }
.home-section { padding-block: 52px 62px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2, .page-head h1 { font-size: clamp(29px, 4vw, 52px); letter-spacing: .03em; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.subtitle { color: var(--muted); margin-top: 9px; }
.text-link { color: var(--rust-dark); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; position: relative; display: flex; flex-direction: column; }
.card:hover { border-color: #bba795; }
.save-btn { border: 1px solid #ffffff4b; background: #211811a8; color: white; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; line-height: 1; font-size: 23px; position: absolute; top: 10px; right: 10px; }
.save-btn:hover, .save-btn[aria-pressed="true"] { background: var(--rust); }
.card-content { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.meta .tag, .tag { display: inline-block; border-radius: 4px; background: var(--rust-soft); color: var(--rust-dark); padding: 2px 8px; font-size: 13px; }
.card h3 { font-size: 24px; margin: 7px 0; }
.card h3 a:hover { color: var(--rust); }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 11px; }
.card-content > .text-link { width: fit-content; margin-top: auto; }
.page { padding-block: 44px 70px; }
.page-head { margin-bottom: 28px; }
.back { display: inline-block; margin-bottom: 12px; }
.filters { display: grid; grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(115px, 176px)); gap: 10px; margin-bottom: 14px; }
.filters input, .filters select, .input { min-height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 8px 11px; width: 100%; color: var(--ink); }
.results { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.active-relation { margin-bottom: 12px; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: clamp(18px, 3vw, 32px); }
.panel h2 { font-size: 26px; margin-bottom: 12px; }
.panel + .panel { margin-top: 16px; }
.detail { display: grid; grid-template-columns: 1.02fr 1fr; align-items: start; gap: 24px; }
.detail .actions { margin-top: 15px; }
.detail-note { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #f6eee3; border: 1px solid #e4d3c2; color: var(--ink); border-radius: 6px; padding: 6px 11px; font-size: 14px; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--rust); color: var(--rust-dark); }
.graph { margin-top: 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(108px,.7fr) minmax(0,1fr); gap: 16px; align-items: center; }
.graph h3 { font-size: 14px; margin-bottom: 8px; }
.graph-col { display: grid; gap: 17px; align-content: center; }
.graph-core { text-align: center; padding: 14px 8px; border: 1px solid #cd9c86; color: var(--rust-dark); background: var(--rust-soft); border-radius: 7px; font-weight: 800; position: relative; }
.graph-core::before, .graph-core::after { position: absolute; content: ""; width: 17px; height: 1px; background: #cd9c86; top: 50%; }
.graph-core::before { right: 100%; }
.graph-core::after { left: 100%; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.source { margin-top: 16px; overflow-wrap: anywhere; }
.source a { white-space: normal; }
.map-layout { display: grid; grid-template-columns: 285px minmax(0,1fr); align-items: start; gap: 18px; }
.map-side { padding: 16px; }
.map-side .chips { margin: 0 0 16px; }
.city-list { list-style: none; margin: 0; padding: 0; max-height: 415px; overflow: auto; }
.city-list li + li { border-top: 1px solid var(--line); }
.city-option { color: var(--ink); display: flex; width: 100%; text-align: left; border: 0; padding: 10px 3px; background: none; flex-wrap: wrap; gap: 7px; justify-content: space-between; }
.city-option span { color: var(--muted); font-size: 13px; }
.city-option:hover, .city-option[aria-pressed="true"] { color: var(--rust); }
.map-stage { min-width: 0; }
#live-map { width: 100%; height: 412px; background: #f0e6d9; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
#map-status { margin-bottom: 14px; }
.map-cards { display: grid; gap: 12px; }
.map-cards .card { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(0, 1fr); }
.map-cards .save-btn { left: 8px; right: auto; }
.game { max-width: 960px; }
.steps { list-style: none; padding: 0; margin: 0 0 19px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); color: var(--muted); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.steps li { padding: 9px 7px; text-align: center; font-size: 14px; }
.steps li + li { border-left: 1px solid var(--line); }
.steps [aria-current] { background: var(--rust-soft); color: var(--rust-dark); font-weight: 800; }
.game-stage > h2 { margin-bottom: 6px; }
.game-stage > .muted { margin-bottom: 16px; }
.game-row { padding: 14px 0; border-top: 1px solid var(--line); }
.game-row label, .game-row legend { font-weight: 700; }
.game-row fieldset { border: 0; padding: 0; margin: 0; }
.range-row { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr) 116px; align-items: center; }
.range-row > label { grid-column: 1/-1; }
input[type="range"] { width: 100%; accent-color: var(--rust); }
.hint { background: #f4eee3; color: #5e4a36; font-size: 14px; padding: 10px 12px; border-radius: 5px; margin-block: 8px 12px; }
.timeline { margin-block: 10px 14px; }
.timeline-track { height: 12px; width: 100%; border-radius: 8px; overflow: hidden; background: #ecded1; }
.timeline-fill { width: 0; height: 100%; background: var(--rust); }
.timer { font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--rust-dark); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.event-list { margin: 12px 0 14px; padding-left: 25px; min-height: 25px; color: var(--muted); }
.heat-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 7px 0 9px; }
.heat-options label { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; font-weight: 500; }
.heat-options input { accent-color: var(--rust); }
.heat-options label:has(:checked) { border-color: var(--rust); color: var(--rust-dark); }
.duration { display: flex; align-items: center; gap: 8px; }
.duration input { width: 104px; }
.game-actions { margin-top: 21px; }
.scoreline { display: flex; align-items: baseline; gap: 6px; color: var(--rust-dark); }
.scoreline strong { font-family: var(--serif); font-size: 65px; line-height: 1.04; }
.breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.breakdown div { background: #f3eadf; padding: 9px; border-radius: 5px; text-align: center; }
.breakdown strong { display: block; color: var(--rust-dark); }
.feedback { margin: 15px 0 0; color: var(--muted); padding-left: 23px; }
.feedback li + li { margin-top: 4px; }
.mentor { margin-top: 18px; padding: 15px 17px; border-left: 3px solid var(--jade); background: #eaf0e8; border-radius: 0 6px 6px 0; }
.mentor h3 { color: var(--jade); margin-bottom: 4px; font-size: 17px; }
.history { padding-left: 0; list-style-type: none; }
.history li { padding: 9px 0; display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.history span, .history time { color: var(--muted); font-size: 14px; }
.error { color: var(--rust-dark); }
.footer { background: #eee6d9; border-top: 1px solid var(--line); padding: 22px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer .brand { font-size: 18px; }
.footer .seal { width: 30px; height: 30px; font-size: 18px; }
.footer p, .footer-row > a:last-child { font-size: 14px; color: var(--muted); }
.footer-row > a:last-child:hover { text-decoration: underline; }
.toast { position: fixed; z-index: 5; bottom: 22px; left: 50%; transform: translateX(-50%); background: #30251e; color: white; border-radius: 6px; padding: 10px 16px; box-shadow: 0 3px 15px #0002; white-space: nowrap; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 54px); }
  .nav { gap: 17px; }
  .header-row { gap: 12px; }
  .hero { min-height: 430px; }
  .grid { gap: 14px; }
  .card-content { padding: 13px; }
  .map-layout { grid-template-columns: 245px minmax(0,1fr); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .header-row { grid-template-columns: 1fr auto; gap: 0 8px; padding-top: 10px; }
  .nav { grid-row: 2; grid-column: 1/-1; justify-content: space-between; gap: 4px; margin-top: 6px; }
  .nav a { min-height: 43px; padding-inline: 3px; font-size: 14px; }
  .hero { margin-top: 14px; min-height: 420px; background-position: 64% center; }
  .hero::before { background: linear-gradient(90deg,#1a120eea,#1b120ea0 53%,#1a120f12); }
  .hero-copy { padding: 38px 22px; }
  .hero h1 { font-size: clamp(50px,11vw,70px); }
  .hero p { max-width: 20em; }
  .stat-band a { flex-direction: column; align-items: center; gap: 1px; padding: 9px 3px; font-size: 12px; }
  .stat-band strong { font-size: 24px; }
  .home-section { padding-block: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card h3 { font-size: 19px; }
  .card-content { padding: 10px; }
  .card .meta { font-size: 12px; gap: 4px; }
  .card .meta .tag { font-size: 12px; padding-inline: 4px; }
  .card p { font-size: 13px; }
  .section-head { align-items: start; }
  .page { padding-block: 30px 44px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1/-1; }
  .detail, .map-layout { grid-template-columns: 1fr; }
  .city-list { max-height: 168px; }
  #live-map { height: 320px; }
  .footer-row { flex-wrap: wrap; }
  .history li { gap: 6px; }
}
@media (max-width: 365px) {
  .saved-label { display: none; }
  .grid { grid-template-columns: 1fr; }
  .graph { gap: 8px; }
  .graph-core::before, .graph-core::after { width: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
[hidden] { display: none !important; }
/* The map is the main entry point. */
.map-page { padding-block: 33px 52px; width: min(1490px, calc(100% - 64px)); }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.map-heading h1 { font-size: clamp(29px, 4vw, 56px); }
.map-heading .subtitle { margin-top: 5px; }
.map-toolbar { display: grid; grid-template-columns: minmax(210px, 1fr) 145px 145px auto; gap: 9px; align-items: center; margin-bottom: 13px; }
#map-count { padding: 0 5px; white-space: nowrap; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .36fr); align-items: start; gap: 15px; }
.atlas-map, .atlas-index { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.atlas-map { overflow: hidden; }
.atlas-index { max-height: 750px; overflow: auto; }
#map-raster { overflow: auto; height: clamp(480px, 63vh, 742px); background: #faf8f3; overscroll-behavior: contain; touch-action: none; cursor: grab; }
#map-frame { width: calc(var(--zoom, 1) * min(100%, clamp(407px, 53vh, 626px))); margin-inline: auto; position: relative; }
#map-frame img { display: block; width: 100%; height: auto; user-select: none; }
#map-raster:active { cursor: grabbing; }
#map-pins { position: absolute; inset: 0; pointer-events: none; }
.atlas-pin { pointer-events: auto; position: absolute; left: var(--pin-x); top: var(--pin-y); transform: translate(-50%, -50%);
  z-index: 1; display: grid; place-items: center; color: white; border: 0; background: transparent; width: 25px; height: 25px; padding: 0; }
.atlas-pin span, .online-map-dot { background: #a33a26; border: 1px solid #fff8eb; width: 8px; height: 8px;
  border-radius: 50%; box-shadow: 0 1px 3px #612b2460; display: block; pointer-events: none; }
.atlas-pin.atlas-cluster { width: 24px; height: 24px; }
.atlas-cluster span { display: grid; place-items: center; width: auto; min-width: 18px; height: 18px; padding: 0 3px;
  background: #365d51; border-radius: 10px; font-size: 10px; font-weight: 750; line-height: 1; }
.atlas-pin:hover, .atlas-pin[aria-pressed="true"], .atlas-pin:focus-visible { z-index: 3; }
.atlas-pin:hover span, .atlas-pin[aria-pressed="true"] span { background: #77261b; outline: 2px solid #f5c7a6; }
.atlas-map #live-map { height: clamp(480px, 63vh, 742px); margin: 0; border: 0; border-radius: 0; }
.map-bottom { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-top: 1px solid var(--line); gap: 7px; flex-wrap: wrap; }
.map-navigation { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.zoom-buttons { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
#map-zoom-value { padding-inline: 4px; min-width: 42px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.icon-button { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); min-width: 32px; min-height: 32px; font-weight: 700; }
.icon-button:hover { color: var(--rust); border-color: var(--rust); }
.place-index-head, .place-head { padding: 15px 16px 10px; }
.place-index-head h2, .place-head h2 { font-size: 21px; }
#map-places { padding: 0 10px 8px; max-height: 357px; overflow: auto; }
.atlas-place { color: var(--ink); border: 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; align-items: center;
  text-align: left; width: 100%; background: transparent; padding: 8px 7px; }
.atlas-place small { margin-inline-start: 7px; color: var(--muted); font-size: 12px; }
.atlas-place:hover, .atlas-place[aria-pressed="true"] { color: var(--rust-dark); background: var(--rust-soft); }
.place-count { white-space: nowrap; color: var(--muted); font-size: 12px; }
.place-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
#map-selected { border-bottom: 1px solid var(--line); scroll-margin-top: 14px; }
.place-dish-list { display: grid; margin: 0 12px; max-height: 186px; overflow: auto; }
.place-entry { border: 0; background: transparent; color: var(--ink); padding: 7px 9px; text-align: left; border-radius: 5px; }
.place-entry:hover, .place-entry[aria-pressed="true"] { background: var(--rust-soft); color: var(--rust-dark); }
.place-entry span { display: block; font-size: 12px; }
.place-description { padding: 10px 12px 14px; }
.map-intro-copy { padding: 12px 3px 0; }
.map-intro-copy h3 { font-size: 23px; }
.map-intro-copy p, .map-intro-copy .actions { margin-top: 7px; }
.heritage-level { color: var(--rust-dark); display: inline-block; width: fit-content; font-size: 13px; font-weight: 700; margin: 4px 0 6px; }
.filters { grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(110px, 150px)); }
.more-items { margin-top: 18px; }
@media (max-width: 820px) {
  .map-page { width: calc(100% - 28px); padding-block: 24px 38px; }
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-index { max-height: none; }
  #map-raster, .atlas-map #live-map { height: auto; min-height: 290px; max-height: 68vh; }
  .atlas-map #live-map { height: 390px; }
}
@media (max-width: 600px) {
  .map-heading { align-items: start; }
  .map-heading .text-link { margin-top: 8px; }
  .map-toolbar { grid-template-columns: 1fr 1fr; gap: 7px; }
  #map-search { grid-column: 1 / -1; }
  #map-count { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1/-1; }
}
.coverage-table { width: 100%; border-collapse: collapse; text-align: left; }
.coverage-table th, .coverage-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.coverage-table th:first-child { white-space: nowrap; }

@media (max-width: 400px) {
  .map-navigation .small { font-size: 12px; }
  .map-navigation .icon-button { padding-inline: 6px; }
}

#online-map-canvas { width: 100%; height: 100%; }
.map-provider-label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
#map-provider { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; color: var(--ink); padding: 4px 6px; }

.kitchen-search {
  display: grid;
  gap: .35rem;
  max-width: 26rem;
  font-weight: 650;
}
.kitchen-search input { width: 100%; }
.recipe-source { margin-top: 1.1rem; }
.recipe-source summary, .kitchen-help summary { cursor: pointer; font-weight: 650; }
.game .game-immersive {
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #fcf6e8;
}
.kitchen-view {
  position: relative;
  height: clamp(340px, 53vw, 540px);
  overflow: hidden;
  isolation: isolate;
  background: #24534d;
}
.kitchen-view canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.kitchen-pins { position: absolute; inset: 0; pointer-events: none; }
.kitchen-pin, .kitchen-counter, .kitchen-bubble, .kitchen-station {
  border: 1px solid #f4d19088;
  color: #fff4d9;
  background: #251d16ed;
  border-radius: .48rem;
  line-height: 1.18;
  box-shadow: 0 2px 7px #170b094d;
}
.kitchen-pin {
  position: absolute;
  transform: translate(-50%, -38%);
  pointer-events: auto;
  padding: .38rem .42rem;
  width: max-content;
  max-width: min(15vw, 8rem);
  min-height: 32px;
  font-size: clamp(.66rem, 1.45vw, .87rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.kitchen-pin:hover, .kitchen-pin:focus-visible, .kitchen-pin.is-selected {
  color: #302016;
  background: #ffce80;
  border-color: #fff0cc;
}
.kitchen-pin.is-used { opacity: .55; text-decoration: line-through; }
.kitchen-counter, .kitchen-bubble, .kitchen-station {
  position: absolute;
  pointer-events: none;
  padding: .45rem .62rem;
  font-weight: 650;
}
.kitchen-station { left: .7rem; top: .7rem; font-size: .78rem; }
.kitchen-counter {
  right: .7rem;
  top: .7rem;
  font-variant-numeric: tabular-nums;
  color: #ffdb94;
  font-size: clamp(.96rem, 2vw, 1.28rem);
}
.kitchen-counter:empty { display: none; }
.kitchen-bubble {
  top: .7rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 48%;
  text-align: center;
}
.kitchen-interface { display: grid; gap: .45rem; padding: .8rem 1rem .65rem; }
.kitchen-controls { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.kitchen-controls .button { min-height: 42px; padding: .35rem .75rem; }
.kitchen-controls progress { flex: 1 1 8rem; min-width: 4rem; max-width: 14rem; accent-color: #a64e2f; }
.kitchen-help p, .kitchen-status { margin: 0; }
.kitchen-help p { padding: .38rem 0; }
.kitchen-status { min-height: 1.1em; color: #604a36; }
.kitchen-result { margin: 0 .75rem .75rem; }
@media (max-width: 600px) {
  .kitchen-view { height: clamp(320px, 80vw, 400px); }
  .kitchen-pin { max-width: 17.5vw; padding: .24rem; }
  .kitchen-interface { padding: .6rem .55rem; }
  .kitchen-controls .button { padding-inline: .48rem; font-size: .84rem; }
  .kitchen-station, .kitchen-counter, .kitchen-bubble { font-size: .73rem; padding: .3rem .36rem; }
}

.kitchen-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.kitchen-modes .kitchen-mode { display: grid; align-content: start; justify-content: stretch; text-align: left; gap: .25rem; padding: .75rem .85rem; }
.kitchen-mode strong { font-size: 1.04rem; }
.kitchen-mode span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.kitchen-mode[aria-pressed="true"] { border-color: var(--rust); background: var(--rust-soft); color: var(--rust-dark); }
.scope-note { font-size: .88rem; color: var(--muted); margin: .75rem 0 1.1rem; }
.recipe-reference { margin-top: .9rem; }
.recipe-reference summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem; }
.recipe-reference summary::before { content: "▸"; color: var(--rust-dark); }
.recipe-reference[open] summary::before { content: "▾"; }
.recipe-reference summary > strong { font-size: 1.09rem; }
.recipe-reference summary > span { font-size: .83rem; color: var(--muted); }
.recipe-reference-body { padding-top: .75rem; }
.recipe-reference-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 1rem 1.6rem; }
.recipe-reference-grid h2 { font-size: 1rem; margin: 0 0 .45rem; }
.recipe-ingredients, .recipe-method { padding-left: 1.35rem; margin: 0; display: grid; align-content: start; gap: .38rem; }
.recipe-method li::marker { color: var(--rust-dark); font-weight: 700; }
.recipe-method li span { display: block; }
.recipe-time { color: #385248; display: inline-block; font-weight: 700; line-height: 1.35; padding: .13rem .4rem; margin-bottom: .18rem; border-radius: .25rem; background: #e4e9da; }
.recipe-timing { padding: .65rem .85rem; background: #f0e8d7; border-radius: .4rem; margin: .95rem 0 .65rem; }
.recipe-timing p { margin: .28rem 0; font-size: .86rem; }
.kitchen-guide { padding: .8rem 1rem .55rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem .65rem; align-items: baseline; }
.kitchen-guide h2 { margin: 0; font-size: 1.15rem; }
.kitchen-guide p { grid-column: 1 / -1; grid-row: 2; margin: 0; line-height: 1.42; }
.kitchen-recipe-link { border: 0; background: transparent; padding: .3rem 0; justify-self: end; }
.kitchen-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #f6ecd9; }
.kitchen-stations span, .kitchen-stations button { font-size: .8rem; background: transparent; border: 0; border-right: 1px solid var(--line); padding: .55rem .12rem; text-align: center; color: var(--ink); font-weight: 600; }
.kitchen-stations [aria-current], .kitchen-stations [aria-pressed="true"] { background: var(--rust-soft); color: var(--rust-dark); }
.kitchen-no-3d { height: auto; min-height: 130px; padding: 3rem .65rem .8rem; }
.kitchen-no-3d .kitchen-pins { position: static; display: flex; gap: .4rem; flex-wrap: wrap; pointer-events: auto; }
@media (max-width: 575px) {
  .recipe-reference-grid { grid-template-columns: 1fr; }
}

.kitchen-view[data-heating="on"] .kitchen-station::after { content: " · 加热中"; color: #ffd696; }
.kitchen-view[data-heating="off"] .kitchen-station::after { content: " · 未加热"; }
.kitchen-controls [data-action="heat-toggle"][aria-pressed="true"] { border-color: var(--rust); background: var(--rust-soft); color: var(--rust-dark); }
.exploration-result { margin: .45rem .85rem .85rem; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; }
.exploration-result h3 { margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.exploration-result h3 strong { color: var(--rust-dark); font-size: 1.3rem; }
.exploration-breakdown { display: flex; flex-wrap: wrap; gap: .4rem .65rem; }
.exploration-breakdown span { padding: .25rem .45rem; background: #f0e7d7; border-radius: .3rem; font-size: .88rem; }
.exploration-breakdown strong { margin-left: .42rem; }
.exploration-result ul { padding-left: 1.25rem; font-size: .9rem; }
.kitchen-fire { display: inline-flex; gap: .3rem; align-items: center; font-size: .83rem; }
.kitchen-fire select { min-height: 40px; padding: .35rem; }

.dish-media {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #eaddc8;
  overflow: hidden;
}
button.dish-media { cursor: zoom-in; }
button.dish-media:focus-visible { outline-offset: -4px; }
.dish-art {
  display: block;
  aspect-ratio: 1 / 1;
  background-position: var(--cell-x, 0%) var(--cell-y, 0%);
  background-repeat: no-repeat;
}
.dish-media .dish-art { position: absolute; top: 0; left: 12.5%; width: 75%; }
.dish-art-generated { background-image: var(--dish-page); background-size: 300% 400%; }
.dish-art-photo { background-image: url('/assets/dishes.webp'); background-size: 300% 200%; }
.dish-art-atlas { background-image: var(--dish-page); background-size: 400% 400%; }
.dish-art-empty { background: #dfc9aa; display: grid; place-content: center; color: #49301e; }
.dish-media-action {
  position: absolute;
  bottom: .45rem;
  right: .45rem;
  padding: .21rem .42rem;
  color: #fff8ea;
  background: #312118e8;
  border-radius: .3rem;
  font-size: .73rem;
  line-height: 1.3;
}
.card .save-btn { z-index: 1; }
.card-description { line-height: 1.55; overflow-wrap: anywhere; }
.dish-figure { margin: 0; min-width: 0; }
.dish-figure .dish-media, .map-intro .dish-media, .cook-overview .dish-media { border-radius: .58rem; }
.dish-figure .dish-media { aspect-ratio: 1; }
.dish-figure .dish-media .dish-art { left: 0; width: 100%; }
.dish-figure figcaption { font-size: .83rem; color: var(--muted); margin: .4rem 0 0; }
.dish-profile .page-head { margin: .55rem 0 .75rem; }
.dish-profile h2 { font-size: 1rem; margin-bottom: .3rem; }
.dish-profile .dish-context { margin-top: .7rem; color: var(--muted); }
.dish-lead { color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.dish-facts { display: grid; gap: .42rem; margin: .8rem 0; }
.dish-facts > div { display: grid; grid-template-columns: 4.15em 1fr; gap: .25rem .55rem; font-size: .88rem; }
.dish-facts dt { color: var(--rust-dark); font-weight: 650; }
.dish-facts dd { margin: 0; min-width: 0; }
.dish-related { list-style: none; margin: 0; padding: 0; }
.dish-related li { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .68rem 0; }
.dish-related li + li { border-top: 1px solid var(--line); }
.dish-related h3 { margin: 0 0 .25rem; }
.dish-related p { margin: 0; color: var(--muted); }
.dish-related .button { flex-shrink: 0; }
.cook-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, 28%); gap: .8rem 1rem; align-items: center; margin: .3rem 0 1rem; }
.cook-overview h1 { font-size: clamp(1.75rem, 4.3vw, 2.8rem); }
.cook-overview .dish-lead { margin: .4rem 0 0; }
.dish-viewer {
  width: min(94vw, 730px);
  max-width: none;
  padding: .65rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: .75rem;
}
.dish-viewer::backdrop { background: #21180fbb; }
.dish-viewer-head, .dish-viewer-tools { display: flex; align-items: center; gap: .55rem; }
.dish-viewer-head { justify-content: space-between; padding: .15rem .3rem .55rem; }
.dish-viewer-head h2 { font-size: clamp(1rem, 3.5vw, 1.35rem); }
.dish-viewer-head p { margin: 0; }
.dish-viewer-window {
  height: min(65dvh, 625px);
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  touch-action: none;
  background: #291f19;
  border-radius: .48rem;
  cursor: zoom-in;
}
.dish-viewer-window::-webkit-scrollbar { display: none; }
.dish-viewer-window[data-zoomed="true"] { cursor: grab; }
.dish-viewer-window[data-zoomed="true"]:active { cursor: grabbing; }
.dish-viewer-sheet {
  width: max(100%, var(--art-size, 1px));
  height: max(100%, var(--art-size, 1px));
  display: grid;
  place-items: center;
}
.dish-viewer-sheet .dish-art { width: var(--art-size, 1px); }
.dish-viewer-tools { flex-wrap: wrap; justify-content: center; padding-top: .55rem; }
.dish-viewer-tools .icon-button { min-width: 42px; min-height: 42px; }
.dish-viewer-tools output { min-width: 3.6rem; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .dish-related li { align-items: flex-start; }
  .dish-related p { font-size: .87rem; }
  .cook-overview { align-items: start; }
  .cook-overview .dish-lead { font-size: .89rem; }
}
.dish-profile .source .text-link { white-space: normal; overflow-wrap: anywhere; }

.dish-detail-page .dish-profile .dish-lead { max-width: 36em; font-size: clamp(.99rem, 1.9vw, 1.11rem); }
.dish-story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .7rem 1rem; }
.dish-story-grid > div { border-top: 2px solid #d5b29c; padding-top: .7rem; }
.dish-story-grid h3 { font-size: 1.03rem; margin-bottom: .42rem; }
.dish-story-grid p { margin: 0; color: var(--ink); line-height: 1.7; }
.dish-registration .source .text-link { white-space: normal; overflow-wrap: anywhere; }
.registry-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .85rem; }
.registry-facts > div { grid-template-columns: minmax(5.5em, auto) minmax(0, 1fr); align-items: baseline; }
.dish-related .dish-practice-note { font-size: .81rem; margin-top: .35rem; }
@media (max-width: 580px) {
  .registry-facts { grid-template-columns: 1fr; }
  .dish-story-grid { grid-template-columns: 1fr; gap: .8rem; }
}

.workshop-nav { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 1rem; background: #f6ecd9; border-block: 1px solid var(--line); }
.workshop-nav label { display: flex; flex: 1 1 auto; align-items: center; gap: .5rem; min-width: 0; white-space: nowrap; }
.workshop-nav select { width: 100%; min-width: 0; padding: .42rem .55rem; text-overflow: ellipsis; }
.workshop-nav output { flex: 0 0 auto; font-size: .81rem; color: var(--muted); }
.workshop-materials, .workshop-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.workshop-materials:empty, .workshop-actions:empty { display: none; }
.workshop-materials .button { min-height: 40px; padding: .35rem .65rem; font-size: .86rem; }
.workshop-materials [aria-pressed="true"] { color: var(--rust-dark); background: var(--rust-soft); border-color: var(--rust); }
.workshop-materials .button:disabled { opacity: .68; color: #4d7255; }
.workshop-actions { border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .65rem; }
.recipe-workshop { padding-top: .55rem; border-top: 1px solid var(--line); }
.recipe-workshop h2 { margin: 0 0 .3rem; font-size: 1rem; }
@media (max-width: 510px) {
  .workshop-nav { padding-inline: .55rem; gap: .4rem; }
  .workshop-nav label { font-size: .86rem; }
  .workshop-actions .button { min-height: 40px; padding-inline: .65rem; }
}
