@charset "UTF-8";
:root {
  --cream: #faf5e9;
  --paper: #fffdf6;
  --teal: #215e55;
  --ink: #294e43;
  --muted: #827d66;
  --orange: #dd682e;
  --line: #e5ddc9;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: #efeada;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #257f78;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
}
button,
a {
  -webkit-user-select: none;
  user-select: none;
}
.desktop-note {
  display: none;
}
.app-shell {
  position: relative;
  max-width: 460px;
  margin: auto;
  min-height: 100dvh;
  background: var(--cream);
  isolation: isolate;
  box-shadow: 0 0 80px #5548270d;
}
.app-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23766b42' filter='url(%23n)' opacity='.16' d='M0 0h150v150H0z'/%3E%3C/svg%3E");
}
.screen {
  position: relative;
  min-height: 100dvh;
  padding: 0 23px 94px;
  animation: page-in 0.24s ease;
}
.home-screen {
  display: flex;
  flex-direction: column;
  padding-bottom: 83px;
}
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 51px;
  padding-top: env(safe-area-inset-top, 0px);
}
.festival-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.festival-mark svg {
  width: 18px;
  height: 18px;
}
.preview-label {
  font-size: 10px;
  border: 1px solid #d9d1bd;
  border-radius: 30px;
  background: transparent;
  padding: 6px 9px;
  min-height: 32px;
  color: #827960;
}
.home-title {
  text-align: center;
  padding-top: 7px;
}
.eyebrow {
  color: #9b8052;
  font-size: 10px;
  letter-spacing: 0.23em;
  font-weight: 700;
  line-height: 1.8;
}
.home-title h1 {
  font-size: 28px;
  letter-spacing: 0.07em;
  line-height: 1.5;
  font-weight: 700;
}
.home-title h1 span {
  color: #bc5d30;
}
.pot-stage {
  height: 191px;
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.pot-img {
  height: 185px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 5px 3px #7f5b2620);
  animation: float-pot 5s ease-in-out infinite;
}
.pot-glow {
  position: absolute;
  width: 220px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #f0daa4a1, transparent 72%);
  bottom: 7px;
}
.pot-shadow {
  position: absolute;
  background: #c1b99b40;
  width: 150px;
  height: 12px;
  border-radius: 50%;
  bottom: 6px;
  filter: blur(3px);
}
.spark {
  position: absolute;
  color: #bdaa62;
  font-size: 29px;
}
.spark-one {
  left: 15%;
  top: 43px;
  transform: rotate(-15deg);
}
.spark-two {
  right: 17%;
  top: 80px;
  font-size: 21px;
}
.selection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 12px;
  min-height: 40px;
}
.empty-slot,
.selected-slot {
  width: 130px;
  height: 39px;
  border: 1px dashed #c8b998;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  background: #fffaf0;
  color: #8e8065;
}
.empty-slot > span {
  font-size: 18px;
  color: #b7a785;
}
.selection-plus {
  font-size: 17px;
  color: #aaa080;
}
.selected-slot {
  border-style: solid;
  border-color: #6d9580;
  background: #edf1df;
  color: var(--teal);
  position: relative;
}
.selected-slot .ingredient-art {
  width: 31px;
  height: 31px;
}
.selected-slot small {
  margin-left: 4px;
  font-size: 17px;
  color: #63735a;
}
.shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.selection-count {
  font-size: 10px;
  font-weight: 400;
  color: #9a8b6a;
}
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 10px;
}
.ingredient {
  background: transparent;
  padding: 0 0 2px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  border-radius: 14px;
  min-width: 0;
}
.ingredient-plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 61px;
  height: 56px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition:
    background 0.18s,
    border 0.18s,
    transform 0.18s;
}
.ingredient:hover .ingredient-plate {
  background: #e8e2cda0;
  transform: translateY(-2px);
}
.ingredient.suggested .ingredient-plate {
  background: #ecebd8;
  border: 1px dashed #a6ad71;
}
.ingredient.selected .ingredient-plate {
  background: #dfe9ce;
  border: 1.5px solid #537e59;
  transform: translateY(-2px);
}
.ingredient-art {
  display: inline-block;
  width: 54px;
  height: 54px;
  background-image: url("../assets/v3/ingredients.png");
  background-size: 400% 300%;
  background-position: calc(var(--x) * 100% / 3) calc(var(--y) * 100% / 2);
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.ingredient-name {
  font-size: 11px;
  line-height: 1.6;
  color: #554e3b;
}
.selected-tick {
  display: none;
}
.selected .selected-tick {
  display: grid;
  place-items: center;
  position: absolute;
  right: -3px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  background: #4c7253;
  color: white;
  border-radius: 50%;
  border: 2px solid var(--cream);
}
.selected-tick svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}
.hint-line {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 3px 0 6px;
}
.hint-line > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #877d60;
  font-size: 10px;
  line-height: 1.6;
}
.hint-line svg {
  width: 13px;
  height: 13px;
  color: #8b975f;
}
.hint-line button {
  padding: 8px 0 8px 8px;
  background: none;
  font-size: 11px;
  color: #50694d;
  text-decoration: underline;
  text-underline-offset: 4px;
  flex-shrink: 0;
  min-height: 44px;
}
.primary {
  background: var(--orange);
  color: #fffdf2;
  min-height: 51px;
  border: 1px solid #c65a23;
  border-bottom: 4px solid #b84b20;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  box-shadow: 0 4px 0 #eacdaf70;
  transition:
    transform 0.15s,
    background 0.15s;
}
.primary:hover {
  background: #cc5b24;
}
.primary:active {
  transform: translateY(2px);
}
.primary:disabled {
  background: #e9d9bb;
  border-color: #d9c5a1;
  color: #a48d67;
  box-shadow: none;
}
.primary > span:last-child:not(:first-child) {
  margin-left: auto;
}
.cook-button {
  font-size: 18px;
  min-height: 53px;
  position: relative;
  justify-content: center;
}
.cook-button > span:last-child {
  position: absolute;
  right: 18px;
  font-size: 21px;
  font-weight: 400;
}
.home-progress {
  padding: 13px 2px 6px;
}
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8a8065;
  letter-spacing: 0.05em;
}
.progress-row strong {
  font-size: 14px;
  color: #466b52;
}
.progress-row small {
  font-size: 10px;
  color: #96896f;
  font-weight: 400;
}
.progress-track {
  height: 3px;
  background: #e5dfca;
  border-radius: 20px;
  margin-top: 6px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: #889958;
  border-radius: 20px;
  transition: width 0.3s;
}
.bottom-nav {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 460px);
  display: flex;
  justify-content: space-around;
  min-height: 70px;
  padding: 10px 17px calc(9px + env(safe-area-inset-bottom, 0px));
  background: #fbf7edf5;
  border-top: 1px solid #ddd6c2;
  backdrop-filter: blur(14px);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 90px;
  min-height: 45px;
  color: #a09a80;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.bottom-nav svg {
  width: 23px;
  height: 23px;
}
.bottom-nav a.active {
  color: #225f50;
  font-weight: 700;
}
.bottom-nav a.active:after {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: #c5a557;
}
.page-header {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.icon-btn {
  width: 44px;
  height: 44px;
  background: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: #e8e2d2;
}
.page-header .icon-btn:first-child {
  margin-left: -10px;
}
.page-header .icon-btn:last-child {
  margin-right: -10px;
}
.result-content {
  text-align: center;
  padding-top: 10px;
}
.discovery-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: #edf0db;
  padding: 8px 13px;
  border-radius: 30px;
  color: #6c783f;
}
.discovery-badge svg {
  width: 14px;
  height: 14px;
}
.result-art-stage {
  position: relative;
  height: 275px;
  display: grid;
  place-items: center;
  margin: 6px -5px 1px;
}
.result-halo {
  position: absolute;
  width: 248px;
  height: 248px;
  background: radial-gradient(circle, var(--dish-color), transparent 70%);
  opacity: 0.47;
  border-radius: 50%;
}
.dish-art {
  position: relative;
  width: 260px;
  height: 260px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 6px 4px #6e442a14);
}
.result-spark {
  position: absolute;
  top: 35px;
  right: 20px;
  color: #b9a354;
  font-size: 33px;
}
.number-stamp {
  position: absolute;
  left: 4px;
  bottom: 31px;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #8c926b;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #b9bd91;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
  transform: rotate(-12deg);
}
.number-stamp b {
  font-size: 20px;
  font-family: Georgia, serif;
  font-weight: 400;
}
.dish-name {
  font-size: 28px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-top: 5px;
}
.dish-description {
  font-size: 12px;
  line-height: 1.9;
  color: #8a7b63;
  margin-top: 7px;
}
.ingredient-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}
.ingredient-equation > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ingredient-equation .ingredient-art {
  width: 35px;
  height: 35px;
}
.ingredient-equation b {
  font-size: 12px;
  color: #b2a37f;
}
.recipe-link {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  font-size: 11px;
  color: #6f7154;
  min-height: 55px;
}
.recipe-link svg {
  width: 18px;
  height: 18px;
}
.recipe-link > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
}
.result-actions,
.recipe-bottom {
  display: flex;
  gap: 9px;
  margin: 16px 0 12px;
}
.secondary {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8d4bc;
  min-height: 45px;
  border-radius: 12px;
  background: #fffcf1b3;
  color: #667052;
  font-size: 11px;
  padding: 10px;
}
.secondary svg {
  width: 18px;
  height: 18px;
}
.favorite.liked {
  color: #bb643e;
  background: #f6e9da;
}
.favorite.liked svg {
  fill: #e9c3a3;
  stroke: #ac5436;
}
.result-progress {
  margin: 20px 6px;
}
.quiet-note {
  font-size: 11px;
  color: #877b67;
  margin: 10px 0;
}
.pair-art {
  width: 250px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(
    ellipse at 50% 57%,
    #f8edd2 0%,
    #fdf9ed 52%,
    transparent 53%
  );
  z-index: 1;
}
.pair-art .ingredient-art {
  width: 110px;
  height: 110px;
}
.pair-art .ingredient-art:first-child {
  transform: translate(12px, -10px) rotate(-8deg);
}
.pair-art .ingredient-art:nth-child(2) {
  transform: translate(-12px, 12px) rotate(7deg);
}
.pair-caption {
  position: absolute;
  bottom: 19px;
  color: #a18b62;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.fantasy-art {
  position: relative;
  width: 240px;
  height: 250px;
  display: grid;
  place-items: center;
}
.fantasy-art img {
  width: 185px;
  filter: drop-shadow(0 0 12px #d3d6b5);
}
.fantasy-art span,
.fantasy-art i {
  position: absolute;
  font-style: normal;
  color: #a58444;
  font-size: 34px;
}
.fantasy-art span {
  top: 9px;
  left: 12px;
}
.fantasy-art i {
  right: 0;
  bottom: 25px;
}
.fantasy-art.cloud img {
  transform: rotate(-8deg);
}
.fantasy-art.sunset img {
  transform: rotate(8deg);
}
.book-intro {
  padding: 15px 0 19px;
}
.book-intro h1 {
  font-size: 26px;
  margin: 7px 0 11px;
  letter-spacing: 0.04em;
}
.book-intro > p:last-of-type {
  font-size: 12px;
  color: #8a8069;
  line-height: 1.8;
}
.book-progress {
  margin-top: 23px;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 0 0 17px;
}
.filters button {
  background: none;
  border: 1px solid #dad4bd;
  color: #8a8067;
  border-radius: 30px;
  min-height: 38px;
  font-size: 11px;
  padding: 8px 15px;
}
.filters button[aria-pressed="true"] {
  background: #e5ead5;
  border-color: #a6b08a;
  color: #536a45;
}
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.recipe-card {
  min-width: 0;
  min-height: 177px;
  background: #fffdf5;
  border: 1px solid #e3ddc9;
  border-radius: 17px;
  position: relative;
  padding: 10px 7px 14px;
  text-align: center;
  box-shadow: 0 3px 0 #e5dec520;
  overflow: hidden;
}
.recipe-card:hover {
  border-color: #a4ad80;
}
.card-number {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 10px;
  font-family: Georgia, serif;
  color: #b0a37e;
}
.recipe-card strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.recipe-card > small {
  display: block;
  font-size: 9px;
  color: #9b8f71;
  margin-top: 5px;
}
.dish-art.small {
  width: 116px;
  height: 110px;
  margin: 0 auto;
  object-fit: contain;
}
.pair-art.small {
  width: 100%;
  height: 110px;
}
.pair-art.small .ingredient-art {
  width: 62px;
  height: 62px;
}
.pair-art.small .pair-caption {
  display: none;
}
.locked {
  background: #eeecdf66;
  border-style: dashed;
  box-shadow: none;
}
.locked strong {
  color: #9f9c80;
  font-weight: 400;
}
.locked-dish {
  height: 110px;
  display: grid;
  place-items: center;
  position: relative;
  color: #c9c5a9;
}
.locked-dish svg {
  width: 62px;
  height: 62px;
  stroke-width: 1;
}
.locked-dish b {
  position: absolute;
  top: 47px;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: #adab8c;
  background: #f1efdf;
  line-height: 20px;
  width: 20px;
}
.card-heart {
  position: absolute;
  right: 10px;
  top: 9px;
  color: #b46845;
}
.card-heart svg {
  width: 14px;
  height: 14px;
  fill: #efd1b1;
}
.bonus-section {
  margin-top: 30px;
}
.bonus-section h2 {
  font-family: var(--sans);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bonus-section h2 small {
  color: #9b9477;
  font-weight: 400;
  font-size: 11px;
}
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 13px;
}
.bonus-grid button {
  border: 1px dashed #d4cbb0;
  border-radius: 14px;
  min-height: 130px;
  padding: 10px 12px;
  background: #f0e9d8;
  color: #9b8866;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  gap: 12px;
}
.bonus-unknown {
  text-align: center;
  font:
    24px Georgia,
    serif;
}
.bonus-grid strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}
.bonus-copy small {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  margin-top: 7px;
}
.bonus-grid .dish-art.small {
  width: 112px;
  height: 112px;
}
.storage-note {
  font-size: 10px;
  color: #9f957b;
  text-align: center;
  line-height: 1.8;
  margin: 24px 0 7px;
}
.empty-state {
  text-align: center;
  padding: 50px 5px;
}
.empty-state > svg {
  width: 47px;
  height: 47px;
  color: #b6b992;
  stroke-width: 1;
}
.empty-state h2 {
  font-size: 21px;
  margin: 20px 0 12px;
}
.empty-state p {
  font-size: 12px;
  color: #91856d;
  line-height: 2;
}
.empty-state .primary {
  margin-top: 28px;
}
.recipe-hero {
  background: radial-gradient(
    ellipse at 50% 63%,
    var(--dish-color),
    transparent 72%
  );
  border-radius: 25px;
  position: relative;
  height: 256px;
  margin-top: 5px;
  display: grid;
  place-items: center;
}
.recipe-hero .dish-art {
  height: 238px;
  width: 238px;
  margin-top: 16px;
}
.recipe-hero-top {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.recipe-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  border: 1px solid #d8cdb0;
  background: #fcf5e5bb;
  padding: 6px 11px;
  border-radius: 20px;
}
.recipe-body {
  padding: 15px 0 10px;
}
.recipe-body h1 {
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-top: 5px;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 10px;
  color: #8a8064;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.recipe-meta svg {
  width: 15px;
  height: 15px;
}
.recipe-section {
  margin-top: 25px;
}
.recipe-section h2 {
  font-size: 19px;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}
