/* Chef Enzo: the app's own look. Cream kitchen paper, chocolate bars, a wooden recipe card, the red PLAY button,
   and Liberation Sans, the font the game ships with (TextMesh Pro, OFL). */
@font-face {
  font-family: LiberationSans;
  src: url(/assets/rooms/chef/LiberationSans.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: LiberationSans;
  src: local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #edd8b1;
  --paper: #fdeccd;
  --choc: #502918;
  --choc-2: #6b3a22;
  --pause: #984e26;
  --wood: #b47f55;
  --red: #c03826;
  --red-deep: #7d2216;
  --terracotta: #f69e47;
  --green: #4f7d2a;
  --gold: #ffd23f;
  --page: min(1160px, 100% - 32px);
  --head: 64px; /* the sticky header's height; scroll-padding-top follows it */
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 14px);
}
body {
  overflow-x: clip;
  margin: 0;
  background: var(--cream);
  color: var(--choc);
  font: 400 17px/1.55 LiberationSans, Arial, "Helvetica Neue", sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
}
h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.01em;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--paper);
  color: var(--choc);
  padding: 8px 14px;
}
.skip:focus {
  left: 8px;
}
.ce-kicker {
  margin: 0 0 10px;
  color: var(--pause);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ce-head-block {
  width: var(--page);
  margin: 0 auto 32px;
  text-align: center;
}
.ce-head-block p:last-child:not(.ce-kicker) {
  margin: 12px 0 0;
}

/* The app's buttons: chunky, uppercase, a darker lip underneath. */
.ce-button {
  display: inline-block;
  padding: 15px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--pause);
  color: #fff;
  box-shadow: 0 5px 0 #5e2d14;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.1s, box-shadow 0.1s;
}
.ce-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5e2d14;
}
.ce-button.play {
  background: var(--red);
  box-shadow: 0 5px 0 var(--red-deep);
}
.ce-button.ghost {
  background: var(--paper);
  color: var(--choc);
  box-shadow: 0 5px 0 var(--wood);
}
.ce-button:disabled {
  opacity: 0.6;
  cursor: default;
}
.ce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* Header: the chocolate bar from the top of the app. */
.ce-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--head);
  padding: 0 max(16px, (100% - 1160px) / 2);
  background: var(--choc);
  color: var(--paper);
  box-shadow: 0 3px 0 #3a1c0f;
}
.ce-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.ce-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.ce-head nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ce-head nav a {
  text-decoration: none;
  opacity: 0.85;
}
.ce-head nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.ce-cta {
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--red);
  box-shadow: 0 4px 0 var(--red-deep);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hero: the title screen, live. */
