:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3f3f3;
  --paper: #fffaf3;
  --ink: #6c210d;
  --muted: #80543e;
  --item-ink: #432d1f;
  --item-detail: #75695f;
  --text-on-accent: #fff;
  --close-on-accent: #fffaf0;
  --accent-orange: #f96600;
  --orange: #df3c15;
  --price-emphasis: #bd3020;
  --price-reference: #795342;
  --shop-canvas: #e3f3ff;
  --phone-width: min(100vw, calc(100dvh * 750 / 1624), 480px);
  --phone-height: calc(var(--phone-width) * 1624 / 750);
  --phone-status-height: clamp(28px, calc(var(--phone-width) * .09), 42px);
  --phone-bottom: max(0px, calc((100dvh - var(--phone-height)) / 2));
  --shadow-rgb: 126 181 251; /* #7EB5FB */
  --surface-shadow: 0px 8px 23px 0px rgb(var(--shadow-rgb));
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-height: 100dvh; display: grid; place-items: center; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #772a17; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.counter-value { font-variant-numeric: tabular-nums; }
.counter-display { white-space: pre; }
.counter-digit { display: inline-grid; clip-path: inset(0); }
.counter-digit > span { grid-area: 1 / 1; text-align: center; }


.phone {
  position: relative;
  container-type: inline-size;
  --u: calc(100cqw / 750);
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: var(--phone-width); height: var(--phone-height); overflow: hidden;
  background: #fcddd7;
}
.phone-content {
  display: grid;
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.phone-status-bar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: var(--phone-status-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 calc(var(--phone-width) * .055);
  background: transparent;
  color: #202124;
  font-family: Arial, "Microsoft YaHei UI", sans-serif;
  font-size: clamp(12px, calc(var(--phone-width) * .036), 16px);
  font-weight: 650;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.phone:has(#shop[data-dusk]) .phone-status-bar { color: #fff; }
.phone:has(#product-detail:not([hidden]), #points-records:not([hidden])) .phone-status-bar { color: #202124; }
.phone-status-time { font-variant-numeric: tabular-nums; }
.phone-status-indicators { display: flex; align-items: center; gap: .55em; }
.phone-status-signal { display: flex; align-items: flex-end; gap: .12em; width: 1.25em; height: .85em; }
.phone-status-signal i { flex: 1; border-radius: .08em; background: currentColor; }
.phone-status-signal i:nth-child(1) { height: 30%; }
.phone-status-signal i:nth-child(2) { height: 50%; }
.phone-status-signal i:nth-child(3) { height: 75%; }
.phone-status-signal i:nth-child(4) { height: 100%; }
.phone-status-wifi {
  width: 1.2em;
  height: .9em;
  background: radial-gradient(circle at 50% 100%, currentColor 0 .1em, transparent .1em .3em,
    currentColor .3em .42em, transparent .42em .63em, currentColor .63em .76em, transparent .76em);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.phone-status-battery {
  position: relative;
  display: block;
  width: 1.85em;
  height: .85em;
  padding: .1em;
  border: 1px solid currentColor;
  border-radius: .2em;
  margin-right: .15em;
}
.phone-status-battery::after {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  top: 25%;
  width: .15em;
  height: 50%;
  border-radius: 0 .1em .1em 0;
  background: currentColor;
  opacity: .65;
}
.phone-status-battery span { display: block; width: 80%; height: 100%; border-radius: .08em; background: currentColor; }
.phone-view {
  grid-area: 1 / 1; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior-y: contain; scrollbar-width: none;
}
.phone-view::-webkit-scrollbar { display: none; }
#shop {
  isolation: isolate;
  background: var(--shop-canvas) url("assets/pasture-stall-home.webp") center top / 100% auto no-repeat local;
}
#shop[data-dusk] { background-image: url("assets/pasture-stall-dusk.png"); }
.hero {
  --hero-accent: #4f99ff;
  --counter-edge: calc(625 * var(--u));
  --ticker-bottom: calc(28 * var(--u) + 8px);
  --ticker-height: max(22px, calc(45 * var(--u)));
  position: relative; isolation: isolate; height: calc(676 * var(--u)); overflow: hidden;
}
.hero-clouds { display: none; }

@media (prefers-reduced-motion: no-preference) {
  #shop { background-image: url("assets/pasture-stall-motion.webp"); }
  #shop[data-dusk] {
    background-color: #ddeffe;
    background-image: url("assets/pasture-stall-dusk-motion.webp");
    /* Align the dusk artwork with the existing counter height. */
    background-size: 100% calc(1390 * var(--u));
  }
  .hero-clouds {
    display: block; position: absolute; z-index: 0; inset: 0;
    clip-path: inset(0 calc(14 * var(--u))); pointer-events: none;
  }
  .hero-clouds::before, .hero-clouds::after {
    content: ""; position: absolute; background: center / contain no-repeat;
    animation-name: pasture-cloud-drift;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
  }
  .hero-clouds::before {
    --cloud-start: calc(-14 * var(--u));
    --cloud-end: calc(148 * var(--u));
    left: calc(-28 * var(--u)); top: calc(132 * var(--u));
    width: calc(174 * var(--u)); aspect-ratio: 360 / 174;
    background-image: url("assets/pasture-cloud-left.webp");
    animation-duration: 14s; animation-delay: -5s;
  }
  .hero-clouds::after {
    --cloud-start: calc(-192 * var(--u));
    --cloud-end: 0px;
    left: calc(642 * var(--u)); top: calc(165 * var(--u));
    width: calc(148 * var(--u)); aspect-ratio: 320 / 174;
    background-image: url("assets/pasture-cloud-right.webp");
    animation-duration: 18s; animation-delay: -7s;
  }
  #shop[data-dusk] .hero-clouds::before {
    top: calc(192 * var(--u)); width: calc(189 * var(--u)); aspect-ratio: 480 / 229;
    background-image: url("assets/pasture-dusk-cloud-left.webp");
  }
  #shop[data-dusk] .hero-clouds::after {
    top: calc(159 * var(--u)); width: calc(183 * var(--u)); aspect-ratio: 480 / 253;
    background-image: url("assets/pasture-dusk-cloud-right.webp");
  }
  #shop[inert] .hero-clouds::before,
  #shop[inert] .hero-clouds::after { animation-play-state: paused; }
}

@keyframes pasture-cloud-drift {
  from { transform: translateX(var(--cloud-start)); }
  to { transform: translateX(var(--cloud-end)); }
}

.hero-brand {
  position: absolute; top: calc(48 * var(--u)); left: 50%; translate: -50% 0;
  z-index: 2; width: calc(536 * var(--u));
}
.hero-brand img { display: block; width: 100%; height: auto; }
.hero-links {
  position: absolute; z-index: 3; top: calc(148 * var(--u)); right: 0;
  display: grid; gap: max(4px, calc(9 * var(--u)));
}
.hero-links button {
  display: grid; place-items: center; width: max(27px, calc(38 * var(--u)));
  min-height: 34px; padding: 7px 0; border: 0; border-radius: 12px 0 0 12px;
  background: #eff7ff; color: var(--hero-accent); font-weight: 500;
  font-size: clamp(11px, calc(18.75 * var(--u)), 12px); line-height: 1; white-space: nowrap;
  writing-mode: vertical-rl; text-orientation: upright;
}
.hero-links button:focus-visible { outline-offset: -3px; }
.activity-ticker {
  position: absolute; z-index: 2; bottom: var(--ticker-bottom); left: calc(9 * var(--u));
  width: calc(336 * var(--u)); height: var(--ticker-height);
  overflow: hidden; border-radius: 100px; background: #24344ab3; color: #fff;
  font-size: max(10px, calc(21 * var(--u)));
}
.ticker-message {
  position: absolute; inset: 0; display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr);
  gap: calc(6 * var(--u)); padding: 0 calc(10 * var(--u)) 0 calc(6 * var(--u)); white-space: nowrap;
}
.ticker-avatar {
  width: calc(34 * var(--u)); aspect-ratio: 1; border-radius: 50%;
  background: center / cover no-repeat;
}
.ticker-avatar--dog { background-image: url("assets/warm-orange/avatar.png"); }
.ticker-avatar--cat, .ticker-avatar--rabbit {
  background: left center / 200% 100% no-repeat url("assets/warm-orange/ticker-avatars.webp");
}
.ticker-avatar--rabbit { background-position: right center; }
.ticker-copy { overflow: hidden; text-overflow: ellipsis; }
.ticker-message strong { color: #ffd261; font-weight: 650; }
.hero-balance {
  position: absolute; z-index: 3; bottom: calc(31 * var(--u)); right: calc(18 * var(--u));
  inline-size: calc(240 * var(--u)); block-size: calc(95 * var(--u));
  background: url("assets/pasture-points-plaque.webp") center / 100% 100% no-repeat;
  color: #884009;
  filter: drop-shadow(0 2px 2px #78421850);
}
.hero-balance-face {
  position: absolute; inset: 31% 7% 21%;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: calc(8 * var(--u));
}
.hero-balance-label {
  font-size: max(9px, calc(18.75 * var(--u))); font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.hero-balance-amount {
  --balance-coin-size: max(15px, calc(39 * var(--u)));
  --balance-font-size: clamp(14px, calc(40 * var(--u)), 26px);
  display: flex; align-items: center; justify-content: center; gap: calc(5 * var(--u)); min-inline-size: 0;
  color: var(--accent-orange); font-size: var(--balance-font-size); font-weight: 900; line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#balance, #balance .counter-display {
  /* Include thousands separators when fitting the balance and its rolling digits. */
  font-size: calc(var(--balance-font-size) * 4 / max(4, var(--counter-length, 4)));
  font-weight: inherit;
}
.hero-balance-amount .coin { flex: none; width: var(--balance-coin-size); height: var(--balance-coin-size); }
.hero-balance--long .hero-balance-face { inset-inline-end: 6%; gap: calc(2 * var(--u)); }
.hero-balance--long .hero-balance-amount {
  --balance-coin-size: max(14px, calc(34 * var(--u)));
  justify-content: flex-start;
  gap: calc(2 * var(--u));
}
.hero-balance--long #balance, .hero-balance--long #balance .counter-display {
  font-size: calc(var(--balance-font-size) * 5.5 / max(5.5, var(--counter-length, 5.5)));
}
.hero-orbs {
  --orb-shadow-rgb: 28 68 127;
  position: absolute; z-index: 2; inset: 0; pointer-events: none;
}
.hero-orb {
  position: absolute; width: calc(130 * var(--u)); translate: -50% 0; padding: 0;
  border: 0; border-radius: calc(20 * var(--u)); background: transparent; pointer-events: auto;
}
.hero-orb[data-slot="1"] { top: calc(235 * var(--u)); left: calc(127 * var(--u)); --float-duration: 3.8s; --float-delay: -.7s; }
.hero-orb[data-slot="2"] { top: calc(275 * var(--u)); left: calc(610 * var(--u)); --float-duration: 4.3s; --float-delay: -1.9s; }
.hero-orb[data-slot="3"] { top: calc(384 * var(--u)); left: calc(92 * var(--u)); --float-duration: 4.1s; --float-delay: -2.8s; }
.hero-orb[data-slot="4"] { top: calc(138 * var(--u)); left: calc(553 * var(--u)); --float-duration: 3.6s; --float-delay: -1.1s; }
.hero-orb[data-slot="5"] { top: calc(424 * var(--u)); left: calc(656 * var(--u)); --float-duration: 4.5s; --float-delay: -3.2s; }
.orb-content {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
  color: var(--text-on-accent); text-align: center; white-space: nowrap;
}
.orb-face {
  display: grid; place-content: center; justify-items: center; gap: calc(4 * var(--u));
  width: calc(99 * var(--u)); aspect-ratio: 1;
  background: url("assets/warm-orange/energy-orb.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgb(var(--orb-shadow-rgb) / 38%));
}
.orb-coin { display: block; width: calc(48 * var(--u)); height: auto; }
.orb-points {
  font-size: max(11px, calc(27 * var(--u))); line-height: 1; font-weight: 850;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgb(var(--orb-shadow-rgb) / 70%);
}
.orb-label {
  margin-top: calc(-3 * var(--u)); font-size: max(10px, calc(24 * var(--u))); line-height: 1.2;
  font-weight: 650; text-shadow: 0 1px 3px rgb(var(--orb-shadow-rgb) / 85%);
}
.hero-orb:active .orb-content { scale: .96; }
.hero-orb:focus-visible .orb-content { animation-play-state: paused; }
@media (hover: hover) {
  .hero-orb:hover .orb-content { animation-play-state: paused; }
}
.sheep {
  --sheep-top: calc(238 * var(--u));
  --waist-y: calc(var(--counter-edge) - var(--sheep-top));
  --sheep-art: url("assets/warm-orange/sheep-expressions.webp");
  position: absolute; z-index: 1; top: var(--sheep-top); left: calc(169 * var(--u)); width: calc(410 * var(--u));
  aspect-ratio: 410 / 409; pointer-events: none;
  scale: 1.065; transform-origin: 50% var(--waist-y);
}
.sheep-motion {
  position: absolute; inset: 0; isolation: isolate; transform-origin: 50% var(--waist-y);
}
.sheep-pose, .sheep-idle-body, .sheep-part { position: absolute; inset: 0; }
.sheep-pose {
  --art-waist-y: var(--waist-y);
  opacity: 0; mix-blend-mode: plus-lighter;
  translate: 0 calc(var(--waist-y) - var(--art-waist-y));
}
.sheep-idle-body, .sheep-part {
  background: var(--sheep-art) right top / 300% 100% no-repeat;
}

.sheep-eye {
  position: absolute;
  opacity: 0;
  background: radial-gradient(ellipse at 52% 60%, #fffbf7 18%, #f6eee9 60%, #e8d7cb);
}
.sheep-eye--left {
  left: calc(184 / 724 * 100%);
  top: calc(275 / 724 * 100%);
  width: calc(87 / 724 * 100%);
  height: calc(54 / 724 * 100%);
  clip-path: polygon(3% 5%, 20% 9%, 45% 18%, 72% 29%, 97% 41%, 95% 50%, 87% 68%, 76% 81%, 62% 92%, 47% 98%, 31% 95%, 19% 86%, 8% 71%, 2% 55%, 0% 32%);
  --iris-left: 18%;
  --iris-top: -36%;
  --iris-width: 71%;
  --iris-height: 123%;
}
.sheep-eye--right {
  left: calc(354 / 724 * 100%);
  top: calc(309 / 724 * 100%);
  width: calc(108 / 724 * 100%);
  height: calc(64 / 724 * 100%);
  clip-path: polygon(2% 7%, 19% 13%, 44% 25%, 68% 39%, 88% 52%, 99% 60%, 96% 71%, 87% 85%, 76% 94%, 58% 99%, 43% 97%, 25% 90%, 12% 77%, 5% 62%, 1% 39%);
  --iris-left: 12%;
  --iris-top: -28%;
  --iris-width: 65%;
  --iris-height: 113%;
}
.sheep-eye::after {
  content: "";
  position: absolute;
  left: var(--iris-left);
  top: var(--iris-top);
  width: var(--iris-width);
  height: var(--iris-height);
  border-radius: 50%;
  background: radial-gradient(ellipse at 48% 76%, #78421d, #57290f 53%, #301309 89%);
  box-shadow: inset 0 0 1px #2e160c;
}
.sheep-pose--hit {
  /* All four cut frames share the same measured apron edge. */
  --art-waist-y: calc(387.62 * var(--u));
  background: url("assets/warm-orange/sheep-combo.webp") 0 0 / 200% 200% no-repeat;
}
.sheep-pose--hit-2 { background-position: 100% 0; }
.sheep-pose--hit-3 { background-position: 0 100%; }
.sheep-pose--hit-4 { background-position: 100% 100%; }
.sheep[data-mood="idle"] .sheep-pose--idle,
.sheep[data-mood="hit-1"] .sheep-pose--hit-1,
.sheep[data-mood="hit-2"] .sheep-pose--hit-2,
.sheep[data-mood="hit-3"] .sheep-pose--hit-3,
.sheep[data-mood="hit-4"] .sheep-pose--hit-4 { opacity: 1; }

.sheep-leaf {
  position: absolute; z-index: 1; left: calc(111 * var(--u)); top: calc(211 * var(--u));
  width: calc(51 * var(--u)); height: calc(42 * var(--u)); opacity: 0;
  background: url("assets/warm-orange/sheep.webp") calc(-107 * var(--u)) calc(-207 * var(--u)) /
    calc(410 * var(--u)) calc(409 * var(--u)) no-repeat;
  clip-path: polygon(2.0% 9.5%, 5.9% 4.8%, 13.7% 2.4%, 27.5% 2.4%, 45.1% 7.1%, 60.8% 19.0%, 64.7% 26.2%, 80.4% 19.0%, 92.2% 16.7%, 96.1% 19.0%, 90.2% 26.2%, 78.4% 31.0%, 70.6% 40.5%, 70.6% 59.5%, 68.6% 73.8%, 62.7% 88.1%, 56.9% 95.2%, 51.0% 95.2%, 47.1% 88.1%, 47.1% 73.8%, 49.0% 57.1%, 41.2% 59.5%, 29.4% 71.4%, 15.7% 81.0%, 5.9% 83.3%, 2.0% 78.6%, 3.9% 66.7%, 9.8% 54.8%, 21.6% 42.9%, 33.3% 35.7%, 21.6% 33.3%, 9.8% 23.8%, 3.9% 16.7%);
  transform-origin: 93% 22%;
}
@media (prefers-reduced-motion: reduce) {
  .sheep[data-mood="hit-2"] .sheep-leaf {
    opacity: 1; transform: translate(calc(-47 * var(--u)), calc(157 * var(--u))) rotate(-168deg);
  }
}

/* Keep the hand and torso joined through the entire idle loop. */
.sheep-pose--idle {
  transform-origin: 50% var(--waist-y);
}
.sheep-idle-body {
  --hand-cut: 0.00% 54.56%, 17.13% 54.56%, 22.79% 60.08%, 26.38% 66.85%, 26.93% 69.61%, 26.38% 71.96%, 24.45% 74.17%, 21.96% 75.55%, 19.20% 75.69%, 15.75% 74.86%, 12.43% 73.76%, 9.25% 72.24%, 0.00% 72.10%, 0.00% 54.56%;
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, var(--hand-cut), 0 0);
}
.sheep-blink {
  /* Match the eye crop to its coordinates in the 724 × 724 idle sprite. */
  position: absolute;
  left: calc(158 / 724 * 100%); top: calc(242 / 724 * 100%);
  width: calc(335 / 724 * 100%); height: calc(156 / 724 * 100%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .sheep-blink { display: none; }
}
.sheep-hand {
  clip-path: polygon(0.00% 54.01%, 17.54% 54.14%, 23.76% 59.94%, 27.07% 66.71%, 27.76% 69.75%, 27.49% 72.65%, 25.55% 75.41%, 21.96% 77.49%, 18.92% 77.62%, 14.92% 76.66%, 11.74% 75.14%, 8.43% 73.07%, 0.00% 72.65%, 0.00% 54.01%);
  transform-origin: 19.89% 74.45%;
}
.speech {
  position: absolute; z-index: 2; top: calc(159 * var(--u)); left: calc(80 * var(--u));
  padding: calc(8 * var(--u)) calc(18 * var(--u)); min-width: calc(244 * var(--u)); border-radius: 99px;
  background: #e7f2ff; color: var(--hero-accent); font-size: calc(25 * var(--u)); font-weight: 800;
  line-height: calc(34 * var(--u)); text-align: center; white-space: nowrap;
}
.speech::after {
  content: ""; position: absolute; top: 94%; left: 47%; width: calc(25 * var(--u)); height: calc(16 * var(--u));
  background: inherit; clip-path: polygon(0 0, 83% 0, 100% 100%);
}

.deal { position: relative; margin: 12px calc(24 * var(--u)) 0; }
.deal-product {
  display: grid; grid-template-columns: calc(188 * var(--u)) minmax(0, 1fr); min-height: calc(201 * var(--u));
  border: calc(4 * var(--u)) solid #fffdf7; border-radius: calc(25 * var(--u));
  background: #fcf4e5; box-shadow: var(--surface-shadow);
}
.deal-thumb {
  display: grid; place-items: center;
  border-radius: calc(20 * var(--u)); background: #fbe9d2;
}
.product-art { flex: none; aspect-ratio: 1; border-radius: 13px; background: #f2e6cb url("assets/products.webp") 0 0 / 200% 200% no-repeat; }
.product-art.mug { background-position: 100% 0; }
.product-art.towel { background-position: 0 100%; }
.product-art.gift { background-position: 100% 100%; }
.progress-meta { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 5px; font-size: 11px; color: #715439; }
.progress-meta strong { color: var(--orange); }
.progress-track { overflow: hidden; border-radius: 20px; height: 11px; background: #f7e4cb; box-shadow: inset 0 1px 2px #8e542627; }
.progress-fill { width: 0; height: 100%; min-width: 4px; border-radius: inherit; background: repeating-linear-gradient(-52deg,#ffffff24 0 9px, transparent 9px 17px), linear-gradient(90deg,#f2a427,#e66c2d); }
.item-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; min-height: 61px; }
.item-row + .item-row { border-top: 1px solid #f0e5d1; }
.item-row .product-art { width: 53px; }
.item-copy { flex: 1; min-width: 0; }
.item-copy h3 { font-size: 14px; font-weight: 850; }
.item-copy p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.item-copy .item-price { color: #963b23; font-weight: 800; }
footer { text-align: center; color: #795e44; font-size: 11px; padding: 7px 0 0; }

.deal-thumb .product-art { width: calc(130 * var(--u)); border: calc(3 * var(--u)) solid #fffdf7; border-radius: calc(24 * var(--u)); }
.deal-thumb .tissue { border: 0; background: #fff6e5 url("assets/warm-orange/featured-tissue.webp") center / cover no-repeat; }
.deal-info { position: relative; min-width: 0; padding: calc(13 * var(--u)) calc(19 * var(--u)) calc(57 * var(--u)) calc(17 * var(--u)); }
.deal-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.deal-info h2 { font-size: calc(32 * var(--u)); line-height: 1.25; font-weight: 850; }
.deal-switch {
  flex: none;
  min-height: max(24px, calc(39 * var(--u)));
  padding: 0 clamp(5px, 1.5cqw, 8px);
  border: 1px solid #ffd2bd;
  border-radius: 999px;
  background: #fff8e9;
  color: var(--accent-orange);
  font-size: clamp(10px, 3cqw, 13px);
  font-weight: 500;
  white-space: nowrap;
}
.price-line {
  display: flex; align-items: baseline; gap: calc(13 * var(--u)); white-space: nowrap;
  margin-top: calc(8 * var(--u)); color: var(--price-emphasis); font-size: calc(27 * var(--u)); font-weight: 850;
}
.current-price { display: flex; align-items: baseline; gap: calc(8 * var(--u)); }
#deal-price {
  color: #ff2d2d; font-size: calc(59 * var(--u)); line-height: 1.04;
  font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.036em;
}
#deal-price small { font-size: calc(29 * var(--u)); padding-right: calc(5 * var(--u)); }
.original-price { color: var(--price-emphasis); font-size: calc(26 * var(--u)); font-weight: 650; }
#deal-origin { font-size: calc(30 * var(--u)); }
#deal-progress {
  position: absolute; left: calc(15 * var(--u)); right: calc(18 * var(--u)); bottom: calc(16 * var(--u));
  height: calc(35 * var(--u)); overflow: visible; border: calc(2 * var(--u)) solid #fffdf2; background: #ffd56a;
}
#deal-progress .progress-fill { width: var(--progress, 0%); min-width: 0; background: url("assets/warm-orange/progress-fill.png") left center / 100% 100% no-repeat; }
#deal-progress::after {
  content: ""; position: absolute; z-index: 1; top: 50%; left: clamp(calc(30 * var(--u)), var(--progress, 0%), calc(100% - 30 * var(--u))); translate: -50% -50%;
  width: calc(68 * var(--u)); aspect-ratio: 1; background: url("assets/warm-orange/progress-pointer.png") center / contain no-repeat;
}
#deal-progress.near-floor .floor-price { visibility: hidden; }
.floor-price {
  position: absolute; top: 50%; right: calc(11 * var(--u)); translate: 0 -50%;
  color: var(--accent-orange); font-weight: 850; font-size: calc(25 * var(--u)); white-space: nowrap;
}
.deal-buttons { display: grid; grid-template-columns: 275fr 409fr; gap: calc(19 * var(--u)); margin-top: calc(21 * var(--u)); }
.bargain-control { position: relative; display: grid; min-width: 0; }
.combo {
  position: absolute; z-index: 2; top: calc(-36 * var(--u)); right: calc(-16 * var(--u));
  display: flex; align-items: flex-end; pointer-events: none;
  transform-origin: 82% 65%;
}
.combo img { display: block; width: calc(114 * var(--u)); height: auto; }
#combo-count {
  position: relative; z-index: 1; margin-right: calc(-5 * var(--u)); margin-bottom: calc(6 * var(--u));
  color: #fff200; font: 950 calc(45 * var(--u))/.9 "Arial Black", Arial, sans-serif;
  -webkit-text-stroke: calc(6 * var(--u)) #ff2733; paint-order: stroke fill;
  transform: rotate(5deg) skewX(-11deg);
}
.button {
  min-height: 44px; border: 1px solid transparent; border-radius: 14px; padding: 7px 12px;
  font-weight: 850; line-height: 1.2; box-shadow: var(--surface-shadow);
}
.button:active:not(:disabled) { translate: 0 2px; }
.button-strong { color: var(--text-on-accent); background: linear-gradient(100deg,#ff9225,#ff6210); }
.button-warm { color: #6e3208; background: linear-gradient(#fff4c8,#ffcd36); }
.button-earn { color: var(--text-on-accent); background: linear-gradient(100deg,#ff9724,#ff6908); }
.button-green { color: var(--text-on-accent); background: linear-gradient(100deg,#f78328,#e65b13); }
.button-compact { min-height: 38px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.button:disabled { opacity: .64; }
.deal-buttons .button {
  box-shadow: 0 calc(8 * var(--u)) calc(13 * var(--u)) 0 rgb(var(--shadow-rgb));
  min-height: calc(130 * var(--u)); padding: 0 calc(9 * var(--u)); border: 0; border-radius: calc(37 * var(--u));
  font-size: calc(34 * var(--u)); white-space: nowrap; background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
}
#buy { background-image: url("assets/warm-orange/buy-button.webp"); background-color: transparent; }
#bargain {
  display: grid; place-content: center; justify-items: center; gap: calc(6 * var(--u));
  background-image: url("assets/warm-orange/cut-button.webp"); background-color: transparent;
}
.bargain-balance { font-size: 12px; line-height: 1.2; font-weight: 650; color: #fff4db; }
.button--lit { position: relative; isolation: isolate; overflow: hidden; }
.button--lit > * { position: relative; z-index: 1; }
.button--lit::before, .button--lit::after { content: ""; position: absolute; pointer-events: none; }
.button--lit::before {
  inset: 2px; border: 1px solid #fff5de; border-radius: inherit; opacity: .42;
  box-shadow: inset 0 0 7px #fff6cf, 0 0 4px #fff0b8;
}
.button--lit::after {
  inset: -30% auto -30% 0; width: 37%; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff2d877 35%, #fffbedbb 51%, #fff2d85e 65%, transparent);
  transform: translateX(-147%) skewX(-21deg);
}
.button--lit:disabled::before { opacity: 0; }
#bargain.combo-ready { filter: brightness(1.08); }
.activity {
  display: grid; align-content: start; gap: max(10px, calc(18 * var(--u)));
  padding: 0 calc(19 * var(--u)) max(8px, calc(16 * var(--u)));
}
.panel {
  min-width: 0; padding: max(11px, calc(22 * var(--u)));
  border-radius: max(14px, calc(25 * var(--u))); background: #fff; scroll-margin-top: 12px;
}
#tasks {
  border: 3px solid #fff;
  background: linear-gradient(180deg, #e2efff, #f8fbff 20%);
}
.checkin-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.checkin-summary { display: flex; align-items: center; gap: clamp(5px, 1.6cqw, 9px); white-space: nowrap; }
#checkin-title img, #tasks-title img { display: block; width: calc(138 * var(--u)); height: auto; }
.checkin-heading p { font-size: max(11px, calc(24 * var(--u))); font-weight: 800; line-height: 1.12; }
.checkin-heading strong { color: var(--accent-orange); font-size: calc(36 * var(--u)); }
#checkin-button {
  flex: none; min-width: max(96px, 28cqw); min-height: 36px; padding: 0 12px;
  border-radius: 100px; box-shadow: none;
  font-size: max(12px, calc(25 * var(--u))); font-weight: 750; white-space: nowrap;
}
.days {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: max(3px, calc(7 * var(--u))); margin-top: max(9px, calc(17 * var(--u)));
}
.day {
  display: grid; grid-template-rows: minmax(0, 1fr) max(15px, calc(30 * var(--u))); justify-items: center;
  min-width: 0; min-height: max(53px, calc(115 * var(--u))); overflow: hidden;
  border: 1px solid #ffda8a; border-radius: max(6px, calc(12 * var(--u)));
  background: #fff9e9; color: #7e260e; text-align: center;
  font-size: max(9px, calc(20 * var(--u))); font-weight: 800; white-space: nowrap;
}
.day b {
  display: grid; place-content: center; justify-items: center; gap: 2px;
  color: #cf4d0d; font-size: max(9px, calc(20 * var(--u))); line-height: 1.1;
}
.day b img { width: max(18px, calc(39 * var(--u))); height: auto; }
.day.today { border-color: #ff9025; background: #fff1cb; }
.day > span { display: grid; place-items: center; width: 100%; }
.day.today > span { background: #ff6c03; color: #fffaf0; }
.checkin-actions {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: max(8px, calc(17 * var(--u))); margin-top: max(9px, calc(16 * var(--u)));
}
.checkin-month {
  display: flex; align-items: center; gap: 4px; padding-inline-start: max(7px, calc(15 * var(--u)));
  border-inline-start: 1px solid #f3dec8;
  color: #b74709; font-size: max(10px, calc(20 * var(--u))); font-weight: 750;
  line-height: 1.15; white-space: nowrap;
}
.checkin-month img { width: max(20px, calc(43 * var(--u))); height: auto; }
.week-reward { display: grid; gap: 4px; min-width: 0; }
.week-reward-copy { color: var(--ink); font-size: max(10px, calc(22 * var(--u))); font-weight: 750; line-height: 1.2; }
.week-reward-copy strong { color: var(--accent-orange); font-weight: inherit; }
.week-progress {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(12 * var(--u));
  font-size: max(10px, calc(21 * var(--u))); line-height: 1.1; font-weight: 800; white-space: nowrap;
}
#week-progress-days { color: #c91e27; }
#week-progress {
  appearance: none; display: block; width: 100%; height: max(5px, calc(12 * var(--u)));
  overflow: hidden; border: 0; border-radius: 100px; background: #ffebad;
  --week-fill: linear-gradient(180deg, #ff971f, #ff6807);
}
#week-progress::-webkit-progress-bar { background: #ffebad; }
#week-progress::-webkit-progress-value { border-radius: 100px; background: var(--week-fill); }
#week-progress::-moz-progress-bar { border-radius: 100px; background: var(--week-fill); }
.tasks-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-refresh {
  display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 9px;
  border: 1px solid #B7D9FF; border-radius: 999px; background: #F5F9FF; color: #699FEB;
  font-size: clamp(11px, 3cqw, 13px); font-weight: 600; white-space: nowrap;
}
.task-refresh::before {
  content: ""; width: 1em; aspect-ratio: 1; background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.3 6a5.5 5.5 0 1 0 .1 3.7M13.5 2.6v3.7H9.8'/%3E%3C/svg%3E");
  mask-size: contain;
}
.task-refresh:active { background: #e5f1ff; }
.task-list { margin: 4px 0 0; padding: 0; list-style: none; }
.task-row {
  display: grid; align-items: center; padding-block: max(7px, calc(12 * var(--u)));
  grid-template-columns: max(33px, calc(78 * var(--u))) minmax(0, 1fr) max(52px, calc(134 * var(--u)));
  gap: max(8px, calc(19 * var(--u)));
}
.task-row + .task-row { border-top: 1px solid #f1e9e1; }
.task-icon {
  display: grid; place-items: center; aspect-ratio: 1;
  border-radius: 25%; background: #fbf1e4;
}
.task-icon::before, .task-icon::after { content: ""; grid-area: 1 / 1; aspect-ratio: 1; }
.task-icon::before {
  width: 47%; border-radius: 68% 25%; transform: scaleY(.86) rotate(45deg);
  background: linear-gradient(135deg, #ffd45e, #ff9c1d 52%, #f77900);
}
.task-icon::after {
  z-index: 1; width: 25%; border: max(1.5px, calc(4 * var(--u))) solid #fff5cd; border-radius: 50%;
  background: #ff9518;
}
.task-copy { display: grid; gap: max(3px, calc(10 * var(--u))); min-width: 0; }
.task-copy h3 { color: var(--item-ink); font-size: max(12px, calc(26 * var(--u))); line-height: 1.22; font-weight: 850; }
.task-detail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px max(4px, calc(8 * var(--u)));
  color: var(--item-detail); font-size: max(10px, calc(23 * var(--u))); line-height: 1.3;
}
.task-points { display: inline-flex; align-items: center; gap: 3px; color: rgb(249, 120, 42); font-weight: 850; white-space: nowrap; }
.task-points img { width: max(11px, calc(24 * var(--u))); height: auto; }
.task-button {
  position: relative; min-height: max(27px, calc(57 * var(--u))); padding: 0 4px; border: 0; border-radius: 100px;
  color: var(--text-on-accent); background: linear-gradient(#ffa51f, #ff5215); box-shadow: none;
  font-size: max(11px, calc(23 * var(--u))); font-weight: 400; white-space: nowrap;
}
.task-button::before { content: ""; position: absolute; inset: -9px 0; }
.task-button:disabled { color: #ff8d54; background: #ffdec5; opacity: 1; }

@container (max-width: 340px) {
  .deal-buttons { margin-top: calc(16 * var(--u)); }
  .deal-buttons .button { min-height: max(44px, calc(118 * var(--u))); }
  .combo { top: calc(-47 * var(--u)); }
}

.coin { display: grid; place-items: center; width: 23px; height: 23px; color: transparent; background: url("assets/warm-orange/coin.png") center / contain no-repeat; }
.demo-launcher {
  grid-area: 1 / 1; z-index: 1; align-self: start; justify-self: start;
  margin-top: calc(148 * var(--u));
  display: grid; place-items: center; width: clamp(24px, 7cqw, 32px); min-height: 60px;
  padding: 7px 0; border: 1px solid #fff; border-left: 0; border-radius: 0 12px 12px 0;
  background: #eff7ff; color: #375d8c; box-shadow: 1px 2px 6px #23497d38;
  font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap;
  writing-mode: vertical-rl; text-orientation: upright;
}
.demo-launcher:focus-visible { outline-offset: -3px; }
#shop:is([hidden], [inert]) + .demo-launcher { display: none; }
.shop-feed {
  display: grid; gap: max(10px, calc(22 * var(--u)));
  padding: max(16px, calc(32 * var(--u))) calc(24 * var(--u));
}
.feed-banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center; width: 100%; aspect-ratio: 700 / 326;
  padding: 8px clamp(10px, 3.5cqw, 18px); border: 1px solid #fff7e8; border-radius: 16px;
  background: #ffe6bd; color: #713116; text-align: start;
  box-shadow: 0 4px 12px rgb(var(--shadow-rgb) / 55%);
}
.feed-banner img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; object-position: 83% center;
}
.feed-banner-copy { display: grid; justify-items: start; gap: 4px; max-width: 60%; }
.feed-banner-copy strong { font-size: clamp(15px, 5.1cqw, 25px); font-weight: 900; line-height: 1.15; }
.feed-banner-copy > span { font-size: clamp(10px, 2.7cqw, 13px); line-height: 1.3; }
.feed-banner-copy .feed-banner-link {
  margin-top: 3px; padding: 3px 9px; border-radius: 999px;
  background: #fff8ec; color: #ab4217; font-weight: 850;
}
.feed-ad-label {
  position: absolute; top: 6px; right: 6px; padding: 2px 5px; border-radius: 5px;
  background: #52321bbf; color: #fff; font-size: 10px; line-height: 1.25;
}
.shop-feed h2 {
  padding-inline: 2px; color: #273956;
  font-size: clamp(16px, 4.5cqw, 22px); font-weight: 900; scroll-margin-top: 12px;
}
.feed-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(8px, calc(18 * var(--u)));
  padding: 0; margin: 0; list-style: none;
}
.feed-card {
  display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; overflow: hidden;
  padding: 0; border: 1px solid #fff; border-radius: 14px; background: #fffdf8;
  color: var(--item-ink); text-align: start; box-shadow: 0 3px 10px rgb(var(--shadow-rgb) / 42%);
}
.feed-card-image { display: block; width: 100%; border-radius: 0; }
.feed-card-copy { display: grid; align-content: start; gap: 5px; padding: 9px 10px 11px; }
.feed-card-name { font-size: clamp(12px, 3.4cqw, 16px); line-height: 1.35; }
.feed-card-spec { color: var(--item-detail); font-size: clamp(10px, 2.6cqw, 12px); line-height: 1.35; }
.feed-card-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px;
  font-size: 10px; color: #8a5136;
}
.feed-price { color: var(--price-emphasis); font-size: clamp(16px, 4.3cqw, 22px); font-weight: 850; }
.product-art:is(.feed-storage, .feed-pump, .feed-brush, .feed-slippers) {
  background-image: url("assets/shop-feed-products.webp");
}
.product-art.feed-pump { background-position: 100% 0; }
.product-art.feed-brush { background-position: 0 100%; }
.product-art.feed-slippers { background-position: 100% 100%; }
.feed-ad-preview img { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 8px; }
.nav-art {
  display: block;
  flex: none;
  width: clamp(20px, 5.6cqw, 28px);
  aspect-ratio: 1;
  background: center / contain no-repeat;
}
.nav-art--earn { background-image: url("assets/warm-orange/coin.png"); }
.nav-art--mall { background-image: url("assets/warm-orange/checkin-month-gift.webp"); }
.drawer-backdrop {
  grid-area: 1 / 1; z-index: 2; background: #182e5080; touch-action: none;
}
.points-drawer {
  position: relative; inset: auto; grid-area: 1 / 1; z-index: 3; align-self: end;
  width: 100%; height: min(100%, calc(var(--phone-height) * .74)); max-height: none; margin: 0;
  overflow: hidden; border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #cde3ff, #fff 20%);
}
.points-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.points-drawer[data-view="earn"] {
  height: auto; max-height: min(100%, calc(var(--phone-height) * .83));
  overflow: visible;
}
.points-drawer[data-view="earn"][open] { display: flex; flex-direction: column; }
.drawer-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  padding: 5px max(12px, calc(24 * var(--u)));
}
.drawer-header h2 { grid-column: 2; color: #466ea5; font-size: 18px; font-weight: 850; }
.drawer-header h2:focus { outline: none; }
.drawer-header .close-btn { justify-self: end; color: #466ea5; background: transparent; }
.earn-drawer-mascot, .earn-drawer-title { display: none; }
.points-drawer[data-view="earn"] .drawer-header {
  position: relative; flex: none; min-height: max(50px, 14cqw);
}
.points-drawer[data-view="earn"] .earn-drawer-mascot {
  position: absolute; display: block; inset-inline-start: max(5px, calc(17 * var(--u))); bottom: 0;
  width: min(22cqw, 106px); height: auto; pointer-events: none;
}
.points-drawer[data-view="earn"] .earn-drawer-title {
  display: block; width: min(calc(100cqw / 3), 160px); height: auto; aspect-ratio: 160 / 27.2;
}
.mall-drawer-title {
  /* Match the visible glyph height of the earn title. */
  display: block; width: auto; height: min(5.4375cqw, 26.1px);
  translate: 0 10px; filter: brightness(1.13);
}
.points-drawer[data-view="earn"] .mall-drawer-title { display: none; }
.drawer-panel { min-height: 0; overflow: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.drawer-panel:focus-visible { outline: 2px solid rgb(var(--shadow-rgb)); outline-offset: -2px; }
.activity:focus-visible { outline-color: #466ea550; }
.drawer-panel::-webkit-scrollbar { display: none; }
.dock {
  grid-area: 2 / 1;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: calc(-22 * var(--u));
}
.dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.8cqw, 10px);
  min-height: calc(max(48px, 15.75cqw) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom);
  border: 3px solid #f8fbff;
  border-radius: calc(28 * var(--u)) calc(28 * var(--u)) 0 0;
  background: linear-gradient(#f0f6fe, #fbfdff);
  box-shadow: inset 0 3px 7px #dbe9fa66;
  color: #6483ac;
  font-size: clamp(19px, 4.5cqw, 23px);
  font-weight: 900;
  line-height: 1.2;
  -webkit-text-stroke: .028em currentColor;
  white-space: nowrap;
}
.dock button:focus-visible {
  outline: 2px solid #315d9e;
  outline-offset: -4px;
}
.dock button[aria-expanded="true"] {
  background: #dcebff;
  box-shadow: none;
  color: #0b3782;
}
.dock-label {
  position: relative;
  isolation: isolate;
  transform: skewX(-5deg);
}
.dock button[aria-expanded="true"] .dock-label::before,
.dock button[aria-expanded="true"] .dock-label::after {
  content: "";
  position: absolute;
  z-index: -1;
  height: .27em;
  border-radius: 999px;
  pointer-events: none;
}
.dock-label::before {
  left: 6%;
  bottom: 0;
  width: 38%;
  background: #4ea3ff;
  transform: rotate(-20deg);
}
.dock-label::after {
  left: 33%;
  bottom: .01em;
  width: 57%;
  background: linear-gradient(90deg, #3b9cfd, #62dafb);
  transform: rotate(-14deg);
}

.mall-view {
  --mall-gutter: max(12px, calc(32 * var(--u)));
  padding-block-start: var(--mall-gutter);
  padding-inline: var(--mall-gutter);
  color: #542714;
}
.mall-balance-heading { display: flex; align-items: center; gap: max(5px, calc(12 * var(--u))); }
.mall-wallet {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 5px;
  border: 0; border-radius: 8px; background: transparent; color: #BF612F;
  font-size: max(12px, calc(24 * var(--u))); font-weight: 500; white-space: nowrap;
}
.mall-wallet::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; rotate: 45deg;
}
.mall-balance-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start;
  padding: max(6px, calc(16 * var(--u))) max(14px, calc(32 * var(--u))) max(14px, calc(32 * var(--u)));
  border: 1px solid #fff1c8; border-radius: max(18px, calc(44 * var(--u)));
  background: radial-gradient(ellipse at 80% 41%, #ffe5a87d, transparent 51%),
    linear-gradient(115deg, #ffe1a3, #ffc872 54%, #ffa045);
  box-shadow: 0 7px 18px #b9571822, inset 0 1px #fff7de;
}
.mall-balance-card h2 { color: #733513; font-size: max(13px, calc(30 * var(--u))); font-weight: 750; }
.mall-points {
  --mall-balance-font-size: max(33px, calc(101 * var(--u)));
  display: flex; align-items: center; inline-size: 64%; min-block-size: 1.08em; margin-top: 2px;
  color: #FF742D; font-size: var(--mall-balance-font-size); font-weight: 900;
  line-height: 1.08; white-space: nowrap;
}
#mall-balance, #mall-balance .counter-display {
  font-size: calc(var(--mall-balance-font-size) * 6.5 / max(6.5, var(--counter-length, 6.5)));
  font-weight: inherit; letter-spacing: -.045em; white-space: pre;
}
.mall-balance-art { position: absolute; inset: 0 0 0 auto; width: 43%; pointer-events: none; z-index: -1; }
.mall-balance-art::before {
  content: ""; position: absolute; width: 130%; aspect-ratio: 1; right: -14%; top: -23%; border-radius: 50%;
  border: 1px solid #fff9df77; box-shadow: 0 0 0 13px #fff5d630, inset 0 0 0 13px #fff5d629;
}
.mall-balance-art::after {
  content: ""; position: absolute; inset: 0;
  background: #fff9dc;
  clip-path: polygon(89% 18%,91% 24%,97% 26%,91% 28%,89% 34%,87% 28%,81% 26%,87% 24%,89% 18%,
    14% 32%,16% 37%,21% 39%,16% 41%,14% 46%,12% 41%,7% 39%,12% 37%,14% 32%);
}
.mall-gift-art {
  position: absolute; width: 68%; height: auto; max-height: 78%; object-fit: contain;
  right: 13%; bottom: 14%; rotate: 9deg; filter: drop-shadow(0 7px 8px #99370740);
}
.mall-coin-art {
  position: absolute; width: 33%; height: auto; left: 11%; bottom: 14%; rotate: -13deg;
  filter: drop-shadow(0 4px 3px #a6551044);
}
.mall-shortcuts { display: flex; flex-wrap: wrap; gap: max(6px, calc(13 * var(--u))); margin-top: max(9px, calc(18 * var(--u))); }
.mall-shortcut {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 max(8px, calc(21 * var(--u)));
  border: 1px solid #fff6de; border-radius: 24px; color: #F17629; background: #fff8e6;
  box-shadow: 0 2px 3px #983c171a; font-size: max(12px, calc(25 * var(--u))); font-weight: 750; white-space: nowrap;
}
.mall-shortcut::before { content: ""; flex: none; width: 14px; height: 14px; }
.mall-shortcut[data-action="orb-checkin"]::before {
  background: url("assets/warm-orange/mall-checkin-calendar.png") center / contain no-repeat;
}
.mall-shortcut[data-action="go-tasks"]::before { background: url("assets/warm-orange/coin.png") center / contain no-repeat; }
.mall-shortcut:active { background: #ffedc3; }
@container (max-width: 340px) {
  .mall-balance-art { width: 38%; }
  .mall-gift-art { width: 81%; right: 10%; bottom: 34%; }
  .mall-coin-art { left: 3%; bottom: 35%; }
}
.mall-catalog { margin-top: max(18px, calc(43 * var(--u))); }
.mall-catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: max(9px, calc(20 * var(--u))); }
#mall-catalog-title {
  color: #456EA6;
  background-color: currentColor;
  mask: url("assets/warm-orange/mall-catalog-title-matching.png") center / 100% 100% no-repeat;
}
#mall-catalog-title img {
  display: block; width: calc(142.67 * var(--u)); height: auto;
  opacity: 0;
}
.mall-catalog-header p { color: #875844; font-size: max(11px, calc(24 * var(--u))); }
.mall-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: max(8px, 2cqw);
  margin: 0; padding: 0; border-radius: clamp(10px, 2.7cqw, 18px);
  background: #f6f6f6; list-style: none;
}
.mall-product {
  display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; overflow: hidden;
  padding: 0; border: 0; border-radius: clamp(10px, 2.7cqw, 18px);
  background: #fff; text-align: start;
}
.mall-product-image {
  display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 1.04; background: #f4f4f4;
}
.mall-product-image img {
  display: block; width: 80%; height: 80%; object-fit: contain;
}
.mall-product-info {
  display: grid; align-content: start; gap: clamp(3px, 1cqw, 7px);
  padding: clamp(7px, 2.25cqw, 16px);
}
.mall-product-name {
  color: #303030; font-size: clamp(12px, 3.6cqw, 20px); font-weight: 650; line-height: 1.35;
}
.mall-price-line {
  display: grid; align-content: start; gap: clamp(3px, .9cqw, 5px);
}
.mall-price {
  display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 1px;
  color: #d44300; font-size: clamp(13px, 4.25cqw, 23px); font-weight: 650; line-height: 1.25;
}
.mall-price > span { white-space: nowrap; }
.mall-price strong { font-weight: 750; }
.mall-price small {
  font-size: max(10px, calc(21.875 * var(--u)));
  font-weight: 500;
  border-color: #303030;
}
.mall-redeemed {
  color: #737373; font-size: clamp(10px, 2.9cqw, 15px); line-height: 1.25; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mall-product:focus-visible { outline: 2px solid #315d9e; outline-offset: -2px; }
.mall-product:active .mall-product-info { background: #fff5ed; }
.mall-footer { padding: 14px 0 18px; color: #875844; font-size: 11px; line-height: 1.5; text-align: center; }

dialog {
  --surface-shadow: 0px 8px 23px 0px #FFBCA1;
  position: fixed; inset: auto 0 var(--phone-bottom); width: var(--phone-width); max-width: 100%;
  max-height: min(calc(var(--phone-height) * .88), 760px); margin: 0 auto; padding: 0;
  border: 0; border-radius: 26px 26px 0 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 -9px 36px #33281740;
}
dialog::backdrop { background: #221a10a1; }
.sheet-inner { padding: 8px 17px max(19px, calc(13px + env(safe-area-inset-bottom))); }
.handle { height: 4px; width: 35px; background: #d8c6a7; margin: 0 auto 5px; border-radius: 20px; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 9px; }
.sheet-head h2 { font-size: 22px; font-weight: 900; }
.close-btn { width: 40px; height: 40px; border: 0; background: #f5eacf; border-radius: 50%; font-size: 24px; color: #685039; flex: none; }
.sheet-note { font-size: 14px; color: #69533e; line-height: 1.65; }
.sheet-note + .sheet-note { margin-top: 8px; }
.sheet-actions { display: grid; gap: 9px; margin-top: 15px; }
.sheet-actions.two { grid-template-columns: 1fr 1.45fr; }
#sheet .sheet-actions:not(.result-actions) > :is(.button-earn, .button-strong, .button-green) {
  background: linear-gradient(100deg, #ca480c, #b93808);
  color: var(--text-on-accent);
}
#sheet .sheet-actions:not(.result-actions) > .button-warm {
  border-color: #ead0bd; background: #fff5e9; color: #78432c; box-shadow: none;
}
.pool-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pool-option {
  display: grid; grid-template-columns: clamp(46px, 16vw, 66px) minmax(0, 1fr) auto;
  align-items: center; gap: clamp(6px, 2vw, 11px); width: 100%; min-height: 74px; padding: 8px;
  border: 1px solid #efdfd2; border-radius: 14px; background: #fff; color: var(--item-ink); text-align: start;
}
.pool-option:disabled { border-color: #df985f; background: #fff3e6; }
.pool-option-art { display: block; width: 100%; border-radius: 9px; }
.pool-option-art.tissue { background: #fff6e5 url("assets/warm-orange/featured-tissue.webp") center / cover no-repeat; }
.pool-option-copy { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.pool-option-copy > strong { font-size: clamp(13px, 3.8vw, 16px); }
.pool-option-spec { color: var(--item-detail); font-size: 11px; }
.pool-option-prices { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; }
.pool-option-prices b { color: var(--price-emphasis); font-size: 16px; }
.pool-option-prices :is(s, small) { color: var(--price-reference); font-size: 11px; }
.pool-option-status {
  padding: 5px 7px; border-radius: 999px; background: #fff0df; color: #943b15;
  font-size: 11px; font-weight: 750; white-space: nowrap;
}
.pool-option:disabled .pool-option-status { background: #f9dfc8; color: #863612; }
.demo-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border-radius: 14px; background: #eaf0dc; }
.demo-summary small { display: block; color: #4e6241; margin-bottom: 4px; }
.demo-summary strong { display: block; font-size: 15px; }
.demo-summary + .sheet-note { margin: 9px 0 14px; font-size: 12px; }
.demo-scenes h3 { font-size: 14px; }
.demo-scenes .item-row { min-height: 57px; }
.reward-card { padding: 15px 9px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #fff9c9, #f8ead0); border-radius: 17px; box-shadow: var(--surface-shadow); }
.reward-card .coin { margin: auto; width: 36px; height: 36px; font-size: 24px; }
.reward-card strong { display: block; color: var(--orange); font-size: 34px; margin: 3px 0; }
.reward-card .sheet-price {
  color: var(--price-emphasis); font-size: clamp(22px, 7.5vw, 34px); font-variant-numeric: tabular-nums;
}
.reward-card .sheet-note { font-size: 13px; }
dialog[data-kind]:not([data-kind=""]) .sheet-inner { padding: 13px 15px 18px; }
dialog[data-kind]:not([data-kind=""]) .handle { display: none; }
dialog[data-kind]:not([data-kind=""]) .sheet-head { min-height: 40px; }
dialog[data-kind]:not([data-kind=""]) .sheet-head h2 { font-size: clamp(17px, 5vw, 22px); color: var(--ink); outline: none; }
#sheet[data-kind="rules"] { background: #e1f1ff; }
#sheet[data-kind="rules"] .sheet-head h2 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1;
  color: #155d9b; font-size: clamp(20px, 5.6vw, 26px);
}
#sheet[data-kind="rules"] .sheet-head h2::after {
  content: ""; flex: 0 0 44px; height: 44px;
  background: url("assets/warm-orange/coin.png") center / contain no-repeat;
}
#sheet[data-kind="rules"] .close-btn { background: #f3f9ff; color: #315d9e; }
#sheet[data-kind="rules"] .sheet-actions > .button-earn { background: #1764b0; box-shadow: none; }
.rules-content {
  display: grid; gap: 18px; padding: clamp(12px, 3.6vw, 18px); border-radius: 16px;
  background: #fff; color: #545e6e; font-size: 14px; line-height: 1.65;
}
.rules-content h3 {
  width: fit-content; margin-bottom: 8px; color: #202836; font-size: 16px; line-height: 1.4;
  background: linear-gradient(90deg, #bde4ff, transparent) left bottom / 100% .46em no-repeat;
}
.rules-content strong { color: #30343a; font-weight: 700; }
.rules-content p + p { margin-top: 8px; }
.close-btn:disabled { opacity: .45; }
.event-kicker { color: #80502b; font-size: 13px; font-weight: 850; letter-spacing: .06em; }
.ad-preview { text-align: center; padding: 12px; border-radius: 17px; background: #fcf0d7; }
.ad-preview .product-art { width: min(46%, 144px); margin: 0 auto 10px; }
.ad-preview h3 { margin: 4px 0; }
.ad-timer { font-variant-numeric: tabular-nums; }
.toast { position: relative; z-index: 7; grid-area: 1 / 1; align-self: end; justify-self: center; margin-bottom: 12px; translate: 0 10px; opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 24px); padding: 9px 14px; border-radius: 13px; background: #3f3325; color: #fff9e8; font-size: 13px; font-weight: 750; text-align: center; }
.toast.show { opacity: 1; translate: 0 0; }
@media (max-width: 350px) { .item-row { gap: 7px; } .item-copy h3 { font-size: 13px; } }
@media (prefers-reduced-motion: no-preference) {
  .phone-view, .drawer-panel { scroll-behavior: smooth; }
  .points-drawer[open] { animation: points-drawer-in .24s ease-out both; }
  .checkin-month img { transform-origin: 50% 92%; animation: checkin-gift-wiggle 5s ease-in-out .9s infinite; }
  .progress-fill { transition: width .36s cubic-bezier(.2,.75,.3,1); }
  #deal-progress::after { transition: left .36s cubic-bezier(.2,.75,.3,1); }
  .toast { transition: translate .18s, opacity .18s; }
  .orb-content { animation: orb-float var(--float-duration) ease-in-out var(--float-delay) infinite; }
  .sheep-pose { transition: opacity 115ms ease-in-out; }
  .sheep-leaf.falling { animation: sheep-leaf-drop .69s ease-in both; }
  .sheep-pose--idle { animation: breathe 4s ease-in-out infinite; }
  .sheep[data-mood="idle"].idle-gesture .sheep-motion { animation: sheep-greet 1.8s ease-in-out both; }
  .sheep.idle-gesture .sheep-hand { animation: sheep-greet-hand 1.8s ease-in-out both; }
  .sheep[data-looking] .sheep-eye { animation: sheep-gaze-show 1.95s linear both; }
  .sheep[data-looking] .sheep-eye::after { animation: sheep-gaze-shift 1.95s ease-in-out both; }
  .combo.reaction { animation: combo-pop .32s ease-out both; }
  dialog[open] .sheet-inner { animation: sheet-in .2s ease-out both; }
  .reward-card { animation: reward-pop .38s cubic-bezier(.23,.76,.27,1) both; }
  .button--lit:not(:disabled)::before { animation: primary-button-rim 3.8s ease-in-out .6s infinite; }
  .button--lit:not(:disabled)::after { animation: primary-button-sweep 3.8s ease-in-out .6s infinite; }
  #bargain.combo-ready:not(:disabled) { animation: combo-pop .32s ease-out both; }
}
@keyframes points-drawer-in { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes checkin-gift-wiggle {
  0%, 15%, 100% { rotate: 0deg; }
  4% { rotate: -4deg; }
  8% { rotate: 3deg; }
  12% { rotate: -1.5deg; }
}
@keyframes primary-button-sweep {
  0% { opacity: 0; transform: translateX(-147%) skewX(-21deg); }
  8% { opacity: .76; }
  33%, 100% { opacity: 0; transform: translateX(385%) skewX(-21deg); }
}
@keyframes primary-button-rim {
  0%, 100% { opacity: .42; }
  20% { opacity: .82; }
  42% { opacity: .50; }
}
@keyframes orb-float {
  0%, 100% { translate: 0 0; }
  50% { translate: calc(2 * var(--u)) calc(-8 * var(--u)); }
}
@keyframes breathe { 0%, 67%, 100% { scale: 1; } 85% { scale: 1.006 1.014; } }
@keyframes sheep-greet {
  0%, 100% { transform: none; }
  16% { transform: skewX(.36deg) scaleY(1.007); }
  43% { transform: skewX(-1.35deg) scaleY(.974); }
  65% { transform: skewX(-.7deg) scaleY(.989); }
  86% { transform: skewX(.12deg) scaleY(1.002); }
}
@keyframes sheep-greet-hand {
  0%, 19%, 100% { transform: none; }
  47% { transform: rotate(4.8deg); }
  67% { transform: rotate(2.3deg); }
  86% { transform: rotate(.4deg); }
}
@keyframes sheep-gaze-show {
  0%, 100% { opacity: 0; }
  12%, 89% { opacity: 1; }
}
@keyframes sheep-gaze-shift {
  0%, 12%, 90%, 100% { transform: none; }
  36%, 69% { transform: translate(17%, 5%); }
}
@keyframes sheep-leaf-drop {
  0% { opacity: 1; transform: rotate(0); }
  19% { transform: translate(calc(-15 * var(--u)), calc(-9 * var(--u))) rotate(-37deg); }
  58% { transform: translate(calc(-39 * var(--u)), calc(89 * var(--u))) rotate(-118deg); }
  84% { opacity: 1; transform: translate(calc(-47 * var(--u)), calc(157 * var(--u))) rotate(-168deg); }
  100% { opacity: 0; transform: translate(calc(-50 * var(--u)), calc(157 * var(--u))) rotate(-177deg); }
}
@keyframes combo-pop { from { scale: .75; } 54% { scale: 1.13; } to { scale: 1; } }
@keyframes sheet-in { from { translate: 0 15px; opacity: .65; } to { translate: 0 0; opacity: 1; } }
@keyframes reward-pop { from { scale: .95; opacity: .55; } 65% { scale: 1.025; } to { scale: 1; opacity: 1; } }
