:root {
  color-scheme: dark;
  --bg: #100d19;
  --surface: #191425;
  --surface-raised: #211a31;
  --surface-soft: #281f3a;
  --line: #362b49;
  --text: #f7f2ff;
  --muted: #b5a8c9;
  --accent: #c7aaff;
  --primary: #8252de;
  --primary-end: #6840c4;
  --success: #8de8bd;
  --warning: #f5cd83;
  --danger: #ffacba;
  --radius: 22px;
  --radius-small: 14px;
  --ease: cubic-bezier(.22, .68, .24, 1);
  --content: 1160px;
}
* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html { min-width: 280px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 720px 420px at 86% 0%, #201630 0%, transparent 84%), var(--bg);
  font: 400 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, strong, b { font-weight: 700; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .53; }
a { color: var(--accent); }
svg { display: block; width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid #d5b7ff; outline-offset: 3px; }
input, select {
  color: var(--text);
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  min-height: 44px;
  background: #130f1f;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, background-color .2s;
}
input::placeholder { color: #a599ba; opacity: 1; }
input[type="range"], input[type="checkbox"] { padding: 0; accent-color: #ad84f7; }
input[type="checkbox"] { width: 17px; min-height: 0; height: 17px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d2b8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.eyebrow svg { width: 13px; height: 13px; }
.site-header {
  border-bottom: 1px solid #b799f41b;
  background: #120e1acc;
}
.header-inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  border: 1px solid #c6a2ff6e;
  border-radius: 13px;
  background: linear-gradient(135deg, #b483f5, #6a41cb 68%, #502b9f);
  box-shadow: 0 5px 17px #6e41d063, inset 0 1px #f2deff66;
  color: #fff;
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-type { display: grid; gap: 1px; }
.brand-type strong { font-size: 17px; letter-spacing: .08em; line-height: 1.2; }
.brand-type small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px;
  padding: 6px 12px;
  white-space: nowrap;
  color: #eddefd;
  background: #241a35;
  border: 1px solid #412f58;
  border-radius: 14px;
  font-size: 13px;
}
.account-button svg { width: 17px; height: 17px; color: var(--accent); }
.demo-badge {
  border: 1px solid #805a38;
  border-radius: 999px;
  background: #3c2d2b;
  padding: 4px 8px;
  color: var(--warning);
  font-size: 11px;
  white-space: nowrap;
}
.main-shell {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: 26px 0 calc(112px + env(safe-area-inset-bottom, 0px));
}
.narrow-view { max-width: 840px; margin-inline: auto; }
.view.page-in { animation: page-in .28s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 236px;
  display: flex;
  align-items: center;
  border: 1px solid #543971;
  border-radius: 28px;
  background: radial-gradient(ellipse at 78% 45%, #624090 0, transparent 48%),
    linear-gradient(111deg, #2e1b45 0%, #3c265a 53%, #2a1b45 100%);
  box-shadow: 0 16px 42px #0b07194d;
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, #ecd6ff49 1px, transparent 1.6px) 0 0 / 24px 24px;
  mask-image: linear-gradient(90deg, transparent 36%, #0006 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 28px 40px; max-width: 66%; }
.hero h1 { margin-block: 5px 7px; font-size: clamp(29px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.18; }
.hero-copy p { color: #e1cfef; font-size: 15px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: #eedbff12; border: 1px solid #ead5ff35; color: #f0e5fc; font-size: 12px;
}
.hero-tags svg { width: 14px; height: 14px; color: #d8baff; }
.hero-art { position: absolute; width: 41%; inset: 0 5% 0 auto; display: grid; place-items: center; pointer-events: none; }
.orbit { position: absolute; width: 77%; aspect-ratio: 2.3; border-radius: 50%; border: 1px solid #d9b3ff55; transform: rotate(-20deg); }
.orbit-two { width: 89%; border-color: #d9b3ff30; transform: rotate(17deg); }
.hero-gift {
  width: clamp(120px, 67%, 245px); height: auto;
  position: relative; z-index: 2;
  filter: drop-shadow(0 16px 17px #251348b5);
  animation: float-in 1s var(--ease) both;
}
.gift-stage {
  position: absolute; bottom: 8%; left: 27%; right: 27%; height: 18%;
  border-radius: 50%; background: #311a5f9c; border: 1px solid #c5a2fa53;
  box-shadow: 0 6px 25px #1a0b3b73, inset 0 0 20px #c299fc45;
}
.hero-star { position: absolute; color: #e5cdff; font-size: clamp(14px, 2.6vw, 30px); text-shadow: 0 0 17px #d4a4ff; }
.star-one { left: 13%; top: 29%; }
.star-two { right: 10%; top: 20%; }
.star-three { right: 12%; bottom: 19%; font-size: clamp(10px, 1.5vw, 18px); }
.star-four { left: 25%; bottom: 16%; }
@keyframes float-in { from { opacity: .4; transform: translateY(13px) rotate(-4deg); } to { opacity: 1; transform: translateY(-3px); } }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 26px 0 13px; }
.section-title h2 { font-size: 24px; line-height: 1.2; }
.section-title p { margin-top: 5px; font-size: 13px; }
.sort-control { position: relative; display: flex; width: max-content; }
.sort-control select { appearance: none; background: var(--surface); padding-right: 32px; font-size: 13px; }
.sort-control svg { position: absolute; inset: 13px 8px auto auto; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.catalog-tools { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.search-field {
  display: flex; align-items: center; gap: 9px;
  min-width: 0; padding-inline: 13px;
  background: #171121; border: 1px solid var(--line); border-radius: var(--radius-small);
  color: var(--accent);
}
.search-field:focus-within { border-color: #ac87ee; }
.search-field svg { width: 17px; height: 17px; }
.search-field input { border: 0; background: none; outline: none; padding-inline: 0; font-size: 14px; }
.search-field input:focus-visible { outline: none; }
.catalog-tools .search-field { flex: 1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 12px;
  border-radius: var(--radius-small); border: 1px solid var(--line);
  background: var(--surface); color: #e3d7f2; font-size: 13px;
}
.filter-chip svg { color: var(--accent); width: 16px; height: 16px; }
.filter-chip.selected { border-color: #9b73dc; background: #3a2655; color: #f2e5ff; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.gift-card {
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid #372a4c;
  background: linear-gradient(175deg, #211930, #181323 74%);
  transition: border-color .2s, transform .22s var(--ease), box-shadow .22s var(--ease);
}
.gift-open {
  display: block; width: 100%; min-width: 0; padding: 0; text-align: left;
  border: 0; border-radius: var(--radius-small); background: none; color: inherit;
}
.art {
  --art-spot: #8569d0;
  --art-base: #382752;
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; aspect-ratio: 1.11; border-radius: var(--radius-small);
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 44%, var(--art-spot), var(--art-base) 76%);
}
.art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, #fff4 1px, transparent 1.7px) center / 17px 17px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, #0009 88%);
}
.art-tone-1 { --art-spot: #a15f9b; --art-base: #472b50; }
.art-tone-2 { --art-spot: #577dca; --art-base: #29385e; }
.art-tone-3 { --art-spot: #568e88; --art-base: #293f48; }
.art-tone-4 { --art-spot: #a57678; --art-base: #513348; }
.art-tone-5 { --art-spot: #807b5d; --art-base: #43384f; }
.art-fallback {
  display: grid; place-items: center;
  width: 39%; max-width: 108px; aspect-ratio: 1;
  border-radius: 29%; background: linear-gradient(145deg, #ffedff35, #1d0b3538);
  border: 1px solid #ffffff39; box-shadow: 0 9px 24px #150c3850;
  color: #f3e4ff;
  transform: rotate(-9deg);
}
.art-fallback svg { width: 55%; height: 55%; filter: drop-shadow(0 2px 6px #27144d60); }
.art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .24s var(--ease);
}
.art img.loaded { opacity: 1; }
.art-number {
  position: absolute; right: 7px; top: 7px;
  padding: 3px 7px; border-radius: 999px;
  color: #f4eaff; background: #160d29cc; border: 1px solid #fff3;
  font-size: 10px; font-variant-numeric: tabular-nums;
}
.gift-info { padding: 10px 4px 7px; min-width: 0; }
.gift-name, .gift-model { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-name { font-size: 15px; }
.gift-model { color: var(--muted); font-size: 12px; margin-top: 2px; }
.gift-bottom { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; gap: 4px; }
.price-block { display: grid; min-width: 0; }
.price-block strong { font-size: 16px; color: #f6eaff; font-variant-numeric: tabular-nums; }
.price-block small { font-size: 11px; color: var(--muted); font-weight: 400; }
.price-block .card-duration { font-size: 11px; }
.gift-add { color: #ebd8ff; background: #35234f; }
.gift-add[data-added] { color: var(--success); }
.skeleton { border-radius: var(--radius); min-height: 245px; padding: 8px; background: #1b1528; border: 1px solid #322744; }
.skeleton::before, .skeleton::after {
  content: ""; display: block; border-radius: var(--radius-small);
  background: linear-gradient(105deg, #271e36 27%, #372848 45%, #271e36 63%) 100% / 230% 100%;
  animation: shimmer 1.35s linear 3;
}
.skeleton::before { aspect-ratio: 1.11; }
.skeleton::after { height: 19px; width: 68%; margin: 13px 5px; }
@keyframes shimmer { to { background-position: -35% 0; } }
.more-button { margin: 20px auto 0; min-width: 146px; }
button.more-button { display: flex; }

.btn-primary, .btn-ghost, .icon-button, .back-button, .btn.sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 43px; padding: 8px 15px;
  border-radius: var(--radius-small); border: 1px solid transparent;
  font-size: 14px; font-weight: 650; text-align: center; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn-primary { background: linear-gradient(130deg, var(--primary), var(--primary-end)); color: white; border-color: #b288ff73; box-shadow: 0 4px 12px #693ab732; }
.btn-ghost, .btn.sm { background: var(--surface-soft); color: #edddff; border-color: #493361; }
.icon-button { min-height: 38px; width: 38px; height: 38px; padding: 0; flex: none; color: var(--accent); background: #2a1f3d; border-color: #4d3765; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button.danger { color: var(--danger); }
.wide { width: 100%; margin-top: 12px; }
button:not(:disabled):active, a.btn-ghost:active { transform: scale(.975); }
@media (hover: hover) {
  .gift-card:hover { transform: translateY(-3px); border-color: #815dad; box-shadow: 0 10px 25px #0b061e60; }
  .btn-ghost:hover, .icon-button:hover, .filter-chip:hover:not(:disabled), .account-button:hover, .btn.sm:hover { border-color: #a980db; background-color: #3c2858; }
  .btn-primary:hover:not(:disabled) { box-shadow: 0 6px 17px #8954da65; }
}
.tabbar {
  position: fixed; left: 50%; bottom: calc(13px + env(safe-area-inset-bottom, 0px));
  z-index: 10; transform: translateX(-50%);
  width: min(490px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px;
  padding: 5px;
  background: #1b1429f2; border: 1px solid #5d427e; border-radius: 21px;
  box-shadow: 0 8px 32px #0a0515b5;
  backdrop-filter: blur(14px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  position: relative; min-height: 51px; padding: 3px 1px; border-radius: 15px;
  border: 1px solid transparent; background: transparent; color: #beb0d2; font-size: 11px; white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s;
}
.tab svg { width: 19px; height: 19px; }
.tab.active { color: #f3e4ff; background: #3a2657; border-color: #5a3b7b; }
.tab.active svg { color: #d3aaff; }
.cart-badge {
  position: absolute; left: calc(50% + 6px); top: 1px;
  min-width: 16px; padding: 0 3px; border-radius: 999px; background: #d4aaff; color: #291646;
  font-size: 10px; line-height: 16px;
}

.page-title { margin: 6px 0 17px; }
.page-title h1 { font-size: clamp(28px, 5.2vw, 40px); line-height: 1.2; margin: 2px 0 6px; }
.page-title p { color: var(--muted); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; }
.card-list { display: grid; gap: 10px; }
.empty {
  min-height: 174px; display: grid; justify-items: center; align-content: center; gap: 6px;
  border: 1px dashed #4c3963; border-radius: var(--radius); color: var(--muted); padding: 22px; text-align: center;
}
.empty strong { color: var(--text); font-size: 16px; }
.empty .btn-ghost { margin-top: 7px; }
.empty-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 3px;
  border-radius: 16px; background: #312147; color: #d6b3ff;
}
.notice {
  margin: 12px 0 0; border-radius: var(--radius-small); border: 1px solid #594378;
  color: #e9dbfb; background: #2a1e3d; padding: 10px 13px; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere;
}
.notice.error { border-color: #784455; background: #361f2e; color: var(--danger); }
.notice.success { border-color: #396352; background: #1c312d; color: var(--success); }
.notice + .card-list { margin-top: 11px; }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.total-row strong { color: #f1ddff; font-size: 24px; font-variant-numeric: tabular-nums; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.back-button { padding-inline: 5px 12px; color: var(--accent); background: none; margin-bottom: 7px; }
.back-button svg { transform: rotate(180deg); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.detail-art .art { aspect-ratio: 1; border-radius: 25px; border: 1px solid #705398; }
.detail-art .art-number { top: 12px; right: 12px; font-size: 12px; }
.detail-head, .order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-panel h1 { font-size: clamp(21px, 4.3vw, 30px); margin: 7px 0; overflow-wrap: anywhere; }
.status-pill { font-size: 11px; border: 1px solid #60467d; color: #e6d1ff; border-radius: 999px; padding: 3px 8px; background: #332348; white-space: nowrap; }
.status-pill.good { color: var(--success); background: #203930; border-color: #3f6858; }
.status-pill.warn { color: var(--warning); background: #392c35; border-color: #6b5054; }
.status-pill.bad { color: var(--danger); background: #392332; border-color: #75445d; }
.trait-list { display: grid; gap: 5px; margin: 10px 0 12px; }
.trait-list div {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px;
  border-radius: 10px; background: #231a33; font-size: 12px;
}
.trait-list dt, .data-list dt { color: var(--muted); }
.trait-list dd { color: #f2e5fe; text-align: right; overflow-wrap: anywhere; }
.trait-list em { color: var(--accent); font-style: normal; margin-left: 4px; }
.data-list { padding: 4px 0; }
.data-list div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #372b48; padding: 7px 0; font-size: 13px; }
.data-list dd { font-weight: 650; }
.duration-control { margin: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 13px; color: var(--muted); }
.duration-control output { color: var(--text); font-weight: 700; }
.stepper { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; }
.stepper input { border: 0; background: transparent; }
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.cart-thumb { background: none; border: 0; border-radius: var(--radius-small); padding: 0; }
.cart-thumb .art { aspect-ratio: 1; }
.cart-main h2, .order-head h2 { font-size: 16px; overflow-wrap: anywhere; }
.cart-main p { font-size: 13px; margin-top: 3px; }
.cart-days { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; font-size: 13px; }
.cart-days .icon-button { width: 33px; height: 33px; min-height: 33px; }
.cart-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 12px; }
.cart-footer .total-row { padding-right: 12px; }
.order-meta { display: flex; gap: 5px 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.order-id { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; margin-top: 4px; }
.binding-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 12px; }
.binding-form label { grid-column: 1 / -1; font-size: 13px; }
.binding-help { margin-top: 7px; font-size: 12px; color: #c8b6da; }
.retry-order { margin-top: 10px; }
.form-panel, .form-grid { display: grid; gap: 12px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-panel label, .rental-fields label { display: grid; gap: 5px; color: #e4d5f4; font-size: 13px; }
.form-panel .check-row { display: flex; align-items: center; gap: 8px; }
.profile-card { display: flex; align-items: center; gap: 12px; }
.profile-card strong { font-size: 17px; overflow-wrap: anywhere; }
.avatar {
  position: relative; overflow: hidden; display: grid; place-items: center;
  width: 52px; height: 52px; flex: none; border-radius: 17px;
  color: #dfc0ff; background: #382451;
}
.avatar svg { width: 26px; height: 26px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.balance-card {
  margin-top: 11px; background: radial-gradient(ellipse at 90% -15%, #503377, transparent 73%), #231933;
  border-color: #543c71;
}
.balance-value { display: block; margin: 2px 0 9px; font-size: 38px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.topup-form { display: flex; flex-wrap: wrap; gap: 8px; }
.topup-form label { flex: 1; min-width: 115px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.stat { display: grid; gap: 3px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 23px; overflow-wrap: anywhere; }

.filter-sheet {
  width: min(510px, calc(100% - 28px)); max-height: min(650px, calc(100dvh - 38px));
  margin: auto; padding: 0;
  border: 1px solid #634887; border-radius: 25px;
  color: var(--text); background: #1b1429; box-shadow: 0 18px 75px #0a061ad9;
}
.filter-sheet[open] { animation: sheet-in .27s var(--ease) both; }
.filter-sheet[open].closing { animation: sheet-out .16s ease-in both; }
.filter-sheet[open].closing::backdrop { animation: shade-out .16s ease-in both; }
.filter-sheet::backdrop { background: #0a0714a6; backdrop-filter: blur(5px); }
.filter-sheet[open]::backdrop { animation: shade-in .24s var(--ease) both; }
body:has(.filter-sheet[open]) { overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes shade-out { to { opacity: 0; } }
@keyframes shade-in { from { opacity: 0; } to { opacity: 1; } }
.filter-sheet form { display: flex; flex-direction: column; max-height: inherit; padding: 17px; gap: 10px; }
.sheet-handle { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 23px; }
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-tabs button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #211931; color: var(--muted); font-size: 13px; }
.sheet-tabs button[aria-pressed="true"] { background: #3d2859; color: #f4e4ff; border-color: #9069c4; }
.filter-options { overflow: auto; min-height: 110px; max-height: 320px; overscroll-behavior: contain; scrollbar-color: #5a4179 transparent; }
.filter-options > p { padding: 15px 4px; color: var(--muted); }
.filter-choice {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 9px; min-height: 45px;
  background: transparent; border: 1px solid transparent; border-radius: 12px; color: var(--text); text-align: left;
  transition: background-color .2s, border-color .2s;
}
.filter-choice:hover, .filter-choice[aria-pressed="true"] { background: #2d2041; border-color: #563c76; }
.filter-choice .art { width: 33px; flex: none; aspect-ratio: 1; border-radius: 9px; }
.filter-choice .art-fallback { width: 62%; }
.filter-choice small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.filter-choice span { min-width: 0; overflow-wrap: anywhere; }
.choice-check { margin-left: auto; display: grid; place-items: center; flex: none; width: 19px; height: 19px; border: 1px solid #7858a0; border-radius: 6px; color: transparent; }
.filter-choice small + .choice-check { margin-left: 0; }
.choice-check svg { width: 13px; height: 13px; }
.filter-choice[aria-pressed="true"] .choice-check { color: #fff; border-color: #b388f2; background: #7b4bc5; }
.rental-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-block: 5px; }
.rental-fields p { grid-column: 1 / -1; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 2px; }
.toast {
  position: fixed; z-index: 15; bottom: calc(83px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  max-width: min(440px, calc(100% - 25px)); width: max-content; padding: 9px 15px;
  background: #312348; border: 1px solid #7754a1; border-radius: 14px;
  color: #f9efff; box-shadow: 0 7px 22px #0c061c9c; font-size: 13px;
  animation: shade-in .22s var(--ease) both;
}
.toast.error { border-color: #a6627b; background: #422638; color: #ffe0e8; }

@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 206px; }
}
@media (max-width: 660px) {
  .header-inner, .main-shell { width: calc(100% - 24px); }
  .header-inner { min-height: 58px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-type strong { font-size: 15px; }
  .account-button { min-height: 36px; padding-inline: 9px; }
  .main-shell { padding-top: 13px; }
  .hero { min-height: 164px; border-radius: 23px; }
  .hero-copy { padding: 19px 15px; max-width: 72%; }
  .hero h1 { font-size: clamp(24px, 6vw, 34px); white-space: nowrap; }
  .hero-copy p { font-size: 12px; }
  .hero-tags { margin-top: 10px; gap: 5px; }
  .hero-tags span { font-size: 10px; padding: 3px 7px; }
  .hero-tags svg { width: 12px; height: 12px; }
  .hero-art { width: 42%; right: 0; opacity: .9; }
  .section-title { margin-top: 19px; }
  .section-title h2 { font-size: 21px; }
  .catalog-tools { align-items: stretch; flex-direction: column; gap: 7px; margin-bottom: 10px; }
  .filter-chip { min-height: 40px; flex: 1; padding: 5px 7px; white-space: nowrap; }
  .filter-chip svg { width: 13px; height: 13px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gift-card { padding: 6px; border-radius: 18px; }
  .gift-info { padding: 6px 3px 4px; }
  .gift-name { font-size: 14px; }
  .gift-model { font-size: 11px; }
  .gift-bottom { padding: 2px 3px; }
  .gift-bottom .icon-button { height: 35px; min-height: 35px; width: 35px; }
  .detail-layout { grid-template-columns: 1fr; gap: 10px; }
  .detail-art .art { aspect-ratio: 1.2; max-height: 330px; }
  .detail-art .art img { object-fit: contain; }
  .panel { padding: 13px; }
  .tabbar { bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  .filter-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .filter-sheet form { padding: 10px 13px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .sheet-handle { display: block; flex: none; align-self: center; width: 33px; height: 4px; border-radius: 4px; background: #775a96; }
}
@media (max-width: 360px) {
  .brand-type small { display: none; }
  .hero-art { right: -7%; }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 7px; }
  .cart-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  button:active, .gift-card:hover { transform: none !important; }
}