.ce-hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  gap: 40px;
  align-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 48px 0 56px;
}
.ce-title {
  color: #fff;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.09em var(--choc);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 var(--choc);
}
.ce-tagline {
  margin: 14px 0 18px;
  font-size: 24px;
  font-weight: 700;
  color: var(--pause);
}
.ce-hero-copy > p:not(.ce-kicker, .ce-tagline) {
  max-width: 46ch;
  margin: 0;
  font-size: 19px;
}
.ce-stage {
  position: relative;
  aspect-ratio: 560 / 520;
  overflow: hidden;
  border: 6px solid var(--choc);
  border-radius: 28px;
  background: url(/assets/rooms/chef/world1_far.webp) center 78% / cover;
  box-shadow: 0 10px 0 #3a1c0f;
}
.ce-stage > button {
  position: absolute;
  bottom: 4%;
  padding: 0;
  border: 0;
  background: none;
}
.ce-nonna {
  left: 6%;
  width: 33%;
  transform-origin: 50% 100%;
}
.ce-enzo {
  right: 6%;
  width: 50%;
  transform-origin: 50% 100%;
}
.ce-nonna.react {
  animation: squash 0.22s ease-out;
}
@keyframes squash {
  50% {
    transform: scale(1.02, 0.965);
  }
}
.ce-bubble {
  position: absolute;
  top: 6%;
  left: 4%;
  max-width: 48%;
  margin: 0;
  padding: 10px 14px;
  border: 3px solid var(--wood);
  border-radius: 14px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.ce-toss,
.ce-pop {
  position: absolute;
  left: 34%;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.ce-toss {
  width: 22%;
}
.ce-toss.go {
  animation: toss 0.7s ease-in forwards;
}
@keyframes toss {
  0% {
    opacity: 1;
    transform: translateY(-60%) rotate(-20deg);
  }
  80% {
    opacity: 1;
    transform: translateY(200%) rotate(10deg);
  }
  100% {
    opacity: 0;
    transform: translateY(205%);
  }
}
.ce-pop {
  top: 40%;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  -webkit-text-stroke: 5px var(--choc);
  paint-order: stroke fill;
}
.ce-pop.go {
  animation: pop 0.9s 0.55s ease-out;
}
@keyframes pop {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}
.ce-hint {
  position: absolute;
  right: 12px;
  top: 10px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(80, 41, 24, 0.75);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

/* Numbers: the HUD bar. */
.ce-numbers {
  background: var(--choc);
  color: var(--paper);
}
.ce-numbers dl {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: var(--page);
  margin: 0 auto;
  padding: 18px 0;
}
.ce-numbers div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.ce-numbers dd {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
}
.ce-numbers dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* Play */
.ce-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 48px;
  align-items: start;
  width: var(--page);
  margin: 0 auto;
  padding: 80px 0;
}
.ce-play-copy {
  position: sticky;
  top: 110px;
}
.ce-play-copy > p:not(.ce-kicker) {
  margin: 14px 0 0;
  max-width: 48ch;
}
.ce-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.ce-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 3px solid var(--wood);
  border-radius: 16px;
  background: var(--paper);
}
.ce-steps img {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.ce-steps span {
  font-size: 15px;
}
.ce-goal {
  font-weight: 700;
}

.ce-game {
  overflow: hidden;
  border: 6px solid var(--choc);
  border-radius: 30px;
  background: var(--cream);
  box-shadow: 0 10px 0 #3a1c0f;
}
.ce-hud {
  padding: 12px 12px 10px;
}
.ce-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--choc);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
}
.ce-hud-bar .hearts {
  display: flex;
  gap: 4px;
}
.ce-hud-bar .hearts img {
  width: 24px;
  height: 24px;
}
.ce-hud-bar .hearts img.lost {
  filter: grayscale(1) brightness(0.55);
  opacity: 0.5;
}
.ce-hud-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: pre;
}
.ce-hud-line .combo {
  color: var(--green);
}

