:root {
  --bg-top: #fff3f7;
  --bg-bottom: #f7bfd1;
  --panel: rgba(255, 252, 247, 0.86);
  --ink: #552f43;
  --muted: #9c6e84;
  --accent: #f06d93;
  --accent-deep: #d54978;
  --gold: #f4c96c;
  --green: #89d2b3;
  --teal: #7ab6d6;
  --cream: #fff7fb;
  --shadow: 0 22px 60px rgba(145, 84, 116, 0.18);
  --line: rgba(85, 47, 67, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 26%),
    radial-gradient(circle at bottom right, rgba(246, 163, 196, 0.3), transparent 34%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

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

a,
.page-shell,
.recipe-card,
.tray-slot,
.serve-point,
.drag-piece,
.ingredient-field,
.slice-board,
.mix-bowl,
.dough,
.cake-board {
  touch-action: manipulation;
}

.page-shell {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.panel {
  padding: 26px;
}

.eyebrow,
.card-label,
.status-label,
.arena-label,
.detail-label {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Chewy", cursive;
  font-weight: 400;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  margin-top: 10px;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

h4 {
  font-size: 1.55rem;
}

.hero-text,
.hero-support,
.library-copy,
.instruction-text,
.recipe-summary,
.stage-copy p,
.recipe-card p,
.result-note {
  line-height: 1.65;
}

.hero-actions {
  margin-top: 22px;
}

.primary-button,
.secondary-button,
.recipe-select {
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #ff96b5, var(--accent));
  box-shadow: 0 18px 24px rgba(240, 109, 147, 0.28);
}

.secondary-button,
.recipe-select {
  background: rgba(255, 247, 234, 0.96);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(46, 29, 20, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.recipe-select:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.recipe-select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 219, 0.75), transparent 26%),
    linear-gradient(160deg, rgba(255, 245, 250, 0.96), rgba(255, 226, 238, 0.9));
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -56px;
  border-radius: 50%;
  background: rgba(122, 182, 214, 0.16);
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.mascot-wrap {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.speech-bubble {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(85, 47, 67, 0.08);
  line-height: 1.5;
  font-weight: 600;
}

.mascot,
.mascot-inline {
  position: relative;
}

.mascot {
  width: 132px;
  height: 178px;
  margin: 0 auto;
  transform: translateY(2px);
}

.mascot.mascot-small {
  transform: scale(0.84);
  transform-origin: top center;
}

.mascot-face {
  position: absolute;
  inset: 30px 18px 52px;
  z-index: 2;
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(180deg, #f6e4e6, #e8c4c8);
  box-shadow:
    inset 0 -10px 0 rgba(188, 145, 151, 0.18),
    inset 0 10px 0 rgba(255, 247, 248, 0.38),
    0 4px 10px rgba(85, 47, 67, 0.05);
}

.mascot-ear {
  position: absolute;
  top: 10px;
  z-index: 1;
  width: 28px;
  height: 38px;
  border-radius: 60% 60% 22% 22%;
  background: linear-gradient(180deg, #f3dde0, #e8c4c8);
}

.mascot-ear::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: rgba(250, 232, 235, 0.82);
}

.mascot-ear-left {
  left: 16px;
  transform: rotate(-16deg);
}

.mascot-ear-right {
  right: 16px;
  transform: rotate(16deg);
}

.mascot-bow {
  position: absolute;
  top: 18px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8fb3, #f06d93);
  box-shadow: 0 3px 8px rgba(240, 109, 147, 0.18);
}

.mascot-bow::before,
.mascot-bow::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 12px;
  height: 14px;
  border-radius: 10px;
  background: inherit;
}

.mascot-bow::before {
  left: -6px;
  transform: rotate(20deg);
}

.mascot-bow::after {
  right: -6px;
  transform: rotate(-20deg);
}

.mascot-eye,
.mascot-nose,
.mascot-mouth,
.mascot-blush {
  position: absolute;
}

.mascot-eye {
  top: 32px;
  width: 11px;
  height: 16px;
  border-radius: 999px;
  background: #553143;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.18);
}

.mascot-eye-left {
  left: 22px;
}

.mascot-eye-right {
  right: 22px;
}

.mascot-eye::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.mascot-eye::before {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.mascot-nose {
  left: calc(50% - 4px);
  top: 47px;
  width: 8px;
  height: 7px;
  border-radius: 50% 50% 70% 70%;
  background: #f48fa6;
  transform: rotate(180deg);
}

.mascot-mouth {
  left: calc(50% - 8px);
  top: 55px;
  width: 16px;
  height: 10px;
}

.mascot-mouth::before,
.mascot-mouth::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #7c495a;
  border-radius: 0 0 10px 10px;
}

.mascot-mouth::before {
  left: 0;
  transform: rotate(12deg);
}

.mascot-mouth::after {
  right: 0;
  transform: rotate(-12deg);
}

.mascot-blush {
  top: 46px;
  width: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(242, 157, 182, 0.66);
  filter: blur(0.4px);
}

.mascot-blush-left {
  left: 14px;
}

.mascot-blush-right {
  right: 14px;
}

.mascot-whisk {
  position: absolute;
  right: 4px;
  bottom: 42px;
  z-index: 4;
  width: 46px;
  height: 9px;
  border-radius: 999px;
  transform: rotate(-48deg);
  background: linear-gradient(90deg, #9a5e3f, #b7754f);
}

.mascot-whisk::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -16px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(98, 145, 188, 0.78);
  border-radius: 50%;
  clip-path: ellipse(48% 40% at 50% 50%);
  box-shadow:
    8px 6px 0 -5px rgba(98, 145, 188, 0.78),
    14px 10px 0 -6px rgba(98, 145, 188, 0.78);
}

.mascot-body {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 12px;
  z-index: 1;
  height: 88px;
  border-radius: 46px 46px 30px 30px;
  background: linear-gradient(180deg, #f3d4d7, #e8c4c8);
  box-shadow:
    inset 0 -10px 0 rgba(188, 145, 151, 0.14),
    0 8px 14px rgba(85, 47, 67, 0.08);
}

.mascot-body::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  bottom: 18px;
  border-radius: 34px 34px 22px 22px;
  background: linear-gradient(180deg, #fff8f9, #ffffff);
}

.mascot-body::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -8px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 50%, #f9edf0 0 10px, transparent 11px),
    radial-gradient(circle at 78% 50%, #f9edf0 0 10px, transparent 11px);
}

.mascot-arm {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2d4d7, #e8c4c8);
  box-shadow: inset 0 -6px 0 rgba(188, 145, 151, 0.14);
}

.mascot-arm::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -6px;
  height: 16px;
  border-radius: 999px;
  background: #f6e4e6;
  box-shadow:
    inset 0 -2px 0 rgba(188, 145, 151, 0.08),
    0 2px 4px rgba(85, 47, 67, 0.04);
}

.mascot-arm-left {
  left: 32px;
  bottom: 52px;
  transform: rotate(26deg);
}

.mascot-arm-right {
  right: 26px;
  bottom: 48px;
  transform: rotate(-42deg);
}

.mascot-tail {
  position: absolute;
  right: 18px;
  bottom: 28px;
  z-index: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f7eef1);
  box-shadow:
    0 2px 8px rgba(85, 47, 67, 0.08),
    inset 0 -3px 0 rgba(230, 214, 220, 0.5);
}

.mascot-face::before,
.mascot-face::after {
  content: "";
  position: absolute;
  top: 56px;
  width: 16px;
  height: 2px;
  background: rgba(141, 91, 114, 0.75);
  border-radius: 999px;
}

.mascot-face::before {
  left: 8px;
  box-shadow: 0 8px 0 rgba(141, 91, 114, 0.65);
}

.mascot-face::after {
  right: 8px;
  box-shadow: 0 8px 0 rgba(141, 91, 114, 0.65);
}

.hero-stat {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.game-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 22px;
}

.sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.status-block,
.recipe-detail {
  display: grid;
  gap: 18px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 247, 234, 0.86);
}

.status-value {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.meter-block {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 247, 234, 0.86);
}

.meter-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-weight: 700;
}

.meter-track {
  height: 18px;
  border-radius: 999px;
  background: rgba(46, 29, 20, 0.08);
  overflow: hidden;
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--gold));
  transition: width 150ms ease;
}