.materials {
  border-top: 1px solid var(--line);
}
.materials > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.materials strong {
  font-weight: 400;
  color: #918366;
  text-align: right;
}
.steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 0;
}
.steps li {
  display: flex;
  gap: 13px;
  margin: 0 0 19px;
  counter-increment: steps;
}
.steps li:before {
  content: counter(steps, decimal-leading-zero);
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6e9d6;
  color: #788556;
  font:
    12px Georgia,
    serif;
}
.steps h3 {
  font-size: 13px;
  padding: 5px 0 6px;
}
.steps p {
  font-size: 12px;
  line-height: 1.9;
  color: #8b7d66;
}
.source-note {
  font-size: 10px;
  color: #a3987d;
  line-height: 1.9;
  margin: 24px 0;
}
.source-note a {
  display: inline-block;
  color: #688170;
  text-decoration: underline;
  margin-top: 9px;
  line-height: 1.7;
}
.recipe-pending {
  padding: 30px 12px;
  background: #edeedc;
  border-radius: 16px;
  margin-top: 25px;
  text-align: center;
}
.recipe-pending > svg {
  color: #94a17b;
  width: 35px;
  height: 35px;
}
.recipe-pending h2 {
  font-size: 19px;
  margin-top: 14px;
}
.recipe-pending p {
  font-size: 12px;
  line-height: 1.9;
  color: #8c8268;
  margin-top: 10px;
}
.recipe-pending a {
  font-size: 11px;
  color: #567450;
  display: block;
  margin-top: 19px;
  text-decoration: underline;
}
.save-warning {
  font-size: 11px;
  color: #924c2a;
  line-height: 1.8;
  background: #f9e8ce;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}
dialog {
  border: 1px solid #e3d9be;
  border-radius: 24px;
  background: #fcf7eb;
  color: var(--ink);
  width: min(92vw, 405px);
  max-height: 90dvh;
  padding: 30px 23px;
  box-shadow: 0 20px 100px #2a382839;
  overflow: auto;
}
dialog::backdrop {
  background: #243c3466;
  backdrop-filter: blur(5px);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}
.modal-close[hidden] {
  display: none;
}
.cooking-scene {
  text-align: center;
  padding: 20px 0;
}
.cooking-scene img {
  width: 230px;
  margin: 18px auto;
  animation: bubble 0.45s ease-in-out infinite alternate;
}
.cooking-scene h2 {
  font-size: 24px;
  margin: 10px 0;
}
.cooking-scene p:not(.eyebrow) {
  font-size: 12px;
  color: #918266;
}
.text-button {
  font-size: 11px;
  color: #6b7c51;
  text-decoration: underline;
  background: none;
  min-height: 44px;
  margin-top: 20px;
}
.export-loading {
  text-align: center;
  padding: 35px 0;
}
.export-loading h2 {
  font-size: 20px;
}
.export-loading p {
  font-size: 12px;
  color: #8d7c60;
  margin-top: 13px;
  line-height: 1.8;
}
.export-preview {
  text-align: center;
}
.export-preview h2 {
  font-size: 23px;
  margin: 9px 0 18px;
}
.export-preview > img {
  max-height: 46dvh;
  width: auto;
  margin: 0 auto 17px;
  border-radius: 8px;
  box-shadow: 0 4px 18px #615d3020;
}
.export-preview > p:last-child {
  font-size: 10px;
  line-height: 1.9;
  color: #938369;
  margin-top: 15px;
}
.about-content {
  padding: 14px 0;
}
.about-content h2 {
  font-size: 25px;
  margin: 5px 0 15px;
}
.about-content h3 {
  font-size: 13px;
  margin: 20px 0 7px;
}
.about-content p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: #8d7d63;
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 96px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: 330px;
  width: max-content;
  background: #315848f2;
  color: #fff9e9;
  padding: 12px 18px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 13px;
  box-shadow: 0 5px 20px #294a3330;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes float-pot {
  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
}
@keyframes bubble {
  to {
    transform: translateY(-3px) rotate(3deg);
  }
}
@keyframes page-in {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 900px) {
  body {
    background:
      radial-gradient(ellipse at 25% 15%, #e3e7d5, transparent 55%), #ece7d8;
  }
  .desktop-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 90px;
    max-width: 1150px;
    margin: auto;
    padding: 32px 30px;
  }
  .desktop-note {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(50vh - 190px);
    width: 340px;
    padding-top: 90px;
  }
  .desktop-note .eyebrow {
    font-size: 11px;
    color: #808c62;
  }
  .desktop-note h2 {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    margin: 18px 0 20px;
  }
  .desktop-note h2 span {
    color: #c36b3d;
  }
  .desktop-note > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: 0.04em;
    color: #8b8067;
  }
  .desktop-note .desktop-footer {
    font-size: 11px;
    margin-top: 65px;
    color: #9a9079;
  }
  .desktop-decoration {
    display: flex;
    gap: 10px;
    margin: 24px 0 0;
  }
  .desktop-decoration i {
    width: 12px;
    height: 12px;
    background: #d0b778;
    border-radius: 50%;
  }
  .desktop-decoration i:nth-child(2) {
    background: #79917b;
  }
  .desktop-decoration i:nth-child(3) {
    background: #cd7954;
  }
  .app-shell {
    width: 430px;
    flex-shrink: 0;
    margin: 0;
    min-height: 820px;
    border: 1px solid #ddd5bf;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 80px #564a2320;
  }
  .screen {
    min-height: 820px;
  }
  .bottom-nav {
    position: absolute;
    left: 0;
    transform: none;
    width: 100%;
  }
  .home-screen .pot-stage {
    height: 213px;
  }
  .home-screen .pot-img {
    height: 205px;
  }
  .home-screen .ingredient-grid {
    gap: 9px 10px;
  }
  .home-screen .ingredient-plate {
    height: 62px;
  }
  .home-screen .ingredient-art {
    width: 60px;
    height: 60px;
  }
  .home-screen .selected-slot .ingredient-art {
    width: 31px;
    height: 31px;
  }
  .home-screen .hint-line {
    margin-top: 8px;
  }
  .home-screen .home-progress {
    margin-top: 4px;
  }
  .book-screen,
  .recipe-screen {
    padding-bottom: 100px;
  }
  .desktop-note:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 190px;
    border: 1px solid #a8b18466;
    border-radius: 100% 0 100% 0;
    top: 18px;
    left: -35px;
    transform: rotate(20deg);
    z-index: -1;
  }
}
@media (max-width: 899px) and (min-height: 820px) {
  .home-screen {
    padding-top: 5px;
  }
  .home-screen .pot-stage {
    height: 225px;
  }
  .home-screen .pot-img {
    height: 217px;
  }
  .ingredient-grid {
    gap: 8px 10px;
  }
  .ingredient-plate {
    height: 63px;
    width: 65px;
  }
  .ingredient-art {
    width: 60px;
    height: 60px;
  }
  .home-progress {
    padding-top: 17px;
  }
  .home-title {
    padding-top: 12px;
  }
}
@media (max-width: 899px) and (max-height: 710px) {
  .screen {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-header {
    min-height: 43px;
  }
  .home-title {
    padding-top: 0;
  }
  .home-title h1 {
    font-size: 25px;
  }
  .home-title .eyebrow {
    font-size: 9px;
  }
  .pot-stage {
    height: 144px;
  }
  .pot-img {
    height: 143px;
  }
  .selection {
    margin-bottom: 8px;
  }
  .ingredient-grid {
    gap: 2px 7px;
  }
  .ingredient-plate {
    height: 46px;
    width: 52px;
  }
  .ingredient-art {
    width: 47px;
    height: 47px;
  }
  .ingredient-name {
    font-size: 10px;
  }
  .hint-line {
    margin: 1px 0;
    min-height: 39px;
  }
  .home-progress {
    padding-top: 9px;
  }
  .cook-button {
    min-height: 48px;
  }
  .bottom-nav {
    min-height: 62px;
    padding-top: 7px;
  }
  .home-screen {
    padding-bottom: 73px;
  }
  .result-art-stage {
    height: 222px;
  }
  .result-art-stage .dish-art {
    height: 225px;
    width: 225px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the cooking control clear of the bottom navigation at phone sizes. */
.preview-label {
  min-height: 44px;
  border: 0;
}
.selected-slot,
.empty-slot {
  height: 44px;
}
.filters button {
  min-height: 44px;
}
.desktop-note h2 span {
  white-space: nowrap;
}
@media (max-width: 899px) {
  .home-header {
    min-height: 46px;
  }
  .home-title {
    padding-top: 3px;
  }
  .home-title h1 {
    font-size: 27px;
    line-height: 1.4;
  }
  .home-screen .pot-stage {
    height: 170px;
  }
  .home-screen .pot-img {
    height: 166px;
  }
  .home-screen .selection {
    margin-bottom: 8px;
    min-height: 44px;
  }
  .home-screen .ingredient-grid {
    gap: 3px 10px;
  }
  .home-screen .ingredient-plate {
    height: 51px;
    width: 57px;
  }
  .home-screen .ingredient-art {
    width: 51px;
    height: 51px;
  }
  .home-screen .selected-slot .ingredient-art {
    width: 31px;
    height: 31px;
  }
  .home-screen .hint-line {
    margin: 1px 0 4px;
    min-height: 44px;
  }
  .home-screen .home-progress {
    padding: 10px 2px 4px;
  }
}
@media (max-width: 899px) and (max-height: 740px) {
  .home-title .eyebrow {
    display: none;
  }
  .home-title h1 {
    font-size: 24px;
  }
  .home-screen .pot-stage {
    height: 90px;
    margin-top: 0;
  }
  .home-screen .pot-img {
    height: 88px;
  }
  .home-screen .selection {
    margin-bottom: 5px;
  }
  .home-screen .ingredient-plate {
    height: 43px;
    width: 49px;
  }
  .home-screen .ingredient-art {
    width: 44px;
    height: 44px;
  }
  .home-screen .ingredient-name {
    font-size: 10px;
    line-height: 1.4;
  }
  .home-screen .ingredient-grid {
    gap: 0 9px;
  }
  .home-screen .hint-line > span {
    font-size: 9px;
  }
  .home-screen .hint-line {
    margin-bottom: 0;
  }
  .home-screen .cook-button {
    min-height: 46px;
    font-size: 16px;
  }
  .home-screen .home-progress {
    padding: 8px 2px 3px;
  }
}
/* A transformed screen would temporarily become the fixed navigation's containing block. */
@keyframes page-in {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.is-fantasy .discovery-badge {
  background: #fff0db;
  color: #8a481d;
  border: 1px dashed #c98548;
}
.outcome-note {
  color: var(--teal);
  font-weight: 700;
  text-align: center;
  margin: 16px 0 8px;
}
.hint-next {
  width: 100%;
  margin-top: 10px;
}
.fantasy-progress {
  text-align: center;
  font-size: 13px;
  color: #8a481d;
  margin: 16px 0 0;
}

.recipe-prep {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.recipe-prep p,
.cooking-tip,
.recipe-storage p {
  font-size: 14px;
  line-height: 1.85;
}
.cooking-tip {
  padding-left: 12px;
  border-left: 3px solid var(--line);
}
.recipe-storage {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 24px 0;
  font-size: 13px;
}
.recipe-storage summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 28px;
}
.recipe-text-download {
  width: 100%;
  margin-bottom: 12px;
}

/* Keep recipe instructions readable at arm's length while cooking. */
.recipe-meta {
  font-size: 13px;
  color: #665e4d;
}
.materials > div {
  font-size: 14px;
  align-items: baseline;
}
.materials > div > span {
  flex: 0 0 38%;
}
.materials strong {
  color: #665e4d;
}
.steps h3 {
  font-size: 15px;
}
.steps p {
  font-size: 15px;
  color: #665e4d;
}
.source-note {
  font-size: 12px;
  color: #706753;
}