/* The wooden recipe card. */
.ce-card {
  padding: 6px 10px 8px;
  border: 5px solid var(--wood);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px #e3c59a;
}
.ce-card-title {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ce-card ul {
  display: flex;
  justify-content: space-around;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.ce-card li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ce-card li img {
  width: 36px;
  height: 36px;
}
.ce-card li.done::before,
.ce-slot.done::before {
  content: "✓";
  position: absolute;
  left: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #3f9a3a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ce-card li.done img {
  opacity: 0.55;
}
.ce-card.wide ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ce-screen {
  position: relative;
}
.ce-screen canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 506 / 780;
  /* The whole game fits the screen under the header: a short window crops the empty floor at the bottom. */
  max-height: max(330px, calc(100svh - 290px));
  object-fit: cover;
  object-position: top;
  background: #c98a52;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ce-screen canvas:focus {
  outline: none; /* focused by script on Start (tabindex -1), never by Tab */
}
.ce-game.is-playing canvas {
  touch-action: none;
}
.ce-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(58, 28, 15, 0.62);
  color: var(--paper);
  text-align: center;
  font-weight: 700;
}
.ce-overlay.ready {
  background: transparent;
  pointer-events: none;
}
.ce-objective {
  margin: 0;
  padding: 14px 20px;
  border: 5px solid var(--wood);
  border-radius: 14px;
  background: var(--paper);
  color: var(--choc);
  font-size: 20px;
  white-space: pre-line;
}
.ce-objective.count {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 110px;
  line-height: 1;
  -webkit-text-stroke: 10px var(--choc);
  paint-order: stroke fill;
}
.ce-guide {
  width: auto;
  height: 30%;
}
.ce-say {
  max-width: 30ch;
  margin: -10px 0 0;
  padding: 10px 14px;
  border: 3px solid var(--wood);
  border-radius: 14px;
  background: var(--paper);
  color: var(--choc);
  font-size: 15px;
  line-height: 1.3;
}
.ce-overlay .ce-button.play {
  min-width: 190px;
  font-size: 24px;
}
.keys {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}
.coarse {
  display: none;
}
@media (pointer: coarse) {
  .fine {
    display: none;
  }
  .coarse {
    display: inline;
  }
}
.ce-result-title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  -webkit-text-stroke: 7px var(--choc);
  paint-order: stroke fill;
}
.ce-stars {
  display: flex;
  gap: 6px;
  margin: 0;
}
.ce-stars img {
  width: 64px;
}
.ce-stars img.off {
  filter: grayscale(1) brightness(0.6);
  opacity: 0.5;
}
.ce-result {
  display: flex;
  gap: 10px;
  margin: 0;
}
.ce-result div {
  display: flex;
  flex-direction: column;
  min-width: 84px;
  padding: 8px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--choc);
}
.ce-result dd {
  margin: 0;
  font-size: 26px;
}
.ce-result dt {
  font-size: 11px;
  text-transform: uppercase;
}
.ce-overlay .ce-actions {
  justify-content: center;
  margin-top: 6px;
}
/* Power-ups sit down the left side of the kitchen, like the app's side buttons. */
.ce-powers {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  gap: 6px;
}
.ce-powers button {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 3px solid var(--wood);
  border-radius: 14px;
  background: conic-gradient(rgba(255, 210, 63, 0.7) calc(var(--p, 0) * 360deg), var(--paper) 0);
}
.ce-powers button img {
  width: 38px;
  height: 38px;
}
.ce-powers button b {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 13px;
}
.ce-powers button:disabled {
  cursor: default;
}
.ce-power-note {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(58, 28, 15, 0.82);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

/* Rules */
.ce-rules {
  padding: 80px 0;
  background: var(--paper);
  border-block: 6px solid var(--wood);
}
.ce-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: var(--page);
  margin: 0 auto;
}
.ce-rule {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 16px;
  border: 3px solid var(--wood);
  border-radius: 18px;
  background: var(--cream);
  text-align: left;
}
.ce-rule .art {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--paper);
}
.ce-rule .art img {
  width: 70px;
  height: 70px;
}
.ce-rule > b {
  font-size: 19px;
}
.ce-rule > span:not(.art) {
  font-size: 15px;
}
.ce-rule .gain {
  position: absolute;
  top: 10px;
  right: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
}
.ce-rule.bad .gain {
  color: var(--red);
}
.ce-rule.good .gain {
  color: var(--green);
}
.ce-rule[aria-pressed="true"] .gain {
  opacity: 1;
}
.ce-rule.hurt .art {
  animation: shake 0.35s;
}
.ce-rule.pay .art {
  animation: hop 0.35s;
}
.combo-art b {
  color: var(--green);
  font-size: 34px;
}
@keyframes shake {
  25% {
    transform: translateX(-6px) rotate(-6deg);
  }
  75% {
    transform: translateX(6px) rotate(6deg);
  }
}
@keyframes hop {
  50% {
    transform: translateY(-10px) scale(1.06);
  }
}

/* Kitchens: the tab re-themes the whole section. */
.ce-kitchens {
  --k-bg: var(--cream);
  --k-ink: var(--choc);
  --k-panel: var(--paper);
  --k-line: var(--wood);
  --k-accent: var(--red);
  padding: 80px 0;
  background: var(--k-bg);
  color: var(--k-ink);
  transition: background-color 0.4s, color 0.4s;
}
.ce-kitchens[data-world="2"] {
  --k-bg: #1d2236;
  --k-ink: #f6e7cf;
  --k-panel: #2b3150;
  --k-line: #b0753d;
  --k-accent: #e0503a;
}
.ce-kitchens[data-world="3"] {
  --k-bg: #f7dde2;
  --k-ink: #6b2633;
  --k-panel: #fff7f2;
  --k-line: #94c08d;
  --k-accent: #7d1f2c;
}
.ce-kitchens .ce-kicker {
  color: var(--k-accent);
}
.ce-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: var(--page);
  margin: 0 auto 28px;
}
.ce-tabs button {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 10px 18px;
  border: 3px solid var(--k-line);
  border-radius: 16px;
  background: var(--k-panel);
  color: var(--k-ink);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}
