:root {
  font-family:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",sans-serif;
  color:#334c40;
  background:#f7f1e5;
  font-synthesis:none;
  --ink:#334c40;
  --coral:#c56349;
  --green:#49775d;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  font:inherit;
  cursor:pointer;
  touch-action:manipulation;
}

button:focus-visible,a:focus-visible {
  outline:4px solid #ad583c;
  outline-offset:5px;
}

button:disabled {
  cursor:default;
}

button {
  color:inherit;
}

button:active:not(:disabled) {
  transform:translateY(2px);
}

[hidden] {
  display:none!important;
}

.art-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.game-shell {
  max-width:1200px;
  margin:0 auto;
  padding:25px 34px 15px;
}

.topbar {
  margin-bottom:25px;
}

.brand {
  display:flex;
  align-items:center;
  gap:16px;
}

.brand-icon {
  display:grid;
  place-items:center;
  width:57px;
  height:57px;
  background:#eac7a8;
  border-radius:18px;
  font-size:37px;
  color:#a5523c;
}

.eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
  margin:0 0 6px;
  text-transform:uppercase;
}

h1 {
  font-size:30px;
  letter-spacing:-1px;
  margin:0;
  font-weight:900;
}

.win-count {
  display:flex;
  align-items:center;
  gap:9px;
  background:#fffaf0;
  border:1px solid #e8ddc7;
  padding:13px 17px;
  border-radius:30px;
  font-size:13px;
}

.win-count>span:first-child {
  font-size:26px;
  color:#bd8734;
}

.win-count strong {
  font-size:23px;
}

.topbar .home-link {
  border:1px solid #e1d7c5;
  border-radius:50%;
  background:#fffaf0;
  box-shadow:none;
  color:#465e4d;
  width:44px;
  height:44px;
  font-weight:400;
}

