@font-face {
  font-family: "Cherry Bomb One";
  src: url("./assets/cherry-bomb-one-title.woff2?v=922cbe6a") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
  color: #30224e;
  background: #dff4ff;
  font-weight: 600;
  --ink: #30224e;
  --muted: #615476;
  --purple: #593a91;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle, #fff 1.7px, transparent 2.3px) 0 0 / 25px 25px,
    radial-gradient(ellipse at 0 8%, #f2dfff 0, transparent 51%),
    radial-gradient(ellipse at 100% 35%, #def9eb 0, transparent 44%),
    linear-gradient(153deg, #cdeaff, #e6f5ff 44%, #ffe8f5);
}

h1, h2, p { margin: 0; }

button, input { font: inherit; }

button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.art-button {
  display: block;
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
}

button:focus-visible, label:has(input:focus-visible), h1:focus-visible {
  outline: 3px solid #7444bc;
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker {
  position: absolute;
  z-index: 1;
  width: var(--sticker-width, 4rem);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px #8c4f9233);
}

.app {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3.25rem) clamp(1rem, 4vw, 3rem) 2.5rem;
}

.home { padding-top: clamp(1rem, 3vw, 2.15rem); }

.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.9fr) minmax(0, 1fr);
  grid-template-areas: "left brand right";
  place-items: center;
  min-height: clamp(14rem, 28vw, 18rem);
  padding-inline: clamp(.65rem, 2.3vw, 2.4rem);
  border: 5px solid #fff;
  border-radius: 2.25rem;
  background:
    radial-gradient(circle, #ffffffc9 2px, transparent 2.8px) 3px 5px / 27px 27px,
    linear-gradient(112deg, #b8ddff, #ddd2ff 55%, #ffd3ee);
  box-shadow: 0 0 0 2px #d6b4ef, 0 7px 0 2px #c4aded, 0 17px 35px #7c6db929;
  text-align: center;
}

.welcome::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 1.65rem;
  background: repeating-linear-gradient(90deg, #fff3fc 0 24px, #f7aeda 24px 48px, #fff3fc 48px 72px, #bfb2f5 72px 96px);
  mask: radial-gradient(ellipse at 50% 0, #000 66%, transparent 71%) 0 100% / 24px 10px repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat;
  content: "";
}

.welcome::after {
  position: absolute;
  inset: 2.1rem .55rem .55rem;
  border: 2px dashed #ffffffce;
  border-radius: .9rem .9rem 1.5rem 1.5rem;
  content: "";
  pointer-events: none;
}

.welcome-copy { grid-area: brand; padding: 2.75rem 0 1.55rem; }

.brand-title {
  font-family: "Cherry Bomb One", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: clamp(2rem, 6.4vw, 4.65rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.025em;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: .105em #fff;
}

.brand-wordmark {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .2em;
}

.brand-home {
  color: #bc3b7c;
  transform: translateY(-.045em) rotate(-6deg);
  filter: drop-shadow(0 .056em 0 #ed9bc8);
}

.brand-cooking {
  color: #7947ae;
  transform: rotate(2deg);
  filter: drop-shadow(0 .056em 0 #bda0e8);
}

.sky-decoration {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: var(--size);
  aspect-ratio: 1;
  background: var(--spark-color);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.spark-one { left: 20%; top: 24%; --size: 2.5rem; --spark-color: #fff2a3; transform: rotate(13deg); }
.spark-two { right: 20%; top: 22%; --size: 2.1rem; --spark-color: #fffbed; transform: rotate(12deg); }
.spark-three { left: 22%; bottom: 17%; --size: 1.4rem; --spark-color: #fff; }
.spark-four { right: 7%; bottom: 14%; --size: 1.6rem; --spark-color: #fff2ad; }

.hero-character {
  width: min(100%, clamp(5.35rem, 15vw, 10rem));
  height: auto;
  aspect-ratio: 1;
  padding: .15rem;
  border: .22rem solid var(--character-edge);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 .15rem #fff, 0 .36rem 0 .15rem var(--character-shadow);
  object-fit: contain;
}

.hero-character img {
  border-radius: inherit;
  object-fit: contain;
  transform: rotate(var(--character-tilt));
}

.hero-left {
  grid-area: left;
  --character-edge: #f7b9df;
  --character-shadow: #b387d2;
  --character-tilt: -8deg;
}

.hero-right {
  grid-area: right;
  --character-edge: #f8d994;
  --character-shadow: #dba2c3;
  --character-tilt: 7deg;
}

.hero-clouds {
  --sticker-width: clamp(3.5rem, 9.5vw, 6.4rem);
  right: 13%;
  bottom: 7%;
  transform: rotate(-10deg);
}

.cloud {
  position: absolute;
  width: 9rem;
  height: 2.75rem;
  border-radius: 10rem;
  background: #fff9;
}

.cloud::before, .cloud::after {
  position: absolute;
  bottom: .85rem;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.cloud::before { left: 1.35rem; width: 3.4rem; height: 2.9rem; }
.cloud::after { right: 1rem; width: 3.05rem; height: 2.3rem; }
.cloud-one { left: -1.2rem; bottom: 1rem; opacity: .72; }
.cloud-two { right: -1.45rem; top: 2.1rem; opacity: .54; transform: scale(.85); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.15vw, 1.55rem);
  margin-top: clamp(1.35rem, 3.4vw, 2.25rem);
}

.recipe-picker { margin-top: clamp(1rem, 2.4vw, 1.6rem); }

.recipe-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem .85rem;
}

.recipe-picker-title {
  color: #503b78;
  font-size: clamp(1.16rem, 2.65vw, 1.72rem);
  font-weight: 850;
  line-height: 1.45;
}

.recipe-picker .recipe-grid { margin-top: .84rem; }

.shopping-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  border-color: #c29fe7;
  background: #f5e5ff;
  color: #5d348a;
  box-shadow: 0 3px 0 #ceadee;
  text-decoration: none;
}

.shopping-link:hover { background: #eed8fc; }

.recipe-picker-head .shopping-link {
  padding-inline: .8em;
  font-size: clamp(.92rem, 1.85vw, 1.08rem);
}

.shopping-link:focus-visible {
  outline: 3px solid #7444bc;
  outline-offset: 4px;
}

.theme-bread { --tint: #f0e4ff; --edge: #caa5ea; --accent: #7843aa; --gingham: #c892ec3b; }
.theme-pizza { --tint: #ffe5f1; --edge: #ed9ec7; --accent: #a23870; --gingham: #f398c53b; }
.theme-donuts { --tint: #e0f8ec; --edge: #8dd2b5; --accent: #28694f; --gingham: #62c8aa42; }
.theme-steamed-buns { --tint: #e1f4ff; --edge: #99c8f0; --accent: #355b98; --gingham: #8bbfed40; }
.theme-rice-cake { --tint: #fff2c8; --edge: #e9ca7e; --accent: #76531c; --gingham: #f2cb7046; }
.theme-rice-bread { --tint: #ffeadb; --edge: #eab68f; --accent: #854c34; --gingham: #eca8743b; }

.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: .65rem;
  border: 4px solid var(--white);
  border-radius: 1.75rem;
  background:
    repeating-linear-gradient(90deg, var(--gingham) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(0deg, var(--gingham) 0 12px, transparent 12px 24px),
    #fff8fc;
  box-shadow: 0 0 0 2px var(--edge), 0 6px 0 2px var(--edge), 0 13px 26px #63599326;
  text-align: left;
  transition: transform .18s, box-shadow .18s;
}

@media (hover: hover) {
  .recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--edge), 0 10px 0 2px var(--edge), 0 18px 24px #63599325;
  }

  .recipe-card:hover .recipe-sticker { transform: rotate(8deg) scale(1.08); }
}

.recipe-card:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--edge), 0 3px 0 2px var(--edge); }

.recipe-art {
  width: 100%;
  aspect-ratio: 1.25;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 1.2rem;
  background: var(--tint);
}

.recipe-sticker {
  --sticker-width: clamp(3.1rem, 6.2vw, 4.35rem);
  top: -.45rem;
  right: -.45rem;
  transform: rotate(14deg);
  transition: transform .18s;
}

.recipe-copy {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  padding: .72rem .45rem .64rem;
  margin-top: .48rem;
  border: 2px dotted var(--edge);
  border-radius: 1.08rem;
  background: #fffcff;
  text-align: center;
}

.recipe-copy h2 {
  font-size: clamp(1.15rem, 2.25vw, 1.58rem);
  line-height: 1.45;
  font-weight: 900;
  text-wrap: balance;
}

.recipe-copy p {
  color: var(--muted);
  font-size: clamp(.82rem, 1.55vw, .98rem);
  line-height: 1.5;
}

.equipment-tag {
  display: inline-block;
  max-width: 100%;
  padding: .22em .67em;
  border: 1px solid var(--equipment-border);
  border-radius: .55rem;
  background: var(--equipment-bg);
  color: var(--equipment-ink);
  font-size: clamp(.82rem, 1.7vw, 1rem);
  font-weight: 850;
  line-height: 1.35;
  text-wrap: balance;
}

.equipment-pan { --equipment-ink: #57368b; --equipment-bg: #eee2ff; --equipment-border: #cbb1e9; }
.equipment-frying-pot { --equipment-ink: #774323; --equipment-bg: #ffe8d7; --equipment-border: #ebba99; }
.equipment-microwave { --equipment-ink: #245580; --equipment-bg: #dff1ff; --equipment-border: #a8cdea; }
.equipment-rice-cooker { --equipment-ink: #725215; --equipment-bg: #fff2ba; --equipment-border: #e6c962; }

.cooking { padding-top: clamp(.75rem, 2.5vw, 1.9rem); }

.topbar {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(4.4rem, 1fr);
  place-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
}

.recipe-name {
  padding: .35em 1em;
  border: 2px solid #fff;
  border-radius: 8rem;
  background: var(--tint);
  color: var(--accent);
  font-size: clamp(1rem, 2.4vw, 1.42rem);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.progress-count {
  justify-self: end;
  padding: .2em .63em;
  border: 2px solid #fff;
  border-radius: 2rem;
  background: #fff1b8;
  color: var(--purple);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-count span { font-size: 1.55rem; font-weight: 900; }

.progress-track {
  display: flex;
  gap: .35rem;
  margin: 0 0 .95rem;
}

.progress-track span {
  position: relative;
  flex: 1;
  height: 1.25rem;
  border: 2px solid #fff;
  border-radius: 2rem;
  background: #fffcff;
}

.progress-track span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .75rem;
  aspect-ratio: 1;
  background: #d9cae8;
  clip-path: polygon(50% 0, 65% 32%, 100% 38%, 75% 64%, 80% 100%, 50% 83%, 20% 100%, 25% 64%, 0 38%, 35% 32%);
  transform: translate(-50%, -50%);
  content: "";
}

.progress-track .filled { background: var(--accent); }
.progress-track .filled::after { background: #fff0a6; }

.sheet {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(1.3rem, 4vw, 3.25rem);
  padding: clamp(1rem, 3.25vw, 2.5rem);
  border: 4px solid #fff;
  border-radius: clamp(1.4rem, 4vw, 2.35rem);
  background: linear-gradient(120deg, var(--tint), #fff 53%);
  box-shadow: 0 0 0 2px var(--edge), 0 7px 0 2px var(--edge), 0 16px 35px #63599320;
}

.sheet::before {
  position: absolute;
  z-index: -1;
  inset: .38rem;
  border: 2px dashed var(--edge);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.sheet h1 {
  font-size: clamp(1.7rem, 4.6vw, 3.05rem);
  line-height: 1.35;
  font-weight: 900;
  text-wrap: balance;
}

.visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.frame-art {
  border: .4rem solid #fff;
  outline: 2px dotted var(--edge);
  border-radius: clamp(1rem, 3vw, 1.6rem);
  background: var(--tint);
}

.step-art .frame-art { object-position: center 57%; }

.frame-sticker {
  --sticker-width: clamp(3.2rem, 7.8vw, 5.5rem);
  right: -.35rem;
  bottom: -.42rem;
  transform: rotate(13deg);
}

.ingredient-sheet { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }

.ingredients-content h1 { margin-bottom: .45rem; }

.quantity {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.ingredients-list {
  display: grid;
  gap: .42rem;
  margin: .9rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.ingredient {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .55rem .65rem;
  min-height: 2.8rem;
  border: 1px solid #e8def5;
  border-radius: .75rem;
  background: #faf7ff;
  font-size: clamp(.95rem, 1.9vw, 1.13rem);
  line-height: 1.42;
  cursor: pointer;
}

.ingredient input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ingredient:has(input:checked) { background: #e6f7ed; border-color: #b8dfca; }

.checkmark {
  width: 1.22rem;
  height: 1.22rem;
  border: 2px solid #aa96c7;
  border-radius: .38rem;
  background: #fff;
}

.ingredient input:checked + .checkmark { background: #367b5b; border-color: #367b5b; }

.ingredient input:checked + .checkmark::after {
  display: block;
  content: "";
  width: .32rem;
  height: .58rem;
  margin: .05rem 0 0 .27rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.ingredient-amount {
  max-width: 12.5rem;
  color: var(--muted);
  font-size: .94em;
  text-align: right;
}

.prep-note {
  margin: -.15rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.step-detail, .done-copy p {
  margin-top: .8rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.43rem);
  line-height: 1.7;
}

.step-detail, .prep-note {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .62rem;
  margin-top: clamp(1rem, 3.3vw, 1.85rem);
}

.actions .primary { flex: 1; }

.button {
  min-height: 3.1rem;
  padding: .68em 1.15em;
  border: 2px solid transparent;
  border-radius: 1.1rem;
  font-size: clamp(.98rem, 2.15vw, 1.24rem);
  font-weight: 900;
  line-height: 1.25;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.button:active { transform: translateY(2px); box-shadow: none; }

.primary {
  border-color: #e78abf;
  background: linear-gradient(#ffe0f3, #ffbde4);
  color: #55294f;
  box-shadow: inset 0 2px 0 #fff9, 0 4px 0 #e791c4;
}

.primary:hover { background: linear-gradient(#ffdaef, #ffb3df); }

.secondary, .text-button {
  border-color: #e0d2f3;
  background: #f6efff;
  color: var(--purple);
}

.secondary:hover, .text-button:hover { background: #eee2fc; }

.text-button {
  justify-self: start;
  min-height: 2.8rem;
  padding: .6em .8em;
  font-size: clamp(.82rem, 1.6vw, 1rem);
  border-radius: .9rem;
}

.ingredient-sheet .primary { width: 100%; }

.shopping-back { margin-bottom: .85rem; }

.shopping-sheet {
  display: block;
  background: linear-gradient(139deg, #ffeff8, #fff 48%);
}

.shopping-title { color: #7a347b; }

.shopping-layout {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(.95rem, 3vw, 2rem);
  margin-top: 1.15rem;
}

.shopping-picker, .shopping-results {
  min-width: 0;
  padding: clamp(.75rem, 2vw, 1.25rem);
  border: 2px dotted #e7b9d8;
  border-radius: 1.25rem;
  background: #fffbfe;
}

.shopping-layout h2 {
  font-size: clamp(1.16rem, 2.4vw, 1.52rem);
  line-height: 1.45;
}

.shopping-choices {
  display: grid;
  gap: .55rem;
  margin: .8rem 0 .9rem;
  padding: 0;
  list-style: none;
}

.ingredient.shopping-choice {
  grid-template-columns: auto 2.75rem minmax(0, 1fr);
  border-color: var(--edge);
  background: #fff;
}

.ingredient.shopping-choice:has(input:checked) {
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.shopping-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .64rem;
}

.shopping-choice-copy {
  display: grid;
  justify-items: start;
  gap: .2rem;
}

.shopping-choice-copy .equipment-tag { font-size: .78rem; }

.shopping-results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .45rem;
}

#shopping-count { color: #795477; font-size: .95rem; }

.shopping [hidden] { display: none; }

.shopping-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.shopping-button-link:focus-visible {
  outline: 3px solid #7444bc;
  outline-offset: 4px;
}

.shopping-plan-actions, .album-footer, .export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .56rem;
  margin-top: .75rem;
}

.shopping-plan-actions .button { font-size: clamp(.9rem, 1.65vw, 1.08rem); }

.shopping-list, .sticker-grid {
  display: grid;
  gap: .5rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}

.shopping-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  padding: .5rem;
  border: 1px solid #e7d8ef;
  border-radius: .82rem;
  background: #fcf7ff;
}

.shopping-item-copy, .sticker-item-copy {
  display: grid;
  gap: .15rem;
  min-width: 0;
  font-size: clamp(.94rem, 1.9vw, 1.1rem);
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.shopping-item-name { color: var(--ink); font-weight: 850; }
.shopping-item-amount { color: var(--muted); font-size: .9em; }

.shopping-item-action {
  min-height: 2.75rem;
  padding-inline: .52em;
  border-radius: .7rem;
  font-size: clamp(.78rem, 1.6vw, .95rem);
  white-space: nowrap;
}

.shopping-at-home {
  margin-top: .95rem;
  padding: .7rem;
  border: 1px dashed #a9d7bd;
  border-radius: .9rem;
  background: #f0fbf4;
}

.shopping-at-home summary { color: #2c664d; cursor: pointer; }
.shopping-at-home summary span { margin-left: .25em; }
.at-home-list .shopping-item { background: #fff; }

.shopping-options {
  display: grid;
  gap: .4rem;
  margin-top: .9rem;
}

.shopping-options h3 { margin: 0; color: var(--muted); font-size: .95rem; }
.shopping-options .shopping-item { background: #fff6e3; border-color: #efd6a2; }

.shopping-empty {
  margin: .9rem 0 .25rem;
  color: var(--muted);
  line-height: 1.65;
}

.sticker-album {
  background:
    radial-gradient(circle, #eac6f34d 1.3px, transparent 2px) 0 0 / 16px 16px,
    linear-gradient(135deg, #ffedf7, #f3eeff 67%, #e9faf4);
}

.album-help {
  margin-top: .55rem;
  color: #634773;
  font-size: clamp(.98rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.album-progress {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .9rem;
  color: #593685;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.album-progress progress {
  flex: 1;
  width: 100%;
  height: 1.1rem;
  overflow: hidden;
  appearance: none;
  accent-color: #b06bd2;
  border: 2px solid #fff;
  border-radius: 1rem;
  background: #eedff8;
}

.album-progress progress::-webkit-progress-bar { background: #eedff8; }
.album-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #df83bb, #aa76dd); }
.album-progress progress::-moz-progress-bar { background: linear-gradient(90deg, #df83bb, #aa76dd); }

.sticker-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.sticker-item {
  display: grid;
  place-items: center;
  align-content: start;
  gap: .45rem;
  width: 100%;
  height: 100%;
  min-height: 9.1rem;
  padding: .66rem .5rem;
  border: 2px solid #e0c6ef;
  border-radius: 1rem;
  background: #fffcff;
  box-shadow: 0 3px 0 #e8d5f4;
  text-align: center;
  transition: background .16s, border-color .16s;
}

.sticker-item[aria-pressed="true"] {
  border-color: #a0d4b8;
  background: #e9faf0;
  box-shadow: 0 3px 0 #c0e8ce;
}

.sticker-slot {
  display: grid;
  place-items: center;
  width: 3.6rem;
  aspect-ratio: 1;
  border: 2px dashed #d6b7ec;
  border-radius: 50%;
  background: #f7edff;
}

.sticker-item[aria-pressed="true"] .sticker-slot { border-color: transparent; background: transparent; }
.grocery-sticker { visibility: hidden; width: 100%; height: 100%; object-fit: contain; }
.sticker-item[aria-pressed="true"] .grocery-sticker { visibility: visible; }
.album-footer { margin-top: 1.05rem; }

.shopping-reward {
  background:
    radial-gradient(circle, #fff 2px, transparent 2.7px) 0 0 / 22px 22px,
    linear-gradient(137deg, #fff0a8, #ffe1f2 60%, #e7dcff);
  text-align: center;
}

.shopping-prize {
  width: clamp(7.6rem, 28vw, 15rem);
  height: auto;
  margin: 0 auto .6rem;
  object-fit: contain;
  filter: drop-shadow(0 5px 3px #b1766a44);
  animation: pop-in .62s ease-out both;
}

.reward-message { margin-bottom: .35rem; color: #78436e; font-weight: 850; }
.shopping-reward .button { margin: .9rem .2rem 0; }
.shopping-checkout .shopping-prize { width: clamp(5.3rem, 18vw, 9rem); }

.shopping-export {
  width: min(calc(100% - 1.3rem), 36rem);
  max-height: min(90vh, 48rem);
  padding: clamp(.8rem, 2vw, 1.3rem);
  border: 3px solid #e5b6de;
  border-radius: 1.25rem;
  background: #fff7fb;
  color: var(--ink);
  box-shadow: 0 9px 35px #35234b55;
}

.shopping-export::backdrop { background: #31204388; }
.shopping-export h2 { margin-bottom: .65rem; font-size: 1.4rem; }
.export-image { max-height: 53vh; overflow: auto; border-radius: .5rem; }
.export-image img { height: auto; object-fit: contain; }
.export-error:empty { display: none; }
.export-error { margin-top: .55rem; color: #8a315b; }

.timer-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
  padding: .48rem .74rem;
  border: 2px dashed #d2b2ee;
  border-radius: 1rem;
  background: #fbf3ff;
}

.timer-value {
  min-width: 5ch;
  color: var(--purple);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.timer-button { font-size: 1rem; min-height: 2.8rem; }
.timer-ended { color: #21684c; }
.timer-message {
  flex-basis: 100%;
  color: #21684c;
  font-size: 1.05rem;
  font-weight: 800;
}
.timer-message:empty { display: none; }

.adult-sheet {
  --edge: #c8a6e9;
  background: linear-gradient(115deg, #eadbfb, #fcf7ff 65%);
}

.adult-label {
  position: relative;
  display: inline-block;
  margin-bottom: .8rem;
  padding: .4rem .85rem;
  border: 2px solid #fff;
  border-radius: 2rem;
  background: #e8d1ff;
  color: #583386;
  font-weight: 900;
  font-size: clamp(1rem, 2.15vw, 1.22rem);
}

.adult-label:has(.label-sticker) { padding-left: 2.15rem; }
.label-sticker {
  --sticker-width: 2.15rem;
  left: -.18rem;
  top: 50%;
  transform: translateY(-50%) rotate(-17deg);
}

.adult-sheet .primary {
  border-color: #cba9ed;
  background: #e7d3fb;
  color: #4d2a75;
  box-shadow: 0 4px 0 #cda9ed;
}

.adult-sheet .primary:hover { background: #dfc6f8; }

.adult-directions {
  padding-left: 1.3em;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.65;
}

.adult-directions li + li { margin-top: .36em; }

.done-sheet {
  --edge: #edb8d9;
  background:
    radial-gradient(circle, #fff 2.4px, transparent 3px) 0 0 / 23px 23px,
    linear-gradient(129deg, #ffe8bd, #fff4f4 54%, #eadbff);
}

.done-art .frame-sticker {
  --sticker-width: clamp(5rem, 14vw, 10rem);
  bottom: -.65rem;
  right: -.85rem;
  animation: pop-in .55s ease-out both;
}

.done-copy { position: relative; padding-block: 1rem; }

.done-copy h1 {
  color: #8a3790;
  paint-order: stroke fill;
  -webkit-text-stroke: .1em #fff;
  text-shadow: 0 .075em 0 #e8abd9;
}

.done-star {
  --sticker-width: clamp(3.25rem, 7vw, 5rem);
  top: -3.45rem;
  right: 6%;
  transform: rotate(12deg);
  animation: pop-in .55s ease-out .13s both;
}

.done-copy .button { margin-top: 1.4rem; }

@keyframes pop-in {
  from { scale: .48; opacity: 0; }
  68% { scale: 1.1; opacity: 1; }
  to { scale: 1; opacity: 1; }
}

@media (max-width: 860px) {
  .hero-clouds { --sticker-width: 4.3rem; right: 9%; bottom: 9%; }
}

@media (max-width: 720px) {
  .shopping-layout { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .app { padding-bottom: 1.65rem; }
  .welcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "left right" "brand brand";
    align-content: center;
    gap: .7rem 1.6rem;
    min-height: 0;
    padding: 2.35rem .7rem .95rem;
    border-radius: 1.5rem;
  }
  .welcome::after { inset: 1.8rem .32rem .32rem; }
  .welcome-copy { padding: 0; }
  .brand-title { font-size: clamp(1.55rem, 8.8vw, 2.85rem); }
  .hero-character { width: clamp(3.65rem, 17vw, 4.9rem); }
  .hero-left { justify-self: end; }
  .hero-right { justify-self: start; }
  .hero-clouds { --sticker-width: 3rem; right: 4%; bottom: 7%; }
  .spark-one { left: 6%; top: 12%; --size: 1.45rem; }
  .spark-two { right: 8%; top: 15%; --size: 1.3rem; }
  .spark-three { left: 13%; bottom: 12%; }
  .spark-four { right: 4%; bottom: 13%; --size: 1rem; }
  .cloud-one { transform: scale(.55); left: -3rem; bottom: -.65rem; }
  .cloud-two { transform: scale(.52); right: -3rem; top: .5rem; }
  .recipe-grid { grid-template-columns: 1fr; gap: .95rem; }
  .recipe-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: .42rem;
    border-radius: 1.2rem;
  }
  .recipe-sticker { --sticker-width: 2.4rem; left: -.26rem; right: auto; top: -.34rem; transform: rotate(-12deg); }
  .recipe-art { width: clamp(6rem, 28vw, 9rem); aspect-ratio: 1.25; border-radius: .8rem; }
  .recipe-copy { padding: .44rem .24rem; margin: 0 0 0 .34rem; }
  .recipe-copy h2 { font-size: clamp(1.08rem, 4.5vw, 1.32rem); }
  .topbar { grid-template-columns: 1fr auto; gap: .25rem .55rem; margin-bottom: .65rem; }
  .recipe-name { grid-row: 2; justify-self: start; text-align: left; }
  .progress-count { grid-column: 2; grid-row: 2; }
  .bar-spacer { display: none; }
  .sheet { grid-template-columns: 1fr; gap: .95rem; }
  .step-art, .done-art {
    width: min(100%, 23rem);
    aspect-ratio: 1.65;
    margin-inline: auto;
  }
  .ingredients-illustration { display: none; }
  .done-copy { padding-top: .5rem; }
  .done-star { top: -3.4rem; left: -.25rem; right: auto; }
  .ingredient { grid-template-columns: auto minmax(0, 1fr); gap: .08rem .55rem; }
  .ingredient-amount { grid-column: 2; max-width: none; text-align: left; }
  .sticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopping-reward .button { min-height: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.hero-character.public-hero-art { background: transparent; border: 0; box-shadow: none; }
.public-hero-art img { border-radius: 0; }