.recipe-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.recipe-summary {
  margin: 0;
}

.detail-columns {
  display: grid;
  gap: 18px;
}

.detail-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.detail-list.ordered {
  padding-left: 20px;
}

.arena-panel {
  min-height: 760px;
}

.game-arena {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 249, 252, 0.97), rgba(255, 228, 239, 0.94)),
    radial-gradient(circle at top left, rgba(122, 182, 214, 0.16), transparent 24%);
}

.game-arena::before,
.game-arena::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(240, 109, 147, 0.08);
}

.game-arena::before {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -90px;
}

.game-arena::after {
  width: 220px;
  height: 220px;
  left: -60px;
  bottom: -90px;
}

.stage-copy,
.minigame,
.results-card {
  position: relative;
  z-index: 1;
  width: 100%;
}

.stage-copy {
  max-width: 620px;
  text-align: center;
}

.step-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.step-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 245, 250, 0.94);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(85, 47, 67, 0.08);
}

.minigame {
  display: grid;
  gap: 24px;
}

.minigame-head p {
  margin: 8px 0 0;
}

.mini-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 246, 250, 0.96);
  font-weight: 700;
}

.slice-board,
.mix-stage,
.heat-stage,
.dredge-stage,
.knead-stage,
.pipe-stage,
.portion-stage,
.season-stage,
.plate-stage {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  background: rgba(255, 246, 250, 0.84);
  box-shadow: inset 0 0 0 1px rgba(46, 29, 20, 0.06);
  overflow: hidden;
}