.kitchen {
  position:relative;
  height:400px;
  overflow:hidden;
  border-radius:24px 24px 0 0;
  border:1px solid #e3d7bd;
  background-color:#f1e6cf;
  background-image:linear-gradient(#dccdb255 1px,transparent 1px),linear-gradient(90deg,#dccdb255 1px,transparent 1px);
  background-size:62px 62px;
}

.kitchen-label {
  position:absolute;
  top:23px;
  left:28px;
  font-size:10px;
  letter-spacing:2px;
  font-weight:800;
}

.kitchen-label span {
  display:block;
  font-size:11px;
  font-weight:400;
  letter-spacing:.3px;
  margin-top:6px;
  color:#817961;
}

.window {
  position:absolute;
  left:26px;
  top:93px;
  width:156px;
  height:174px;
  border:10px solid #fffcf0;
  border-radius:70px 70px 8px 8px;
  background:#d8e8e3;
  box-shadow:0 0 0 2px #d9cdb6;
  overflow:hidden;
}

.window:before,.window:after {
  content:"";
  position:absolute;
  background:#fffcf0;
  z-index:1;
}

.window:before {
  left:50%;
  top:0;
  width:7px;
  height:100%;
}

.window:after {
  top:54%;
  width:100%;
  height:7px;
}

.sun {
  width:42px;
  height:42px;
  position:absolute;
  left:16px;
  top:20px;
  background:#edc463;
  border-radius:50%;
}

.hill {
  position:absolute;
  width:230px;
  height:110px;
  border-radius:50%;
  background:#acc9a5;
  top:110px;
  left:-20px;
  transform:rotate(-20deg);
}

.shelf {
  position:absolute;
  right:43px;
  top:37px;
  display:flex;
  align-items:flex-end;
  gap:12px;
  width:205px;
  height:57px;
  border-bottom:9px solid #c89d6c;
  justify-content:center;
}

.shelf>span {
  font-size:65px;
  color:#778957;
  line-height:1;
}

.shelf i {
  width:31px;
  height:40px;
  border-radius:8px 8px 4px 4px;
  background:#ead2a1;
  border-top:7px solid #a4ad87;
}

.shelf i:nth-of-type(2) {
  height:31px;
  background:#cb8168;
  border-color:#a96f57;
}

.shelf b {
  display:grid;
  place-items:center;
  font-size:24px;
  background:#fffae7;
  width:39px;
  height:45px;
  border-radius:3px;
  color:#bb765b;
}

.counter {
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:54px;
  background:#c49a6d;
  border-top:14px solid #e0bb88;
  box-shadow:0 -3px 0 #a8845c33;
  z-index:2;
}

.counter:after {
  content:"";
  position:absolute;
  inset:17px 0 0;
  background:repeating-linear-gradient(90deg,transparent 0 190px,#a37c531f 190px 192px);
}

.chef-area {
  position:absolute;
  left:17%;
  bottom:27px;
  width:310px;
  height:335px;
  z-index:3;
}

.chef {
  width:100%;
  height:100%;
  overflow:visible;
}

.speech {
  position:absolute;
  z-index:5;
  left:-42px;
  top:-5px;
  width:208px;
  min-height:51px;
  border:1px solid #e0d5c1;
  background:#fffdf4;
  box-shadow:0 5px 0 #b7a68515;
  border-radius:18px;
  padding:12px 17px;
  margin:0;
  font-size:15px;
  line-height:1.3;
  text-align:center;
  transform:rotate(-4deg);
}

.speech:after {
  content:"";
  position:absolute;
  bottom:-8px;
  right:32px;
  width:14px;
  height:14px;
  background:#fffdf4;
  transform:skewY(-40deg);
  border-right:1px solid #e0d5c1;
}

.arm {
  transition:transform .5s cubic-bezier(.34,1.56,.64,1);
}

.arm-left {
  transform-origin:123px 228px;
}

.arm-right {
  transform-origin:217px 228px;
}

.sad-mouth {
  display:none;
}

.chef-body {
  transform-origin:170px 347px;
}

.game-shell[data-state="won"] .arm-left {
  transform:rotate(135deg);
}

.game-shell[data-state="won"] .arm-right {
  transform:rotate(-135deg);
}

.game-shell[data-state="won"] .chef-body {
  animation:cheer .65s ease-in-out 5;
}

.game-shell[data-state="burnt"] .smile {
  display:none;
}

.game-shell[data-state="burnt"] .sad-mouth {
  display:block;
}

.oven-area {
  position:absolute;
  right:8%;
  bottom:38px;
  width:370px;
  z-index:3;
}

.oven {
  position:relative;
  height:242px;
  background:#9cb49a;
  border:3px solid #779580;
  border-radius:28px 28px 14px 14px;
  box-shadow:inset 0 5px #c1d0b5,5px 7px 0 #4f61462a;
  padding:18px 18px 21px;
}

.oven-top {
  display:flex;
  align-items:center;
  gap:12px;
  height:37px;
  margin-bottom:13px;
}

.oven-name {
  font-size:16px;
  letter-spacing:1px;
  margin-right:auto;
  color:#355d48;
  font-weight:800;
}

.dial {
  width:31px;
  height:31px;
  background:#fff4d7;
  border:2px solid #e4d5b4;
  border-radius:50%;
  box-shadow:2px 2px 0 #5270543b;
}

.dial:after {
  content:"";
  display:block;
  width:3px;
  height:9px;
  background:#9a8e71;
  margin:3px auto;
  border-radius:3px;
}

.oven-light {
  width:11px;
  height:11px;
  background:#68846a;
  border-radius:50%;
}

.oven-door {
  position:relative;
  border:5px solid #587361;
  border-radius:13px;
  background:#6e8c75;
  height:153px;
  padding:19px 7px 7px;
  box-shadow:0 3px 0 #56735d;
}

.handle {
  position:absolute;
  top:0;
  left:33px;
  right:33px;
  height:10px;
  border-radius:8px;
  background:#e5d4af;
  box-shadow:0 3px #41563c88;
  z-index:4;
}

.oven-glass {
  position:relative;
  overflow:hidden;
  background:#424d40;
  height:117px;
  border-radius:7px;
  border:3px solid #374d3e;
  transition:background 1s;
}

.glass-shine {
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 45%,#ffffff09 45% 60%,transparent 60%);
  pointer-events:none;
}

.tray {
  position:absolute;
  bottom:15px;
  left:34px;
  right:34px;
  height:81px;
  transition:transform .55s;
  z-index:2;
}

.tray:after {
  content:"";
  position:absolute;
  bottom:0;
  left:-6px;
  right:-6px;
  height:10px;
  background:#b8b8a7;
  border:3px solid #71786e;
  border-radius:2px 2px 10px 10px;
}

.tray svg {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:6px;
  width:125px;
  height:97px;
  transition:filter 1s;
}

.game-shell[data-state="choose"] .tray {
  opacity:.25;
}

.game-shell[data-state="prep"] .tray {
  transform:scale(1.08);
}

.oven-feet:before,.oven-feet:after {
  content:"";
  position:absolute;
  bottom:-9px;
  width:34px;
  height:10px;
  background:#435a47;
  border-radius:0 0 5px 5px;
}

.oven-feet:before {
  left:28px;
}

.oven-feet:after {
  right:28px;
}

.oven-note {
  display:block;
  position:absolute;
  top:calc(100% + 18px);
  width:100%;
  text-align:center;
  font-size:11px;
  font-weight:700;
  letter-spacing:.5px;
  color:#554936;
  white-space:nowrap;
}

.heat-waves {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  font-size:38px;
  letter-spacing:25px;
  text-align:center;
  color:#ffdc9266;
  opacity:0;
  animation:waft 1.5s ease-in-out infinite;
}

.game-shell[data-state="baking"] .heat-waves,.game-shell[data-state="ready"] .heat-waves {
  opacity:1;
}

.game-shell[data-state="baking"] .oven-glass,.game-shell[data-state="ready"] .oven-glass {
  background:#82532d;
}

.game-shell[data-state="baking"] .oven-light {
  background:#ffd077;
  box-shadow:0 0 12px #ffca61;
}

.game-shell[data-state="ready"] .oven-light {
  background:#d1ffa1;
  box-shadow:0 0 15px #c9ff80;
}

.game-shell[data-state="ready"] .tray svg,.game-shell[data-state="won"] .tray svg {
  filter:sepia(.2) saturate(1.25);
}

.game-shell[data-state="won"] .oven-glass {
  background:#efd494;
}

.game-shell[data-state="won"] .tray {
  transform:scale(1.12);
}

.game-shell[data-state="burnt"] .tray svg {
  filter:brightness(.27) saturate(.3);
}

.game-shell[data-state="burnt"] .oven-glass {
  background:#656358;
}

.smoke {
  position:absolute;
  inset:0;
  display:none;
  z-index:4;
}

.game-shell[data-state="burnt"] .smoke {
  display:block;
}

.smoke i {
  position:absolute;
  left:35%;
  bottom:20px;
  width:37px;
  height:37px;
  border-radius:50%;
  background:#bcbdb280;
  animation:smoke 2.8s ease-out infinite;
}

.smoke i:nth-child(2) {
  left:50%;
  animation-delay:.7s;
}

.smoke i:nth-child(3) {
  left:60%;
  animation-delay:1.4s;
}

.topping-bits {
  position:absolute;
  left:50%;
  top:4px;
  width:100px;
  height:50px;
  transform:translateX(-50%);
  z-index:3;
}

.topping-bits span {
  position:absolute;
  font-size:12px;
  color:#fff0a6;
  text-shadow:0 1px #88663344;
}

.topping-bits.herbs span {
  color:#b8d883;
}

.topping-bits.cheese span {
  color:#ffe19a;
}

.topping-bits.sprinkling span {
  animation:sprinkle .5s both;
}

.game-shell[data-state="burnt"] .topping-bits {
  filter:brightness(.3);
}

.play-panel {
  position:relative;
  background:#fffdf7;
  border:1px solid #e5dcc9;
  border-top:0;
  border-radius:0 0 24px 24px;
  padding:25px 29px 26px;
  min-height:238px;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.panel-heading .eyebrow {
  color:#997147;
  font-size:9px;
}

h2 {
  font-size:25px;
  letter-spacing:-.5px;
  margin:0;
}

.tiny-flower {
  font-size:36px;
  color:#c98b60;
}

.food-options {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

.food-card {
  display:grid;
  grid-template-columns:76px 1fr;
  grid-template-rows:1fr 1fr;
  align-items:end;
  text-align:left;
  border:2px solid #e6dfca;
  background:#f7f3e5;
  border-radius:15px;
  padding:11px 10px 11px 5px;
  transition:transform .2s,background .2s,border-color .2s;
  min-height:104px;
}

.food-card svg {
  grid-row:1/3;
  width:76px;
  height:76px;
  align-self:center;
}

.food-card span {
  font-weight:900;
  font-size:17px;
}

.food-card small {
  font-size:10px;
  align-self:start;
  margin-top:5px;
  line-height:1.4;
  color:#80785d;
}

.food-card:hover {
  transform:translateY(-4px);
  background:#edf1dc;
  border-color:#839c70;
}

.food-card:nth-child(2) {
  background:#fcf0df;
}

.food-card:nth-child(3) {
  background:#f4eddf;
}

.food-card:nth-child(4) {
  background:#f9e9df;
}

.prep-row,.bake-row,.result-row {
  display:flex;
  gap:28px;
  align-items:center;
}

.sprinkle-options {
  display:flex;
  gap:12px;
  flex:1;
}

.sprinkle-options button {
  border:2px solid #e6dfca;
  border-radius:13px;
  background:#faf6ea;
  min-height:85px;
  padding:10px 15px;
  font-size:13px;
  font-weight:700;
  flex:1;
}

.sprinkle-options button span {
  display:block;
  font-size:29px;
  color:#bc883a;
  line-height:1.1;
  margin-bottom:5px;
}

.sprinkle-options button[aria-pressed="true"] {
  border-color:#648b63;
  background:#edf2dc;
  box-shadow:0 0 0 2px #648b6314;
}

.action-button {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  min-width:245px;
  min-height:79px;
  padding:15px 24px;
  border:0;
  border-radius:16px;
  background:var(--coral);
  color:#fffaf0;
  font-weight:900;
  font-size:23px;
  box-shadow:0 5px #934b37;
  transition:background .2s;
}

.action-button:hover {
  background:#ad563e;
}

.text-button {
  border:0;
  background:none;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:3px;
  margin-top:17px;
  padding:0;
  color:#80745b;
}

.quiet-button {
  border:1px solid #ded5bf;
  background:#faf6e9;
  border-radius:22px;
  padding:9px 15px;
  font-size:13px;
  min-height:42px;
}

.meter-wrap {
  flex:1;
  min-width:0;
}

.meter-labels {
  display:grid;
  grid-template-columns:40% 50% 10%;
  font-size:13px;
  font-weight:800;
  margin-bottom:12px;
}

.meter-labels span:nth-child(2) {
  text-align:center;
}

.meter-labels span:last-child {
  text-align:right;
}

.meter {
  display:flex;
  position:relative;
  height:30px;
  border-radius:12px;
  border:3px solid #fffcf1;
  box-shadow:0 0 0 1px #d6ccb6;
}

.zone:first-of-type {
  border-radius:8px 0 0 8px;
}

.zone:last-child {
  border-radius:0 8px 8px 0;
}

.baking-zone {
  background:#edca78;
  width:40%;
  border-radius:8px 0 0 8px;
}

.ready-zone {
  background:#7ca56b;
  width:50%;
  border-left:3px solid #fff8df;
  border-right:3px solid #fff8df;
}

.burnt-zone {
  background:#b0806e;
  width:10%;
}

.meter-marker {
  position:absolute;
  left:0;
  top:-15px;
  font-size:29px;
  line-height:1;
  color:#334c40;
  transform:translateX(-50%);
  z-index:2;
  text-shadow:0 -2px #fffdf7,2px 0 #fffdf7,-2px 0 #fffdf7;
}

.meter-wrap p {
  font-size:13px;
  margin:14px 0 0;
  color:#7b755e;
}

.game-shell[data-state="baking"] #take-out {
  font-size:20px;
  background:#e9dfc7;
  box-shadow:0 5px #c5bda8;
  color:#6d6d54;
}

.game-shell[data-state="ready"] #take-out {
  background:#4d8359;
  box-shadow:0 5px #335d3d;
  animation:ready-pulse 1s ease-in-out infinite;
}

.game-shell[data-state="ready"] .tiny-flower {
  color:#4d8359;
}

.game-shell[data-state="ready"] #bake-hint {
  color:#3d733f;
  font-weight:800;
}

.result-medal {
  width:77px;
  height:77px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f4da8e;
  color:#a5712e;
  font-size:47px;
  border:5px double #fff7d6;
  flex-shrink:0;
}

.result-row p {
  flex:1;
  max-width:500px;
  line-height:1.6;
  font-size:16px;
  margin:0;
}

.game-shell[data-state="burnt"] .result-medal {
  background:#e9dfd1;
  border-color:#fff6e7;
  color:#8b806c;
}

.game-shell[data-state="burnt"] .result-row .action-button {
  background:#557b62;
  box-shadow:0 5px #385340;
}

.confetti {
  position:absolute;
  inset:0;
  z-index:6;
  pointer-events:none;
  overflow:hidden;
}

.confetti i {
  position:absolute;
  left:var(--x);
  top:-25px;
  width:11px;
  height:17px;
  background:var(--c);
  border-radius:3px;
  animation:confetti var(--duration) var(--delay) ease-in forwards;
}

.pause-cover {
  position:absolute;
  inset:0;
  z-index:8;
  background:#f7f1e5f2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
}

.pause-cover>span {
  font-size:64px;
  color:#7e9b7b;
}

.pause-cover p {
  margin:0 0 10px;
}

.pause-cover button {
  background:#4c7457;
  color:white;
  border:0;
  border-radius:15px;
  padding:18px 28px;
  font-weight:800;
  font-size:20px;
}

.paused * {
  animation-play-state:paused!important;
}

.paused #take-out {
  pointer-events:none;
}

