:root {
  --forest-950: #10251b;
  --forest-900: #183627;
  --forest-800: #234b36;
  --forest-700: #326347;
  --rice-50: #fffaf0;
  --rice-100: #f8ebcf;
  --rice-200: #ead2a7;
  --rice-300: #d3ad6b;
  --lacquer-700: #8b2f21;
  --lacquer-600: #a5402d;
  --amber-500: #d8982f;
  --amber-300: #f1c86e;
  --ink: #231a14;
  --muted: #765f4d;
  --line: rgba(60, 40, 24, .22);
  --shadow: 0 10px 30px rgba(14, 19, 14, .28);
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 22px;
  --ui-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display-font: "STKaiti", "KaiTi", "FangSong", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(218, 157, 63, .18), transparent 38%),
    linear-gradient(135deg, #12251b, #09140f);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; }

button:focus-visible {
  outline: 3px solid var(--amber-300);
  outline-offset: 2px;
}

.game-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto auto;
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: #161f18;
  box-shadow: 0 0 70px rgba(0, 0, 0, .5);
}

.status-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(102px, 1.2fr) 52px minmax(72px, .9fr) 52px 52px;
  align-items: stretch;
  gap: 5px;
  padding: max(8px, env(safe-area-inset-top)) 8px 7px;
  color: var(--rice-50);
  background: linear-gradient(180deg, #21452f, #173323);
  border-bottom: 2px solid #b3813c;
}

.status-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #a93b2a 0 16px, #7a281f 16px 32px);
}

.day-block,
.weather,
.metric {
  min-width: 0;
  border: 1px solid rgba(245, 218, 163, .4);
  border-radius: 9px;
  background: rgba(4, 20, 12, .24);
}

.day-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 8px;
}

.restaurant-name {
  overflow: hidden;
  color: var(--amber-300);
  font: 700 11px/1.2 var(--display-font);
  letter-spacing: .12em;
  white-space: nowrap;
}