.ce-tabs small {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.ce-tabs [aria-selected="true"] {
  background: var(--k-accent);
  border-color: var(--k-accent);
  color: #fff;
}
.ce-kitchen {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 190px;
  grid-template-areas: "room copy shot" "dishes dishes dishes";
  gap: 28px 32px;
  align-items: start;
  width: var(--page);
  margin: 0 auto;
}
.ce-room {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid var(--k-line);
  border-radius: 24px;
}
.ce-room img {
  position: absolute;
  left: 0;
  width: 100%;
}
.ce-room .far,
.ce-room .middle {
  bottom: 0;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
.ce-room .counter {
  bottom: 0;
  height: 13%;
  object-fit: cover;
  object-position: top;
}
.ce-room .mentor {
  left: 50%;
  bottom: 9%;
  width: auto;
  height: 72%;
  transform: translateX(-50%);
}
.ce-room {
  grid-area: room;
}
.ce-kitchen-copy {
  grid-area: copy;
}
.ce-kitchen-shot {
  grid-area: shot;
}
.ce-dish-shelf {
  grid-area: dishes;
}
.ce-kitchen-copy h3 {
  font-size: clamp(26px, 3vw, 36px);
}
.ce-kitchen-copy > p {
  margin: 10px 0 0;
}
.ce-lesson b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--k-accent);
}
.ce-lesson {
  padding: 12px 16px;
  border-left: 6px solid var(--k-accent);
  border-radius: 6px;
  background: var(--k-panel);
}
.ce-twist {
  margin-top: 18px;
}
.ce-twist-title,
.ce-dishes-title {
  margin: 0 0 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.ce-dishes-title small {
  margin-left: 8px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}
.ce-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px 10px;
  border: 5px solid var(--wood);
  border-radius: 12px;
  background: var(--paper);
  color: var(--choc);
}
.ce-mini .ce-card-title {
  flex-basis: 100%;
}
.ce-slot {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  font-size: 13px;
  font-weight: 700;
}
.ce-slot img {
  width: 56px;
  height: 56px;
}
.ce-slot .badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 12px);
  width: 24px;
  height: 24px;
}
.ce-kitchens.is-fast .ce-slot:not(.done) .badge {
  filter: sepia(1) saturate(8) hue-rotate(-40deg);
  animation: shake 0.3s infinite;
}
.ce-slot.next {
  background: radial-gradient(circle at 50% 40%, rgba(255, 240, 160, 0.95), rgba(255, 240, 160, 0) 70%);
  animation: glow 0.9s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    transform: scale(1.06);
  }
}
.ce-slot.done img {
  opacity: 0.55;
}
.ce-slot.bounce img:first-child {
  animation: bounce-off 0.5s;
}
@keyframes bounce-off {
  50% {
    transform: translateY(-14px);
    opacity: 0.4;
  }
}
.ce-speed {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ce-speed button,
.ce-dishes button {
  border: 3px solid var(--k-line);
  border-radius: 12px;
  background: var(--k-panel);
  color: var(--k-ink);
  font-weight: 700;
}
.ce-speed button {
  padding: 8px 14px;
}
.ce-speed [aria-pressed="true"],
.ce-dishes [aria-pressed="true"] {
  background: var(--k-accent);
  border-color: var(--k-accent);
  color: #fff;
}
.ce-mini-log {
  min-height: 1.5em;
  margin: 8px 0 22px;
  font-weight: 700;
}
.ce-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ce-dishes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 6px 4px;
  font-size: 11px;
  line-height: 1.2;
}
.ce-dishes img {
  width: 64px;
  height: 64px;
}
.ce-fact {
  min-height: 3em;
  margin: 12px 0 0;
}
.ce-kitchen-shot {
  margin: 0;
}
.ce-kitchen-shot img {
  border: 6px solid var(--k-line);
  border-radius: 26px;
}

