/* =========================================================
   阿倍马来小馆 · 极繁拼贴宣传页
   1. 变量与基础
   2. 顶栏
   3. 主视觉拼贴
   4. 跑马灯
   5. 菜牌
   6. 配一碗
   7. 饭点
   8. 小馆三句话
   9. 页脚 / 动效 / 响应式
   ========================================================= */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --paper: #f8f1e3;
  --paper-2: #f1e6d2;
  --card: #fffcf4;
  --ink: #141110;
  --ink-soft: #574b3e;
  --line: #141110;

  --pink: #ff4d9a;
  --pink-deep: #e51e72;
  --yellow: #ffd02e;
  --red: #ff4a28;
  --cyan: #33d6ce;
  --green: #8fd653;
  --purple: #8b6bff;

  --on-accent: #141110;
  --photo-paper: #f6eedf;

  --font-display: "Impact", "Haettenschweiler", "Franklin Gothic Heavy",
    "Arial Black", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Courier New", "Courier", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15110e;
    --paper-2: #1c1613;
    --card: #241d18;
    --ink: #f7efe1;
    --ink-soft: #c2b4a2;
    --line: #f7efe1;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 17, 16, 0.06) 1px, transparent 1px);
  background-size: 5px 5px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: radial-gradient(rgba(247, 239, 225, 0.06) 1px, transparent 1px);
  }
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 99;
  background: var(--yellow);
  color: var(--on-accent);
  border: 3px solid var(--on-accent);
  padding: 8px 12px;
  font-weight: 900;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.hl {
  display: inline-block;
  padding: 0.02em 0.1em 0.08em;
  color: var(--on-accent);
  border: 3px solid var(--on-accent);
  box-shadow: 4px 4px 0 var(--on-accent);
  transform: rotate(-1.6deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-pink { background: var(--pink); }
.hl-yellow { background: var(--yellow); }
.hl-cyan { background: var(--cyan); }

/* ---------- 2. 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(14px, 4vw, 34px);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  margin-right: auto;
}
.brand-cn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 4.4vw, 24px);
  letter-spacing: -0.02em;
}
.brand-en {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.topnav {
  display: none;
  gap: 18px;
  font-weight: 800;
  font-size: 14px;
}
.topnav a {
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--pink); }

.topbar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--on-accent);
  border: 3px solid var(--on-accent);
  box-shadow: 4px 4px 0 var(--on-accent);
  font-weight: 900;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-cta:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--on-accent); }

/* ---------- 3. 主视觉拼贴 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 48px) clamp(16px, 4vw, 46px) clamp(30px, 5vw, 54px);
  border-bottom: 3px solid var(--line);
}

.hero-scraps { position: absolute; inset: 0; pointer-events: none; }
.scrap { position: absolute; display: block; }
.scrap-a {
  top: 6%;
  left: -7%;
  width: 40%;
  height: 30%;
  background: var(--pink);
  transform: rotate(-9deg);
  clip-path: polygon(2% 12%, 97% 3%, 100% 74%, 88% 96%, 46% 88%, 9% 99%, 0 46%);
  opacity: 0.85;
}
.scrap-b {
  bottom: -4%;
  right: -6%;
  width: 38%;
  height: 26%;
  background: var(--cyan);
  transform: rotate(7deg);
  clip-path: polygon(4% 0, 98% 6%, 94% 92%, 40% 100%, 6% 86%, 0 34%);
  opacity: 0.8;
}
.scrap-c {
  top: 34%;
  right: 26%;
  width: 12%;
  height: 16%;
  background: var(--green);
  transform: rotate(12deg);
  clip-path: polygon(8% 4%, 96% 0, 100% 88%, 52% 100%, 0 78%);
  opacity: 0.85;
}
.scrap-d {
  top: -4%;
  right: 34%;
  width: 16%;
  height: 12%;
  background: var(--purple);
  transform: rotate(-14deg);
  clip-path: polygon(0 22%, 88% 0, 100% 66%, 34% 100%);
  opacity: 0.7;
}
.dots {
  position: absolute;
  display: block;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
  background-size: 7px 7px;
  color: var(--ink);
  opacity: 0.5;
}
.dots-a { top: 12%; left: 44%; width: 54px; height: 82px; transform: rotate(8deg); }
.dots-b { bottom: 14%; left: 2%; width: 70px; height: 46px; transform: rotate(-6deg); }
.checker {
  position: absolute;
  bottom: 6%;
  right: 6%;
  width: 84px;
  height: 46px;
  transform: rotate(-8deg);
  background-image: repeating-conic-gradient(
    var(--ink) 0% 25%,
    transparent 0% 50%
  );
  background-size: 14px 14px;
  opacity: 0.75;
}
.squiggle {
  position: absolute;
  top: 4%;
  left: 30%;
  width: 118px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.8;
  transform: rotate(-6deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 34px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  padding: 5px 10px;
  background: var(--card);
  border: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  transform: rotate(-1.2deg);
}
.kicker span {
  background: var(--pink);
  color: var(--on-accent);
  padding: 2px 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 12.4vw, 100px);
}
.hero-title .line {
  display: block;
  width: fit-content;
  max-width: 100%;
}
.hero-title .l1 { transform: rotate(-1.2deg); }
.hero-title .l2 { font-size: 0.9em; margin-left: 0.12em; transform: rotate(0.8deg); }
.hero-title .l3 { font-size: 0.62em; letter-spacing: -0.02em; margin-top: 0.18em; transform: rotate(-0.6deg); }
.hero-title .l3 .hl { transform: rotate(1.6deg); }

.hero-sub {
  margin-top: 20px;
  max-width: 40ch;
  font-size: clamp(14px, 3.6vw, 16.5px);
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  background: var(--card);
  color: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--yellow); color: var(--on-accent); }
.btn-ghost { background: var(--card); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.hero-facts li {
  border-bottom: 2px dotted var(--ink-soft);
  padding-bottom: 2px;
}
.hero-facts b {
  color: var(--ink);
  font-size: 13px;
  margin-right: 4px;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  min-height: 270px;
}

.photo {
  position: absolute;
  padding: 7px 7px 4px;
  background: var(--photo-paper);
  border: 2px solid var(--on-accent);
  box-shadow: 7px 8px 0 rgba(20, 17, 16, 0.85);
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.photo figcaption {
  padding: 5px 2px 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--on-accent);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-main {
  top: 4%;
  left: 8%;
  width: 60%;
  transform: rotate(-3deg);
  z-index: 2;
}
.photo-nasi {
  left: 0;
  bottom: 1%;
  width: 42%;
  transform: rotate(6deg);
  z-index: 3;
}
.photo-teh {
  top: 0;
  right: 0;
  width: 40%;
  transform: rotate(-7deg);
  z-index: 1;
}

.sticker { position: absolute; z-index: 4; }
.sticker-sun {
  right: 3%;
  bottom: 5%;
  width: 22%;
  max-width: 92px;
  transform: rotate(9deg);
  filter: drop-shadow(3px 4px 0 rgba(20, 17, 16, 0.75));
}
.sticker-burst {
  left: 44%;
  bottom: 12%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-11deg);
  clip-path: polygon(50% 0%, 61% 20%, 82% 8%, 78% 32%, 100% 34%, 84% 50%, 100% 66%, 78% 68%, 82% 92%, 61% 80%, 50% 100%, 39% 80%, 18% 92%, 22% 68%, 0% 66%, 16% 50%, 0% 34%, 22% 32%, 18% 8%, 39% 20%);
}
.sticker-tape {
  top: 44%;
  left: 3%;
  padding: 5px 9px;
  background: var(--yellow);
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  box-shadow: 4px 4px 0 var(--on-accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  transform: rotate(-5deg);
}
.sticker-tape b { font-size: 10.5px; }

/* ---------- 4. 跑马灯 ---------- */
.ticker {
  overflow: hidden;
  background: var(--yellow);
  border-block: 3px solid var(--on-accent);
  padding: 9px 0;
  color: var(--on-accent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 32s linear infinite;
}
.ticker-track span {
  padding-right: 26px;
  font-weight: 900;
  font-size: clamp(13px, 3.4vw, 17px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 5. 菜牌 ---------- */
#menu, #order, #hours, #story, #top { scroll-margin-top: 78px; }

.menu, .order, .hours, .story {
  padding: clamp(32px, 6vw, 66px) clamp(16px, 4vw, 46px);
  border-bottom: 3px solid var(--line);
}
.menu { position: relative; }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.section-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 7.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-head h2 small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  border: 2px solid var(--line);
  padding: 3px 7px;
  transform: rotate(-2deg);
}
.section-note {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.menu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 40px;
  padding: 8px 14px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.chip.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip.is-on:hover { box-shadow: 4px 4px 0 var(--pink); }
.chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.menu-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.dish-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.dish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 16px 10px;
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dish-card:hover { transform: rotate(0deg) translate(-1px, -1px); box-shadow: 8px 8px 0 var(--ink); }
.dish-card.is-hidden { display: none; }
.dish-card::before {
  content: "";
  position: absolute;
  top: -3px;
  right: 14px;
  width: 42px;
  height: 12px;
  background: var(--accent, var(--yellow));
  border: 3px solid var(--line);
  border-top: none;
}

.dish-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dish-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent, var(--yellow));
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  transform: rotate(-4deg);
}
.dish-names { min-width: 0; }
.dish-cn {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dish-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.dish-line {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.dish-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.heat-pips { display: inline-flex; gap: 3px; }
.heat-pips i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
}
.heat-pips i.on { background: var(--red); border-color: var(--red); }

.dish-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  padding: 10px 0 4px;
  background: none;
  border: none;
  border-top: 2px dashed var(--line);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.dish-toggle .arrow { transition: transform 0.2s ease; font-size: 12px; }
.dish-card.is-open .dish-toggle .arrow { transform: rotate(180deg); }

.dish-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.dish-card.is-open .dish-more { grid-template-rows: 1fr; }
.dish-more > div { overflow: hidden; }
.dish-tip {
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.75;
}
.dish-tip b {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--pink-deep);
  margin-bottom: 3px;
}
@media (prefers-color-scheme: dark) {
  .dish-tip b { color: var(--pink); }
}

.dish-card.is-flash {
  animation: flash 0.9s ease 2;
}
@keyframes flash {
  0%, 100% { background: var(--card); }
  50% { background: color-mix(in srgb, var(--yellow) 70%, var(--card)); }
}

.noscript {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 6. 配一碗 ---------- */
.order {
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(20, 17, 16, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}
@media (prefers-color-scheme: dark) {
  .order {
    background-image: radial-gradient(rgba(247, 239, 225, 0.05) 1px, transparent 1px);
  }
}

.order-wrap {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .order-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    gap: 30px;
    align-items: start;
  }
}

.order-controls { display: grid; gap: 16px; }

.opt-group {
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border: none;
  border-top: 3px solid var(--line);
}
.opt-group legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 0 0 9px;
  font-weight: 900;
  font-size: 15px;
}
.opt-group legend .num {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  letter-spacing: 0.06em;
}
.opt-group legend small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 400;
}
.opt-group legend output {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--yellow);
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  padding: 2px 8px;
  font-weight: 700;
}
.opt-hint {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.heat input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 26px;
  margin: 6px 0 14px;
  padding: 0;
  background: linear-gradient(90deg, var(--yellow) 0%, #ff9a2e 38%, var(--red) 100%);
  border: 3px solid var(--line);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}
.heat input[type="range"]::-webkit-slider-runnable-track {
  height: 20px;
  background: transparent;
  border: none;
}
.heat input[type="range"]::-moz-range-track {
  height: 20px;
  background: transparent;
  border: none;
}
.heat input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
}
.heat input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
}
.heat-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.order-stage { display: grid; gap: 18px; align-content: start; }