.slice-board {
  padding: 28px;
  touch-action: none;
  user-select: none;
  background:
    linear-gradient(160deg, #efbc8d, #e28baa),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 8px,
      transparent 8px,
      transparent 24px
    );
}

.ingredient-field {
  position: relative;
  width: min(560px, 100%);
  height: 180px;
  margin: 42px auto 0;
  border-radius: 100px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: linear-gradient(180deg, var(--ingredient-start), var(--ingredient-end));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.ingredient-field::before,
.ingredient-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ingredient-field.appearance-vegetable::before {
  inset: 18% 4%;
  border-radius: 90px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 6px,
      transparent 6px,
      transparent 34px
    );
}

.ingredient-field.appearance-vegetable::after {
  width: 68px;
  height: 26px;
  top: 20px;
  right: 52px;
  border-radius: 30px 6px 30px 6px;
  background: rgba(130, 196, 120, 0.62);
  transform: rotate(-18deg);
}

.ingredient-field.appearance-chicken {
  height: 164px;
  border-radius: 54px;
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.22), transparent 24%),
    linear-gradient(180deg, var(--ingredient-start), var(--ingredient-end));
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.18),
    inset 0 -18px 24px rgba(201, 132, 95, 0.12);
}

.ingredient-field.appearance-chicken::before {
  inset: 12% 4%;
  border-radius: 48px;
  background:
    radial-gradient(circle at 14% 32%, rgba(255, 255, 255, 0.26), transparent 10%),
    radial-gradient(circle at 74% 58%, rgba(255, 255, 255, 0.22), transparent 12%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 236, 225, 0.52) 0,
      rgba(255, 236, 225, 0.52) 10px,
      rgba(232, 173, 142, 0.22) 10px,
      rgba(232, 173, 142, 0.22) 22px
    );
}

.ingredient-field.appearance-chicken::after {
  inset: 24% 8%;
  border-radius: 42px;
  background:
    linear-gradient(
      180deg,
      transparent 0,
      transparent 28%,
      rgba(196, 126, 92, 0.16) 28%,
      rgba(196, 126, 92, 0.16) 36%,
      transparent 36%,
      transparent 58%,
      rgba(196, 126, 92, 0.13) 58%,
      rgba(196, 126, 92, 0.13) 66%,
      transparent 66%
    );
}

.ingredient-field.appearance-meat {
  height: 160px;
  border-radius: 44px;
}

.ingredient-field.appearance-meat::before {
  inset: 10% 4%;
  border-radius: 40px;
  background:
    radial-gradient(circle at 16% 32%, rgba(255, 228, 231, 0.42), transparent 12%),
    radial-gradient(circle at 62% 64%, rgba(255, 228, 231, 0.38), transparent 14%),
    repeating-linear-gradient(
      90deg,
      rgba(173, 72, 86, 0.22) 0,
      rgba(173, 72, 86, 0.22) 12px,
      rgba(255, 219, 223, 0.16) 12px,
      rgba(255, 219, 223, 0.16) 24px
    );
}

.ingredient-field.appearance-meat::after {
  inset: 26% 8%;
  border-radius: 30px;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent 18%,
      rgba(255, 231, 234, 0.22) 18%,
      rgba(255, 231, 234, 0.22) 24%,
      transparent 24%,
      transparent 56%,
      rgba(255, 231, 234, 0.18) 56%,
      rgba(255, 231, 234, 0.18) 64%,
      transparent 64%
    );
}

