:root {
  --ink: #503532;
  --ink-soft: #7d5d58;
  --cream: #fff9f4;
  --paper: #fffdf9;
  --pink: #f27496;
  --pink-deep: #d94f78;
  --pink-pale: #ffe0e9;
  --rose: #ffb7cb;
  --brown: #7a4a42;
  --brown-pale: #f0d5ca;
  --yellow: #f6c64e;
  --blue: #8bc6e8;
  --mint: #bfe0c8;
  --white: #fff;
  --line: rgba(93, 56, 50, 0.16);
  --shadow: 0 14px 35px rgba(143, 82, 86, 0.15);
  --chunky-shadow: 0 5px 0 rgba(101, 62, 56, 0.12);
  --nav-height: 78px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --page-x: 16px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #f8e7e8;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.9) 0 8%, transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(255, 209, 218, 0.9) 0 8%, transparent 25%),
    linear-gradient(135deg, #f6e3e1, #ffeef1 45%, #f8e2db);
  -webkit-tap-highlight-color: transparent;
}

button,
textarea,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(242, 116, 150, 0.38);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.noscript-card {
  position: fixed;
  z-index: 2000;
  inset: 20px;
  padding: 30px;
  border: 2px solid var(--brown);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.outside-toys {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.outside-toys img {
  position: absolute;
  width: min(17vw, 210px);
  opacity: 0.48;
  filter: drop-shadow(0 18px 22px rgba(115, 66, 70, 0.15));
  mix-blend-mode: multiply;
}

.outside-toys img:nth-child(1) {
  top: 10%;
  left: 5%;
  transform: rotate(-8deg);
}

.outside-toys img:nth-child(2) {
  bottom: 9%;
  left: 7%;
  transform: rotate(5deg);
}

.outside-toys img:nth-child(3) {
  top: 23%;
  right: 5%;
  transform: rotate(7deg);
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top, 0px)) var(--page-x) 10px;
  border-bottom: 1px solid rgba(95, 57, 52, 0.08);
  background: rgba(255, 249, 245, 0.91);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid rgba(80, 53, 50, 0.16);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(96, 54, 51, 0.1);
}

.brand-avatar img {
  width: 72px;
  max-width: none;
  mix-blend-mode: multiply;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.points-pill {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px 6px 7px;
  border: 1.5px solid rgba(103, 60, 53, 0.13);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4b9, #ffe5a1);
  box-shadow: 0 4px 0 rgba(101, 62, 56, 0.09);
  font-size: 11px;
}

.points-pill b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.points-star {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(86, 48, 45, 0.12);
}

.page-stack {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-stack::-webkit-scrollbar,
.sheet-body::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page {
  position: relative;
  min-height: 100%;
  padding: 17px var(--page-x) 34px;
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.page-submit {
  background-image: url("./assets/bg-submit.webp");
}

.page-submit::before {
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.95), rgba(255, 243, 239, 0.98) 50%, #fff8f4),
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.7), transparent 30%);
}

.page-shop {
  background-image: url("./assets/bg-shop.webp");
}

.page-shop::before {
  background:
    linear-gradient(180deg, rgba(255, 246, 248, 0.93), rgba(255, 243, 246, 0.98) 55%, #fff8f8),
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.75), transparent 24%);
}

.page-warehouse {
  background-image: url("./assets/bg-warehouse.webp");
}

.page-warehouse::before {
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.94), rgba(255, 248, 246, 0.98) 54%, #fffaf6),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.76), transparent 28%);
}

.page.is-entering {
  animation: pageIn 320ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.float-heart,
.float-star {
  position: absolute;
  color: var(--pink);
  opacity: 0.45;
}

.float-heart {
  font-family: Georgia, serif;
}

.heart-a {
  top: 240px;
  right: 10px;
  font-size: 30px;
  transform: rotate(15deg);
}

.heart-b {
  top: 120px;
  left: 8px;
  font-size: 24px;
  transform: rotate(-15deg);
}

.star-a {
  top: 470px;
  left: 10px;
  color: var(--yellow);
  font-size: 28px;
  transform: rotate(-12deg);
}

.star-b {
  top: 280px;
  right: 9px;
  color: var(--blue);
  font-size: 26px;
  transform: rotate(13deg);
}

.float-bow {
  position: absolute;
  width: 32px;
  height: 23px;
  opacity: 0.35;
}

.float-bow::before,
.float-bow::after {
  position: absolute;
  top: 3px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--pink);
  content: "";
}

