:root {
  --color-primary: #5b4dd6;
  --color-primary-soft: #7b6cf0;
  --color-on-primary: #ffffff;
  --color-secondary: #c4b5fd;
  --color-accent: #047857;
  --color-xiaoya: #8ecf88;
  --color-background: #f4effa;
  --color-foreground: #3c3556;
  --color-muted: #eeeaf6;
  --color-muted-foreground: #5c5674;
  --color-card: #ffffff;
  --color-border: #e6e0f2;
  --color-destructive: #dc2626;
  --color-on-destructive: #ffffff;
  --color-ring: #5b4dd6;
  --color-bean: #b45309;
  --color-bean-bg: #fff7ed;
  --color-warn: #b45309;
  --shadow: 0 8px 24px rgba(80, 60, 130, 0.08);
  --shadow-float: 0 12px 32px rgba(50, 30, 90, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 160ms;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 92px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --bg: var(--color-background);
  --bg2: #efeaf7;
  --card: var(--color-card);
  --ink: var(--color-foreground);
  --muted: var(--color-muted-foreground);
  --line: var(--color-border);
  --purple: var(--color-primary);
  --purple-soft: #eee8ff;
  --purple-deep: var(--color-primary);
  --green: var(--color-xiaoya);
  --leaf: var(--color-accent);
  --danger: var(--color-destructive);
  --warn: var(--color-warn);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--color-foreground);
  background: #d9d1ea;
  -webkit-font-smoothing: antialiased;
}
button, textarea, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}
.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;
}
.ico { display: inline-block; vertical-align: -0.2em; flex: none; }

.stage-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#phone {
  width: 390px;
  height: 844px;
  max-height: 100dvh;
  background: var(--color-background);
  border-radius: 36px;
  box-shadow: var(--shadow-float);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 430px) {
  .stage-wrap { padding: 0; }
  #phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

.statusbar {
  height: calc(44px + var(--safe-t));
  padding: var(--safe-t) 22px 6px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-foreground);
  flex: none;
}
.statusbar span { opacity: .85; }

#stage {
  flex: 1;
  overflow: auto;
  padding: 0 18px calc(var(--tabbar-h) + 12px);
  scroll-padding-bottom: calc(var(--tabbar-h) + 12px);
  -webkit-overflow-scrolling: touch;
}
#stage::-webkit-scrollbar { display: none; }

#layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
#layer > * { pointer-events: auto; }

.tabbar {
  position: absolute;
  left: 12px; right: 12px;
  bottom: calc(10px + var(--safe-b));
  height: 72px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: end;
  z-index: 20;
}
.tab {
  height: 72px;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #a39bb8;
  font-size: 11px;
  font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tab:active { filter: brightness(0.96); }
.tab.active { color: var(--color-primary); font-weight: 700; }
.tab .ico { width: 22px; height: 22px; }
.xiaoya-slot {
  position: relative;
  display: flex;
  justify-content: center;
}
.xiaoya-btn {
  width: 86px; height: 86px;
  margin-top: -28px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}
.xiaoya-btn:focus-visible { border-radius: 50%; }
.xiaoya-btn img, .xiaoya-fallback {
  width: 78px; height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(80, 140, 70, 0.25));
  transition: transform .25s var(--ease);
}
.xiaoya-btn.pose-tap img { transform: scale(1.06) rotate(-6deg); }
.xiaoya-btn.pose-celebrate img { transform: translateY(-6px) scale(1.08); }
.xiaoya-fallback {
  background: #bfe8b4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-accent);
}

h1, h2, h3, p { margin: 0; }
.muted { color: var(--color-muted-foreground); }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--purple-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
}
.bean-pill {
  background: var(--color-bean-bg);
  color: var(--color-bean);
}

