:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #382a34;
  background: #251f27;
  font-synthesis: none;
  --purple: #4f2e3b;
  --gold: #ffd443;
  --paper: #fff6df;
  --ink: #20283b;
  --motion: 180ms;
  --spring: cubic-bezier(.2,.8,.25,1.2);
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
.ui-icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; margin-right: 5px; }
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: scale var(--motion) var(--spring), filter var(--motion), background-color var(--motion), box-shadow var(--motion);
}
button:active:not(:disabled) { scale: .95; filter: brightness(1.12); }
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #3879d1;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
  min-height: 44px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.7;
}
img {
  max-width: 100%;
}
.scene {
  position: relative;
  isolation: isolate;
  max-width: 520px;
  height: 100dvh;
  min-height: 560px;
  margin: auto;
  overflow: hidden;
  background: #e7bd80 center/cover no-repeat;
  padding-top: env(safe-area-inset-top);
}
.scene:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff4d513;
  z-index: -1;
}
.scene.home {
  background-image: url("/assets/Home/home_bg.jpg");
}
.scene.pantry {
  background-image: url("/assets/Pantry/pantry_bg.jpg");
}
.scene.calendar {
  background-image: url("/assets/Calendar/calendar_bg.jpg");
}
.scene.chef {
  background-image: url("/assets/Chef/chef_bg.jpg");
}
.scene.ideas {
  background-image: url("/assets/Ideas/board_bg.jpg");
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 7px 14px 9px;
  gap: 8px;
  color: white;
  background: var(--purple);
  border-bottom: 3px solid var(--ink);
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  text-align: left;
  border-radius: 12px;
  padding: 0;
  font-weight: 800;
}
.profile > span { min-width: 0; }
.profile strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.profile small { display: block; color: #f3cc91; font-size: 11px; margin-top: 4px; font-weight: 500; }
.stat-chip { display: flex; align-items: center; gap: 3px; padding: 5px 7px; background: #171e3566; border-radius: 18px; font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-chip img { width: 21px; height: 23px; object-fit: contain; }
.profile img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #dbb66e;
  flex-shrink: 0;
}
.top-action {
  font-size: 25px;
  color: var(--gold);
  background: #171e3566;
  border: 0;
  border-radius: 14px;
  width: 44px;
  flex-shrink: 0;
}
.tabs {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 10px 7px max(16px, env(safe-area-inset-bottom));
  gap: 3px;
  height: calc(116px + max(0px, env(safe-area-inset-bottom) - 16px));
  background: var(--purple);
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 16px #24182940;
}
.tabs button {
  width: 19%;
  height: 86px;
  border-radius: 14px;
  padding: 0;
  color: #ecd7c0;
  font-size: 12px;
  font-weight: 800;
  position: relative;
}
.tabs img {
  display: block;
  object-fit: contain;
  width: 52px;
  height: 55px;
  margin: auto;
  filter: drop-shadow(0 3px 1px #20192580);
}
.tabs button[aria-current="page"] {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 3px 0 #281c3055, inset 0 1px #fff8;
  transform: none;
}
.tabs button[aria-current="page"] img {
  width: 68px;
  height: 70px;
  transform: translateY(-5px) scale(1.04);
}
.tabs button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fa754a;
  border: 2px solid #ffd584;
}
.floating {
  position: absolute;
  bottom: calc(130px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  z-index: 3;
}
.game-button,
.primary {
  background: var(--purple);
  color: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 19px;
  font-weight: 800;
  box-shadow: 0 4px 0 #301e2e50;
  min-height: 52px;
}
.game-button:active,
.primary:active {
  transform: translateY(2px);
  box-shadow: none;
}
.plus {
  font-size: 27px;
  padding: 4px;
  width: 52px;
}
.lanes {
  padding-top: 4px;
  height: calc(100% - 255px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lane {
  display: flex;
  gap: 14px;
  padding: 3px 18px;
  min-height: 135px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.lane::-webkit-scrollbar {
  display: none;
}
.recipe-card {
  position: relative;
  flex: 0 0 auto;
  height: min(100%, 195px);
  aspect-ratio: 2/3;
  padding: 0;
  border: 4px solid #487898;
  border-radius: 13px;
  box-shadow: 0 4px 7px #20152166;
  overflow: hidden;
  background: #dbc89c;
}
.recipe-card.meat {
  border-color: #b34c44;
}
.recipe-card.vegetable {
  border-color: #4b9966;
}
.recipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff9e9;
  font-weight: 800;
  font-size: 14px;
  padding: 22px 5px 8px;
  background: linear-gradient(transparent, #30242bea);
  text-shadow: 0 1px 2px #17131a;
}
.recipe-card .heart {
  position: absolute;
  top: 4px;
  right: 6px;
  color: #fff6ce;
}
.recipe-card .progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 11px;
  padding: 4px;
  background: #2e283dcc;
  color: white;
}
.scroll-content {
  height: calc(100% - 76px);
  overflow: auto;
  padding: 8px 18px calc(220px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.pantry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pantry-item {
  padding: 12px;
  background: #fff1d9eb;
  border: 3px solid #795145;
  border-radius: 16px;
  box-shadow: 0 4px 0 #6d402849;
  text-align: center;
}
.pantry-item img {
  height: 100px;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.pantry-item .bottle {
  display: block;
  font-size: 55px;
  height: 100px;
  padding-top: 15px;
}
.pantry-item strong {
  display: block;
  margin: 5px 0;
}
.expiry {
  font-size: 12px;
  color: #647347;
}
.expiry.urgent {
  color: #b64733;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 12px;
}
.sheet-head button {
  font-size: 30px;
}
.muted {
  color: #766575;
  font-size: 13px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: #684938;
  background: #fff2d7ca;
  border-radius: 18px;
  margin: 30px 20px;
}
.empty:empty {
  display: none;
}
dialog {
  width: min(500px, calc(100% - 24px));
  max-height: 88vh;
  max-height: 88dvh;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: linear-gradient(160deg, #fff9eb, var(--paper));
  color: var(--ink);
  padding: 20px 20px 25px;
  box-shadow: 0 15px 50px #17132170;
}
dialog[open] { animation: sheet-in 240ms var(--spring); }
dialog[open].closing { animation: sheet-out 140ms ease-in forwards; }
.sheet-head { border-bottom: 1px solid #dbc8a8; margin-bottom: 20px; }
.sheet-head button { width: 44px; border-radius: 50%; background: #eadbc466; }
.settings-profile { display: flex; gap: 14px; align-items: center; margin: 0 0 24px; }
.settings-profile img { width: 64px; height: 64px; border: 2px solid #d3b475; border-radius: 20px; object-fit: cover; background: #efe1bd; }
.settings-profile strong { display: block; font-size: 20px; }
.settings-profile span { display: block; font-size: 13px; color: #725549; margin-top: 6px; }
.settings-links { background: #fffdf6; border: 1px solid #e5d4b6; border-radius: 18px; overflow: hidden; box-shadow: 0 3px 10px #80572f09; }
.settings-row { display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left; padding: 18px 16px; gap: 12px; }
.settings-row + .settings-row { border-top: 1px solid #eddfc9; }
.settings-row strong { display: block; font-size: 16px; }
.settings-row small { display: block; color: #705d54; font-size: 12px; line-height: 1.6; margin-top: 4px; }
.settings-row > span:last-child { font-size: 26px; color: #80614e; }
.settings-details { border-bottom: 1px solid #e5d4b6; padding: 0 4px 12px; }
.settings-details summary { min-height: 44px; }
.family-intro { margin-bottom: 22px; color: #705d54; }
input, textarea, select { font-size: 16px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #a47445; outline-offset: 2px; }
.is-pending::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 8px; vertical-align: middle; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin .7s linear infinite; }
.is-pending { cursor: progress; }
.form-error { color: #9b2834; background: #fbe9e3; border-radius: 12px; padding: 12px; font-size: 14px; }
#sheet-notice { position: sticky; bottom: 0; margin-top: 16px; padding: 12px 16px; background: var(--ink); color: #fff3d1; border-radius: 12px; font-size: 14px; box-shadow: 0 4px 16px #231c3622; }
#sheet-notice[data-kind="error"], #notice[data-kind="error"] { background: #7d2938; color: #fff; }
.page-enter > :not(.tabs) { animation: page-in 220ms ease-out; }
.page-enter .tabs [aria-current="page"] img { animation: tab-pop 260ms var(--spring); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(14px) scale(.99); } }
@keyframes page-in { from { opacity: .5; translate: 0 5px; } to { opacity: 1; translate: 0; } }
@keyframes tab-pop { from { scale: .85; } to { scale: 1; } }
@keyframes busy-spin { to { rotate: 360deg; } }
dialog::backdrop {
  background: #251b2e85;
  backdrop-filter: blur(3px);
}
#sheet-body {
  overflow-wrap: anywhere;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  background: #fffdfa;
  border: 1px solid #cbb79b;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.65;
}
input[type="checkbox"] {
  width: 23px;
  min-height: 23px;
  accent-color: var(--purple);
}
input[type="file"] {
  font-size: 13px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.secondary {
  background: #eadbc4;
  border-radius: 12px;
  padding: 10px 15px;
}
.danger {
  color: #a83339;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.section {
  margin-top: 18px;
}
.section h3 {
  margin-bottom: 8px;
}
.section p,
.section ul {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
}
.hero-image {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 16px;
}
.inline-photo {
  height: 95px;
  width: 95px;
  object-fit: cover;
  border-radius: 14px;
}
.code {
  display: block;
  font-size: 26px;
  text-align: center;
  letter-spacing: 3px;
  padding: 22px 0;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  user-select: all;
}
.member {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #dfceb7;
}
.conflict {
  padding: 14px;
  border: 2px solid #c07340;
  border-radius: 13px;
  margin: 10px 0;
}
.conflict pre {
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
  font-size: 12px;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: #fbe6c4e6;
  border-radius: 15px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 16px 0;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  background: #fff2d8d9;
  border-radius: 12px;
}
.day.selected {
  background: var(--purple);
  color: var(--gold);
}
.meal {
  background: #fff4ddf2;
  border: 3px solid #9d7758;
  border-radius: 18px;
  padding: 15px;
  margin: 15px 0;
}
.meal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meal ul {
  list-style: none;
  padding: 0;
  margin: 5px 0;
}
.meal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #dfc9a2;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.check-row img {
  width: 44px;
  height: 55px;
  object-fit: cover;
  border-radius: 7px;
}
.agent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #bd9f68;
  border-radius: 16px;
  background: #fff3ddea;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.agent-card img {
  width: 60px;
  height: 65px;
  object-fit: contain;
}
.agent-card label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.agent-card input[type="checkbox"] { appearance: none; flex: 0 0 48px; width: 48px; height: 28px; min-height: 28px; border: 2px solid #91785b; border-radius: 20px; padding: 0; background: #cdbda2; position: relative; cursor: pointer; transition: background-color 180ms; }
.agent-card input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fffaf0; box-shadow: 0 1px 3px #31243844; transition: translate 180ms var(--spring); }
.agent-card input[type="checkbox"]:checked { background: var(--purple); border-color: var(--purple); }
.agent-card input[type="checkbox"]:checked::before { translate: 20px; background: var(--gold); }
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.note {
  position: relative;
  text-align: left;
  background: #ffe9a8;
  padding: 23px 12px 18px;
  box-shadow: 0 4px 7px #66533260;
  min-height: 148px;
  transform: rotate(-2deg);
}
.note:nth-child(2n) {
  background: #f8d5be;
  transform: rotate(2deg);
}
.note:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 30%;
  width: 40%;
  height: 20px;
  background: #fffcdf8a;
  transform: rotate(3deg);
}
.note p {
  font-size: 12px;
  margin-top: 12px;
  color: #685747;
}
.chef-character {
  position: absolute;
  width: 115%;
  height: 85%;
  object-fit: contain;
  object-position: left bottom;
  left: -21%;
  bottom: 45px;
  pointer-events: none;
}
.chef-composer {
  position: absolute;
  top: 22px;
  left: 18px;
  right: 60px;
  z-index: 2;
  background: #fff1d6e8;
  border: 3px solid #4c384a;
  border-radius: 19px;
  padding: 10px;
}
.chef-composer textarea {
  border: 0;
  background: transparent;
  min-height: 65px;
  max-height: 130px;
  padding: 2px;
}
.chef-composer .actions {
  margin: 0;
  justify-content: flex-end;
}
.chef-tools {
  position: absolute;
  right: 18px;
  bottom: calc(285px + env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  align-items: flex-end;
  z-index: 2;
}
.dialogue {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(132px + env(safe-area-inset-bottom));
  height: 124px;
  z-index: 2;
  border: 3px solid #333142;
  background: #e8dedbf5;
  border-radius: 14px;
  padding: 20px 14px 12px;
  box-shadow: 0 3px 0 #25203360;
}
.dialogue .nameplate {
  position: absolute;
  top: -18px;
  left: 15px;
  background: var(--purple);
  color: #fff0bd;
  padding: 7px 22px;
  border: 3px solid #302839;
  border-radius: 9px;
  font-weight: 800;
}
.dialogue p {
  overflow: auto;
  max-height: 86px;
  white-space: pre-wrap;
  font-size: 14px;
}
.chef-join {
  position: absolute;
  right: 15px;
  top: 170px;
  display: grid;
  gap: 10px;
  z-index: 3;
}
.status-line {
  min-height: 20px;
  font-size: 13px;
  margin: 12px 0;
  color: #79674e;
}
#notice {
  position: fixed;
  z-index: 20;
  bottom: calc(110px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(460px, 90vw);
  background: #302435;
  color: #fff3d1;
  padding: 13px 20px;
  border-radius: 13px;
  box-shadow: 0 5px 20px #26192860;
  font-size: 14px;
}
.attachment-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.attachment-preview img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
}
.auth-actions {
  display: grid;
  gap: 12px;
}
.recipe-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 205px;
}
.recipe-list .recipe-card {
  height: 100%;
  width: 100%;
}
.error {
  color: #a43737;
  margin: 12px 0;
}
.loading {
  color: #776875;
}
.text-button {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.offline {
  font-size: 12px;
  color: #bd4d34;
}
.tab-title {
  font-size: 21px;
  font-weight: 900;
  background: #fff0d5e6;
  padding: 8px 17px;
  border-radius: 13px;
  border: 2px solid #765846;
}
.lock-note {
  margin: 12px 0;
}
.file-label {
  padding: 12px;
  background: #e8dac1;
  border-radius: 12px;
}
.file-label input {
  background: transparent;
  border: 0;
  padding: 5px 0;
}
details {
  margin-top: 15px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 650;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px #c0524960;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-height: 720px) {
  .lane {
    min-height: 108px;
  }
  .recipe-card {
    border-width: 3px;
  }
  .topbar {
    height: 65px;
  }
  .lanes {
    height: calc(100% - 230px);
  }
  .chef-composer {
    top: 8px;
  }
  .chef-join {
    top: 150px;
  }
  .tabs {
    height: 85px;
  }
  .tabs button {
    height: 80px;
  }
  .tabs img {
    height: 55px;
  }
  .tabs button[aria-current="page"] img {
    height: 62px;
  }
}
@media (min-width: 650px) {
  .scene {
    box-shadow: 0 0 50px #09080d80;
  }
}

.scene:not(.home) .scroll-content {
  height: 100%;
  padding-top: 14px;
}
.pantry-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pantry-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  min-height: 88px;
  padding: 12px;
  background: #fae8b0;
  border-color: #ae844a;
  border-radius: 18px;
}
.pantry-item img,
.pantry-item .bottle {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid #ad844a;
  border-radius: 13px;
  padding: 0;
  font-size: 35px;
  text-align: center;
  line-height: 62px;
}
.pantry-label {
  flex: 1;
  min-width: 0;
}
.pantry-label strong {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pantry-label small {
  color: #8c5031;
  font-size: 12px;
}
.pantry-item .expiry {
  padding: 9px;
  background: #e2dda7;
  border-radius: 12px;
  max-width: 80px;
  text-align: center;
}
.pantry-item .expiry.urgent {
  background: #f3c49c;
  color: #733721;
}
.pantry-floating {
  left: 22px;
  right: 22px;
  justify-content: space-between;
}
.pantry-floating .plus {
  margin-left: auto;
}
.expiry-alert {
  font-size: 22px;
}
.calendar:before {
  background: #fff4dc75;
}
.calendar .scroll-content {
  padding-left: 0;
  padding-right: 0;
}
.timeline {
  display: flex;
  overflow: auto;
  scrollbar-width: none;
  position: relative;
  height: 86px;
}
.timeline-day {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.timeline-day strong {
  font-size: 14px;
  border-radius: 20px;
  padding: 5px 10px;
}
.timeline-day.selected strong {
  background: #ffd75c;
}
.timeline-day i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #76515e;
  border: 2px solid #fff6;
}
.timeline-day i:before {
  content: "";
  width: 72px;
  height: 3px;
  background: #72525aaa;
  position: absolute;
  left: -32px;
  top: 3px;
  z-index: -1;
}
.timeline-day.selected i {
  background: #ffc63e;
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
}
.meal {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin: 15px 0 24px;
}
.meal h3 {
  display: flex;
  align-items: center;
  font-size: 22px;
  gap: 10px;
  padding: 0 20px 10px;
}
.meal h3 img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.meal-cards {
  display: flex;
  overflow: auto;
  gap: 12px;
  padding: 5px 20px;
  height: 174px;
  scrollbar-width: none;
}
.meal-card {
  position: relative;
  min-width: 106px;
  width: 106px;
  height: 159px;
  border: 3px solid #987257;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 3px 6px #5d453650;
}
.meal-card > button:first-child {
  width: 100%;
  height: 100%;
  padding: 0;
}
.meal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meal-card strong {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #422d36c9;
  color: #fff1cf;
  padding: 7px 3px;
  font-size: 13px;
}
.meal-card .remove-card {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #fff7dfd9;
  border-radius: 50%;
  min-height: 44px;
  height: 44px;
  width: 44px;
  padding: 0;
}
.add-meal-card {
  min-width: 106px;
  height: 159px;
  background: #f1e4c47a;
  border: 3px dashed #a88c66;
  border-radius: 13px;
  font-size: 35px;
  color: #775640;
}
.meal-wheel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 28px 45px;
  scroll-snap-type: x mandatory;
  min-height: 280px;
}
.wheel-card {
  flex: 0 0 155px;
  height: 232px;
  border: 4px solid #7b5865;
  border-radius: 18px;
  padding: 0;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 6px 12px #43334960;
}
.wheel-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.wheel-card strong {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 4px;
  color: #fff1ce;
  background: #372735d9;
}
.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
}
.card-face .front,
.card-face .back {
  display: block;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transition:
    transform 0.34s,
    opacity 0.34s;
}
.card-face .back {
  background: #efead7;
  transform: rotateY(-180deg);
  opacity: 0;
  padding: 10px;
  overflow: hidden;
  line-height: 1.4;
}
.card-face .back strong,
.card-face .back small,
.card-face .back > span {
  display: block;
}
.card-face .back small {
  font-weight: 800;
  margin-top: 8px;
  color: #8b6248;
}
.card-face .back > span {
  font-size: 11px;
  max-height: 40px;
  overflow: hidden;
}
.flipped .front {
  transform: rotateY(180deg);
  opacity: 0;
}
.flipped .back {
  transform: rotateY(0);
  opacity: 1;
}
.card-actions {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: space-around;
  gap: 2px;
  padding: 3px;
  background: #efe8dcec;
}
.flipped .card-actions {
  display: flex;
}
.card-actions button {
  min-height: 44px;
  width: 44px;
  border-radius: 50%;
  background: #ffffff99;
  font-size: 18px;
}
.recipe-card.meat .back {
  background: #f6d6cb;
}
.recipe-card.vegetable .back {
  background: #dcebd3;
}
