:root {
  color-scheme: light;
  --paper: #f8f1df;
  --ink: #293e49;
  --red: #b74432;
  --sage: #718369;
  --muted: #6d746d;
  --line: #d8d1be;
  --gold: #e9b85e;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23776a4d' opacity='.035' filter='url(%23n)' d='M0 0h140v140H0z'/%3E%3C/svg%3E");
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
button {
  transition:
    transform 0.15s,
    background 0.15s;
}
button:active:not(:disabled) {
  translate: 0 2px;
}
button svg {
  pointer-events: none;
}
svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.page-shell {
  max-width: 1248px;
  margin: auto;
  padding: 0 48px;
}
.masthead {
  min-height: 106px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.5;
}
.brand b {
  font-size: 14px;
  letter-spacing: 2px;
}
.edition {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}
.tools {
  display: flex;
  gap: 8px;
}
.tool {
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tool svg {
  width: 18px;
  height: 18px;
}
.tool.language {
  font-size: 11px;
  font-weight: 700;
}
.tool:disabled {
  opacity: 0.35;
}
.tool[aria-pressed="false"] {
  opacity: 0.55;
  text-decoration: line-through;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 0 32px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.red-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 4.4vw, 61px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-top: 12px;
}
em {
  font-weight: 400;
  color: var(--red);
}
.intro p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 340px;
  padding-top: 24px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  gap: 28px;
  align-items: start;
}
.game {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 0 #293e490c;
  background: #fbf6e9;
}
.shift-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 23px;
  background: #fbf6e9;
}
.shift-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.stat svg {
  width: 22px;
  height: 22px;
}
.timer span {
  font-size: 8px;
  letter-spacing: 1px;
}
.timer.urgent {
  color: var(--red);
}
.moon-scene {
  height: 250px;
  background: #263e4b;
  position: relative;
  overflow: hidden;
}
.star {
  position: absolute;
  color: #e0c893;
  font-size: 18px;
}
.star-a {
  top: 23px;
  left: 34%;
}
.star-b {
  top: 40px;
  right: 12%;
  font-size: 12px;
}
.star-c {
  top: 12px;
  right: 35%;
  font-size: 25px;
}
.star-d {
  top: 59px;
  left: 46%;
}
.star-e {
  top: 80px;
  left: 7%;
  font-size: 11px;
}
.earth {
  position: absolute;
  top: 22px;
  left: 35px;
  width: 45px;
  height: 45px;
  overflow: hidden;
  border: 2px solid #b3c5b2;
  border-radius: 50%;
  background: #80a4a6;
  padding: 0;
  transform: rotate(-20deg);
}
.earth:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -9px -2px 0 #263e4b40;
  border-radius: 50%;
}
.earth-land {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 21px;
  height: 18px;
  border-radius: 40% 10% 70% 50%;
  background: #c1cc9d;
  transform: rotate(30deg);
}
.earth-land:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 15px;
  top: 23px;
  left: 5px;
  background: #c1cc9d;
  border-radius: 20% 60% 20% 80%;
}
.orbit-label {
  position: absolute;
  right: 19px;
  top: 74px;
  color: #bec8bb;
  font-size: 7px;
  letter-spacing: 1.8px;
}
.landscape {
  position: absolute;
  width: 100%;
  height: 160px;
  bottom: 0;
}
.stall-sign {
  position: absolute;
  top: 98px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--paper);
  font-weight: 800;
  border: 1px solid #d3bda5;
  background: var(--red);
  padding: 9px 16px;
  z-index: 2;
  box-shadow: 3px 3px 0 #0002;
}
.stall-sign > span:first-child,
.stall-sign > span:last-child {
  color: #f1c46d;
  margin: 0 6px;
}
.awning {
  position: absolute;
  bottom: 0;
  height: 13px;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(
    90deg,
    #bd5742 0,
    #bd5742 38px,
    #f3dfba 38px,
    #f3dfba 76px
  );
  z-index: 4;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.guests {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 11px;
  height: 116px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: end;
  z-index: 3;
}
.guest {
  position: relative;
  border: 0;
  background: none;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0;
  padding: 0;
  width: 31%;
  height: 115px;
  border-radius: 10px 10px 0 0;
  min-width: 0;
}
.guest.selected {
  background: #f8f1df17;
}
.guest svg.person {
  height: 103px;
  width: 91px;
  flex-shrink: 0;
}
.ticket {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 6px 8px;
  width: 111px;
  box-shadow: 2px 2px 0 #0002;
  z-index: 4;
}
.guest.selected .ticket {
  outline: 2px solid #e7b95e;
  outline-offset: 2px;
}
.ticket:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 48%;
  width: 8px;
  height: 8px;
  background: var(--paper);
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.guest-name {
  display: block;
  font-size: 8px;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipe-icons {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 3px 0;
}
.recipe-icons svg {
  width: 23px;
  height: 23px;
}
.patience {
  display: block;
  height: 3px;
  background: #ddd8c6;
  border-radius: 2px;
  overflow: hidden;
}
.patience i {
  display: block;
  height: 100%;
  background: var(--sage);
  width: 100%;
}
.guest.impatient .patience i {
  background: var(--red);
}
.scene-note {
  position: absolute;
  bottom: 39px;
  left: 10px;
  right: 10px;
  text-align: center;
  color: var(--paper);
  font-size: 11px;
}
.counter {
  padding: 19px 22px 20px;
  background: #fbf6e9;
}
.counter-heading,
.ingredient-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.counter-number {
  font-size: 8px;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.streak {
  font-size: 8px;
  color: var(--red);
  letter-spacing: 1px;
}
.cook-area {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0 20px;
}
.pan-station {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
}
.pan {
  position: relative;
  width: 190px;
  height: 150px;
  background: transparent;
  border: 0;
  isolation: isolate;
}
.pan-handle {
  position: absolute;
  width: 79px;
  height: 22px;
  top: 101px;
  left: 119px;
  border: 3px solid var(--ink);
  background: #b9855d;
  border-radius: 5px;
  transform: rotate(33deg);
  z-index: -1;
}
.pan-handle:after {
  content: "";
  position: absolute;
  right: 7px;
  top: 5px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.pan-rim {
  position: absolute;
  left: 8px;
  top: 0;
  width: 151px;
  height: 137px;
  border-radius: 50%;
  background: #344b54;
  box-shadow:
    inset 0 0 0 5px #293e49,
    inset 0 0 0 8px #55656a,
    0 5px 0 #21333b;
  display: grid;
  place-items: center;
}
.pancake {
  display: none;
  width: 108px;
  height: 98px;
  border: 2px solid #b67936;
  border-radius: 48%;
  background: #efd79b;
  position: relative;
  box-shadow: inset 0 0 0 5px #e9c681;
  transition: background 0.3s;
}
.pancake.visible {
  display: block;
}
.pancake.golden {
  background: #e7b665;
  box-shadow: inset 0 0 0 5px #dca050;
}
.pancake.burnt {
  background: #6d5145;
  box-shadow: inset 0 0 0 5px #513f39;
  border-color: #513f39;
}
.pancake:before,
.pancake:after {
  content: "";
  position: absolute;
  width: 11px;
  height: 8px;
  border-radius: 50%;
  background: #a96c3440;
  top: 20px;
  left: 25px;
}
.pancake:after {
  top: 65px;
  left: 70px;
  width: 7px;
  height: 6px;
}
.pancake-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.pancake-face i {
  width: 4px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  margin-top: 1px;
}
.pancake-face b {
  position: absolute;
  top: 53px;
  left: 47px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--ink);
  border-radius: 50%;
}
.pancake.burnt .pancake-face b {
  transform: rotate(180deg);
}
.pan-empty {
  position: absolute;
  left: 27px;
  top: 40px;
  color: #f2e7cb;
  display: flex;
  flex-direction: column;
  width: 115px;
  font-size: 10px;
  gap: 4px;
}
.pan-empty > span:first-child {
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
}
.pan-caption {
  font-size: 8px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
.cook-controls {
  min-width: 0;
}
.step-caption {
  font-size: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 7px;
}
.cook-controls h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  margin-bottom: 7px;
}
.cook-controls p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 32px;
}
.heat-meter {
  height: 9px;
  position: relative;
  margin-top: 12px;
}
.heat-zones {
  position: absolute;
  inset: 0;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  background: #e4d8b8;
}
.heat-zones span:nth-child(1) {
  width: 38.3%;
  background: #ddd7b8;
}
.heat-zones span:nth-child(2) {
  width: 20%;
  background: #8fa47c;
}
.heat-zones span:nth-child(3) {
  flex: 1;
  background: #db9d7b;
}
.heat-meter > i {
  position: absolute;
  left: 0;
  top: -3px;
  height: 15px;
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
}
.heat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  margin: 5px 0 9px;
  color: var(--muted);
}
.flip-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: #ede5d1;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
}
.flip-button:not(:disabled):hover {
  background: #e2d5b7;
}
.flip-button:disabled {
  opacity: 0.45;
}
.ingredient-heading {
  padding-top: 16px;
  border-top: 1px dashed #cfc8b6;
}
.ingredient-heading > span:last-child {
  font-size: 8px;
  color: var(--muted);
}
.ingredients {
  display: flex;
  gap: 9px;
  margin: 11px 0 15px;
}
.ingredient {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 57px;
  border: 1px solid #cfc8b6;
  border-radius: 5px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 6px;
}
.ingredient > svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.ingredient > span:not(.check) {
  font-size: 9px;
  font-weight: 600;
}
.ingredient kbd {
  font-size: 8px;
  color: #8a8e7e;
  position: absolute;
  top: 4px;
  right: 5px;
  font-family: inherit;
}
.ingredient:disabled {
  opacity: 0.5;
}
.ingredient[aria-pressed="true"] {
  background: #e5eadb;
  border-color: var(--sage);
  box-shadow: inset 0 0 0 1px var(--sage);
}
.check {
  display: none;
  position: absolute;
  right: -4px;
  top: -5px;
  width: 15px;
  height: 15px;
  background: var(--sage);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  line-height: 15px;
}
.ingredient[aria-pressed="true"] .check {
  display: block;
}
.serve-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.discard {
  background: none;
  border: 0;
  font-size: 10px;
  min-height: 44px;
  color: var(--muted);
  padding: 8px 4px;
  white-space: nowrap;
}
.primary {
  background: var(--red);
  color: #fff5e4;
  border: 1px solid #923a2a;
  box-shadow: 0 3px 0 #903826;
  border-radius: 5px;
  min-height: 46px;
  padding: 12px 23px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.primary:hover {
  background: #a83c2c;
}
.primary:disabled {
  background: #c8b9a0;
  border-color: #c8b9a0;
  box-shadow: 0 3px 0 #b9aa91;
  color: #fff9ed;
}
.serve {
  flex: 1;
  justify-content: space-between;
}
.note-card {
  padding: 23px 22px 0;
  border: 1px solid #cfc8b6;
  background: #f2e9d4;
  border-radius: 3px;
  position: relative;
}
.note-card:before {
  content: "";
  width: 58px;
  height: 18px;
  position: absolute;
  left: calc(50% - 29px);
  top: -9px;
  transform: rotate(-4deg);
  background: #e3d5b9bd;
}
.note-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.note-card h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.13;
  margin-top: 15px;
  letter-spacing: -0.8px;
}
.note-illustration {
  height: 93px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 7px 0;
}
.note-illustration img {
  height: 86px;
  width: 86px;
  transform: rotate(-10deg);
}
.scribble {
  position: absolute;
  right: 21px;
  top: 16px;
  font-family: Georgia, serif;
  font-size: 36px;
  transform: rotate(20deg);
  color: var(--red);
}
.how-to {
  list-style: none;
  padding: 0;
  margin: 0;
}
.how-to li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.how-to li > span {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--red);
  font-size: 19px;
  line-height: 1.2;
}
.how-to b {
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
}
.how-to p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.note-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px dashed #c9bda4;
  padding: 15px 0;
  font-size: 9px;
  color: var(--muted);
}
.note-bottom svg {
  width: 15px;
  height: 15px;
  color: var(--red);
}
.record {
  padding: 24px 3px 0;
}
.record > span {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
}
.record > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.record b {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}
.record > div > span {
  font-size: 10px;
  color: var(--muted);
}
.keyboard-hint {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  margin: 16px 3px;
}
.toast {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 252px;
  transform: translate(-50%, 8px);
  background: var(--ink);
  color: #fff7e4;
  border-radius: 5px;
  padding: 10px 16px;
  font-size: 11px;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
  box-shadow: 0 3px 10px #0002;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.on-pancake {
  position: absolute;
  inset: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: none;
  opacity: 0.9;
}
.on-pancake svg {
  width: 27px;
  height: 27px;
}
.on-pancake:not(:empty) ~ .pancake-face {
  display: none;
}
.pancake.flipping {
  animation: flip 0.75s ease-in-out;
}
.cameo {
  position: absolute;
  bottom: 10px;
  right: 4px;
  z-index: 6;
  pointer-events: none;
}
.cameo > svg {
  width: 66px;
  height: 75px;
  --suit: #f2ced0;
  --face: #fff3de;
}
.cameo > span:last-child {
  position: absolute;
  right: 5px;
  bottom: 74px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 6px;
  width: 130px;
  border-radius: 5px;
  text-align: center;
  font-size: 9px;
}
.bunny-ears {
  position: absolute;
  top: -13px;
  left: 24px;
  width: 9px;
  height: 25px;
  background: #f2ced0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-15deg);
}
.bunny-ears:after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 6px;
  height: 20px;
  border: 2px solid var(--ink);
  background: #f2ced0;
  border-radius: 50%;
  transform: rotate(30deg);
}
.coin-pop {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 190px;
  color: #f7d58a;
  font-weight: 800;
  font-size: 21px;
  pointer-events: none;
  animation: coin 1s ease-out forwards;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 20px 0 27px;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: var(--muted);
}
dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 9px 0 #172e3a3d;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
dialog::backdrop {
  background: #1c303bbd;
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 32px 30px 25px;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--muted);
}
.modal-icon {
  display: block;
  margin: 0 auto 17px;
  transform: rotate(-7deg);
}
dialog .eyebrow {
  justify-content: center;
  font-size: 8px;
}
dialog h2 {
  font-family: Georgia, "Songti SC", serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -1px;
  margin: 14px 0;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 21px;
}
dialog .primary {
  width: 100%;
  margin: 10px 0 12px;
}
.secondary {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d0c7b2;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
}
.modal-footnote {
  display: block;
  margin-top: 17px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}
