
#adventureScreen[data-scene="kitchen"] {
  background: radial-gradient(ellipse at top, #fff9eb, #ecdfc3 95%);
  color: #493c2a;
}
#adventureScreen[data-scene="kitchen"] .adv-top {
  background: #faf2df;
  border-color: #d9c9a6;
}
#kitchenView { --ink: #4b402e; --green: #4a6140; --paper: #fcf5e4; --line: #d9c9a6; }
#kitchenView [hidden] { display: none !important; }
.recipe-cover {
  position: relative;
  min-height: 177px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid #816748;
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(90deg, #2b241beb 0%, #3d3022db 34%, #342a1c7d 68%, #33291f58),
    url("assets/tree-room.png") 40% 40% / cover;
  color: #fff2cd;
  box-shadow: inset 0 0 0 4px #f8dda527, 0 5px 14px #6f4c332b;
}
.recipe-cover h2 {
  margin: 4px 0 8px;
  font: 700 clamp(26px, 4.5vw, 43px)/1.12 Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  color: inherit;
}
.recipe-cover p { margin: 0; color: #fcf0d2; font-size: .95rem; }
.recipe-cover-copy > span { color: #dedbb2; font-size: .84rem; }
.recipe-cover-nav { display: grid; justify-items: end; gap: 12px; }
.recipe-languages, .recipe-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.recipe-languages button, .recipe-tabs button {
  padding: 8px 13px;
  min-height: 44px;
  background: #f8efd7;
  border: 1px solid #e1d7ba;
  border-radius: 12px;
  color: #4e4c37;
  font: inherit;
}
.recipe-languages button { padding: 5px 10px; transition: none; }
.recipe-languages button[aria-pressed="true"], .recipe-tabs button[aria-pressed="true"] {
  background: #526744;
  border-color: #82956e;
  color: #fff9e8;
}
.recipe-pages, .recipe-pantry-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 17px;
  margin-top: 13px;
  border: 1px solid #c9b584;
  border-radius: 12px 12px 23px 23px;
  background: repeating-linear-gradient(92deg, #9b764430 0 1px, transparent 1px 11px),
    linear-gradient(100deg, #e4d1a6, #f5e9cd 50%, #e4d2aa);
  box-shadow: inset 0 0 0 4px #f4e4c3a0, 0 5px 0 #bda77b4d;
}
.recipe-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 5px #53462b15;
  overflow: hidden;
}
.recipe-learned { border-color: #9eab81; }
.recipe-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 154px;
  padding: 12px 18px;
  border-bottom: 1px solid #ded2ac;
  background: radial-gradient(ellipse at 50% 52%, #fef9e9, #e5dbb7);
}
.recipe-learned .recipe-art { background: radial-gradient(ellipse at 50% 52%, #fff9e7, #d8e1c2); }
.recipe-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.recipe-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #c8b38c;
  border-radius: 20px;
  background: #fcf2d7;
  color: #654b33;
  font-size: .74rem;
}
.recipe-badge i {
  position: relative;
  width: 9px;
  height: 7px;
  margin-top: 3px;
  border-radius: 2px;
  background: currentColor;
}
.recipe-badge i::before {
  position: absolute;
  content: "";
  left: 1px;
  top: -4px;
  width: 7px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 5px 5px 0 0;
}
.recipe-learned .recipe-badge { background: #edf1db; color: #435837; border-color: #a3af8c; }
.recipe-learned .recipe-badge i { width: 9px; height: 6px; margin-top: -2px; background: transparent; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); border-radius: 0; }
.recipe-learned .recipe-badge i::before { display: none; }
.recipe-details { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 13px 14px 15px; }
.recipe-details h3, .recipe-sale h3 {
  font: 700 1.11rem/1.2 Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}
.recipe-ingredients { display: grid; gap: 4px; list-style: none; margin: 0 0 3px; padding: 0; }
.recipe-ingredients li { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: #efeeda; font-size: .8rem; }
.recipe-ingredients li.recipe-short { background: #f5e9d5; }
.recipe-ingredients li > img { width: 30px; height: 26px; object-fit: contain; flex: none; }
.recipe-stock-name { min-width: 0; flex: 1; }
.recipe-stock-name small { display: block; color: #645e46; font-size: .74rem; }
.recipe-missing, .recipe-cost-hint { color: #87492f; font-size: .75rem; }
.recipe-missing { text-align: end; }
.recipe-prices { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; color: #665632; font-size: .8rem; }
.recipe-prices strong { color: #5f4924; }
#kitchenView .recipe-action, .recipe-sale button { min-height: 44px; background: #526743; color: #fffaf0; }
#kitchenView .recipe-locked .recipe-action { background: #745b3c; }
#kitchenView .recipe-action:disabled, .recipe-sale button:disabled { background: #e8dfca; color: #605746; }
.recipe-cost-hint { margin-top: -5px; text-align: center; }
.recipe-pantry-page { grid-template-columns: 1fr; }
.recipe-sale {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.recipe-sale img { width: 64px; height: 54px; object-fit: contain; }
.recipe-sale p { margin: 4px 0 0; color: #645e46; font-size: .82rem; }
.recipe-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  position: fixed;
  right: max(12px, calc((100vw - 1120px) / 2));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 4;
  max-width: min(415px, calc(100vw - 24px));
  padding: 10px 14px;
  pointer-events: none;
  box-shadow: 0 5px 18px #5e583b36;
  border: 1px solid #9fac7e;
  border-radius: 13px;
  background: #eaf1d9;
  color: #3e5738;
}
.recipe-notice img { width: 44px; height: 36px; object-fit: contain; }
.recipe-celebrate { animation: recipe-flourish .62s ease-out; }
@keyframes recipe-flourish {
  0% { background: #fff4be; box-shadow: 0 0 0 5px #f1d69091; }
  100% { background: #eaf1d9; box-shadow: 0 0 0 0 #f1d69000; }
}
.recipe-pantry { margin: 19px 0 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.recipe-pantry summary { padding: 5px 0; cursor: pointer; color: var(--green); font-weight: bold; }
.recipe-pantry .store-row span { display: flex; align-items: center; gap: 5px; }
.recipe-pantry img { width: 25px; height: 25px; object-fit: contain; }
.recipe-empty { margin: 7px 0; padding: 10px; color: #62583e; }
#kitchenView #upgradeBag { min-height: 44px; margin: 5px 0; }

.recipe-dialog {
  width: min(425px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  box-sizing: border-box;
  margin: auto;
  padding: 19px 21px;
  overflow: auto;
  border: 1px solid #b29d72;
  border-radius: 22px;
  color: #493c2a !important;
  background: #fff5de !important;
  box-shadow: 0 12px 42px #352a2366;
  text-align: center;
}
.recipe-dialog::backdrop { background: #33281991; backdrop-filter: blur(3px); }
.recipe-dialog h3, .recipe-dialog p { color: inherit !important; }
.recipe-dialog h3 { font: 700 1.34rem/1.2 Georgia, "Songti SC", "Noto Serif CJK SC", serif; margin: 12px 0 6px; }
.recipe-dialog p { margin: 6px 0 13px; }
.recipe-dialog > img { display: block; width: 100%; height: 112px; object-fit: contain; }
.recipe-dialog-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.recipe-dialog button { min-height: 44px; }
.recipe-cook-stage {
  border: 1px solid #d3bd96;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 65%, #fff4dacc, #e5c99e40), url("assets/tree-room.png") 45% 48% / cover;
}
#kitchenView #cookCanvas { width: 100%; height: min(215px, 41vh); background: transparent; }
#recipeFinishedArt { display: block; width: 100%; height: min(215px, 41vh); padding: 10px; object-fit: contain; animation: recipe-dish-appear .38s ease-out; }
@keyframes recipe-dish-appear {
  from { opacity: .1; transform: scale(.89); }
  to { opacity: 1; transform: scale(1); }
}
#kitchenView :focus-visible { outline: 3px solid #798e59; outline-offset: 3px; }
@media (max-width: 880px) {
  .recipe-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
  .recipe-cover { flex-direction: column; align-items: stretch; background-position: 41% 36%; }
  .recipe-cover-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
  .recipe-tabs button, .recipe-languages button { font-size: .82rem; }
  .recipe-pages, .recipe-pantry-page { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
  .recipe-art { height: 140px; }
  .recipe-sale { grid-template-columns: 53px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .recipe-sale img { width: 53px; }
  .recipe-sale button { grid-column: 1 / -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .recipe-celebrate, #recipeFinishedArt { animation: none; }
}


.recipe-pages > .recipe-group { grid-column: 1 / -1; margin: .6em 0 0; }