.day-block strong {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.weather { display: grid; place-items: center; }
.weather svg { width: 27px; fill: #f0bd47; stroke: #dcebf1; stroke-width: 2; }

.clock-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.clock-metric svg { width: 18px; fill: none; stroke: var(--amber-300); stroke-width: 2; stroke-linecap: round; }
.clock-metric strong { font-size: 10px; font-variant-numeric: tabular-nums; }

.metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4px 7px;
}

.metric span:first-child { color: var(--rice-200); font-size: 9px; line-height: 1; }
.metric strong { margin-top: 3px; font-size: 13px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reputation strong { color: var(--amber-300); }
.inspiration strong { color: #ffe7a4; }

.day-timeline {
  position: relative;
  z-index: 4;
  padding: 7px 9px 8px;
  color: #ead8af;
  border-bottom: 1px solid #8d6337;
  background: #111d15;
}

.phase-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.phase-labels span { position: relative; color: #8f9a8f; }
.phase-labels span::after { content: ""; display: block; width: 6px; height: 6px; margin: 3px auto 0; border: 1px solid #7f6b4a; border-radius: 50%; background: #29352c; }
.phase-labels span.is-past { color: #c8b78f; }
.phase-labels span.is-past::after { background: #c7a65b; }
.phase-labels span.is-active { color: #ffc351; }
.phase-labels span.is-active::after { border-color: #ffe4a4; background: #f0a927; box-shadow: 0 0 0 3px rgba(240, 169, 39, .2); }

.timeline-row { display: grid; grid-template-columns: 1fr auto 44px 44px; align-items: center; gap: 6px; }
.day-progress { height: 5px; overflow: hidden; border-radius: 99px; background: #3c3427; }
.day-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e6ae42, #ffd77a); transition: width .4s linear; }
.timer-label { min-width: 44px; color: var(--rice-50); font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.timeline-button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 5px; color: #fff6dc; border: 1px solid #967448; border-radius: 9px; background: #315b40; font-size: 11px; font-weight: 800; cursor: pointer; }
.timeline-button svg { width: 16px; fill: currentColor; }
.timeline-button[aria-pressed="true"] { color: #5a321e; background: #f0c166; }
.timeline-button:disabled { opacity: .45; cursor: not-allowed; }
.speed-button { background: #8c551e; }

.restaurant-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #1a2019;
  isolation: isolate;
}

.restaurant-stage > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
  image-rendering: auto;
  user-select: none;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}

.restaurant-stage.is-busy > img { transform: scale(1.025); filter: saturate(1.08) brightness(1.03); }
.restaurant-stage.is-evening > img { filter: saturate(.92) brightness(.72) sepia(.08) hue-rotate(8deg); }
.restaurant-stage.is-evening.is-busy > img { filter: saturate(1.02) brightness(.77) sepia(.08) hue-rotate(8deg); }

.stage-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 14, 8, .26), transparent 20%, transparent 72%, rgba(6, 11, 7, .45));
}

.hanging-sign {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 11px;
  display: grid;
  gap: 1px;
  min-width: 54px;
  padding: 8px 6px 7px;
  color: #7f2c21;
  border: 3px solid #6d3c24;
  border-radius: 3px;
  background: #ead8a8;
  box-shadow: 0 4px 0 #3c2418, 0 7px 12px rgba(0, 0, 0, .35);
  font: 800 16px/1.05 var(--display-font);
  letter-spacing: .06em;
  text-align: center;
  transform: rotate(-1.5deg);
}

.facility-peek {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 9px;
  color: #fff1c9;
  border: 1px solid rgba(255, 229, 171, .65);
  border-radius: 8px;
  background: rgba(88, 42, 23, .92);
  box-shadow: 0 3px 0 rgba(36, 21, 14, .72);
  cursor: pointer;
}

.facility-peek span { font-size: 11px; font-weight: 800; }
.facility-peek small { color: #e7c899; font-size: 9px; }

.order-markers { position: absolute; z-index: 3; inset: 61% 8px auto; display: flex; justify-content: space-between; gap: 5px; pointer-events: none; }
.order-badge { min-width: 0; flex: 1; max-width: 118px; padding: 6px 7px; color: #3b2619; border: 2px solid #795039; border-radius: 8px; background: rgba(255, 248, 228, .94); box-shadow: 0 3px 0 rgba(61, 37, 24, .62); }
.order-badge.is-warning { color: #721f17; border-color: #9f3b28; background: #ffead6; }
.order-badge strong { display: block; overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.order-badge span { display: block; margin-top: 2px; font-size: 9px; }
.order-mini-progress { height: 4px; margin-top: 4px; overflow: hidden; border-radius: 99px; background: #ddceb3; }
.order-mini-progress i { display: block; height: 100%; background: #4e8a5e; }
.order-badge.is-warning .order-mini-progress i { background: #c54a35; }

.queue-bubble {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 69px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--ink);
  border: 2px solid #694029;
  border-radius: 10px;
  background: var(--rice-50);
  box-shadow: 0 4px 0 #56301e, 0 7px 16px rgba(0, 0, 0, .3);
  font-size: 12px;
  cursor: pointer;
}

.queue-bubble::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -8px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #694029;
  border-bottom: 2px solid #694029;
  background: var(--rice-50);
  transform: rotate(45deg);
}

.queue-bubble svg { width: 19px; fill: var(--forest-800); }
.queue-bubble strong { color: var(--lacquer-600); font-size: 15px; }

.service-card {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 12px;
  left: 10px;
  padding: 8px 10px 9px;
  color: var(--rice-50);
  border: 1px solid rgba(248, 224, 178, .55);
  border-radius: 10px;
  background: rgba(14, 38, 25, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}

.service-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.service-head strong { color: var(--amber-300); font-size: 12px; }
.progress-track { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .17); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e5ac43, #f7d479); transition: width .45s ease; }

.steam {
  position: absolute;
  z-index: 2;
  top: 18%;
  width: 14px;
  height: 50px;
  border-left: 3px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  opacity: .55;
  filter: blur(1px);
  animation: steam 2.8s ease-in-out infinite;
}

.steam-one { left: 45%; }
.steam-two { left: 56%; animation-delay: -1.3s; }

.float-text {
  position: absolute;
  z-index: 5;
  top: 46%;
  left: 50%;
  padding: 7px 12px;
  color: #fff9e8;
  border: 2px solid #66261c;
  border-radius: 9px;
  background: #a6402d;
  box-shadow: 0 4px 0 #5b281d;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}

.float-text.is-visible { animation: float-away 1.15s ease-out both; }

.decision-panel {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 10px 11px;
  background:
    linear-gradient(90deg, rgba(139, 47, 33, .06) 1px, transparent 1px),
    linear-gradient(var(--rice-100), #f4dfb7);
  background-size: 12px 12px, auto;
  border-top: 4px solid #6a3b25;
  border-bottom: 1px solid #9d754b;
}

.decision-panel::before,
.decision-panel::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid rgba(123, 68, 39, .27);
}

.decision-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }
.clock-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 2px solid #7f3a25; border-radius: 50%; background: var(--rice-50); }
.clock-icon svg { width: 26px; fill: none; stroke: var(--lacquer-600); stroke-width: 2; stroke-linecap: round; }
.decision-copy h1 { margin: 0; color: var(--lacquer-700); font: 800 18px/1.1 var(--display-font); letter-spacing: .04em; }
.decision-copy p { margin: 3px 0 0; color: #5d493a; font-size: 11px; line-height: 1.35; }
.decision-actions { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }

.choice {
  min-height: 48px;
  padding: 6px 8px;
  color: #fffaf0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  box-shadow: 0 3px 0 rgba(52, 28, 19, .55);
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.choice:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(52, 28, 19, .55); }
.choice.primary { background: #34704d; }
.choice.secondary { background: #8f4a1a; }
.choice strong, .choice span { display: block; }
.choice strong { font-size: 13px; line-height: 1.2; }
.choice span { margin-top: 3px; color: rgba(255, 255, 255, .92); font-size: 11px; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 7px 8px;
  background: #322317;
  border-bottom: 1px solid #0b110d;
}

.quick-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; }
.quick-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-button.is-guided { outline: 3px solid #ffe18d; outline-offset: 1px; animation: guide-pulse 1.25s ease-in-out infinite; }
.action-button:disabled { opacity: .45; filter: grayscale(.45); cursor: not-allowed; }

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 58px;
  padding: 6px 7px;
  color: #fff9e9;
  border: 1px solid rgba(250, 224, 167, .42);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(44, 26, 16, .2), 0 3px 0 #120e0a;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.action-button:active { transform: translateY(2px); }
.action-button svg { flex: 0 0 28px; width: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-button span { min-width: 0; text-align: left; }
.action-button strong, .action-button small { display: block; white-space: nowrap; }
.action-button strong { font-size: 14px; line-height: 1.15; }
.action-button small { margin-top: 3px; overflow: hidden; color: rgba(255, 255, 255, .9); font-size: 11px; text-overflow: ellipsis; }
.action-button b { color: #fff1ad; }
.welcome-action { background: #285f3f; }
.menu-action { background: #815219; }
.prep-action { background: #28566d; }

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 4px max(4px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #241b14, #15110d);
}

.nav-item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 55px;
  padding: 4px 2px;
  color: #d9c5a3;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .07);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.nav-item:last-child { border-right: 0; }
.nav-item svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.nav-item.is-active { color: #fff3c9; background: #345f43; border: 1px solid #d7b264; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(20, 46, 31, .7); }
.nav-item.is-active::before { content: ""; position: absolute; top: -5px; width: 0; height: 0; border-right: 5px solid transparent; border-left: 5px solid transparent; border-top: 6px solid #e6be55; }

.sheet-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(5, 10, 7, .64);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .22s ease;
}

.bottom-sheet {
  position: fixed;
  z-index: 21;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 430px);
  max-height: min(78dvh, 660px);
  margin: 0 auto;
  padding: 8px 14px max(18px, env(safe-area-inset-bottom));
  overflow: auto;
  color: var(--ink);
  border: 3px solid #714327;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--rice-50);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .42);
  transform: translateY(105%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.sheet-backdrop.is-open { opacity: 1; }
.bottom-sheet.is-open { transform: translateY(0); }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 8px; border-radius: 99px; background: #b99f7d; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.sheet-header p { margin: 0 0 2px; color: var(--muted); font-size: 10px; }
.sheet-header h2 { margin: 0; color: var(--forest-900); font: 800 24px/1.05 var(--display-font); }
.close-sheet { display: grid; place-items: center; width: 44px; height: 44px; color: var(--forest-900); border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.close-sheet svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-content { padding: 12px 0 4px; }
.tutorial-confirm { position: sticky; z-index: 3; top: -12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 8px; padding: 8px 9px; color: var(--forest-900); border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 250, 240, .97); box-shadow: 0 5px 14px rgba(47, 29, 18, .12); }
.tutorial-confirm span { font-size: 11px; font-weight: 800; }
.recipe-codex { margin-top: 12px; padding: 10px 12px; color: var(--forest-900); border: 1px solid var(--line); border-radius: 10px; background: #f4e4c7; }
.recipe-codex summary { min-height: 44px; padding: 12px 0 8px; font-size: 12px; font-weight: 800; cursor: pointer; }
.recipe-codex div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 10px; }
.recipe-codex span { color: var(--muted); text-align: right; }

.sheet-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.sheet-tab { min-height: 40px; color: var(--forest-900); border: 1px solid var(--line); border-radius: 8px; background: #f3e4c7; font-size: 11px; font-weight: 800; cursor: pointer; }
.sheet-tab.is-active { color: #fff; background: var(--forest-700); }

.dish-list, .staff-list, .research-list { display: grid; gap: 8px; }
.dish-row, .staff-row, .research-row, .ledger-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.dish-row:last-child, .staff-row:last-child, .research-row:last-child { border-bottom: 0; }
.food-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #e3c78f; box-shadow: inset 0 0 0 5px #f7edd7, inset 0 0 0 7px #a87745; font-size: 24px; }
.dish-info, .staff-info, .research-info { min-width: 0; flex: 1; }
.dish-info strong, .staff-info strong, .research-info strong { display: block; color: var(--forest-900); font-size: 14px; }
.dish-info span, .staff-info span, .research-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.select-dish, .sheet-cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 11px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--forest-700);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.select-dish.is-selected { color: var(--forest-900); background: var(--rice-200); }
.select-dish:disabled, .sheet-cta:disabled, .job-select:disabled, .sheet-primary:disabled, .sheet-secondary:disabled { opacity: .42; filter: grayscale(.55); cursor: not-allowed; }
.staff-avatar { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; background: var(--forest-800); color: var(--rice-50); font: 800 20px var(--display-font); }
.energy-bar { height: 5px; margin-top: 7px; border-radius: 99px; background: #eadcc1; }
.energy-bar span { display: block; height: 100%; border-radius: inherit; background: #d79a31; }
.research-mark { display: grid; place-items: center; flex: 0 0 48px; height: 48px; color: #fff; border-radius: 12px; background: var(--lacquer-600); font: 800 13px var(--display-font); }
.research-progress { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #eadcc1; }
.research-progress span { display: block; height: 100%; background: var(--forest-700); }
.goal-list, .achievement-list, .facility-list, .history-list { display: grid; gap: 8px; }
.district-list { display: grid; gap: 7px; }
.district-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #f6e7ca; }
.district-row.is-active { border-color: #b88231; box-shadow: inset 0 0 0 2px rgba(184, 130, 49, .16); }
.district-row strong, .district-row span { display: block; }
.district-row strong { color: var(--forest-900); font-size: 13px; }
.district-row span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.queue-picker-list { display: grid; gap: 8px; }
.queue-picker-row { display: flex; align-items: center; gap: 9px; padding: 10px 3px; border-bottom: 1px solid var(--line); }
.queue-picker-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: #fff; border-radius: 12px; background: var(--lacquer-600); font: 800 16px var(--display-font); }
.queue-picker-info { min-width: 0; flex: 1; }
.queue-picker-info strong, .queue-picker-info span, .queue-picker-info small { display: block; }
.queue-picker-info strong { color: var(--forest-900); font-size: 13px; }
.queue-picker-info span, .queue-picker-info small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.queue-patience { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #e3d5ba; }
.queue-patience span { display: block; height: 100%; background: linear-gradient(90deg, #b03f2c, #dc9a30, #4f8b61); }
.goal-row, .achievement-row, .facility-row, .history-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.goal-row:last-child, .achievement-row:last-child, .facility-row:last-child, .history-row:last-child { border-bottom: 0; }
.goal-check, .achievement-mark, .facility-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; background: #e8d5af; color: var(--forest-900); font: 800 14px var(--display-font); }
.goal-row.is-complete .goal-check, .achievement-row.is-complete .achievement-mark { color: #fff; background: var(--forest-700); }
.goal-info, .achievement-info, .facility-info { min-width: 0; flex: 1; }
.goal-info strong, .achievement-info strong, .facility-info strong { display: block; color: var(--forest-900); font-size: 13px; }
.goal-info span, .achievement-info span, .facility-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.facility-actions { display: flex; align-items: center; gap: 6px; }
.facility-cost { color: var(--lacquer-700); font-size: 10px; font-weight: 700; }
.menu-state { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.dish-actions { display: flex; gap: 5px; }
.dish-level { color: var(--amber-500); font-size: 9px; font-weight: 800; }
.lock-copy { color: #956d4d; font-size: 10px; }
.staff-attributes { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; color: #765f4d; font-size: 10px; }
.job-select { min-height: 44px; padding: 7px 26px 7px 8px; color: var(--forest-900); border: 1px solid var(--line); border-radius: 8px; background: #f8ecd3; font: 700 10px var(--ui-font); }
.customer-strip { display: flex; gap: 6px; overflow-x: auto; padding: 3px 0 10px; scrollbar-width: none; }
.customer-chip { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f7ead0; font-size: 10px; }
.chapter-result { padding: 16px; color: #fff5d8; border-radius: 14px; background: var(--forest-900); text-align: center; }
.chapter-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; padding: 12px; color: #f7e8c5; border-radius: 12px; background: var(--forest-900); }
.chapter-progress strong { grid-column: 1 / -1; color: var(--amber-300); font: 800 16px var(--display-font); }
.chapter-progress span { padding: 7px 5px; border-radius: 7px; background: rgba(255, 255, 255, .08); font-size: 10px; text-align: center; }
.chapter-progress small { grid-column: 1 / -1; color: #d8c7a4; font-size: 10px; }
.chapter-result strong { display: block; color: var(--amber-300); font: 800 32px var(--display-font); }
.chapter-result p { margin: 7px 0; font-size: 11px; line-height: 1.5; }
.sheet-footer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sheet-primary, .sheet-secondary { min-height: 46px; border-radius: 9px; font: 800 12px var(--ui-font); cursor: pointer; }
.sheet-primary { color: #fff; border: 0; background: var(--forest-700); }
.sheet-secondary { color: var(--forest-900); border: 1px solid var(--line); background: #f2e3c6; }
.danger-button { color: #862f25; border-color: rgba(134, 47, 37, .28); }
.ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ledger-stat { padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: #f7ead0; text-align: center; }
.ledger-stat span, .ledger-stat strong { display: block; }
.ledger-stat span { color: var(--muted); font-size: 9px; }
.ledger-stat strong { margin-top: 4px; color: var(--forest-900); font-size: 16px; font-variant-numeric: tabular-nums; }
.ledger-row { justify-content: space-between; padding-inline: 3px; font-size: 12px; }
.ledger-row span { color: var(--muted); }
.ledger-row strong { font-variant-numeric: tabular-nums; }
.sheet-note { margin: 12px 0 0; padding: 10px 12px; color: #644c3a; border-left: 3px solid var(--amber-500); background: #f5e7ca; font-size: 10px; line-height: 1.55; }
.subheading { margin: 18px 4px 8px; color: var(--forest-900); font: 800 17px/1.2 var(--display-font); }

.toast {
  position: fixed;
  z-index: 40;
  top: calc(max(8px, env(safe-area-inset-top)) + 58px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  color: #fffaf0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  background: rgba(21, 53, 36, .96);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes steam {
  0% { opacity: 0; transform: translate(0, 14px) scale(.7); }
  45% { opacity: .6; }
  100% { opacity: 0; transform: translate(8px, -18px) scale(1.15); }
}

@keyframes float-away {
  0% { opacity: 0; transform: translate(-50%, 12px) scale(.92); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -48px) scale(.95); }
}

@keyframes guide-pulse {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.14); transform: translateY(-1px); }
}

@media (max-height: 720px) {
  .game-shell { grid-template-rows: auto auto minmax(205px, 1fr) auto auto auto; }
  .day-timeline { padding-block: 5px; }
  .phase-labels { margin-bottom: 3px; }
  .decision-panel { padding-block: 7px; }
  .decision-copy p { font-size: 10px; }
  .decision-actions { margin-top: 6px; }
  .choice { min-height: 41px; }
  .quick-actions { padding-block: 5px; }
  .action-button { min-height: 50px; }
  .bottom-nav { padding-top: 2px; }
  .nav-item { min-height: 48px; }
}

@media (min-width: 700px) {
  body::before {
    content: "海上食光";
    position: fixed;
    top: 50%;
    left: calc(50% - 380px);
    color: rgba(241, 200, 110, .1);
    font: 900 66px/1 var(--display-font);
    letter-spacing: .15em;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
  }
  body::after {
    content: "一桌烟火，一城滋味";
    position: fixed;
    top: 50%;
    right: calc(50% - 370px);
    color: rgba(255, 250, 240, .22);
    font: 500 16px/2 var(--display-font);
    letter-spacing: .25em;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