.result-stats {
  display: flex;
  justify-content: center;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 16px 0;
  gap: 25px;
  margin-bottom: 18px;
}
.result-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-stats b {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--red);
}
.result-stats span {
  font-size: 9px;
  color: var(--muted);
}
.noscript {
  padding: 30px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
html[lang="zh-CN"] h1 {
  letter-spacing: 1px;
  font-size: 48px;
  line-height: 1.18;
}
html[lang="zh-CN"] .note-card h2 {
  font-size: 25px;
  line-height: 1.4;
}
html[lang="zh-CN"] .eyebrow {
  letter-spacing: 1px;
}
html[lang="zh-CN"] .intro p {
  max-width: 300px;
}
@keyframes flip {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-80px) rotate(180deg) scale(0.9);
  }
}
@keyframes coin {
  to {
    transform: translateY(-55px) rotate(6deg);
    opacity: 0;
  }
}
@media (min-width: 1400px) {
  .page-shell {
    padding-top: 8px;
  }
  .intro {
    padding-top: 43px;
    padding-bottom: 38px;
  }
  .moon-scene {
    height: 266px;
  }
  .toast {
    top: 267px;
  }
}
@media (max-width: 1050px) {
  .page-shell {
    padding: 0 28px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 20px;
  }
  .counter {
    padding: 17px;
  }
  .note-card {
    padding: 23px 17px 0;
  }
  .note-card h2 {
    font-size: 24px;
  }
  .cook-area {
    grid-template-columns: 45% 1fr;
    gap: 10px;
  }
  .pan {
    transform: scale(0.88);
    margin: -8px -12px;
  }
  .ingredient {
    gap: 4px;
  }
  .ingredient > span:not(.check) {
    font-size: 8px;
  }
  .edition {
    display: none;
  }
  .intro p {
    font-size: 11px;
  }
  .cook-controls h2 {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .page-shell {
    padding: 0 20px;
  }
  .masthead {
    min-height: 82px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand {
    font-size: 10px;
    gap: 8px;
  }
  .brand b {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .note-card {
    padding: 19px 18px 0;
  }
  .note-card h2 {
    font-size: 23px;
  }
  .note-illustration {
    display: none;
  }
  .how-to {
    margin-top: 17px;
  }
  .record {
    padding: 22px 8px;
  }
  .keyboard-hint {
    display: none;
  }
  .intro {
    padding: 25px 0;
    gap: 18px;
  }
  .intro p {
    max-width: 210px;
    font-size: 10px;
    padding-top: 15px;
  }
  .intro h1 {
    font-size: 45px;
  }
  .intro .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .cook-area {
    grid-template-columns: 43% 1fr;
    gap: 15px;
  }
  .pan {
    transform: none;
    margin: 0;
  }
  .counter {
    padding: 18px 22px;
  }
  .cook-controls h2 {
    font-size: 25px;
  }
  .ingredient > span:not(.check) {
    font-size: 10px;
  }
  .moon-scene {
    height: 245px;
  }
  .toast {
    top: 244px;
  }
}
@media (max-width: 480px) {
  .page-shell {
    padding: 0 14px;
  }
  .masthead {
    min-height: 74px;
  }
  .tools {
    gap: 6px;
  }
  .tool {
    min-width: 44px;
    height: 44px;
  }
  .brand {
    letter-spacing: 2px;
  }
  .intro {
    padding: 23px 3px 22px;
    display: block;
  }
  .intro h1 {
    font-size: 44px;
    letter-spacing: -1.5px;
  }
  .intro p {
    max-width: none;
    font-size: 10px;
    padding-top: 11px;
    line-height: 1.7;
  }
  .intro p br {
    display: none;
  }
  .intro .eyebrow {
    font-size: 7px;
  }
  .workspace {
    gap: 25px;
  }
  .shift-bar {
    padding: 0 13px;
    gap: 13px;
    height: 43px;
  }
  .shift-label {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .timer span {
    display: none;
  }
  .stat {
    font-size: 14px;
  }
  .moon-scene {
    height: 224px;
  }
  .orbit-label {
    font-size: 6px;
    right: 13px;
    top: 63px;
    letter-spacing: 0.8px;
  }
  .earth {
    left: 24px;
    top: 19px;
    width: 44px;
    height: 44px;
  }
  .stall-sign {
    top: 82px;
    font-size: 8px;
    padding: 8px;
    letter-spacing: 1px;
  }
  .stall-sign > span:first-child,
  .stall-sign > span:last-child {
    margin: 0 4px;
  }
  .guests {
    left: 10px;
    right: 10px;
    gap: 3px;
    height: 109px;
  }
  .guest {
    width: 32%;
  }
  .guest svg.person {
    height: 91px;
    width: 80px;
  }
  .ticket {
    width: 91px;
    top: -6px;
    padding: 5px 6px;
  }
  .recipe-icons svg {
    width: 20px;
    height: 20px;
  }
  .guest-name {
    font-size: 7px;
  }
  .counter {
    padding: 16px 13px;
  }
  .counter-number {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .streak {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .cook-area {
    grid-template-columns: 43% minmax(0, 1fr);
    gap: 11px;
    margin-top: 16px;
    margin-bottom: 17px;
  }
  .pan {
    transform: scale(0.76);
    margin: -18px -23px;
    width: 190px;
    flex-shrink: 0;
  }
  .pan-station {
    min-height: 137px;
    justify-content: center;
  }
  .pan-caption {
    font-size: 7px;
    line-height: 1.4;
    max-width: 112px;
    margin-top: 14px;
  }
  .cook-controls h2 {
    font-size: 21px;
  }
  .cook-controls p {
    font-size: 9px;
    min-height: 30px;
  }
  .step-caption {
    font-size: 7px;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
  }
  .heat-meter {
    margin-top: 8px;
  }
  .heat-labels {
    font-size: 6px;
    margin: 4px 0 8px;
  }
  .flip-button {
    min-height: 44px;
    font-size: 10px;
    padding: 8px 10px;
  }
  .ingredient-heading {
    padding-top: 13px;
  }
  .ingredient-heading > span:last-child {
    font-size: 7px;
  }
  .ingredients {
    gap: 6px;
    margin: 11px 0;
  }
  .ingredient {
    flex-direction: column;
    gap: 4px;
    min-height: 69px;
    padding: 8px 2px;
  }
  .ingredient > span:not(.check) {
    font-size: 8px;
  }
  .ingredient > svg {
    width: 27px;
    height: 27px;
  }
  .ingredient kbd {
    display: none;
  }
  .serve-row {
    gap: 12px;
  }
  .serve {
    min-height: 47px;
    font-size: 11px;
    padding: 10px 16px;
  }
  .discard {
    font-size: 9px;
  }
  .sidebar {
    grid-template-columns: minmax(0, 1fr) 107px;
    gap: 12px;
  }
  .note-card {
    padding: 19px 15px 0;
  }
  .note-card h2 {
    font-size: 22px;
  }
  .note-card .eyebrow {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .how-to {
    margin-top: 15px;
  }
  .how-to li {
    gap: 8px;
    margin-bottom: 13px;
  }
  .how-to b {
    font-size: 9px;
  }
  .how-to p {
    font-size: 9px;
    line-height: 1.6;
  }
  .how-to li > span {
    font-size: 16px;
  }
  .note-bottom {
    font-size: 8px;
    gap: 6px;
    padding: 12px 0;
  }
  .record {
    padding: 16px 0 0;
  }
  .record > span {
    font-size: 6px;
    letter-spacing: 0.7px;
    line-height: 1.7;
    display: block;
  }
  .record > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .record b {
    font-size: 28px;
  }
  .record > div > span {
    font-size: 8px;
  }
  .record svg {
    width: 20px;
    height: 20px;
  }
  footer {
    margin-top: 23px;
    padding: 17px 0 21px;
    font-size: 6px;
    letter-spacing: 0.6px;
    line-height: 1.8;
  }
  footer > span:last-child {
    max-width: 110px;
    text-align: right;
  }
  .toast {
    top: 218px;
    font-size: 10px;
    padding: 9px 13px;
    width: max-content;
    max-width: 92%;
  }
  html[lang="zh-CN"] h1 {
    font-size: 40px;
  }
  html[lang="zh-CN"] .cook-controls h2 {
    font-size: 20px;
  }
  html[lang="zh-CN"] .note-card h2 {
    font-size: 20px;
  }
  .cameo > svg {
    width: 53px;
    height: 65px;
  }
  .cameo > span:last-child {
    bottom: 64px;
    font-size: 8px;
    width: 115px;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  .masthead {
    min-height: 65px;
  }
  .intro {
    padding: 18px 0;
  }
  .intro h1 {
    font-size: 36px;
  }
  .moon-scene {
    height: 220px;
  }
  dialog form {
    padding: 20px;
  }
  .modal-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  dialog h2 {
    font-size: 29px;
    margin: 8px 0;
  }
  dialog p {
    margin-bottom: 10px;
  }
}
@media (min-width: 481px) {
  .is-playing .intro {
    padding: 19px 0;
  }
  .is-playing .intro .eyebrow {
    display: none;
  }
  .is-playing .intro h1 {
    font-size: 35px;
    margin: 0;
    letter-spacing: -1px;
  }
  .is-playing .intro h1 br {
    display: none;
  }
  .is-playing .intro h1 em {
    margin-left: 7px;
  }
  .is-playing .intro p {
    padding-top: 0;
    font-size: 10px;
  }
  .is-playing .moon-scene {
    height: 220px;
  }
  .is-playing .stall-sign {
    top: 69px;
  }
  .is-playing .orbit-label {
    top: 43px;
  }
  html[lang="zh-CN"] .is-playing .intro h1 {
    font-size: 32px;
  }
  .is-playing .toast {
    top: 220px;
  }
}
@media (min-width: 481px) and (max-width: 1050px) {
  .is-playing .masthead {
    min-height: 78px;
  }
  .is-playing .intro {
    padding: 10px 0;
  }
  .is-playing .intro p {
    display: none;
  }
  .is-playing .intro h1 {
    font-size: 31px;
  }
  .is-playing .moon-scene {
    height: 190px;
  }
  .is-playing .stall-sign {
    top: 44px;
  }
  .is-playing .orbit-label {
    top: 28px;
  }
  .is-playing .earth {
    top: 12px;
  }
  .is-playing .toast {
    top: 190px;
  }
}
@media (max-height: 500px) and (min-width: 600px) {
  .is-playing .masthead {
    min-height: 50px;
  }
  .is-playing .brand img {
    width: 31px;
    height: 31px;
  }
  .is-playing .intro,
  .is-playing .sidebar {
    display: none;
  }
  .is-playing .workspace {
    display: block;
    margin-top: 4px;
  }
  .is-playing .game {
    display: grid;
    grid-template-columns: 40% 60%;
    overflow: hidden;
  }
  .is-playing .shift-bar {
    grid-column: 1/-1;
    height: 33px;
  }
  .is-playing .moon-scene {
    height: 100%;
    min-height: 260px;
  }
  .is-playing .stall-sign {
    font-size: 7px;
    top: 43px;
    padding: 6px;
  }
  .is-playing .orbit-label {
    font-size: 5px;
    top: 18px;
    right: 10px;
    max-width: 140px;
  }
  .is-playing .earth {
    width: 31px;
    height: 31px;
    left: 15px;
    top: 10px;
  }
  .is-playing .counter {
    padding: 11px 14px;
    border-left: 1px solid var(--ink);
  }
  .is-playing .cook-area {
    grid-template-columns: 39% 1fr;
    margin: 7px 0 9px;
    gap: 10px;
  }
  .is-playing .pan {
    transform: scale(0.7);
    margin: -22px -28px;
  }
  .is-playing .pan-station {
    min-height: 110px;
  }
  .is-playing .pan-caption {
    font-size: 7px;
    margin-top: 4px;
  }
  .is-playing .cook-controls h2 {
    font-size: 19px;
  }
  .is-playing .cook-controls p {
    font-size: 8px;
    min-height: 26px;
  }
  .is-playing .step-caption {
    font-size: 6px;
  }
  .is-playing .heat-meter {
    margin-top: 6px;
  }
  .is-playing .heat-labels {
    margin-bottom: 6px;
    font-size: 6px;
  }
  .is-playing .flip-button {
    min-height: 36px;
    font-size: 9px;
  }
  .is-playing .ingredient-heading {
    padding-top: 9px;
  }
  .is-playing .ingredients {
    margin: 8px 0;
  }
  .is-playing .ingredient {
    min-height: 44px;
    padding: 5px;
    gap: 5px;
  }
  .is-playing .ingredient > svg {
    width: 23px;
    height: 23px;
  }
  .is-playing .ingredient > span:not(.check) {
    font-size: 8px;
  }
  .is-playing .ingredient kbd {
    display: none;
  }
  .is-playing .serve {
    min-height: 39px;
    font-size: 10px;
  }
  .is-playing .discard {
    min-height: 39px;
  }
  .is-playing .guests {
    left: 8px;
    right: 8px;
    gap: 0;
  }
  .is-playing .guest {
    width: 32%;
  }
  .is-playing .guest svg.person {
    width: 73px;
  }
  .is-playing .ticket {
    width: 82px;
    top: -4px;
  }
  .is-playing .recipe-icons svg {
    width: 19px;
    height: 19px;
  }
  .is-playing .toast {
    top: 51%;
    max-width: 60%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .pancake.flipping {
    outline: 3px solid #e9b85e;
  }
  .coin-pop {
    display: none;
  }
}

@media (max-width: 480px) {
  .is-playing .intro {
    padding: 14px 3px;
  }
  .is-playing .intro .eyebrow,
  .is-playing .intro p {
    display: none;
  }
  .is-playing .intro h1 {
    font-size: 24px;
    letter-spacing: -0.7px;
    margin: 0;
  }
  .is-playing .intro h1 br {
    display: none;
  }
  .is-playing .intro h1 em {
    margin-left: 6px;
  }
  html[lang="zh-CN"] .is-playing .intro h1 {
    font-size: 23px;
  }
  .is-playing .moon-scene {
    height: 207px;
  }
  .is-playing .stall-sign {
    top: 66px;
  }
  .is-playing .orbit-label {
    top: 48px;
  }
  .is-playing .toast {
    top: 201px;
  }
  .is-playing .counter {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .is-playing .cook-area {
    margin: 11px 0 13px;
  }
}