footer {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:#8d846d;
  padding:17px 4px;
  gap:16px;
  line-height:1.6;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@keyframes cheer {
  0%,100% {
    transform:translateY(0) rotate(-2deg);
  }
  50% {
    transform:translateY(-13px) rotate(2deg);
  }
}

@keyframes waft {
  50% {
    transform:translateY(-7px);
  }
}

@keyframes ready-pulse {
  50% {
    transform:scale(1.025);
    box-shadow:0 5px #335d3d,0 0 0 6px #7ca56b22;
  }
}

@keyframes smoke {
  to {
    transform:translate(8px,-90px) scale(2);
    opacity:0;
  }
}

@keyframes sprinkle {
  from {
    transform:translateY(-60px) rotate(90deg);
    opacity:0;
  }
  to {
    transform:translateY(0);
    opacity:1;
  }
}

@keyframes confetti {
  to {
    transform:translate(40px,440px) rotate(480deg);
    opacity:0;
  }
}

@media(min-width:1400px) {
  .game-shell {
    padding-top:35px;
  }
  .kitchen {
    height:440px;
  }
  .chef-area {
    height:365px;
    width:340px;
  }
  .oven-area {
    width:390px;
    bottom:42px;
  }
  .oven {
    height:255px;
  }
  .oven-door {
    height:166px;
  }
  .oven-glass {
    height:130px;
  }
  .play-panel {
    padding:29px 33px 32px;
  }
  .food-card {
    min-height:113px;
  }
}

@media(max-width:1000px) {
  .game-shell {
    padding:20px;
  }
  .chef-area {
    left:12%;
    width:280px;
    height:310px;
  }
  .oven-area {
    right:5%;
    width:330px;
  }
  .food-card {
    grid-template-columns:1fr;
    text-align:center;
    padding:5px 5px 12px;
  }
  .food-card svg {
    grid-row:auto;
    margin:auto;
    width:100%;
    height:65px;
  }
  .food-card small {
    display:none;
  }
  .food-card span {
    font-size:16px;
  }
  .speech {
    left:-20px;
    top:-13px;
    width:185px;
  }
  .window {
    left:20px;
    width:130px;
  }
  .action-button {
    min-width:210px;
    font-size:20px;
  }
  .sprinkle-options {
    gap:7px;
  }
  .sprinkle-options button {
    padding:10px 7px;
  }
  .prep-row,.bake-row,.result-row {
    gap:18px;
  }
}

@media(max-width:700px) {
  .game-shell {
    padding:13px 12px;
  }
  .topbar {
    margin-bottom:16px;
  }
  .brand {
    gap:10px;
  }
  .brand-icon {
    display:none;
  }
  h1 {
    font-size:25px;
  }
  .brand .eyebrow {
    font-size:8px;
    letter-spacing:1px;
  }
  .game-shell .topbar:has(>.home-link) {
    grid-template-columns:44px 1fr auto;
    gap:10px;
  }
  .topbar:has(>.home-link)>.win-count {
    grid-column:auto;
    justify-self:end;
  }
  .win-count {
    padding:6px 10px;
    gap:5px;
  }
  .win-count strong {
    font-size:18px;
  }
  .win-count>span:last-child {
    display:none;
  }
  .win-count>span:first-child {
    font-size:20px;
  }
  .kitchen {
    height:320px;
    border-radius:20px 20px 0 0;
  }
  .kitchen-label {
    font-size:8px;
    left:17px;
    top:17px;
  }
  .kitchen-label span {
    display:none;
  }
  .window {
    top:60px;
    left:15px;
    width:90px;
    height:130px;
    border-width:7px;
  }
  .sun {
    width:27px;
    height:27px;
  }
  .hill {
    top:78px;
  }
  .shelf {
    right:17px;
    top:19px;
    width:125px;
    height:40px;
    gap:5px;
  }
  .shelf>span {
    font-size:45px;
  }
  .shelf i {
    height:27px;
    width:20px;
  }
  .shelf i:nth-of-type(2) {
    height:23px;
  }
  .shelf b {
    height:31px;
    width:25px;
    font-size:18px;
  }
  .chef-area {
    left:4%;
    bottom:20px;
    width:230px;
    height:250px;
  }
  .speech {
    font-size:12px;
    width:156px;
    min-height:40px;
    left:7px;
    top:-3px;
    padding:9px 10px;
  }
  .oven-area {
    width:245px;
    right:4%;
    bottom:35px;
  }
  .oven {
    height:183px;
    padding:10px 12px 15px;
    border-radius:20px 20px 12px 12px;
  }
  .oven-top {
    height:28px;
    gap:7px;
    margin-bottom:9px;
  }
  .oven-name {
    font-size:12px;
  }
  .dial {
    height:23px;
    width:23px;
  }
  .oven-door {
    height:113px;
    padding:15px 4px 5px;
    border-width:4px;
  }
  .oven-glass {
    height:83px;
  }
  .tray {
    height:63px;
    left:18px;
    right:18px;
    bottom:8px;
  }
  .tray svg {
    width:95px;
    height:75px;
  }
  .topping-bits {
    width:75px;
    height:35px;
    top:3px;
  }
  .topping-bits span {
    font-size:9px;
  }
  .oven-note {
    font-size:8px;
    top:calc(100% + 14px);
  }
  .counter {
    height:44px;
    border-top-width:11px;
  }
  .play-panel {
    padding:21px 18px;
    min-height:250px;
  }
  .panel-heading {
    margin-bottom:18px;
  }
  h2 {
    font-size:23px;
  }
  .food-options {
    gap:8px;
  }
  .food-card {
    border-radius:13px;
    min-height:107px;
  }
  .food-card svg {
    height:64px;
  }
  .food-card span {
    font-size:13px;
  }
  .prep-row,.bake-row {
    flex-direction:column;
    gap:20px;
    align-items:stretch;
  }
  .action-button {
    min-height:64px;
    min-width:0;
    width:100%;
  }
  .sprinkle-options button {
    font-size:11px;
    min-height:78px;
  }
  .text-button {
    margin-top:19px;
  }
  .meter-labels {
    font-size:12px;
  }
  .meter-wrap p {
    font-size:12px;
  }
  .result-row {
    flex-wrap:wrap;
    gap:15px;
  }
  .result-medal {
    width:62px;
    height:62px;
    font-size:35px;
  }
  .result-row p {
    font-size:14px;
  }
  .result-row .action-button {
    flex-basis:100%;
  }
  footer {
    font-size:9px;
    padding:13px 3px;
    flex-direction:column;
    gap:3px;
    text-align:center;
  }
  .tiny-flower {
    font-size:30px;
  }
}

@media(max-width:480px) {
  .kitchen {
    height:286px;
  }
  .chef-area {
    left:-7px;
    bottom:20px;
    width:198px;
    height:216px;
  }
  .speech {
    left:17px;
    top:-19px;
    width:139px;
    font-size:11px;
  }
  .oven-area {
    width:195px;
    right:10px;
    bottom:34px;
  }
  .oven {
    height:159px;
    padding:8px;
  }
  .oven-name {
    font-size:10px;
  }
  .oven-top {
    gap:6px;
    height:25px;
  }
  .oven-door {
    height:99px;
  }
  .oven-glass {
    height:69px;
  }
  .tray svg {
    width:80px;
    height:63px;
  }
  .tray {
    height:53px;
    bottom:6px;
    left:10px;
    right:10px;
  }
  .topping-bits {
    top:1px;
    width:65px;
  }
  .window {
    width:75px;
    height:105px;
    left:10px;
  }
  .oven-note {
    font-size:7px;
  }
  .food-card svg {
    height:52px;
  }
  .food-card {
    min-height:91px;
  }
  .food-card span {
    font-size:12px;
  }
  .play-panel {
    padding:19px 13px;
  }
  .brand .eyebrow {
    font-size:7px;
  }
  h1 {
    font-size:22px;
  }
  .win-count {
    padding:5px 8px;
  }
  .kitchen-label {
    font-size:7px;
  }
  .shelf {
    top:16px;
    right:20px;
    width:112px;
  }
  .panel-heading .eyebrow {
    font-size:8px;
    letter-spacing:1.3px;
  }
  .meter-labels {
    grid-template-columns:38% 47% 15%;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
  .confetti {
    display:none;
  }
}

.cheer-arms {
  display:none;
}

.game-shell[data-state="won"] .arm {
  display:none;
}

.game-shell[data-state="won"] .cheer-arms {
  display:block;
}

@media(max-width:700px) {
  .game-shell .topbar:has(>.home-link)>.win-count:last-child {
    grid-column:auto;
    justify-self:end;
  }
  .food-card {
    grid-template-rows:auto auto;
    gap:5px;
  }
}

@media(max-width:380px) {
  .chef-area {
    width:170px;
    height:193px;
    left:-5px;
  }
  .oven-area {
    width:169px;
  }
  .oven-name {
    font-size:9px;
  }
  .oven-top {
    gap:4px;
  }
  .dial {
    width:21px;
    height:21px;
  }
  .speech {
    width:122px;
    left:8px;
    top:-27px;
  }
  .brand .eyebrow {
    letter-spacing:.3px;
  }
  h1 {
    font-size:20px;
  }
  .win-count {
    gap:3px;
    padding:5px;
  }
  .win-count>span:first-child {
    font-size:17px;
  }
}

/* Picture instructions stay understandable with sound off and without reading. */
.picture-bubble {
  width: 98px;
  height: 76px;
  min-height: 0;
  padding: 7px;
  left: -6px;
  top: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.picture-bubble svg { width: 56px; height: 56px; flex-shrink: 0; }
.cue-arrow { font-size: 35px; color: #547950; font-weight: 900; }
.game-shell[data-state="baking"] .cue-arrow,
.game-shell[data-state="burnt"] .cue-arrow { display: none; }
.game-shell[data-state="won"] .picture-bubble { visibility: hidden; }
.game-shell[data-state="won"] .chef-area { z-index: 5; }
.game-shell[data-state="ready"] .picture-bubble {
  background: #e4f3cb;
  border: 3px solid #507d46;
}
.food-card { position: relative; }
.game-shell[data-state="choose"] .food-card > svg:not(.food-tap) {
  animation: food-invitation 2.8s ease-in-out infinite;
}
.food-card:nth-child(2) > svg { animation-delay: .25s; }
.food-card:nth-child(3) > svg { animation-delay: .5s; }
.food-card:nth-child(4) > svg { animation-delay: .75s; }
.food-card .food-tap {
  position: absolute;
  width: 39px;
  height: 39px;
  bottom: 8px;
  left: 43px;
  animation: tap-hint 1.5s ease-in-out infinite;
  pointer-events: none;
}
.picture-action {
  position: relative;
  gap: 14px;
  min-height: 100px;
  padding: 12px 35px 12px 16px;
}
.picture-action > svg:not(.tap-nudge) { width: 70px; height: 70px; flex-shrink: 0; }
.tap-nudge {
  position: absolute;
  width: 43px;
  height: 43px;
  right: 1px;
  bottom: -10px;
  pointer-events: none;
  animation: tap-hint 1.5s ease-in-out infinite;
}
.game-shell[data-state="baking"] #take-out .tap-nudge { display: none; }
.game-shell[data-state="baking"] #take-out { padding-right: 16px; }
.game-shell[data-state="ready"] .oven-glass { background: #7c9e57; }
.game-shell[data-state="ready"] .oven {
  outline: 5px solid #e1f6ad;
  box-shadow: 0 0 0 10px #5c8a53;
}
#oven-pickup {
  position: absolute;
  right: 12px;
  bottom: 27px;
  width: 81px;
  height: 81px;
  padding: 7px;
  border: 4px solid #fff5cb;
  border-radius: 21px;
  background: #54854c;
  box-shadow: 0 4px 0 #345d35;
  z-index: 5;
  animation: ready-pulse 1s ease-in-out infinite;
}
#oven-pickup > svg:not(.tap-nudge) { width: 100%; height: 100%; }
.paused #oven-pickup { pointer-events: none; }
@keyframes food-invitation {
  0%, 25%, 100% { transform: translateY(0); }
  12% { transform: translateY(-6px); }
}
@keyframes tap-hint {
  0%, 100% { transform: translateY(3px) rotate(-8deg); }
  50% { transform: translateY(-4px) rotate(-8deg); }
}
@media (max-width: 700px) {
  .picture-bubble { width: 79px; height: 64px; left: 7px; top: -5px; }
  .picture-bubble svg { width: 43px; height: 43px; }
  .cue-arrow { font-size: 29px; }
  .food-card .food-tap { left: auto; right: 2px; bottom: 21px; width: 33px; height: 33px; }
  .picture-action { min-height: 91px; }
  .picture-action > svg:not(.tap-nudge) { width: 60px; height: 60px; }
  #oven-pickup { width: 65px; height: 65px; right: 9px; bottom: 22px; padding: 4px; }
}
@media (max-width: 480px) {
  .picture-bubble { left: 12px; top: -21px; width: 75px; height: 58px; }
  .picture-bubble svg { width: 40px; height: 40px; }
  #oven-pickup { width: 57px; height: 57px; right: 7px; bottom: 20px; }
}