/* Power-ups */
.ce-powers-sec {
  padding: 80px 0;
}
.ce-power-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: var(--page);
  margin: 0 auto;
}
.ce-power {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 20px 16px 26px;
  border: 3px solid var(--wood);
  border-radius: 20px;
  background: var(--paper);
  text-align: center;
}
.ce-power img {
  width: 96px;
  height: 96px;
}
.ce-power b {
  font-size: 20px;
}
.ce-power span {
  font-size: 15px;
}
.ce-power i {
  font-style: normal;
  font-weight: 700;
  color: var(--pause);
}
.ce-power::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.ce-power.running::after {
  animation: run var(--run) linear forwards;
}
.ce-power.running img {
  animation: hop 0.5s;
}
@keyframes run {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Food Critic */
.ce-critic {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 40px 0 80px;
}
.ce-critic-face {
  padding: 0;
  border: 6px solid var(--choc);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, #7a2b2b, #3a1c0f);
  overflow: hidden;
  transform-origin: 50% 100%;
}
.ce-critic-face.react img {
  animation: squash 0.22s ease-out;
}
.ce-critic-copy > p:not(.ce-kicker) {
  margin: 14px 0 20px;
}
.ce-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.ce-extras p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 15px;
}
.ce-extras b {
  display: block;
  font-size: 17px;
}

/* Screenshots */
.ce-shots {
  padding: 72px 0;
  background: var(--choc);
  color: var(--paper);
}
.ce-shots .ce-kicker {
  color: var(--gold);
}
.ce-shot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(16px, (100% - 1160px) / 2) 16px;
}
.ce-shot-strip figure {
  flex: 0 0 220px;
  margin: 0;
  scroll-snap-align: center;
}
.ce-shot-strip img {
  border-radius: 24px;
  box-shadow: 0 6px 0 #2a120a;
}
.ce-shot-strip figcaption {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* Final */
.ce-final {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0;
}
.ce-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.ce-chips li {
  padding: 6px 12px;
  border: 2px solid var(--wood);
  border-radius: 99px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.ce-legal {
  margin: 22px 0 0;
  font-size: 14px;
}
.made-by {
  padding: 22px 16px 30px;
  background: var(--choc);
  color: var(--paper);
  text-align: center;
  font-size: 15px;
}
.made-by a {
  text-decoration: none;
}
.made-by a:hover b {
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .ce-kitchen {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas: "room copy" "dishes dishes";
  }
  .ce-kitchen-shot {
    display: none;
  }
  .ce-power-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ce-rule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .ce-head nav {
    display: none;
  }
  .ce-cta {
    margin-left: auto;
  }
  .ce-hero,
  .ce-play,
  .ce-critic,
  .ce-final,
  .ce-kitchen {
    grid-template-columns: minmax(0, 1fr);
  }
  .ce-kitchen {
    grid-template-areas: "room" "copy" "dishes";
  }
  .ce-hero {
    padding-top: 28px;
    gap: 28px;
  }
  .ce-play {
    gap: 28px;
    padding: 56px 0;
  }
  .ce-play-copy {
    position: static;
  }
  .ce-game {
    width: 100%;
    max-width: 430px;
    justify-self: center;
  }
  .ce-numbers dl {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }
  .ce-room {
    width: min(100%, 320px);
    justify-self: center;
  }
  .ce-critic-face {
    width: min(100%, 260px);
    justify-self: center;
  }
  .ce-final {
    text-align: center;
  }
  .ce-final-enzo {
    width: 180px;
    justify-self: center;
  }
  .ce-chips {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .ce-rule-grid,
  .ce-extras {
    grid-template-columns: 1fr;
  }
  .ce-tabs {
    gap: 6px;
  }
  .ce-tabs button {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    font-size: 15px;
  }
  .ce-tabs small {
    font-size: 9px;
  }
  .ce-actions .ce-button {
    flex: 1 1 100%;
  }
  .ce-hud-bar {
    font-size: 15px;
  }
  .ce-card li {
    flex-direction: column;
    gap: 0;
    font-size: 11px;
  }
  /* A taller stage on phones gives Nonna's lines their own room above the two of them. */
  .ce-stage {
    aspect-ratio: 3 / 4;
    background-position: center bottom;
  }
  .ce-bubble {
    top: 4%;
    left: 4%;
    right: 4%;
    max-width: none;
    font-size: 14px;
  }
  .ce-hint {
    display: none;
  }
  .ce-shot-strip figure {
    flex-basis: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .ce-power.running::after {
    transform: scaleX(1);
  }
  .ce-toss.go {
    opacity: 1;
    transform: translateY(205%);
  }
  .ce-pop.go {
    opacity: 1;
  }
}
