/* baking: spillregler flyttet ut av styles.css 11. oktober 2026, i samme rekkefølge.
   Lastes rett etter styles.min.css på universet.html. */
.baking-game::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    radial-gradient(circle, rgba(17, 106, 141, 0.25) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(230, 91, 91, 0.2) 0 4px, transparent 5px);
  background-position: 24px 27px, 84px 76px;
  background-size: 118px 118px, 154px 154px;
}
.baking-game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.baking-game__head h3 {
  margin: 9px 0 6px;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
}
.baking-game__head p {
  max-width: 770px;
  margin: 0;
}
.baking-game__score strong,
.baking-game__score span {
  padding: 9px 14px;
  font-family: var(--font-title);
}
.baking-game__score strong {
  color: #ffe27a;
  font-size: 1.06rem;
}
.baking-game__score span {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}
.baking-recipes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.baking-recipes button {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 13px 9px 11px;
  color: var(--fjord-deep);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(18, 59, 83, 0.13);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.baking-recipes button > span,
.baking-recipes button strong,
.baking-recipes button small {
  display: block;
}
.baking-recipes button > span {
  margin-bottom: 5px;
  font-size: 2rem;
  filter: drop-shadow(0 4px 5px rgba(18, 59, 83, 0.17));
}
.baking-recipes button strong {
  font-family: var(--font-title);
  font-size: clamp(0.92rem, 1.55vw, 1.12rem);
}
.baking-recipes button small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.2;
}
.baking-recipes button:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}
.baking-recipes button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--sun);
  background: linear-gradient(145deg, #bd4e58, var(--plum));
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.32), 0 11px 22px rgba(64, 43, 80, 0.25);
}
.baking-recipes button[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.82);
}
.baking-recipes button.is-completed::after {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--white);
  content: "✓";
  border: 3px solid var(--white);
  border-radius: 50%;
  background: #4eaa72;
  font-weight: 950;
  box-shadow: 0 5px 10px rgba(18, 59, 83, 0.2);
}
.baking-game__toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 12px 14px;
  border: 3px solid rgba(17, 106, 141, 0.15);
  border-radius: 22px 22px 10px 10px;
  background: rgba(255, 255, 255, 0.82);
}
.baking-game__toolbar > div:first-child {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.baking-game__toolbar strong {
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 1.16rem;
}
.baking-game__toolbar span {
  color: var(--muted);
  font-weight: 800;
}
.baking-game__toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.baking-game__toolbar-actions .button {
  min-height: var(--tap);
  margin: 0;
  padding: 8px 13px;
  white-space: nowrap;
}
.baking-progress {
  height: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 0 0 14px 14px;
  background: rgba(18, 59, 83, 0.15);
  box-shadow: inset 0 2px 5px rgba(18, 59, 83, 0.12);
}
.baking-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e45c5b, var(--sun), #63b89d);
  transition: width 420ms ease;
}
.baking-game__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  margin-top: 22px;
}
.baking-game__stage::after {
  position: absolute;
  inset: 42% 0 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(18, 59, 83, 0.24) 30%, rgba(18, 59, 83, 0.78));
}
.baking-game__task {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: grid;
  max-width: calc(100% - 36px);
  padding: 12px 17px;
  color: var(--fjord-deep);
  border: 4px solid var(--white);
  border-radius: 20px 20px 20px 6px;
  background: #ffe27a;
  box-shadow: 0 10px 24px rgba(18, 59, 83, 0.26);
}
.baking-game__task span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.baking-game__task strong {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}
.baking-counter {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  min-height: 146px;
  align-items: flex-end;
  justify-content: center;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(90deg, #8d5838 0 56px, #79482d 57px 59px);
  box-shadow: inset 0 8px 14px rgba(255, 255, 255, 0.12), 0 12px 25px rgba(18, 59, 83, 0.32);
}
.baking-counter__whisk {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: calc(50% + 48px);
  font-size: 3.7rem;
  transform: rotate(24deg);
  filter: drop-shadow(0 5px 5px rgba(18, 59, 83, 0.25));
  transform-origin: 28% 82%;
}
.baking-mix {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.baking-mix[hidden] {
  display: none;
}
.baking-mix strong {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 5px 10px;
  color: var(--fjord-deep);
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #ffe27a;
  font-family: var(--font-title);
  font-size: 0.82rem;
  box-shadow: 0 5px 12px rgba(18, 59, 83, 0.22);
}
.baking-mix__spark {
  position: absolute;
  color: #ffe27a;
  font-size: 1.35rem;
  text-shadow: 0 2px 0 rgba(64, 43, 80, 0.26);
  animation: baking-sparkle 620ms ease-in-out infinite alternate;
}
.baking-mix__spark--one { bottom: 72px; left: calc(50% - 92px); }
.baking-mix__spark--two { bottom: 104px; left: calc(50% - 50px); animation-delay: 120ms; }
.baking-mix__spark--three { bottom: 91px; left: calc(50% + 63px); color: #f16b62; animation-delay: 240ms; }
.baking-mix__spark--four { bottom: 60px; left: calc(50% + 96px); animation-delay: 360ms; }
.baking-bowl {
  position: relative;
  z-index: 3;
  width: 180px;
  height: 92px;
  margin-bottom: 13px;
  overflow: hidden;
  border: 6px solid var(--white);
  border-top: 10px solid #d2f0ee;
  border-radius: 12px 12px 92px 92px;
  background: linear-gradient(145deg, #8ed4cd, #3ca0a2);
  box-shadow: 0 10px 0 rgba(64, 43, 80, 0.16), 0 15px 28px rgba(18, 59, 83, 0.3);
}
.baking-bowl::after {
  position: absolute;
  inset: 10px 18px auto;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}
.baking-bowl__inside {
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 8%;
  border-radius: 8px 8px 72px 72px;
  background: linear-gradient(#ffe5a5, #e8b66a);
  transition: height 420ms ease;
}
.baking-bowl__inside::before {
  position: absolute;
  top: 6px;
  right: 12px;
  left: 12px;
  height: 18px;
  content: "";
  opacity: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0 4px, rgba(217, 145, 68, 0.8) 5px 9px, transparent 10px 15px);
}
.baking-game.is-mixing .baking-counter__whisk {
  animation: baking-stir 520ms ease-in-out infinite;
}
.baking-game.is-mixing .baking-bowl {
  animation: baking-bowl-wobble 420ms ease-in-out infinite alternate;
}
.baking-game.is-mixing .baking-bowl__inside::before {
  opacity: 0.92;
  animation: baking-batter-swirl 680ms linear infinite;
}
.baking-game.is-final-mixing .baking-counter {
  box-shadow: inset 0 8px 14px rgba(255, 255, 255, 0.18), 0 0 0 6px rgba(246, 196, 83, 0.66), 0 16px 34px rgba(18, 59, 83, 0.4);
}
.baking-counter__steps {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.baking-counter__steps span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 3px 7px rgba(18, 59, 83, 0.2);
}
.baking-drop {
  position: absolute;
  z-index: 8;
  top: 105px;
  left: 50%;
  font-size: 3.8rem;
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgba(18, 59, 83, 0.3));
  animation: baking-drop 720ms cubic-bezier(0.28, 0.64, 0.45, 1) forwards;
}
.baking-game__finished {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(calc(100% - 26px), 620px);
  padding: 10px;
  color: var(--fjord-deep);
  text-align: left;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: linear-gradient(145deg, #fffdf4, #fff0ba);
  box-shadow: 0 20px 48px rgba(18, 59, 83, 0.42);
  transform: translate(-50%, -50%) rotate(-1deg);
  animation: baking-pop 520ms cubic-bezier(0.18, 0.84, 0.28, 1.2);
}
.baking-game__finished[hidden] {
  display: none;
}
.baking-game__finished > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  box-shadow: 0 9px 22px rgba(18, 59, 83, 0.23);
}
.baking-game__finished-copy {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 8px 10px 5px;
}
.baking-game__finished-copy > span:first-child {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  font-size: 2.1rem;
  filter: drop-shadow(0 6px 6px rgba(18, 59, 83, 0.18));
}
.baking-game__finished-copy > span:last-child {
  display: grid;
}
.baking-game__finished strong {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}
.baking-game__finished small {
  color: var(--muted);
  font-weight: 900;
}
.baking-game__choices {
  display: grid;
  gap: 14px;
  align-content: start;
}
.baking-game__choices > section {
  padding: 15px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 11px 24px rgba(18, 59, 83, 0.14);
}
.baking-game__choice-head {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
}
.baking-game__choice-head > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--plum);
  font-family: var(--font-title);
  font-weight: 950;
}
.baking-game__choice-head h4,
.baking-game__choice-head p {
  margin: 0;
}
.baking-game__choice-head h4 {
  font-size: 1.16rem;
}
.baking-game__choice-head p {
  color: var(--muted);
  font-size: 0.85rem;
}
.baking-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.baking-ingredient-grid button,
.baking-amount-grid button {
  min-width: 0;
  min-height: var(--tap);
  color: var(--fjord-deep);
  cursor: pointer;
  border: 3px solid rgba(17, 106, 141, 0.14);
  background: var(--white);
  box-shadow: 0 5px 0 rgba(18, 59, 83, 0.1);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.baking-ingredient-grid button {
  min-height: 82px;
  padding: 8px 5px;
  border-radius: 16px;
}
.baking-ingredient-grid button span,
.baking-ingredient-grid button strong {
  display: block;
}
.baking-ingredient-grid button span {
  font-size: 1.7rem;
}
.baking-ingredient-grid button strong {
  margin-top: 3px;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(0.7rem, 1.15vw, 0.88rem);
  line-height: 1.05;
  text-overflow: ellipsis;
}
.baking-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.baking-amount-grid button {
  padding: 9px 6px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 900;
}
.baking-ingredient-grid button:hover,
.baking-amount-grid button:hover {
  transform: translateY(-2px);
}
.baking-ingredient-grid button[aria-pressed="true"],
.baking-amount-grid button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--plum);
  background: var(--plum);
  box-shadow: 0 0 0 4px #ffe06a, 0 8px 16px rgba(64, 43, 80, 0.25);
  transform: translateY(-2px);
}
.baking-ingredient-grid button.is-correct,
.baking-amount-grid button.is-correct {
  color: var(--white);
  border-color: #2f6e49;
  /* Hvit tekst på grønt med kontrast 4,5:1 (før 2,9:1). */
  background: #3c8458;
  box-shadow: 0 0 0 4px #b8f2c9, 0 8px 16px rgba(30, 110, 67, 0.22);
}
.baking-ingredient-grid button.is-wrong,
.baking-amount-grid button.is-wrong {
  border-color: #dc5056;
  background: #ffe5e5;
  animation: baking-shake 380ms ease;
}
.baking-game__add {
  width: 100%;
  min-height: 58px;
  margin: 0;
  font-size: 1.05rem;
}
.baking-game__add:disabled {
  color: rgba(18, 59, 83, 0.55);
  cursor: not-allowed;
  background: #d8e5e7;
  box-shadow: none;
  transform: none;
}
.baking-action[hidden],
.baking-action__stir[hidden],
.baking-action__cook[hidden],
.baking-action__next[hidden] {
  display: none !important;
}
.baking-action {
  grid-column: 1 / -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 7%, rgba(246, 196, 83, .45), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(218,244,239,.94)) !important;
}
.baking-action__stir {
  display: grid;
  gap: 11px;
  justify-items: stretch;
}
.baking-stir-pad {
  position: relative;
  display: grid;
  min-height: 225px;
  padding: 18px;
  place-items: center;
  overflow: hidden;
  color: var(--fjord-deep);
  border: 5px solid #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 233, 158, .9), rgba(246, 196, 83, .34) 29%, transparent 30%),
    linear-gradient(150deg, #8dd7d1, #d7f4ed 56%, #fff0bd);
  box-shadow: inset 0 0 0 3px rgba(17, 106, 141, .12), 0 12px 24px rgba(18, 59, 83, .16);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.baking-stir-pad:active { cursor: grabbing; }
.baking-stir-pad::before,
.baking-stir-pad::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: rgba(255,255,255,.38);
}
.baking-stir-pad::before { top: 18px; right: 28px; width: 58px; height: 58px; }
.baking-stir-pad::after { bottom: 30px; left: 24px; width: 34px; height: 34px; }
.baking-stir-pad__bowl {
  position: relative;
  display: block;
  width: 152px;
  height: 108px;
  margin-top: 2px;
  border: 7px solid #fff;
  border-top: 12px solid #d6f5f0;
  border-radius: 18px 18px 84px 84px;
  background: linear-gradient(145deg, #7bc9c4, #218e9a);
  box-shadow: 0 11px 0 rgba(64,43,80,.14), 0 18px 30px rgba(18,59,83,.25);
}
.baking-stir-pad__bowl b {
  position: absolute;
  top: 9px;
  right: 12px;
  left: 12px;
  height: 47px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, #fff0bb 0 9px, #e8b46e 10px 16px, #fff6d7 17px 21px);
  box-shadow: inset 0 4px 9px rgba(146, 89, 40, .24);
}
.baking-stir-pad__bowl i {
  position: absolute;
  z-index: 2;
  top: -53px;
  left: 50%;
  font-size: 4.6rem;
  font-style: normal;
  filter: drop-shadow(0 6px 4px rgba(18,59,83,.26));
  transform: translateX(-12%) rotate(25deg);
  transform-origin: 30% 84%;
}
.baking-stir-pad > strong { position: relative; z-index: 2; margin-top: 4px; font-family: var(--font-title); font-size: 1.28rem; }
.baking-stir-pad > small { position: relative; z-index: 2; color: #446675; font-weight: 850; }
.baking-game.is-hand-stirring .baking-stir-pad__bowl i,
.baking-game.is-hand-stirring .baking-counter__whisk { animation: baking-manual-stir 240ms ease-in-out; }
.baking-game.is-hand-stirring .baking-stir-pad__bowl b { animation: baking-batter-swirl 420ms linear; }
.baking-game.is-hand-stirring .baking-bowl { animation: baking-bowl-wobble 240ms ease-in-out; }
.baking-action__progress {
  height: 18px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 999px;
  background: rgba(18, 59, 83, .15);
  box-shadow: inset 0 2px 5px rgba(18,59,83,.14);
}
.baking-action__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e45c5b, #f6c453, #52b98a);
  transition: width 180ms ease;
}
.baking-action__count { color: var(--fjord-deep); text-align: center; font-family: var(--font-title); }
.baking-action__next { width: 100%; margin-top: 2px; }
.baking-action__cook { display: grid; gap: 12px; }
.baking-cook-visual {
  position: relative;
  display: grid;
  min-height: 218px;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.5) 0 30px, transparent 31px),
    linear-gradient(150deg, #a8ded9, #edf8e8 54%, #ffe7a2);
  box-shadow: 0 12px 25px rgba(18,59,83,.16);
}
.baking-cook-visual__oven {
  position: relative;
  width: 190px;
  height: 165px;
  border: 8px solid #f4f1e8;
  border-radius: 26px;
  background: linear-gradient(145deg, #567681, #183e52);
  box-shadow: 0 13px 0 #ba9168, 0 21px 30px rgba(18,59,83,.28);
}
.baking-cook-visual__oven::before {
  position: absolute;
  inset: 28px 17px 16px;
  content: "";
  border: 6px solid #e8f0ec;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 90%, rgba(255,124,55,.42), transparent 50%), #173543;
  box-shadow: inset 0 0 20px rgba(2,18,25,.58);
}
.baking-cook-visual__oven > span { position: absolute; z-index: 2; top: -1px; left: 19px; font-size: 1.35rem; opacity: .48; }
.baking-cook-visual__oven > i {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 27px;
  left: 28px;
  height: 9px;
  border-radius: 999px;
  background: #d7b17a;
  box-shadow: 0 5px 0 #6f5137;
}
.baking-cook-visual__oven > b {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 23px;
  font-size: 3.6rem;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.34));
  transform: translateX(66px);
  transition: transform 700ms cubic-bezier(.2,.82,.3,1);
}
.baking-cook-visual__pot {
  position: relative;
  width: 190px;
  height: 112px;
  margin-top: 30px;
  border: 7px solid #f6fbf8;
  border-top: 12px solid #dfe9e9;
  border-radius: 20px 20px 54px 54px;
  background: linear-gradient(145deg, #93b0b7, #365965);
  box-shadow: 0 13px 0 #79634e, 0 20px 30px rgba(18,59,83,.26);
}
.baking-cook-visual__pot::before,
.baking-cook-visual__pot::after { position: absolute; top: 22px; width: 48px; height: 18px; content: ""; border: 8px solid #365965; border-radius: 999px; }
.baking-cook-visual__pot::before { left: -58px; }
.baking-cook-visual__pot::after { right: -58px; }
.baking-cook-visual__pot > span { position: absolute; top: -62px; left: 50%; color: #fff; font-size: 3rem; opacity: .34; transform: translateX(-50%); }
.baking-cook-visual__pot > i { position: absolute; right: 15px; bottom: -28px; left: 15px; height: 18px; border-radius: 50%; background: #416d76; box-shadow: 0 0 0 8px #a77b54; }
.baking-cook-visual__pot > b { position: absolute; top: 10px; left: 50%; font-size: 2.8rem; transform: translateX(-50%); }
.baking-cook-visual:not([data-cook-kind="stove"]) .baking-cook-visual__pot { display: none; }
.baking-cook-visual[data-cook-kind="stove"] .baking-cook-visual__oven { display: none; }
.baking-action__instruction { margin: 0; color: var(--fjord-deep); font-weight: 900; text-align: center; }
.baking-cook-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.baking-cook-options button {
  display: grid;
  min-height: 70px;
  padding: 9px 7px;
  place-items: center;
  border: 3px solid rgba(17,106,141,.17);
  border-radius: 17px;
  color: var(--fjord-deep);
  background: #fff;
  box-shadow: 0 5px 0 rgba(18,59,83,.1);
  cursor: pointer;
}
.baking-cook-options button strong { font-family: var(--font-title); font-size: 1rem; }
.baking-cook-options button small { color: var(--muted); font-weight: 800; }
.baking-cook-options button[aria-pressed="true"] { border-color: var(--plum); box-shadow: 0 0 0 4px #ffe06a, 0 7px 14px rgba(64,43,80,.2); }
.baking-cook-options button.is-wrong { border-color: #dc5056; background: #ffe5e5; animation: baking-shake 380ms ease; }
.baking-cook-options button.is-correct { color: #fff; border-color: #278057; background: #3c8458; }
.baking-cook-options button.is-correct small { color: #fff; }
.baking-action__cook-button { width: 100%; min-height: 56px; }
.baking-action__cook-button:disabled { color: rgba(18,59,83,.55); background: #d8e5e7; box-shadow: none; }
.baking-action__feedback { min-height: 50px; margin: 2px 0 0; padding: 10px 12px; border-left: 5px solid var(--sun); border-radius: 0 14px 14px 0; background: #fff7d8; color: var(--fjord-deep); font-weight: 850; }
.baking-cook-visual.is-too-hot { background: linear-gradient(145deg, #ffd3a0, #ff8d70); animation: baking-heat-warning 420ms ease; }
.baking-cook-visual.is-too-hot .baking-cook-visual__pot > span { opacity: 1; animation: baking-steam 700ms ease-in-out infinite alternate; }
.baking-cook-visual.is-too-cold { filter: saturate(.7) brightness(.96); }
.baking-cook-visual.is-ready { box-shadow: 0 0 0 6px rgba(78,170,114,.45), 0 14px 28px rgba(18,59,83,.2); }
.baking-cook-visual.is-cooking .baking-cook-visual__oven > b { transform: translateX(-58px) scale(.82); }
.baking-cook-visual.is-cooking .baking-cook-visual__pot > span { opacity: .9; animation: baking-steam 650ms ease-in-out infinite alternate; }
.baking-cook-visual.is-cooking .baking-cook-visual__pot { animation: baking-pot-warm 520ms ease-in-out infinite alternate; }
.baking-game__feedback {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  margin-top: 18px;
  padding: 12px 16px;
  color: var(--fjord-deep);
  border: 3px solid rgba(17, 106, 141, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(18, 59, 83, 0.1);
}
.baking-game__feedback > span {
  font-size: 2rem;
}
.baking-game__feedback p {
  margin: 0;
  font-weight: 850;
}
.baking-game__adult-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.baking-game.is-complete .baking-game__stage {
  box-shadow: 0 0 0 7px var(--sun), 0 20px 44px rgba(18, 59, 83, 0.34);
}
.baking-game__finish-image {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 16px auto 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--white);
  border-radius: 22px;
  background: var(--sky);
  box-shadow: 0 12px 28px rgba(18, 59, 83, 0.24);
}
.baking-game__finish-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.025);
}
.baking-recipes button:focus-visible,
.baking-game__toolbar button:focus-visible,
.baking-ingredient-grid button:focus-visible,
.baking-amount-grid button:focus-visible,
.baking-game__add:focus-visible,
.baking-stir-pad:focus-visible,
.baking-cook-options button:focus-visible,
.baking-action button:focus-visible {
  z-index: 3;
  outline: 4px solid var(--fjord-deep);
  outline-offset: 4px;
}
@keyframes baking-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.62) rotate(4deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
}
@keyframes baking-bowl-wobble {
  from { transform: translateX(-2px) rotate(-1deg); }
  to { transform: translateX(2px) rotate(1deg); }
}
@keyframes baking-batter-swirl {
  to { transform: rotate(360deg) scale(1.08); }
}
@keyframes baking-sparkle {
  from { opacity: 0.35; transform: translateY(8px) scale(0.7) rotate(-12deg); }
  to { opacity: 1; transform: translateY(-8px) scale(1.18) rotate(14deg); }
}
@keyframes baking-shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}
@keyframes baking-manual-stir {
  0% { transform: translateX(-12%) rotate(12deg); }
  50% { transform: translateX(-42%) rotate(-36deg); }
  100% { transform: translateX(-12%) rotate(25deg); }
}
@keyframes baking-heat-warning {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}
@keyframes baking-steam {
  from { transform: translate(-50%, 10px) scale(.85); opacity: .35; }
  to { transform: translate(-50%, -8px) scale(1.12); opacity: 1; }
}
@keyframes baking-pot-warm {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}
[data-calm="true"] .baking-game *,
[data-calm="true"] .baking-game *::before,
[data-calm="true"] .baking-game *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .baking-game *,
  .baking-game *::before,
  .baking-game *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 980px) {
  .baking-game__workspace {
    grid-template-columns: 1fr;
  }
  .baking-game__stage {
    min-height: 540px;
  }
  .baking-game__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .baking-game__add {
    grid-column: 1 / -1;
  }
  .baking-action { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .baking-game__head {
    grid-template-columns: 1fr;
  }
  .baking-game__score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .baking-game__score span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  .baking-recipes {
    display: flex;
    padding: 4px 3px 11px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .baking-recipes button {
    min-width: 132px;
    min-height: 118px;
    scroll-snap-align: start;
  }
  .baking-game__toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .baking-game__toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .baking-game__toolbar-actions .button {
    width: 100%;
  }
}
@media (max-width: 620px) {
  .baking-game__choices {
    grid-template-columns: 1fr;
  }
  .baking-game__stage {
    min-height: 470px;
    border-width: 4px;
    border-radius: 22px;
  }
  .baking-game__stage > img {
    object-position: 50% 40%;
  }
  .baking-counter {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 132px;
    border-width: 4px;
  }
  .baking-bowl {
    width: 150px;
    height: 78px;
  }
  .baking-counter__whisk {
    left: calc(50% + 36px);
    font-size: 3.2rem;
  }
  .baking-counter__steps span {
    width: 27px;
    height: 27px;
    font-size: 0.86rem;
  }
  .baking-ingredient-grid button {
    min-height: 76px;
  }
  .baking-drop {
    top: 92px;
  }
  .baking-game__adult-note {
    padding-inline: 6px;
    text-align: left;
  }
  .baking-game__finished {
    width: calc(100% - 16px);
    padding: 7px;
    border-width: 4px;
  }
  .baking-game__finished-copy {
    padding-inline: 5px;
  }
  .baking-game__finished-copy > span:first-child {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
  .baking-stir-pad { min-height: 205px; }
  .baking-cook-visual { min-height: 200px; }
  .baking-cook-options button { min-height: 66px; }
  .baking-cook-options button small { font-size: .72rem; }
}
.baking-print-button { color: #123d54; border-color: #123d54; background: #fff; }
.baking-print-button:hover { color: #fff; background: #123d54; }
.baking-fact-sources { margin-top: 14px; padding: 12px 16px; border: 2px solid rgba(18,61,84,.16); border-radius: 16px; color: #365c6d; background: rgba(255,255,255,.7); font-size: .83rem; }
.baking-fact-sources summary { color: #123d54; font-weight: 900; cursor: pointer; }
.baking-fact-sources p { margin: 10px 0 0; max-width: 980px; }
.baking-fact-sources a { color: #0b6f8d; font-weight: 850; }
.baking-print-sheet { display: none; }
@media print {
  .baking-print-sheet * { box-sizing: border-box; }
  .baking-print-sheet__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 5mm; border-bottom: 1mm solid #f5c44f; }
  .baking-print-sheet__brand { display: flex; align-items: center; gap: 3mm; font-size: 17pt; font-weight: 950; }
  .baking-print-sheet__brand img { width: 17mm; height: 17mm; object-fit: cover; border-radius: 50%; }
  .baking-print-sheet__brand span { display: grid; line-height: 1.05; }
  .baking-print-sheet__brand small { margin-top: 1.5mm; color: #557382; font-size: 8pt; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .baking-print-sheet__mark { display: grid; width: 18mm; height: 18mm; place-items: center; border-radius: 50%; background: #f5c44f !important; font-size: 28pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet__title { padding: 8mm 0 6mm; }
  .baking-print-sheet__title > span { display: inline-block; padding: 2mm 4mm; border-radius: 99mm; background: #f5c44f !important; font-size: 8pt; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet__title h2 { margin: 3mm 0 1.5mm; font-size: 30pt; line-height: 1.05; }
  .baking-print-sheet__title p { margin: 0; color: #557382; font-size: 11pt; font-weight: 750; }
  .baking-print-sheet__columns { display: grid; grid-template-columns: .85fr 1.25fr; gap: 8mm; }
  .baking-print-sheet__columns > section { padding: 6mm; border: .7mm solid #c9e3e5; border-radius: 5mm; background: rgba(255,255,255,.9) !important; break-inside: avoid; }
  .baking-print-sheet__columns h2 { margin: 0 0 4mm; font-size: 16pt; }
  .baking-print-sheet ul,
  .baking-print-sheet ol { margin: 0; padding-left: 6mm; font-size: 10.5pt; line-height: 1.38; }
  .baking-print-sheet li + li { margin-top: 2.5mm; }
  .baking-print-sheet__oven { display: grid; gap: 1mm; margin-top: 6mm; padding: 4mm; border-radius: 4mm; background: #fff3c7 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet__oven strong { font-size: 9pt; text-transform: uppercase; }
  .baking-print-sheet__oven span { font-size: 10pt; font-weight: 800; }
  .baking-print-sheet aside { display: flex; align-items: center; gap: 4mm; margin-top: 7mm; padding: 5mm 6mm; border-radius: 5mm; color: #fff; background: #0d7894 !important; font-size: 14pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet aside span { font-size: 25pt; }
  .baking-print-sheet footer { display: flex; justify-content: space-between; margin-top: 7mm; padding-top: 3mm; border-top: .5mm solid #c9e3e5; color: #557382; font-size: 8pt; font-weight: 800; }
}