.float-bow::before {
  left: 0;
  border-radius: 60% 35% 58% 42%;
  transform: rotate(22deg);
}

.float-bow::after {
  right: 0;
  border-radius: 35% 60% 42% 58%;
  transform: rotate(-22deg);
}

.bow-a {
  top: 145px;
  left: 7px;
  transform: rotate(-12deg);
}

.bow-b {
  top: 360px;
  right: 5px;
  transform: rotate(16deg) scale(0.8);
}

.bow-c {
  top: 590px;
  left: 8px;
  transform: rotate(-8deg) scale(0.75);
}

.eyebrow,
.mini-label {
  display: block;
  color: var(--pink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(93, 56, 50, 0.16);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.submit-hero {
  display: flex;
  min-height: 210px;
  padding: 23px 14px 20px 21px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(135deg, #fff9ef, #ffdce5 58%, #ffc4d4);
}

.submit-hero::before {
  position: absolute;
  top: -28px;
  right: -24px;
  width: 164px;
  height: 164px;
  border: 1px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  content: "";
}

.submit-hero::after {
  position: absolute;
  bottom: -23px;
  left: -16px;
  width: 110px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  content: "";
  transform: rotate(-12deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.hero-copy h1 {
  margin: 8px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 11vw, 51px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-copy h1 span {
  display: inline-block;
  margin-left: 2px;
  color: var(--pink-deep);
  font-size: 0.49em;
  letter-spacing: 0.03em;
  transform: translateY(-7px);
}

.hero-copy p {
  margin: 11px 0 14px;
  color: #654844;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(104, 64, 57, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #6f514c;
  font-size: 10px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.date-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(242, 116, 150, 0.14);
}

.hero-kitty {
  position: relative;
  z-index: 1;
  flex: 0 0 142px;
  align-self: flex-end;
  margin: 0 -8px -13px -4px;
}

.hero-kitty img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 13px 12px rgba(118, 69, 72, 0.11));
  mix-blend-mode: multiply;
}

.kitty-halo {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 122px;
  height: 122px;
  border: 1.5px dashed rgba(217, 79, 120, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 12px;
  padding: 10px 11px 9px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 17px;
  background: rgba(255, 250, 247, 0.88);
  box-shadow: 0 4px 12px rgba(101, 62, 56, 0.04);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.pending-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 10px;
}

.pending-badge strong {
  color: var(--pink-deep);
  font-family: Georgia, serif;
  font-size: 16px;
}

.task-list {
  display: grid;
  gap: 11px;
}

.task-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 88px;
  padding: 13px 12px 12px;
  overflow: hidden;
  border: 1.5px solid rgba(93, 56, 50, 0.13);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 5px 0 rgba(101, 62, 56, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.task-card.is-selected {
  border-color: rgba(217, 79, 120, 0.36);
  box-shadow:
    0 5px 0 rgba(217, 79, 120, 0.1),
    0 13px 26px rgba(217, 79, 120, 0.08);
  transform: translateY(-1px);
}

.task-card::after {
  position: absolute;
  right: -25px;
  bottom: -34px;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.task-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(93, 56, 50, 0.09);
  border-radius: 14px;
  background: var(--task-bg, #ffe5eb);
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.task-main {
  min-width: 0;
}

.task-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.task-title-row h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-point {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--task-accent, var(--pink-deep));
  background: var(--task-bg, var(--pink-pale));
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}

.task-main p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.stepper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 999px;
  background: #fff;
}

.stepper button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #8d6d68;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.stepper button:active {
  transform: scale(0.9);
}

.stepper button[data-step="1"] {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 3px 7px rgba(217, 79, 120, 0.2);
}

.stepper button:disabled {
  cursor: default;
  opacity: 0.32;
}

.task-count {
  display: block;
  width: 20px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.note-card {
  margin: 19px 0 16px;
  padding: 14px 15px 9px;
  border: 1.5px solid rgba(93, 56, 50, 0.12);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 4px 0 rgba(101, 62, 56, 0.04);
}

.note-card label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.note-title {
  font-size: 12px;
  font-weight: 800;
}

.note-subtitle {
  color: var(--ink-soft);
  font-size: 9px;
}

.note-card textarea {
  width: 100%;
  margin: 10px 0 3px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.7;
}

.note-card textarea::placeholder {
  color: #b49b97;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b69b97;
  font-size: 8px;
}

.note-heart {
  color: var(--pink);
  font-size: 16px;
}

.primary-action {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(79, 45, 42, 0.2);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(135deg, #fb89a7, #e84e7b);
  box-shadow:
    0 6px 0 #bf3d64,
    0 14px 24px rgba(217, 79, 120, 0.22);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 150ms ease;
}

.primary-action::after {
  position: absolute;
  top: -85%;
  left: -20%;
  width: 35%;
  height: 250%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  content: "";
  transform: rotate(28deg);
  transition: left 450ms ease;
}

.primary-action:not(:disabled):hover::after {
  left: 115%;
}

.primary-action:not(:disabled):active {
  box-shadow:
    0 2px 0 #bf3d64,
    0 7px 15px rgba(217, 79, 120, 0.18);
  transform: translateY(4px);
}

.primary-action:disabled {
  cursor: default;
  opacity: 0.48;
  box-shadow: 0 4px 0 rgba(91, 54, 50, 0.13);
  filter: saturate(0.75);
}

.action-icon {
  font-size: 16px;
}

.action-arrow {
  position: absolute;
  right: 18px;
  font-size: 18px;
}

.gentle-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 17px 0 2px;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}

.gentle-note span {
  color: var(--pink);
  font-size: 13px;
}

.shop-heading {
  position: relative;
  min-height: 158px;
  padding: 8px 145px 8px 5px;
}

.shop-heading h1 {
  margin: 7px 0 8px;
  font-size: clamp(29px, 8.5vw, 39px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.shop-heading h1 span {
  color: var(--pink-deep);
}

.shop-heading p {
  max-width: 235px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.shop-heading-kitty {
  position: absolute;
  right: -17px;
  bottom: -4px;
  width: 156px;
  filter: drop-shadow(0 12px 14px rgba(111, 65, 67, 0.08));
  mix-blend-mode: multiply;
  transform: rotate(1.5deg);
}

.balance-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1.5px solid rgba(91, 53, 48, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 15%, rgba(255, 255, 255, 0.75), transparent 32%),
    linear-gradient(125deg, #ffe5eb, #fff8dd 70%, #ffeccc);
  box-shadow: 0 5px 0 rgba(101, 62, 56, 0.06);
}

.balance-ribbon::before {
  position: absolute;
  top: -24px;
  right: 36%;
  width: 74px;
  height: 74px;
  border: 1px dashed rgba(217, 79, 120, 0.2);
  border-radius: 50%;
  content: "";
}

.balance-copy {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
}

.balance-copy > span {
  color: #87615d;
  font-size: 9px;
  font-weight: 700;
}

.balance-copy strong {
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.05;
}

.balance-copy strong b {
  color: var(--pink-deep);
}

.balance-copy small {
  color: #9b7672;
  font-size: 10px;
  font-weight: 600;
}

.balance-note {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #76504c;
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

.balance-note > span:last-child {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tiny-bow {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 20px;
}

.tiny-bow::before,
.tiny-bow::after {
  position: absolute;
  top: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--pink);
  content: "";
}

.tiny-bow::before {
  left: 0;
  border-radius: 60% 35% 58% 42%;
  transform: rotate(20deg);
}

.tiny-bow::after {
  right: 0;
  border-radius: 35% 60% 42% 58%;
  transform: rotate(-20deg);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.filter-chips {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.chip.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.heart-filter {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 50%;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.8);
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.heart-filter.is-active {
  border-color: var(--pink);
  background: var(--pink-pale);
}

.store-heading {
  margin-top: 19px;
}

.scroll-hint {
  color: var(--ink-soft);
  font-size: 9px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid rgba(84, 50, 45, 0.16);
  border-radius: 21px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow:
    0 5px 0 rgba(101, 62, 56, 0.07),
    0 14px 24px rgba(119, 67, 70, 0.08);
  text-align: left;
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.store-card:active {
  box-shadow: 0 2px 0 rgba(101, 62, 56, 0.09);
  transform: translateY(3px);
}

.store-visual {
  position: relative;
  height: 158px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.9), transparent 26%),
    var(--card-bg, #ffe7ed);
}

.store-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  opacity: 0.6;
}

.store-visual::after {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  content: "";
}

.store-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-card:hover .store-visual img {
  transform: scale(1.035);
}

.shop-number {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(80, 53, 50, 0.77);
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.store-heart {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.9);
  font-family: Georgia, serif;
  font-size: 15px;
  box-shadow: 0 2px 7px rgba(81, 48, 43, 0.08);
}

.store-heart.is-saved {
  color: #fff;
  background: var(--pink);
}

.store-info {
  padding: 10px 11px 12px;
}

.store-title {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 6px;
}

.store-category {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
}

.points-tag {
  flex: 0 0 auto;
  color: var(--pink-deep);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.points-tag small {
  font-family: inherit;
  font-size: 7px;
}

.store-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(96, 57, 52, 0.13);
  color: #a0807b;
  font-size: 8px;
}

.store-card-foot span:last-child {
  color: var(--pink-deep);
  font-weight: 700;
}

.shop-footer-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px dashed rgba(93, 56, 50, 0.2);
  border-radius: 18px;
  background: rgba(255, 250, 247, 0.7);
}

.shop-footer-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.shop-footer-card div {
  min-width: 0;
}

.shop-footer-card strong {
  font-size: 11px;
}

.shop-footer-card p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 8.5px;
  line-height: 1.55;
}

.warehouse-hero {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 22px 14px 20px 20px;
  overflow: hidden;
  border: 1.5px solid rgba(93, 56, 50, 0.14);
  border-radius: 27px;
  background:
    linear-gradient(145deg, rgba(255, 249, 244, 0.95), rgba(255, 220, 229, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
}

.warehouse-hero::before {
  position: absolute;
  top: -47px;
  left: 38%;
  width: 160px;
  height: 160px;
  border: 1px dashed rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  content: "";
}

.warehouse-copy {
  position: relative;
  z-index: 2;
  width: 58%;
}

.warehouse-copy h1 {
  margin: 8px 0 5px;
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.warehouse-copy > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.warehouse-points {
  display: inline-grid;
  gap: 2px;
  margin-top: 18px;
  padding: 9px 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.warehouse-points > span {
  color: var(--ink-soft);
  font-size: 8px;
}

.warehouse-points strong {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.warehouse-points b {
  color: var(--pink-deep);
}

.warehouse-points small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
}

.warehouse-kitty-wrap {
  position: absolute;
  z-index: 1;
  right: -22px;
  bottom: -18px;
  width: 195px;
}

.warehouse-kitty-wrap img {
  filter: drop-shadow(0 12px 14px rgba(89, 53, 51, 0.1));
  mix-blend-mode: multiply;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0;
}

.stat-card {
  display: grid;
  justify-items: center;
  padding: 11px 6px 10px;
  border: 1px solid rgba(93, 56, 50, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 0 rgba(101, 62, 56, 0.04);
}

.stat-icon {
  display: grid;
  width: 23px;
  height: 23px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
}

.stat-icon.pink {
  color: var(--pink-deep);
  background: var(--pink-pale);
}

.stat-icon.yellow {
  color: #a77a0a;
  background: #fff3c5;
}

.stat-icon.blue {
  color: #3986b2;
  background: #e1f3fd;
}

.stat-card strong {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.05;
}

.stat-card small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.next-goal-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 9px 15px 9px 9px;
  overflow: hidden;
  border: 1.5px solid rgba(93, 56, 50, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(135deg, #fff6e5, #ffe7ed);
}

.goal-kitty {
  align-self: stretch;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
}

.goal-kitty img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.goal-copy {
  display: grid;
  min-width: 0;
}

.goal-copy > span {
  color: var(--pink-deep);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.goal-copy strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
}

.goal-progress {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(137, 84, 79, 0.12);
}

.goal-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #ffb6c9);
  transition: width 400ms ease;
}

.warehouse-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 12px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(93, 56, 50, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.65);
  scrollbar-width: none;
}

.tab-btn {
  flex: 1 0 auto;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.tab-btn.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 8px rgba(97, 57, 52, 0.08);
}

.warehouse-panel {
  animation: panelIn 220ms ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.order-list,
.history-list,
.wishlist-list {
  display: grid;
  gap: 10px;
}

.order-card,
.history-card,
.wishlist-card {
  display: grid;
  align-items: center;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 4px 0 rgba(101, 62, 56, 0.045);
}

.order-card {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 9px 12px 9px 9px;
}

.order-image {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--pink-pale);
}

.order-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.order-copy,
.history-copy,
.wishlist-copy {
  min-width: 0;
}

.order-copy strong,
.wishlist-copy strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-copy small,
.wishlist-copy small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
}

.order-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: #428160;
  background: #e7f6ec;
  font-size: 8px;
  font-weight: 700;
}

.history-card {
  grid-template-columns: 53px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px;
}

.history-date {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 15px;
  color: var(--pink-deep);
  background: var(--pink-pale);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.history-date b {
  display: block;
  font-size: 19px;
}

.history-copy strong {
  font-size: 10px;
  line-height: 1.45;
}

.history-copy p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-points {
  color: var(--pink-deep);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.wishlist-card {
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 10px 8px 8px;
}

.wishlist-image {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff2ed;
}

.wishlist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.wishlist-card button {
  min-width: 54px;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid rgba(217, 79, 120, 0.25);
  border-radius: 10px;
  color: var(--pink-deep);
  background: #fff5f8;
  font-size: 8px;
  font-weight: 700;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 15px 20px 26px;
  text-align: center;
}

.empty-kitty {
  position: relative;
  width: 128px;
  height: 108px;
}

.empty-kitty img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.empty-halo {
  position: absolute;
  top: 17px;
  left: 22px;
  width: 85px;
  height: 85px;
  border: 1px dashed rgba(217, 79, 120, 0.25);
  border-radius: 50%;
}

.empty-title {
  margin-top: 2px;
  font-size: 12px;
}

.empty-copy {
  max-width: 250px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}

.empty-state button {
  margin-top: 12px;
}

.settings-card {
  overflow: hidden;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.9);
}

.setting-row {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px dashed rgba(93, 56, 50, 0.12);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.setting-icon {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--pink-deep);
  background: var(--pink-pale);
  font-family: Georgia, serif;
  font-size: 13px;
}

.setting-copy div {
  min-width: 0;
}

.setting-copy strong {
  display: block;
  font-size: 10px;
}

.setting-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 25px;
  cursor: pointer;
}

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

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #decfcc;
  transition: background 180ms ease;
}

.switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(72, 44, 41, 0.18);
  content: "";
  transition: transform 180ms ease;
}

.switch input:checked + .switch-track {
  background: var(--pink);
}

.switch input:checked + .switch-track::after {
  transform: translateX(17px);
}

.small-outline-btn,
.small-danger-btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 9px;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
}

.small-outline-btn {
  border: 1px solid rgba(93, 56, 50, 0.16);
}

.small-danger-btn {
  border: 1px solid rgba(199, 72, 77, 0.2);
  color: #b14a50;
  background: #fff7f7;
}

.love-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(217, 79, 120, 0.23);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf0, #fff0f4);
}

.love-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  mix-blend-mode: multiply;
}

.love-card strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.love-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.55;
}

.storage-note {
  margin: 17px 4px 2px;
  color: #957873;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.bottom-nav {
  position: relative;
  z-index: 40;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  min-height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 7px 12px calc(8px + var(--safe-bottom));
  border-top: 1px solid rgba(93, 56, 50, 0.1);
  background: rgba(255, 252, 248, 0.96);
  box-shadow: 0 -9px 30px rgba(119, 70, 70, 0.07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 82px;
  justify-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 16px;
  color: #9a7f7a;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-icon {
  display: grid;
  width: 31px;
  height: 27px;
  place-items: center;
  border-radius: 10px;
  transition: background 180ms ease;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-item.is-active {
  color: var(--pink-deep);
  transform: translateY(-2px);
}

.nav-item.is-active .nav-icon {
  background: var(--pink-pale);
}

.nav-bow {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 30px;
  height: 18px;
  opacity: 0.2;
  transform: translateX(-50%);
}

.nav-bow::before,
.nav-bow::after {
  position: absolute;
  top: 0;
  width: 17px;
  height: 17px;
  border: 2px solid var(--pink);
  content: "";
}

.nav-bow::before {
  left: 0;
  border-radius: 60% 35% 58% 42%;
  transform: rotate(16deg);
}

.nav-bow::after {
  right: 0;
  border-radius: 35% 60% 42% 58%;
  transform: rotate(-16deg);
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(61, 39, 37, 0.38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fadeIn 180ms ease both;
}

.modal-layer {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 100%;
  align-items: flex-end;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 85% 4%, rgba(255, 255, 255, 0.96), transparent 22%),
    #fffaf7;
  box-shadow: 0 -18px 50px rgba(76, 44, 41, 0.2);
}

.bottom-sheet {
  max-height: 93vh;
  max-height: 93dvh;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  animation: sheetUp 330ms cubic-bezier(0.16, 0.82, 0.25, 1) both;
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
}

.sheet-grabber {
  width: 46px;
  height: 5px;
  margin: 8px auto 2px;
  border-radius: 99px;
  background: #dfcfcb;
}

.sheet-body {
  max-height: calc(93vh - 15px);
  max-height: calc(93dvh - 15px);
  padding: 0 16px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  z-index: 20;
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(92, 55, 50, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(77, 45, 42, 0.08);
  font-size: 18px;
  line-height: 1;
}

.sheet-hero {
  position: relative;
  height: 230px;
  margin: 2px -16px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.92), transparent 22%),
    var(--product-bg, linear-gradient(135deg, #ffe0e8, #fff3db));
}

.sheet-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.77) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: 0.7;
}

.sheet-hero::after {
  position: absolute;
  right: -55px;
  bottom: -75px;
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
}

.sheet-hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.store-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px dashed rgba(93, 56, 50, 0.16);
  border-radius: 13px;
  background: rgba(255, 249, 240, 0.82);
}

.store-intro span {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: var(--pink-pale);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.store-intro p {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.sheet-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--pink-deep);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet-kicker::before {
  width: 17px;
  height: 1px;
  background: var(--pink);
  content: "";
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}

.product-title-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.detail-heart {
  display: grid;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 50%;
  color: var(--pink-deep);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 21px;
}

.detail-heart.is-saved {
  color: #fff;
  background: var(--pink);
}

.product-description {
  margin: 8px 0 12px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.72;
}

.product-switcher {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-switcher button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 11px;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
}

.product-switcher button.is-active {
  border-color: var(--pink);
  color: var(--pink-deep);
  background: #fff4f7;
}

.product-switcher img {
  width: 31px;
  height: 31px;
  object-fit: cover;
  border-radius: 8px;
  mix-blend-mode: multiply;
}

.price-compare {
  padding: 13px 14px 12px;
  border: 1px solid rgba(93, 56, 50, 0.12);
  border-radius: 17px;
  background: linear-gradient(135deg, #fff8eb, #fff2f5);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row + .price-row {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(93, 56, 50, 0.12);
}

.price-row span {
  color: var(--ink-soft);
  font-size: 9px;
}

.price-row strong {
  font-family: Georgia, serif;
  font-size: 17px;
}

.price-row strong.pink {
  color: var(--pink-deep);
}

.price-row strong.good {
  color: #46845f;
}

.price-row strong.low {
  color: #ad5e55;
}

.price-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: #a47e78;
  font-size: 8px;
}

.price-note span {
  color: var(--pink);
  font-size: 11px;
}

.product-actions {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 9px;
  margin-top: 13px;
}

.secondary-action,
.buy-action {
  min-height: 48px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
}

.secondary-action {
  border: 1.5px solid rgba(217, 79, 120, 0.24);
  color: var(--pink-deep);
  background: #fff5f7;
}

.secondary-action.is-saved {
  color: #fff;
  background: var(--pink);
}

.buy-action {
  color: #fff;
  background: linear-gradient(135deg, #f47c9b, #df4a75);
  box-shadow: 0 4px 0 #b93860;
}

.buy-action:disabled {
  color: #9a8581;
  background: #eee5e2;
  box-shadow: 0 4px 0 #d8cfcb;
}

.store-link-button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 8px;
  font-weight: 700;
}

.store-link-button span {
  color: var(--pink-deep);
  font-size: 12px;
}

.center-dialog {
  width: min(calc(100% - 30px), 380px);
  margin: auto;
  overflow: hidden;
  border-radius: 28px;
  animation: dialogPop 280ms cubic-bezier(0.17, 0.84, 0.27, 1.12) both;
}

@keyframes dialogPop {
  from {
    opacity: 0.9;
    transform: translateY(15px) scale(0.94);
  }
}

.dialog-content {
  position: relative;
  padding: 24px 20px 20px;
  text-align: center;
}

.dialog-kitty {
  position: relative;
  width: 126px;
  height: 108px;
  margin: -9px auto 4px;
}

.dialog-kitty::before {
  position: absolute;
  top: 14px;
  left: 19px;
  width: 90px;
  height: 90px;
  border: 1px dashed rgba(217, 79, 120, 0.32);
  border-radius: 50%;
  content: "";
  animation: haloSpin 12s linear infinite;
}

@keyframes haloSpin {
  to {
    transform: rotate(360deg);
  }
}

.dialog-kitty img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(88, 52, 50, 0.08));
  mix-blend-mode: multiply;
}

.dialog-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: var(--pink-pale);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dialog-content h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.dialog-content p {
  margin: 9px auto 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.dialog-points {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px auto 4px;
  color: var(--pink-deep);
  font-family: Georgia, serif;
}

.dialog-points b {
  font-size: 34px;
}

.dialog-points span {
  font-size: 10px;
  font-weight: 700;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9px;
  margin-top: 18px;
}

.dialog-actions.single {
  grid-template-columns: 1fr;
}

.dialog-btn {
  min-height: 45px;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 800;
}

.dialog-btn.ghost {
  border: 1px solid rgba(93, 56, 50, 0.14);
  background: #fff;
}

.dialog-btn.confirm {
  color: #fff;
  background: linear-gradient(135deg, #f57998, #dc4873);
  box-shadow: 0 4px 0 #b8375e;
}

.dialog-btn.soft {
  color: var(--pink-deep);
  background: #fff0f4;
}

.dialog-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.dialog-hearts span {
  position: absolute;
  color: rgba(239, 102, 141, 0.3);
  font-family: Georgia, serif;
}

.dialog-hearts span:nth-child(1) {
  top: 28px;
  left: 24px;
  font-size: 26px;
  transform: rotate(-15deg);
}

.dialog-hearts span:nth-child(2) {
  top: 82px;
  right: 21px;
  color: rgba(246, 198, 78, 0.45);
  font-size: 21px;
}

.dialog-hearts span:nth-child(3) {
  bottom: 86px;
  left: 20px;
  color: rgba(139, 198, 232, 0.45);
  font-size: 18px;
}

.toast {
  position: fixed;
  z-index: 500;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%;
  max-width: min(86vw, 390px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  background: rgba(79, 52, 49, 0.91);
  box-shadow: 0 8px 22px rgba(65, 39, 37, 0.15);
  font-size: 9px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confetti-layer {
  position: fixed;
  z-index: 450;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -30px;
  left: var(--start-x);
  width: var(--size);
  height: var(--size);
  color: var(--piece-color);
  font-family: Georgia, serif;
  font-size: var(--size);
  line-height: 1;
  opacity: 0;
  animation: confettiFall var(--duration) cubic-bezier(0.2, 0.65, 0.4, 1) var(--delay) forwards;
  will-change: transform, opacity;
}

.confetti-piece.bow::before {
  content: "🎀";
}

.confetti-piece.heart::before {
  content: "♥";
}

.confetti-piece.star::before {
  content: "★";
}

.confetti-piece.diamond::before {
  content: "◆";
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 105dvh, 0) rotate(var(--spin));
  }
}

@media (max-width: 380px) {
  :root {
    --page-x: 13px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-avatar {
    width: 39px;
    height: 39px;
  }

  .points-pill {
    padding-right: 9px;
  }

  .submit-hero {
    padding-left: 17px;
  }

  .hero-kitty {
    flex-basis: 126px;
  }

  .task-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 10px;
  }

  .task-icon {
    width: 40px;
    height: 40px;
  }

  .stepper button {
    width: 25px;
    height: 25px;
  }

  .shop-heading {
    padding-right: 125px;
  }

  .shop-heading-kitty {
    width: 140px;
  }

  .store-visual {
    height: 142px;
  }

  .warehouse-kitty-wrap {
    width: 175px;
  }

  .warehouse-copy {
    width: 60%;
  }

  .nav-item {
    min-width: 74px;
  }
}

@media (min-width: 760px) and (min-height: 680px) {
  body {
    display: grid;
    place-items: center;
    padding: 16px;
  }

  .app-shell {
    height: min(880px, calc(100dvh - 32px));
    border: 1px solid rgba(99, 59, 54, 0.17);
    border-radius: 34px;
    box-shadow:
      0 30px 80px rgba(103, 60, 62, 0.18),
      0 2px 0 rgba(255, 255, 255, 0.7) inset;
  }

  .topbar {
    border-radius: 34px 34px 0 0;
  }

  .bottom-nav {
    border-radius: 0 0 34px 34px;
  }

  .modal-backdrop {
    padding: 20px;
  }

  .bottom-sheet {
    border-radius: 30px;
  }

  .sheet-body {
    max-height: calc(93dvh - 15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .confetti-layer {
    display: none;
  }
}