.ingredient-field.loaf {
  width: min(520px, 100%);
  height: 210px;
  border-radius: 120px 120px 90px 90px;
  background: linear-gradient(180deg, #d8ac72, #b67c43);
}

.ingredient-field.loaf::before {
  inset: 10% 8%;
  border-radius: 110px 110px 76px 76px;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 242, 214, 0.48), transparent 10%),
    radial-gradient(circle at 58% 42%, rgba(255, 242, 214, 0.34), transparent 12%),
    radial-gradient(circle at 76% 32%, rgba(255, 242, 214, 0.28), transparent 10%);
}

.ingredient-field.loaf::after {
  inset: auto 12% 20% 12%;
  height: 24px;
  border-radius: 999px;
  background: rgba(144, 93, 50, 0.18);
  filter: blur(8px);
}

.ingredient-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 180ms ease;
}

.appearance-chicken .ingredient-segment {
  border-right-color: rgba(255, 247, 241, 0.4);
}

.appearance-loaf .ingredient-segment,
.loaf .ingredient-segment {
  border-right-color: rgba(255, 235, 201, 0.22);
}

.ingredient-segment.cut-left {
  transform: translateY(-7px) rotate(-4deg);
}

.ingredient-segment.cut-right {
  transform: translateY(7px) rotate(4deg);
}

.slice-guide {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.slice-guide.diagonal {
  top: 50%;
  height: 130px;
  width: 6px;
  transform-origin: center;
}

.slice-guide.done {
  background: rgba(255, 255, 255, 0.9);
}

.knife-trail {
  position: absolute;
  width: 120px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
}

.mix-stage {
  display: grid;
  place-items: center;
}

.mix-bowl {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff9fd, #f5d6e8);
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.72),
    0 20px 36px rgba(83, 39, 15, 0.16);
  overflow: hidden;
  touch-action: none;
}

.mixture-surface {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: var(--mix-gradient);
  transition: transform 120ms ease;
}

.spoon {
  position: absolute;
  width: 190px;
  height: 24px;
  top: calc(50% - 12px);
  left: calc(50% - 12px);
  transform-origin: 12px 12px;
  background: linear-gradient(90deg, #a85f38, #cb8653);
  border-radius: 999px;
}

.spoon::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -12px;
  width: 38px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0e7db, #cab29b);
}

.season-stage,
.plate-stage {
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 26px;
}

.season-stage {
  grid-template-columns: minmax(240px, 1fr) 240px;
}

