:root {
  color-scheme: dark;
  --ground: #151014;
  --panel: #201719;
  --ink: #f7e9d9;
  --muted: #c7ad9e;
  --edge: #564035;
  --amber: #f0ba79;
  --lilac: #d5baff;
  --serif: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 4% 4%, #2b1a30 0, transparent 46rem), var(--ground);
  color: var(--ink);
  font: 14px/1.65 var(--sans);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }
.shop-header { border-bottom: 1px solid #533747; background: #171014b0; }
.header-inner, main { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }
.header-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ead6c2;
  font: 600 15px/1 Georgia, serif;
  letter-spacing: .17em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid #b17e5f;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.brand-mark::before {
  content: "";
  width: 10px;
  height: 13px;
  border-radius: 50%;
  box-shadow: -3px 1px 0 0 var(--amber);
  transform: rotate(-29deg) translateX(2px);
}
nav { display: flex; gap: 21px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; padding: 9px 0; }
nav a:hover { color: var(--amber); }
.sound-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #6c4c4b;
  border-radius: 4px;
  padding: 5px 10px;
  background: #261b24;
  font-size: 12px;
}
.sound-toggle:hover { border-color: var(--amber); }
.sound-bars { display: flex; gap: 2px; height: 12px; align-items: center; color: var(--amber); }
.sound-bars i { width: 1px; height: 6px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-toggle[aria-pressed="false"] .sound-bars i { height: 2px; color: var(--muted); }
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 0 25px;
}
.shop-name p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: .19em;
  color: var(--amber);
  margin: 0 0 5px;
}
h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 { font-size: clamp(50px, 7vw, 91px); letter-spacing: .1em; line-height: 1.02; }
.tagline {
  margin: 0 3px 3px 0;
  border-left: 1px solid #9f7259;
  padding-left: 18px;
  font: 600 clamp(13px, 2vw, 17px)/1.75 var(--serif);
  color: #e8c8af;
}
.kitchen { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(265px, 1fr); gap: 20px; }
.counter, .guide, .dish { border: 1px solid var(--edge); border-radius: 5px; background: var(--panel); }
.counter { overflow: hidden; box-shadow: 0 18px 45px #0005; }
.stage { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.75; background: #160f11; }
.griddle { width: 100%; height: 100%; object-fit: cover; display: block; }
#kitchen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#kitchen-canvas:active { cursor: grabbing; }
.stage { aspect-ratio: 1.5625; }
.stage-caption, .gesture-hint {
  position: absolute; bottom: 12px; pointer-events: none;
  background: #171017e6; color: #ffddb5; border: 1px solid #8b654d;
  border-radius: 3px; padding: 4px 9px; font-size: 12px;
}
.stage-caption { left: 12px; }
.gesture-hint { right: 12px; color: #f4e7f8; border-color: #735b78; }
.crescent::before {
  content: ""; position: absolute; inset: 10% 14% 9% 26%;
  border-radius: 50%; box-shadow: -.24em .1em 0 currentColor; transform: rotate(-26deg);
}
.bites::before, .bites::after {
  content: ""; position: absolute; width: 23%; height: 43%; top: 30%;
  border-radius: 65% 65% 80% 12%; background: currentColor; transform: rotate(19deg);
}
.bites::before { left: 22%; }
.bites::after { right: 22%; transform: rotate(-19deg) scaleX(-1); }
.joined::before, .joined::after {
  content: ""; position: absolute; width: 53%; aspect-ratio: 1; top: 25%;
  border: 1px solid currentColor; border-radius: 50%;
}
.joined::before { left: 9%; }
.joined::after { right: 9%; }
.controls {
  min-height: 99px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  border-top: 1px solid var(--edge);
  padding: 14px 17px;
  background: linear-gradient(105deg, #2d201e, #201719);
}
.status { margin: 0; }
.status strong, .status span { display: block; }
.status strong { font: 700 clamp(15px, 2.1vw, 20px)/1.5 var(--serif); }
.status span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.action {
  min-width: 162px;
  min-height: 47px;
  border: 1px solid #ffdc9f;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  padding: 7px 14px;
  background: linear-gradient(115deg, #f4c78f, #df9e60);
  color: #281418;
  font-weight: 750;
  box-shadow: 0 3px 0 #80482f;
}
.action:hover { background: #ffda9f; }
.action:active { transform: translateY(2px); box-shadow: 0 1px 0 #80482f; }
.action[aria-disabled="true"] { opacity: .72; cursor: wait; }
#action-icon { font-size: 20px; line-height: 1; }
.guide { padding: 23px; display: flex; flex-direction: column; }
.guide-label { margin: 0 0 4px; color: var(--amber); font-size: 12px; letter-spacing: .19em; }
.guide h2 { font-size: clamp(23px, 2.7vw, 33px); line-height: 1.4; }
.phases { display: grid; gap: 8px; list-style: none; margin: 21px 0; padding: 0; }
.phases li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 11px;
  border: 1px solid #543b3d;
  border-radius: 3px;
  padding: 9px 10px;
  background: #271c21;
}
.phases li[aria-current="step"] { border-color: #d59a60; background: #3a2827; }
.phases li[data-phase="twin"][aria-current="step"] { border-color: #b997e5; background: #36263d; }
.phase-icon {
  width: 33px;
  height: 33px;
  position: relative;
  border: 1px solid #87604f;
  border-radius: 50%;
  color: var(--amber);
  background: #1a131b;
}
[data-phase="berry"] .phase-icon { color: #e5a1c7; }
[data-phase="twin"] .phase-icon { color: var(--lilac); }
.phase-light { width: 6px; height: 6px; border-radius: 50%; background: #775451; }
[aria-current="step"] .phase-light { background: var(--amber); box-shadow: 0 0 8px #efa24b; }
.phases strong, .phases small { display: block; }
.phases strong { font-size: 13px; }
.phases small { margin-top: 1px; font-size: 11px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0 0 17px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.steps li { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.steps [aria-current] { color: var(--amber); border-color: var(--amber); }
.work-meter { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin: 18px 0 12px; font-size: 12px; }
#work-value { color: var(--amber); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 7px; grid-column: 1 / -1; appearance: none; border: 0; background: #513641; border-radius: 9px; overflow: hidden; }
progress::-webkit-progress-bar { background: #513641; }
progress::-webkit-progress-value { background: #ecb078; border-radius: 9px; }
progress::-moz-progress-bar { background: #ecb078; border-radius: 9px; }
.heat-control { padding: 10px 0; border-block: 1px solid var(--edge); }
.heat-control label { display: flex; justify-content: space-between; font-size: 12px; }
.heat-control strong { color: var(--amber); }
.heat-control input { width: 100%; height: 26px; accent-color: var(--amber); cursor: pointer; margin: 4px 0; }
.heat-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.phase-heading { margin: 15px 0 5px; font-size: 11px; color: var(--muted); }
.phases { margin: 0 0 15px; }
.kitchen-note { color: var(--muted); font-size: 12px; margin: auto 0 0; }
.action-group { display: flex; flex-direction: column; gap: 10px; }
.finish-button { border: 1px solid #ae8a63; background: #3a292c; border-radius: 4px; font-size: 12px; min-height: 38px; padding: 5px 10px; }
.finish-button:hover { background: #554033; }
.menu { margin-top: 38px; padding-bottom: 55px; scroll-margin-top: 14px; }
.menu-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.menu-heading h2 { font-size: 28px; letter-spacing: .09em; }
.menu-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.menu-heading span { color: var(--amber); margin-left: 5px; font-variant-numeric: tabular-nums; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; list-style: none; margin: 0; padding: 0; }
.dish { overflow: hidden; }
.dish:has(.stamp:not([hidden])) { border-color: #a57856; }
.dish img { display: block; width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.dish-copy { padding: 13px 14px; }
.dish h3 { font-size: 18px; }
.dish p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.stamp {
  display: inline-block;
  margin-top: 9px;
  border: 1px solid #a57856;
  border-radius: 2px;
  color: var(--amber);
  padding: 0 5px;
  font-size: 11px;
}
@media (max-width: 900px) {
  .header-inner, main { width: calc(100% - 42px); }
  .kitchen { gap: 12px; }
  .guide { padding: 15px; }
}
@media (max-width: 720px) {
  .kitchen { grid-template-columns: minmax(0, 1fr); }
  .guide { padding: 13px; }
  .steps { margin-bottom: 7px; }
  .work-meter { margin: 10px 0; }
  .heat-control { padding: 5px 0; }
  .guide h2 { font-size: 19px; }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 9px 0; }
  .phases li { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 5px 2px; gap: 2px; text-align: center; }
  .phase-icon { width: 25px; height: 25px; font-size: 10px; }
  .phase-light { display: none; }
  .phases strong { font-size: 10px; }
  .phases small { font-size: 9px; }
}
@media (max-width: 540px) {
  .header-inner, main { width: calc(100% - 24px); }
  .header-inner { min-height: 55px; }
  .wordmark { gap: 7px; font-size: 11px; }
  .brand-mark { width: 20px; height: 20px; }
  nav { gap: 11px; font-size: 12px; }
  .intro { gap: 9px; padding: 23px 0 16px; }
  .shop-name p { letter-spacing: .1em; }
  h1 { font-size: clamp(42px, 13vw, 64px); letter-spacing: .05em; }
  .tagline { font-size: clamp(10px, 3vw, 13px); padding-left: 8px; margin-right: 0; }
  .stage { aspect-ratio: 1.56; }
  .stage-caption { left: 9px; bottom: 9px; font-size: 10px; }
  .gesture-hint { font-size: 10px; bottom: 9px; right: 9px; padding: 3px 5px; }
  .controls { min-height: 89px; padding: 10px; gap: 8px; }
  .status strong { font-size: 14px; }
  .status span { font-size: 10px; }
  .action { min-width: 110px; min-height: 44px; gap: 5px; font-size: 12px; padding: 7px 8px; }
  #action-icon { font-size: 15px; }
  .menu { margin-top: 24px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dish { display: grid; grid-template-columns: 36% minmax(0, 1fr); }
  .dish img { aspect-ratio: auto; height: 100%; min-height: 88px; }
  .dish-copy { padding: 9px; }
  .dish h3 { font-size: 15px; }
  .dish p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.decoration-tools { border-top: 1px solid var(--edge); padding: 13px 16px; background: #20191f; }
.topping-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.topping-tools button, .syrup-tools button, #undo-decoration {
  border: 1px solid #68505c; border-radius: 4px; background: #2c222b; min-height: 40px;
}
.topping-tools button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 3px; font-size: 12px; }
.topping-tools img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 3px #0008); pointer-events: none; }
.decoration-tools [aria-pressed="true"] { background: #4b3233; border-color: var(--amber); color: #ffe1b6; }
.syrup-tools { display: flex; gap: 6px; margin-top: 9px; }
.syrup-tools button { flex: 1; padding: 5px 7px; font-size: 12px; }
.syrup-dot { display: inline-block; width: 10px; height: 10px; border: 1px solid #ffe4c875; border-radius: 50%; margin-right: 6px; }
.syrup-dot.honey { background: #df9d37; }
.syrup-dot.berry { background: #b34980; }
.syrup-dot.cocoa { background: #583026; }
.decoration-options { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin-top: 10px; }
.decoration-options label { display: flex; gap: 10px; align-items: center; font-size: 12px; flex: 1; }
#decoration-size { min-width: 0; width: 110px; height: 28px; accent-color: var(--amber); }
#undo-decoration { padding: 4px 10px; font-size: 12px; }
button:disabled { opacity: .45; cursor: default; }
.tool-help { font-size: 11px; color: var(--muted); margin: 7px 0 0; }
.counter:has(> .stage[data-state="decorate"]) { overflow: visible; }
.stage[data-state="decorate"] {
  position: sticky; top: 8px; z-index: 3; border-radius: 4px;
  box-shadow: 0 5px 15px #0008;
}
.takeaway-button {
  border: 1px solid #b8a4cf; border-radius: 4px; background: #44334c; color: #f8ecff;
  min-height: 44px; font-size: 13px; padding: 6px 12px;
}
.takeaway-button:hover { background: #604663; }
#kitchen-canvas:focus-visible { outline: 2px solid var(--lilac); outline-offset: -4px; }
dialog {
  width: min(760px, calc(100% - 24px)); max-height: 90dvh; overflow: auto;
  padding: 20px; border: 1px solid #b38b64; border-radius: 8px; background: #21191f; color: var(--ink);
}
dialog::backdrop { background: #0b0711dc; }
dialog header { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
dialog h2 { font-size: 21px; }
#close-takeaway { border: 1px solid var(--edge); border-radius: 4px; background: #34242f; width: 38px; height: 38px; font-size: 24px; flex-shrink: 0; }
#takeaway-image { display: block; width: 100%; border-radius: 4px; }
#save-takeaway { text-decoration: none; width: fit-content; margin: 15px auto 0; }
dialog p { font-size: 12px; color: var(--muted); margin-bottom: 0; text-align: center; }
@media (max-width: 540px) {
  .stage[data-state="decorate"] { aspect-ratio: 4 / 3; max-height: 64svh; }
  .stage[data-state="decorate"] :is(.stage-caption, .gesture-hint) { display: none; }
  .decoration-tools { padding: 9px; }
  .topping-tools { gap: 4px; }
  .topping-tools button { flex-direction: column; gap: 1px; font-size: 10px; line-height: 1.4; }
  .topping-tools img { width: 31px; height: 31px; }
  .syrup-tools button { font-size: 10px; padding: 3px; }
  .syrup-dot { margin-right: 3px; width: 8px; height: 8px; }
  .decoration-options { gap: 6px; }
  .decoration-options label { gap: 4px; font-size: 10px; }
  #decoration-size { width: 80px; }
  #undo-decoration { font-size: 10px; padding: 4px 6px; }
  .tool-help { font-size: 10px; }
  dialog { padding: 13px; }
  dialog h2 { font-size: 17px; }
}
@media (max-width: 360px) {
  .topping-tools button { font-size: 9px; white-space: nowrap; }
}