.btn {
  min-height: 48px;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:active:not(:disabled) { filter: brightness(0.94); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:disabled { opacity: .4; filter: none; }
.btn-ghost { background: var(--purple-soft); color: var(--color-primary); }
.btn-outline {
  background: #fff;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1.5px #ddd4f5;
}
.btn-text { color: var(--color-muted-foreground); font-weight: 600; min-height: 44px; padding: 8px; }
.btn-danger { background: #fdecec; color: var(--color-destructive); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  min-height: 44px;
}
.back {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  flex: none;
}
.back:active { filter: brightness(0.96); }
.topbar h1, .topbar h2 { font-size: 18px; font-weight: 700; }
.skip {
  margin-left: auto;
  color: var(--color-muted-foreground);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-head { padding: 6px 2px 10px; }
.home-tools { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.chip-btn {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hello {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: end;
  min-height: 132px;
  position: relative;
}
.hello h1 { font-size: 28px; font-weight: 700; line-height: 1.25; color: #5b527c; }
.hello img { width: 150px; justify-self: end; }
.task-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  padding: 4px 10px;
  min-height: 24px;
}
.suggest { margin-top: 8px; }
.suggest h2 { font-size: 15px; margin-bottom: 10px; }
.q {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  min-height: 48px;
}
.q .ico { color: var(--color-primary); }
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.shortcuts button {
  background: var(--purple-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 10px 0;
  min-height: 40px;
  font-size: 11px;
  font-weight: 700;
}
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 14px;
  box-shadow: var(--shadow);
}
.composer input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
}
.send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.sheet, .modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(40, 30, 60, .42);
  z-index: 31;
  display: flex;
  align-items: flex-end;
}
.sheet-card, .modal-card {
  width: 100%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 18px 18px calc(28px + var(--safe-b));
  animation: up .22s var(--ease);
}
.modal-bg { align-items: center; padding: 24px; }
.modal-card {
  border-radius: 24px;
  padding: 20px;
  animation: pop .2s var(--ease);
  max-width: 340px;
  margin: 0 auto;
}
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.grab {
  width: 42px; height: 4px;
  background: #e6e1f0;
  border-radius: 4px;
  margin: 0 auto 12px;
}
.xiaoya-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.xiaoya-hero img { width: 54px; height: 54px; object-fit: contain; }
.hint-bubble {
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 8px 0 14px;
}

.garden-scene, .flower-hero {
  margin: 8px 0 14px;
  border-radius: 28px;
  min-height: 220px;
  background:
    radial-gradient(120px 80px at 70% 30%, rgba(255,255,255,.7), transparent),
    linear-gradient(180deg, #dcecc8 0%, #f7f1e4 55%, #efe4d2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.garden-scene {
  padding: 0;
  min-height: 0;
}
.garden-scene img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 58%;
}
.garden-scene .garden-sign, .flower-hero .sign {
  position: absolute;
  right: 18px;
  bottom: 72px;
  background: #f3e6c8;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #7a6234;
  box-shadow: 0 2px 0 rgba(140, 110, 60, .15);
}
.garden-scene .garden-sign {
  left: 12px;
  right: auto;
  bottom: 12px;
}
.flower-hero .plant { font-size: 86px; line-height: 1; filter: drop-shadow(0 8px 0 #c9b48a); }
.pot {
  width: 120px; height: 78px;
  background: #cbb6f2;
  border-radius: 18px 18px 28px 28px;
  margin-top: -10px;
  box-shadow: inset 0 8px 0 rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
}
.progress-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.bar {
  height: 8px;
  background: #eee8f8;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}
.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9a8cff, #5b4dd6);
  border-radius: 8px;
}
.cta-pill {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bloom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bloom-slot {
  background: #f7f4ee;
  border-radius: 18px;
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--color-muted-foreground);
  font-size: 12px;
  text-align: center;
  padding: 12px;
}

.stepper {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0 0 14px;
  overflow: auto;
}
.stepper li {
  flex: 1;
  min-width: 44px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #a39bb8;
}
.stepper li span {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #e6e1f0;
  margin-bottom: 6px;
}
.stepper li.done { color: var(--color-accent); }
.stepper li.done span { background: var(--color-accent); }
.stepper li.now { color: var(--color-primary); }
.stepper li.now span { background: var(--color-primary); }

.chip-grid, .ing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ing-grid { padding-bottom: 24px; }
.choice, .ing {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  min-height: 48px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.choice.on, .ing.on {
  border-color: var(--color-primary);
  background: var(--purple-soft);
  color: var(--color-primary);
}
.ing { display: flex; align-items: center; gap: 8px; position: relative; }
.ing .mark {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.basket {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-float);
  margin-top: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--purple-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.flame-wrap {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  padding-top: 8px;
}
.flame {
  width: 180px; height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  user-select: none;
  flex: none;
}
.flame-core {
  width: 108px; height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 50% 60%, #ffd27a, #ff8a3d 55%, #ff5d2a);
  box-shadow: 0 16px 40px rgba(255, 110, 40, .35);
  transition: transform .45s var(--ease);
}
.flame .ico { width: 56px; height: 56px; }
.habit {
  background: #fff;
  border-radius: 14px;
  padding: 8px 14px;
  font-weight: 700;
  animation: fade .35s var(--ease);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: #efeaf6;
}
.cover {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 16px;
  background: #efeaf6;
}
.dish {
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 8px;
  min-height: 48px;
}
.dish h3 { font-size: 15px; }
.dish .meta { font-size: 13px; color: var(--color-muted-foreground); margin-top: 4px; }
.toast {
  position: absolute;
  left: 24px; right: 24px; bottom: 124px;
  background: #2d2548;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  z-index: 40;
  text-align: center;
  font-size: 13px;
}
.banner {
  background: var(--color-bean-bg);
  color: var(--color-bean);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
}
.ok { color: var(--color-accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.intro-pop {
  position: absolute;
  left: 18px; right: 18px; bottom: 108px;
  top: auto;
  height: auto;
  background: #fff;
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 32;
  box-shadow: var(--shadow-float);
  animation: up .25s var(--ease);
}
.intro-pop img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}
.empty {
  text-align: center;
  padding: 28px 10px;
  color: var(--color-muted-foreground);
}
.share-preview {
  background: linear-gradient(180deg, #f4eefe, #e7f6e4);
  border-radius: 24px;
  padding: 24px 16px;
  text-align: center;
}
.share-preview .hero-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin: 10px 0;
}
textarea, .field {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 12px;
  outline: none;
  background: #fff;
  resize: none;
  min-height: 72px;
}
textarea:focus, .field:focus {
  border-color: var(--color-primary);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  min-height: 44px;
}
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--color-muted-foreground);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary);
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.tiny { font-size: 12px; color: var(--color-muted-foreground); line-height: 1.5; }
.warn { color: var(--color-warn); }
.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.plate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.plate-row:last-of-type { border-bottom: 0; }
.plate-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex: none;
}

#phone:has(textarea:focus) .tabbar,
#phone:has(input:not([readonly]):focus) .tabbar {
  opacity: .35;
  pointer-events: none;
}

#stage:has(.fridge-page) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(var(--tabbar-h) + 4px);
}
.fridge-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fridge-page .topbar { margin-bottom: 8px; }
.fridge-meta { margin-bottom: 2px; }
.fridge-lead {
  font-size: 13px;
  color: var(--color-muted-foreground);
  margin: 0 0 6px;
}
.fridge-scatter {
  position: relative;
  flex: 1;
  min-height: 168px;
  overflow: hidden;
  touch-action: none;
}
.fridge-mist {
  position: absolute;
  inset: 8% 6% 20%;
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 230, 210, .28), transparent 50%);
  pointer-events: none;
}
.fridge-spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  pointer-events: none;
}
.fridge-leaf {
  position: absolute;
  width: 14px; height: 22px;
  border-radius: 80% 0 80% 0;
  background: rgba(126, 196, 120, .18);
  pointer-events: none;
}
.food-sticker-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.food-sticker {
  position: absolute;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  overflow: visible;
}
.food-sticker:active { cursor: grabbing; }
.food-sticker .food-art {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 8px rgba(70, 50, 40, .16));
  pointer-events: none;
}
.food-name {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #5a5370;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  pointer-events: none;
}
.food-sticker.is-lift {
  z-index: 6;
  filter: drop-shadow(0 14px 16px rgba(70, 50, 40, .28));
}
.food-sticker.is-lift .food-art { transform: scale(1.12); }
.food-ghost {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 16px 18px rgba(70, 50, 40, .3));
  transform: scale(1.12);
}
.fridge-bowl-dock {
  flex: none;
  height: 22%;
  min-height: 140px;
  max-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0 4px;
  position: relative;
}
.bowl-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-foreground);
}
.bowl-count {
  font-size: 12px;
  color: var(--color-muted-foreground);
  margin: 2px 0 6px;
}
.fridge-bowl {
  width: 100%;
  display: flex;
  justify-content: center;
  transform-origin: 50% 80%;
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}
.fridge-bowl.is-hot {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(123, 108, 240, .35));
}
.fridge-bowl.is-pop { animation: bowl-pop .42s var(--ease); }
@keyframes bowl-pop {
  0% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-3deg) scale(1.06); }
  60% { transform: rotate(2deg) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}