.season-character {
  position: relative;
  width: min(420px, 84vw);
  height: 260px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(180deg, #ffeef5, #ffd8e7);
}

.season-bowl {
  position: absolute;
  inset: auto 18% 18% 18%;
  height: 112px;
  border-radius: 0 0 180px 180px;
  background: linear-gradient(180deg, #ffe4ef, #f7bfd1);
  box-shadow: inset 0 -14px 0 rgba(255, 255, 255, 0.28);
}

.sprinkle-cloud {
  position: absolute;
  inset: 24% 28% 32% 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 24% 44%, rgba(255, 255, 255, 0.72), transparent 10%),
    radial-gradient(circle at 52% 34%, rgba(255, 211, 225, 0.92), transparent 10%),
    radial-gradient(circle at 66% 58%, rgba(161, 225, 211, 0.86), transparent 10%),
    radial-gradient(circle at 42% 64%, rgba(146, 198, 255, 0.8), transparent 10%);
  opacity: 0.36;
  transform: scale(0.9);
  transition: opacity 150ms ease, transform 150ms ease;
}

.sprinkle-cloud.active {
  opacity: 1;
  transform: scale(1.04);
}

.season-ui {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.season-meter {
  position: relative;
  width: 60px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.season-zone {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 94px;
  height: 48px;
  border: 3px dashed rgba(240, 109, 147, 0.88);
  border-radius: 18px;
}

.season-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, #ffd8e8, #f06d93);
  transition: height 90ms linear;
}

.serve-plate {
  position: relative;
  width: min(430px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fffafc 0 57%, #eed4e4 57% 66%, transparent 67%);
}

.serve-point {
  position: absolute;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 2px rgba(85, 47, 67, 0.08);
  font-weight: 700;
  color: var(--ink);
}

.serve-point.active {
  background: linear-gradient(180deg, #ffc4d7, #f06d93);
  color: #fff;
  transform: scale(1.08);
}

.serve-point.done {
  background: linear-gradient(180deg, #9fe0c4, #76c8ad);
  color: #fff;
}

.heat-stage {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 240px;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.pan {
  position: relative;
  width: min(430px, 80vw);
  aspect-ratio: 1.06;
  margin: 0 auto;
}

.pan-rim {
  position: absolute;
  inset: 12% 14%;
  border-radius: 50%;
  background: linear-gradient(180deg, #4b4b4d, #1d1d1f);
}

.pan-core {
  position: absolute;
  inset: 22% 24%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 66%, rgba(255, 203, 146, 0.42), transparent 42%),
    radial-gradient(circle at center, #56332c, #2b1a18 75%);
}

.steam {
  position: absolute;
  inset: 14% 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 60%, rgba(255, 180, 129, 0.4), transparent 26%),
    radial-gradient(circle at 60% 48%, rgba(255, 228, 168, 0.38), transparent 24%);
  opacity: 0.2;
  transition: opacity 160ms ease, transform 160ms ease;
}

.heat-ui {
  display: grid;
  gap: 16px;
}

.heat-meter {
  position: relative;
  width: 44px;
  height: 240px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #8fd17a, #f2d45c, #f07a5d);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.54);
}

.heat-zone {
  position: absolute;
  left: -10px;
  right: -10px;
  top: 76px;
  height: 64px;
  border: 3px dashed rgba(255, 255, 255, 0.9);
  border-radius: 16px;
}

.heat-needle {
  position: absolute;
  left: 50%;
  width: 80px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff8ef;
  box-shadow: 0 6px 12px rgba(46, 29, 20, 0.16);
}

.heat-buttons {
  display: grid;
  gap: 10px;
}

.dredge-stage {
  padding: 26px;
}

.dredge-lane {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dredge-station {
  min-height: 220px;
  padding: 18px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 247, 234, 0.96);
  box-shadow: inset 0 0 0 1px rgba(46, 29, 20, 0.06);
}

.dredge-fill {
  height: 108px;
  margin-top: 16px;
  border-radius: 26px;
}

.dredge-fill.flour {
  background: linear-gradient(180deg, #fffaf0, #efe6d5);
}

.dredge-fill.egg {
  background: linear-gradient(180deg, #ffe28e, #f3b63e);
}

.dredge-fill.crumbs {
  background: linear-gradient(180deg, #d2a56c, #b87e42);
}

.drag-tray {
  position: relative;
  height: 140px;
  margin-top: 24px;
  border-radius: 28px;
  background: rgba(255, 247, 234, 0.92);
}

.drag-piece {
  position: absolute;
  width: 84px;
  height: 54px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8d7b1, #e6b37c);
  display: grid;
  place-items: center;
  font-weight: 700;
  touch-action: none;
  box-shadow: 0 12px 18px rgba(46, 29, 20, 0.14);
}

.drag-piece.stage-1 {
  background: linear-gradient(180deg, #fffaf0, #efe6d5);
}

.drag-piece.stage-2 {
  background: linear-gradient(180deg, #ffe28e, #f2ba4a);
}

.drag-piece.stage-3 {
  background: linear-gradient(180deg, #d2a56c, #b87e42);
  color: #fff;
}

.knead-stage {
  padding: 28px;
  background:
    linear-gradient(180deg, #f0dbc2, #e0c19d),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 10px,
      transparent 10px,
      transparent 26px
    );
}

.knead-bench {
  position: relative;
  height: 300px;
  border-radius: 30px;
  background: rgba(255, 245, 229, 0.38);
}

.dough {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 45% 55% 48% 52% / 50% 44% 56% 50%;
  background: linear-gradient(180deg, #f4deb7, #dfbb85);
  box-shadow: 0 22px 28px rgba(46, 29, 20, 0.14);
  touch-action: none;
}

.fold-guide {
  position: absolute;
  inset: 42px 64px;
  border-radius: 30px;
  border: 3px dashed rgba(255, 255, 255, 0.6);
}

.pipe-stage {
  display: grid;
  place-items: center;
}

.cake-board {
  position: relative;
  width: min(460px, 84vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff9f1 0 58%, #ead4b0 58% 65%, transparent 66%);
}

.cake-body {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d7ab, #e9b97f);
  box-shadow: inset 0 0 0 18px rgba(255, 240, 220, 0.6);
}

.pipe-point {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: -9px;
  margin-top: -9px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.pipe-point.done {
  background: #fff2d1;
  box-shadow: 0 0 0 6px rgba(255, 242, 209, 0.25);
}

.piping-bag {
  position: absolute;
  width: 94px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd7dc, #f6a7b4);
  opacity: 0;
  pointer-events: none;
}

.portion-stage {
  padding: 24px;
}

.tray-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tray-slot {
  min-height: 120px;
  border-radius: 24px;
  background: rgba(255, 247, 234, 0.94);
  box-shadow: inset 0 0 0 1px rgba(46, 29, 20, 0.06);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease;
}

.tray-slot:hover {
  transform: translateY(-2px);
}

.tray-slot-art {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2) 35%, rgba(240, 109, 147, 0.28) 36%, rgba(240, 109, 147, 0.2));
}

.tray-slot-label {
  display: block;
}

.tray-slot-dough .dough-art {
  position: relative;
  width: 56px;
  height: 42px;
  border-radius: 52% 48% 46% 54% / 56% 44% 56% 44%;
  background: linear-gradient(180deg, #e7c29c, #d7a679);
  box-shadow:
    inset -6px -6px 0 rgba(166, 113, 76, 0.18),
    inset 8px 8px 0 rgba(255, 243, 221, 0.38);
}

.tray-slot-dough .dough-art::before,
.tray-slot-dough .dough-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #7d4b3a;
  opacity: 0.85;
}

.tray-slot-dough .dough-art::before {
  width: 8px;
  height: 8px;
  top: 10px;
  left: 14px;
  box-shadow: 18px 8px 0 #7d4b3a, 26px -2px 0 #7d4b3a;
}

.tray-slot-dough .dough-art::after {
  width: 7px;
  height: 7px;
  top: 22px;
  left: 10px;
  box-shadow: 16px -10px 0 #7d4b3a, 30px -4px 0 #7d4b3a;
}

.tray-slot-batter .batter-art {
  position: relative;
  width: 54px;
  height: 40px;
  border-radius: 48% 52% 50% 50% / 58% 58% 42% 42%;
  background: linear-gradient(180deg, #f2d0a5, #e5b67f);
  box-shadow:
    inset 0 -8px 0 rgba(194, 129, 76, 0.18),
    inset 10px 10px 0 rgba(255, 243, 221, 0.34);
}

.tray-slot-batter .batter-art::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 12px;
  left: 16px;
  top: -6px;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.68);
}

.tray-slot-batter .batter-art::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: 8px;
  bottom: -2px;
  border-radius: 50%;
  background: rgba(201, 139, 86, 0.22);
}

.tray-slot.filled {
  background: linear-gradient(180deg, #d1a26e, #b97a44);
  color: #fff;
}

.results-card {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: left;
}

.results-plate {
  padding: 32px 28px;
  border-radius: 40px;
  background:
    radial-gradient(circle at center, #fffdf8 0 28%, #f6dce8 28% 37%, transparent 38%),
    linear-gradient(180deg, rgba(255, 248, 251, 0.96), rgba(255, 227, 239, 0.94));
}

.results-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.results-copy {
  text-align: left;
}

.result-stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 2.4rem;
}

.star {
  color: rgba(46, 29, 20, 0.18);
}

.star.active {
  color: var(--gold);
  text-shadow: 0 6px 18px rgba(242, 178, 61, 0.38);
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.result-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 247, 252, 0.96);
  font-weight: 700;
}

.recipe-reveal {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 248, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(85, 47, 67, 0.08);
}

.recipe-reveal-head {
  margin-bottom: 12px;
}

.recipe-reveal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.library-panel {
  margin-top: 22px;
}

.library-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recipe-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 247, 234, 0.94);
  box-shadow: inset 0 0 0 1px rgba(46, 29, 20, 0.08);
}

.recipe-card.selected {
  box-shadow:
    inset 0 0 0 2px rgba(240, 109, 147, 0.28),
    0 16px 30px rgba(240, 109, 147, 0.12);
}

.recipe-card.locked {
  opacity: 0.74;
}

.recipe-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.recipe-card-title {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-family: "Chewy", cursive;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(46, 29, 20, 0.08);
}

.badge.easy {
  background: rgba(137, 210, 179, 0.24);
}

.badge.medium {
  background: rgba(244, 201, 108, 0.26);
}

.badge.hard {
  background: rgba(240, 109, 147, 0.22);
}

.recipe-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.small-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .hero,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mascot-wrap,
  .results-top,
  .season-stage,
  .recipe-reveal-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .status-grid,
  .hero-mini-stats,
  .tray-grid,
  .recipe-grid,
  .heat-stage,
  .dredge-lane,
  .recipe-reveal-columns {
    grid-template-columns: 1fr;
  }

  .library-head {
    align-items: start;
    flex-direction: column;
  }

  .arena-panel {
    min-height: 660px;
  }
}