.bowl-card {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-0.7deg);
}
.bowl-tag {
  position: absolute;
  top: -13px;
  left: 14px;
  padding: 3px 10px;
  background: var(--pink);
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}
#bowl { display: block; width: 100%; height: auto; }
#bowl .noodle path {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.95;
}
#n-yellow, #n-rice { display: none; }
#n-yellow.is-on, #n-rice.is-on { display: block; }
#n-rice.is-on path { stroke-width: 3.5; }
.topping { display: none; }
.topping.is-on { display: block; }
.steam path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  opacity: 0.5;
  animation: steam 3.4s linear infinite;
}
@keyframes steam {
  to { stroke-dashoffset: -40; }
}

.bowl-meta {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
}
.bowl-name {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
}
.bowl-note {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.receipt {
  position: relative;
  padding: 16px;
  background: var(--card);
  border: 2px dashed var(--line);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transform: rotate(0.6deg);
}
.receipt-head { text-align: center; }
.receipt-shop {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.receipt-sub {
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.receipt-rule {
  margin: 10px 0;
  height: 0;
  border-top: 2px dashed var(--line);
  opacity: 0.45;
}
.receipt-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  line-height: 1.5;
}
.receipt-list li span:first-child { color: var(--ink-soft); flex: none; }
.receipt-list li span:last-child { text-align: right; }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}
.receipt-total b {
  background: var(--yellow);
  color: var(--on-accent);
  padding: 1px 7px;
  letter-spacing: 0.12em;
}
.receipt-foot {
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.receipt-copy {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  min-height: 42px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--pink);
  color: var(--on-accent);
}
.copy-state {
  min-height: 16px;
  margin-top: 6px;
  font-size: 10.5px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- 7. 饭点 ---------- */
.hours-card {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 4vw, 28px);
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 var(--ink);
}
.hours-now {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.hours-live {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--on-accent);
}
.live-reset {
  min-height: 30px;
  padding: 3px 9px;
  background: var(--yellow);
  color: var(--on-accent);
  border: 2px solid var(--on-accent);
  box-shadow: 2px 2px 0 var(--on-accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.live-reset:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--on-accent); }
.live-reset[hidden] { display: none; }
.hours-clock {
  display: inline-block;
  width: fit-content;
  padding: 0 0.1em;
  background: var(--pink);
  color: var(--on-accent);
  border: 3px solid var(--on-accent);
  box-shadow: 4px 4px 0 var(--on-accent);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 12vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  transform: rotate(-1deg);
  font-variant-numeric: tabular-nums;
}
.hours-phase {
  margin-top: 14px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
}
.hours-tip {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  padding-top: 14px;
  overflow: visible;
}

#time-slider {
  position: absolute;
  top: 2px;
  left: -8px;
  width: calc(100% + 16px);
  height: 58px;
  margin: 0;
  padding: 0;
  opacity: 0;
  z-index: 6;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  touch-action: pan-y;
}
#time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
}
#time-slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
}
.timeline-bar {
  position: relative;
  display: flex;
  border: 3px solid var(--on-accent);
  border-radius: 3px;
}
#time-slider:focus-visible ~ .timeline-bar .now-mark {
  outline: 3px solid var(--pink-deep);
  outline-offset: 5px;
}
.timeline-ticks {
  position: relative;
  height: 15px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.timeline-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.timeline-ticks span:first-child { transform: translateX(0); }
.timeline-ticks span:last-child { transform: translateX(-100%); }
.timeline-hint {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.timeline-hint span { color: var(--red); font-weight: 700; }
.seg {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 6px 3px;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.25;
  border-right: 2px solid var(--on-accent);
  color: var(--on-accent);
}
.seg:last-of-type { border-right: none; }
.seg b { font-weight: 900; font-size: 11.5px; }
.seg i { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; opacity: 0.75; }
.seg-1 { flex-grow: 3.5; background: var(--yellow); }
.seg-2 { flex-grow: 2.5; background: var(--cyan); }
.seg-3 { flex-grow: 4.5; background: var(--pink); }
.seg-4 { flex-grow: 1.5; }
.seg-4 {
  background: repeating-linear-gradient(45deg, rgba(20, 17, 16, 0.22) 0 4px, transparent 4px 8px);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .seg-4 { color: var(--ink); background: repeating-linear-gradient(45deg, rgba(247, 239, 225, 0.28) 0 4px, transparent 4px 8px); }
}
.now-mark {
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  width: 4px;
  background: var(--red);
  border: 1.5px solid var(--on-accent);
  box-shadow: 0 0 0 2px var(--card);
  border-radius: 2px;
  transition: left 0.18s ease;
  pointer-events: none;
}
.now-mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--on-accent);
  box-shadow: 0 0 0 3px var(--card);
  transform: translate(-50%, -50%);
  animation: knob-breathe 2.8s ease-in-out infinite;
}
@keyframes knob-breathe {
  0%, 100% { box-shadow: 0 0 0 3px var(--card); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 35%, transparent); }
}
.now-mark b {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  background: var(--red);
  color: #141110;
  border: 2px solid var(--on-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hours-list { display: grid; gap: 10px; }
.hours-list li {
  padding-left: 11px;
  border-left: 4px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
}
.hours-list b {
  font-weight: 900;
  margin-right: 6px;
  background: color-mix(in srgb, var(--yellow) 60%, transparent);
  padding: 0 3px;
}
.hours-list li {
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hours-list li.is-current {
  border-left-color: var(--red);
  background: color-mix(in srgb, var(--yellow) 26%, transparent);
}
.hours-list li.is-current b {
  background: var(--red);
  color: #141110;
}
.hours-list li.is-current span { color: var(--ink); }
.hours-list span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.hours-fine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- 8. 小馆三句话 ---------- */
.story { background: var(--paper-2); }
.story-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 780px) {
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
.story-card {
  padding: 18px 16px;
  background: var(--card);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--ink);
}
.sc-1 { --acc: var(--pink); transform: rotate(-0.8deg); }
.sc-2 { --acc: var(--cyan); transform: rotate(0.9deg); }
.sc-3 { --acc: var(--yellow); transform: rotate(-0.5deg); }
.story-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--acc);
  text-shadow: 2px 2px 0 var(--on-accent);
}
.story-card h3 {
  margin: 8px 0 7px;
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.45;
}
.story-card p:last-child {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.story-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 3px solid var(--line);
}
.story-cta p { font-weight: 900; font-size: 15px; }

/* ---------- 9. 页脚 ---------- */
.ticker-foot { background: var(--pink); }
.foot-main {
  padding: clamp(28px, 6vw, 54px) clamp(16px, 4vw, 46px) 34px;
}
.foot-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 9vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.foot-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.foot-fine {
  margin-top: 14px;
  max-width: 48ch;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.foot-top {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- 动效与响应式收尾 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 479px) {
  .seg i { display: none; }
  .hero-title .l3 { font-size: 0.66em; }
  .photo figcaption { font-size: 8.5px; }
  .sticker-burst { width: 62px; height: 62px; font-size: 11px; }
}

@media (min-width: 720px) {
  .topnav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .steam path { animation: none; }
}