.bowl-shell {
  position: relative;
  width: 188px;
  height: 92px;
}
.bowl-body {
  position: absolute;
  left: 8%; right: 8%;
  top: 38%;
  bottom: 0;
  background: linear-gradient(180deg, #efe4d2, #d7c09a 60%, #c4a87a);
  border-radius: 0 0 50% 50% / 0 0 80% 80%;
  box-shadow: 0 12px 20px rgba(90, 60, 30, .18);
}
.bowl-mouth {
  position: absolute;
  left: 4%; right: 4%;
  top: 6%;
  height: 58%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 35%, #fffdf8 0%, #f0e2c8 46%, #cbb48a 100%);
  box-shadow:
    inset 0 10px 14px rgba(90, 60, 20, .12),
    0 0 0 3px #eadcc4;
  overflow: hidden;
}
.bowl-items {
  position: absolute;
  inset: 10% 16% 18%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bowl-bit {
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  min-height: 44px;
  position: relative;
}
.bowl-bit .food-art { width: 44px; height: 44px; }
.bowl-spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff6c8;
  box-shadow: 0 0 6px #ffe9a0;
  animation: spark-fade .5s ease forwards;
  pointer-events: none;
}
@keyframes spark-fade {
  0% { opacity: 1; transform: scale(.4) translateY(0); }
  100% { opacity: 0; transform: scale(1) translateY(-12px); }
}
.fridge-bowl-dock .btn { width: min(100%, 280px); min-height: 40px; }

.know-page { padding-bottom: 28px; }
.know-sub {
  margin: -6px 0 12px;
  color: var(--color-muted-foreground);
  font-size: 13px;
}
.know-shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.know-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.know-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 3px rgba(91, 77, 214, .55), 0 0 22px rgba(91, 77, 214, .35);
  background: rgba(255, 255, 255, .08);
  transition: opacity 180ms var(--ease);
  pointer-events: none;
}
.know-shot.is-veg .g-veg,
.know-shot.is-protein .g-protein,
.know-shot.is-staple .g-staple { opacity: 1; }
.know-q {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.know-opts { display: flex; flex-direction: column; gap: 8px; }
.know-opt {
  min-height: 48px;
  border-radius: 16px;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  background: #fff;
  box-shadow: var(--shadow);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.know-opt.on {
  background: var(--purple-soft);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}
.know-tip {
  margin: 10px 0 4px;
  padding: 10px 12px;
  background: var(--purple-soft);
  border-radius: 14px;
  font-size: 13px;
  color: var(--color-foreground);
}
.know-h {
  font-size: 16px;
  margin: 18px 0 10px;
}
.know-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: stretch;
}
.know-col {
  background: #fff;
  border-radius: 16px;
  padding: 10px 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.know-col.is-wait { opacity: .45; }
.know-col.is-after { box-shadow: 0 0 0 1.5px var(--color-primary), var(--shadow); }
.know-col-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted-foreground);
  margin-bottom: 6px;
}
.know-bits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.know-bits span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 44px;
}
.know-bits .food-art { width: 36px; height: 36px; }
.know-bits em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted-foreground);
}
.know-bits .is-out { opacity: .28; }
.know-bits .is-in .food-art { filter: drop-shadow(0 4px 6px rgba(91, 77, 214, .2)); }
.know-duo { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.know-duo em { width: 100%; text-align: center; }
.know-mid {
  display: flex;
  align-items: center;
  max-width: 72px;
}
.know-shift {
  min-height: 64px;
  padding: 8px 6px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.know-shift.on { background: var(--color-primary); color: #fff; }
.know-soda i, .know-tea i {
  width: 22px; height: 30px;
  border-radius: 4px 4px 6px 6px;
  display: block;
  margin: 4px auto 0;
}
.know-soda i { background: linear-gradient(#e24b3b, #c43b2e); }
.know-tea i {
  width: 18px;
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(#f3e6c4, #d4b56a);
  box-shadow: inset 0 6px 0 #f7f1de;
}
.know-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px 16px 48px;
  margin: 16px 0 12px;
  box-shadow: var(--shadow);
}
.know-card-leaf {
  position: absolute;
  left: 14px; top: 18px;
  color: var(--color-accent);
}
.know-card h2 { font-size: 15px; margin-bottom: 6px; }
.know-card p { font-size: 16px; font-weight: 700; line-height: 1.45; }

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