#app {
  width: 100%;
}

.Cooking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 28px 18px;
  background: linear-gradient(170deg, #FBF7F0, #F1EDE6);
  color: #3a342b;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  user-select: none;
}
.Cooking button:active:not(:disabled) {
  transform: scale(0.96);
}
.Cooking-ModeSwitch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.Cooking-ModeButton {
  padding: 8px 22px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #7a7064;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.Cooking[data-mode=edit] .Cooking-ModeButton[data-action=edit], .Cooking[data-mode=play] .Cooking-ModeButton[data-action=play] {
  background: #3a342b;
  color: #fff;
  box-shadow: 0 3px 10px rgba(58, 52, 43, 0.25);
}
.Cooking-Stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 320px;
  height: 340px;
}
.Cooking-Panel {
  position: absolute;
  top: 0;
  right: -10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 192px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(120, 100, 70, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.Cooking-PanelHeader {
  margin-bottom: 2px;
  color: #9a8f7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.Cooking-Rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.Cooking-Empty {
  padding: 6px 2px;
  color: #aaa;
  font-size: 12px;
}
.Cooking-Row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 8px;
  transition: opacity 0.3s;
}
.Cooking-Row[data-phase=current] {
  background: rgba(232, 160, 75, 0.16);
}
.Cooking-RowIndex {
  width: 12px;
  color: #bcae97;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.Cooking-Dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.Cooking-RowLabel {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.Cooking-Stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}
.Cooking-StepButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: #fff;
  color: #6b6256;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.Cooking-Amount {
  min-width: 38px;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.Cooking-Unit {
  margin-left: 1px;
  color: #9a8f7c;
  font-size: 10px;
  font-weight: 500;
}
.Cooking-RowTools {
  display: flex;
  gap: 1px;
  margin-left: 2px;
}
.Cooking-ToolButton {
  width: 16px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: #b5a994;
  font-size: 9px;
  cursor: pointer;
}
.Cooking-ToolButton-Remove {
  color: #c66;
}
.Cooking-Check {
  display: none;
  margin-left: 2px;
  color: #5aa86b;
  font-size: 13px;
  font-weight: 800;
}
.Cooking-AddArea {
  position: relative;
}
.Cooking-AddButton {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.5);
  color: #8a7d63;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.Cooking-Adder {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 220px;
  margin-top: 4px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(120, 100, 70, 0.22);
}
.Cooking-AdderItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #4a443a;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.Cooking-Source {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 4;
  display: none;
  align-items: flex-end;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  padding-bottom: 6px;
  border: 2px solid #fff;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(160deg, #EDEDED, #CBCBCB);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform-origin: 70% 0;
  transition: transform 0.4s cubic-bezier(0.5, 1.4, 0.4, 1);
}
.Cooking-Source[data-pouring] {
  transform: rotate(34deg);
}
.Cooking-SourceLabel {
  font-size: 12px;
  font-weight: 700;
}
.Cooking-Spatula {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 5;
  display: none;
  margin-left: -29px;
  transform-origin: 50% 12%;
  pointer-events: none;
}
.Cooking-Field {
  position: absolute;
  top: 96px;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 130px;
  pointer-events: none;
}
.Cooking-Grain {
  position: absolute;
  top: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  animation: cooking-grain-fall 0.85s cubic-bezier(0.5, 0, 0.7, 1) forwards;
}
.Cooking-Egg {
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -13px;
  animation: cooking-egg-fall 0.85s cubic-bezier(0.5, 0, 0.75, 1) forwards;
}
.Cooking-Stream {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 6px;
  height: 0;
  margin-left: -3px;
  border-radius: 3px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  opacity: 0.85;
  animation: cooking-stream-flow 0.9s ease-in forwards;
}
.Cooking-Chunk {
  position: absolute;
  top: 0;
  margin-left: -7px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  animation: cooking-chunk-fall 0.9s cubic-bezier(0.5, 0, 0.75, 1) forwards;
}
.Cooking-Sheet {
  position: absolute;
  top: 0;
  width: 20px;
  height: 13px;
  margin-left: -10px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  opacity: 0.95;
  animation: cooking-sheet-fall 1.1s ease-in-out forwards;
}
.Cooking-Bowl {
  overflow: visible;
}
.Cooking-Bowl-Surface {
  transition: fill 1s ease, y 0.5s ease;
}
.Cooking-Bowl-Top {
  transition: fill 1s ease, cy 0.5s ease;
}
.Cooking-Bowl-Swirl {
  opacity: 0;
}
.Cooking-Pan {
  display: none;
  overflow: visible;
}
.Cooking-Pan-Contents {
  transition: fill 0.6s ease, cy 0.4s ease, ry 0.4s ease;
}
.Cooking-Pan-Browned {
  opacity: 0;
  transition: opacity var(--heat-seconds, 3s) ease;
}
.Cooking-Pan-Flame {
  opacity: 0;
  transform: scale(var(--heat-scale, 1));
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: opacity 0.3s ease;
}
.Cooking-Pan-FlameTongue {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: cooking-flame-flicker var(--sizzle-seconds, 0.4s) ease-in-out infinite;
}
.Cooking-Pan-FlameTongue:nth-child(2) {
  animation-delay: -0.12s;
}
.Cooking-Pan-FlameTongue:nth-child(3) {
  animation-delay: -0.06s;
}
.Cooking-Pan-Steam {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.Cooking-Pan-SteamWisp {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 3;
  stroke-linecap: round;
  animation: cooking-steam var(--steam-seconds, 1.9s) linear infinite;
}
.Cooking-Pan-SteamWisp:nth-child(2) {
  animation-delay: -0.7s;
}
.Cooking-Pan-SteamWisp:nth-child(3) {
  animation-delay: -1.4s;
}
.Cooking-Hint {
  min-height: 18px;
  color: #9a8f7c;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.Cooking-ActionRow {
  display: none;
  gap: 10px;
}
.Cooking-MixButton, .Cooking-HeatButton {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 28px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.2s;
}
.Cooking-MixButton:disabled, .Cooking-HeatButton:disabled {
  background: #d9d2c7;
  color: #fff;
  box-shadow: none;
  opacity: 0.7;
  cursor: default;
}
.Cooking-MixButton {
  background: linear-gradient(180deg, #E8703F, #D2531F);
  box-shadow: 0 8px 20px rgba(210, 83, 31, 0.32);
}
.Cooking-HeatButton {
  background: linear-gradient(180deg, #F2913A, #E0531C);
  box-shadow: 0 8px 20px rgba(224, 83, 28, 0.32);
}
.Cooking-Settings {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 260px;
  padding: 13px 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.Cooking-SettingsTitle {
  color: #9a8f7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.Cooking-SliderRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.Cooking-SliderLabel {
  width: 30px;
  color: #6b6256;
  font-size: 12.5px;
  font-weight: 600;
}
.Cooking-Slider {
  flex: 1;
  accent-color: #E8703F;
  cursor: pointer;
}
.Cooking-SliderValue {
  width: 44px;
  color: #7a7064;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.Cooking-MethodSwitch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}
.Cooking-MethodButton {
  flex: 1;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #7a7064;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.Cooking[data-method=bowl] .Cooking-MethodButton[data-set-method=bowl], .Cooking[data-method=pan] .Cooking-MethodButton[data-set-method=pan] {
  background: #fff;
  color: #3a342b;
  box-shadow: 0 1px 4px rgba(120, 100, 70, 0.18);
}
.Cooking-MixSettings {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.Cooking-HeatSettings {
  display: none;
  flex-direction: column;
  gap: 9px;
}
.Cooking[data-mode=play] .Cooking-Source {
  display: flex;
}
.Cooking[data-mode=play] .Cooking-ActionRow {
  display: flex;
}
.Cooking[data-mode=play] .Cooking-Settings {
  display: none;
}
.Cooking[data-mode=play] .Cooking-StepButton {
  display: none;
}
.Cooking[data-mode=play] .Cooking-RowTools {
  display: none;
}
.Cooking[data-mode=play] .Cooking-AddArea {
  display: none;
}
.Cooking[data-mode=play] .Cooking-Row[data-phase=pending] {
  opacity: 0.4;
}
.Cooking-Row[data-phase=done] .Cooking-Check {
  display: inline;
}
.Cooking[data-mixing] .Cooking-Spatula {
  display: block;
  animation: cooking-spatula-drop 0.45s ease-out, cooking-spatula-fold var(--fold-seconds, 0.6s) ease-in-out 0.45s infinite;
}
.Cooking[data-mixing] .Cooking-Bowl-Top {
  transform-origin: 130px center;
  transform-box: fill-box;
  animation: cooking-swirl var(--fold-seconds, 0.6s) ease-in-out infinite;
}
.Cooking[data-mixing] .Cooking-Bowl-Swirl {
  transform-origin: 130px center;
  transform-box: fill-box;
  opacity: 0.25;
  animation: cooking-swirl var(--fold-seconds, 0.6s) ease-in-out infinite reverse;
}
.Cooking[data-method=pan] .Cooking-Bowl {
  display: none;
}
.Cooking[data-method=pan] .Cooking-Pan {
  display: block;
}
.Cooking[data-method=pan] .Cooking-MixSettings {
  display: none;
}
.Cooking[data-method=pan] .Cooking-HeatSettings {
  display: flex;
}
.Cooking[data-method=pan] .Cooking-MixButton {
  display: none;
}
.Cooking[data-method=bowl] .Cooking-HeatButton {
  display: none;
}
.Cooking[data-heating] .Cooking-Pan-Flame {
  opacity: 1;
}
.Cooking[data-heating] .Cooking-Pan-Steam {
  opacity: 1;
}
.Cooking[data-heating] .Cooking-Pan-Food {
  animation: cooking-sizzle var(--sizzle-seconds, 0.4s) ease-in-out infinite;
}
.Cooking[data-heating] .Cooking-Pan-Browned, .Cooking[data-cooked] .Cooking-Pan-Browned {
  opacity: 0.92;
}

@keyframes cooking-spatula-drop {
  0% {
    transform: translateY(-46px) rotate(28deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotate(28deg);
    opacity: 1;
  }
}
@keyframes cooking-spatula-fold {
  0% {
    transform: translate(-14px, -6px) rotate(34deg);
  }
  30% {
    transform: translate(-4px, 6px) rotate(10deg);
  }
  50% {
    transform: translate(8px, 8px) rotate(-10deg);
  }
  70% {
    transform: translate(14px, 2px) rotate(-30deg);
  }
  85% {
    transform: translate(2px, -4px) rotate(0deg);
  }
  100% {
    transform: translate(-14px, -6px) rotate(34deg);
  }
}
@keyframes cooking-swirl {
  0% {
    transform: translateX(-8px) scaleX(0.88);
  }
  50% {
    transform: translateX(8px) scaleX(1.08);
  }
  100% {
    transform: translateX(-8px) scaleX(0.88);
  }
}
@keyframes cooking-grain-fall {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(118px);
    opacity: 0;
  }
}
@keyframes cooking-egg-fall {
  0% {
    transform: translateY(-4px) rotate(-8deg) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    transform: translateY(108px) rotate(6deg) scale(1);
    opacity: 1;
  }
  85% {
    transform: translateY(120px) rotate(0deg) scaleY(0.7) scaleX(1.25);
    opacity: 1;
  }
  100% {
    transform: translateY(120px) scaleY(0.4) scaleX(1.4);
    opacity: 0;
  }
}
@keyframes cooking-stream-flow {
  0% {
    height: 0;
    opacity: 0;
  }
  20% {
    height: 116px;
    opacity: 0.85;
  }
  75% {
    height: 116px;
    opacity: 0.85;
  }
  100% {
    height: 116px;
    opacity: 0;
  }
}
@keyframes cooking-chunk-fall {
  0% {
    transform: translateY(-6px) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    transform: translateY(104px) rotate(var(--spin, 20deg));
    opacity: 1;
  }
  85% {
    transform: translateY(116px) rotate(var(--spin, 20deg)) scaleY(0.78) scaleX(1.18);
    opacity: 1;
  }
  100% {
    transform: translateY(116px) rotate(var(--spin, 20deg)) scaleY(0.66) scaleX(1.26);
    opacity: 0;
  }
}
@keyframes cooking-sheet-fall {
  0% {
    transform: translate(0, -6px) rotate(-8deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  30% {
    transform: translate(calc(var(--sway, 14px) * -1), 30px) rotate(12deg);
  }
  55% {
    transform: translate(var(--sway, 14px), 62px) rotate(-10deg);
  }
  80% {
    transform: translate(calc(var(--sway, 14px) * -1), 92px) rotate(9deg);
  }
  100% {
    transform: translate(0, 116px) rotate(0deg);
    opacity: 0;
  }
}
@keyframes cooking-flame-flicker {
  0% {
    transform: scaleY(1) scaleX(1);
    opacity: 0.92;
  }
  50% {
    transform: scaleY(1.18) scaleX(0.9);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.9) scaleX(1.06);
    opacity: 0.85;
  }
}
@keyframes cooking-sizzle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes cooking-steam {
  0% {
    transform: translateY(8px);
    opacity: 0;
  }
  40% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-16px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .Cooking-Grain, .Cooking-Egg, .Cooking-Stream, .Cooking-Chunk, .Cooking-Sheet {
    animation-duration: 0.01s;
  }
  .Cooking-Pan-FlameTongue, .Cooking-Pan-SteamWisp {
    animation: none;
  }
  .Cooking[data-heating] .Cooking-Pan-Food {
    animation: none;
  }
}
.SinglePanel {
  position: fixed;
  z-index: 30;
  width: max-content;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(120, 100, 70, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.SinglePanel-Header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.SinglePanel-Title {
  display: flex;
  align-items: center;
  height: 34px;
  color: #9a8f7c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.SinglePanel-Title[data-end] {
  padding: 0 16px;
}
.SinglePanel-CloseIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #b5a994;
  cursor: pointer;
}
.SinglePanel-CloseIcon svg {
  width: 10px;
}
.SinglePanel-Main {
  padding: 0;
}

.HintPanel {
  top: 24px;
  right: 24px;
}

.TextBlock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 264px;
  max-width: 100%;
  padding: 2px 18px 18px;
}
.TextBlock h1 {
  color: #3a342b;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.TextBlock p {
  color: #6b6256;
  font-size: 13px;
  line-height: 21px;
}

@media (max-width: 760px) {
  .HintPanel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-height: 46vh;
    overflow-y: auto;
  }
  .TextBlock {
    width: auto;
  }
}