:root {
  --ground: #f6f8fb;
  --cream: #fffaf6;
  --card: #ffffff;
  --ink: #172033;
  --text: #273246;
  --muted: #6f7a8c;
  --line: #dce3ee;
  --accent: #ff6f61;
  --accent-deep: #df554b;
  --blue: #3f7fd7;
  --blue-soft: #eaf2ff;
  --green: #4c9b73;
  --green-soft: #e9f6ef;
  --yellow: #f4b740;
  --pink: #fff0f4;
  --shadow: rgba(39, 50, 70, .14);
  --r: 8px;
  --font-d: "SF Pro Rounded", ui-rounded, "Hiragino Maru Gothic ProN", "Noto Sans SC", system-ui, sans-serif;
  --font-b: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.splash-lock,
html.splash-lock body { overflow: hidden; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.55;
  background:
    linear-gradient(180deg, #fff6f1 0, #f7fbff 390px, var(--ground) 391px),
    var(--ground);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(63, 127, 215, .45); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1140px, 92vw); margin-inline: auto; }
.hidden { display: none !important; }

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #273246, #ff6f61);
  transition: opacity .35s ease, visibility .35s ease;
}
#splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-anim { font-size: clamp(4rem, 16vw, 7rem); animation: bob 1.7s ease-in-out infinite; }
.splash-brand { display: flex; align-items: center; gap: 10px; font: 850 1.45rem var(--font-d); }
.splash-brand .logo,
.brand .logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--accent);
  box-shadow: 0 5px 0 var(--accent-deep);
}
.splash-tag { opacity: .86; font-weight: 750; }
.splash-dots::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%,100% { content: "..."; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

nav {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 250, 246, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 850 1.16rem var(--font-d); }
.brand small { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 750;
  font-size: .92rem;
}
.nav-links a:hover { background: #fff; color: var(--ink); }
.nav-links a.active { background: #fff; color: var(--accent-deep); }
.leaderboard-btn,
.account-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 12px;
  font-family: var(--font-d);
  font-weight: 850;
  box-shadow: 0 3px 0 #cfd8e6;
  white-space: nowrap;
}
.leaderboard-btn { color: #8a5a00; }
.leaderboard-btn:hover,
.account-btn:hover { transform: translateY(-1px); border-color: var(--blue); }

header { padding: 34px 0 20px; }
.locbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 0 4px; }
.loc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.loc-ic { font-size: 1.45rem; }
.loc small { display: block; color: var(--accent-deep); font: 850 .68rem var(--font-d); letter-spacing: .08em; }
.loc b { color: var(--ink); font-family: var(--font-d); }
.loc-search {
  flex: 1;
  max-width: 360px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 34px; align-items: center; margin-top: 26px; }
.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1.5px dashed var(--green);
  border-radius: 999px;
  background: var(--green-soft);
  color: #276347;
  font: 850 .78rem var(--font-d);
}
.hero h1 { margin: 14px 0 8px; font-size: clamp(2.35rem, 6vw, 4.4rem); }
.hero h1 .pop { color: var(--accent-deep); }
.greet { color: var(--blue); font: 850 clamp(1.15rem, 2.8vw, 1.72rem) var(--font-d); }
.lead { max-width: 48ch; margin: 14px 0 22px; color: var(--muted); font-size: 1.06rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font: 850 .96rem var(--font-d);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 5px 0 var(--accent-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-deep); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 4px 0 #d2dbe7; }
.btn-quiet { background: var(--blue-soft); color: #2f5f9f; border: 1.5px solid #d3e2f8; }
.btn.small { padding: 9px 12px; font-size: .82rem; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.hero-stat { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hs-num {
  min-width: 112px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.hs-num b { display: block; color: var(--accent-deep); font: 900 1.32rem var(--font-d); }
.hs-num span { display: block; color: var(--muted); font-size: .76rem; font-weight: 760; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 330px; border: 0; background: transparent; cursor: pointer; }
.photo-frame {
  position: relative;
  width: min(385px, 84vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 28px 58px -24px var(--shadow);
  transform: rotate(2deg);
  animation: floatArt 5s ease-in-out infinite;
}
.photo-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 32, 51, .84);
  color: #fff;
  font: 850 .88rem var(--font-d);
}
.sticker,
.float-rider { position: absolute; z-index: 2; }
.sticker {
  top: 7%;
  left: 2%;
  padding: 8px 12px;
  border-radius: var(--r);
  background: var(--yellow);
  color: #5f4100;
  font: 850 .8rem var(--font-d);
  box-shadow: 0 5px 0 #d69a25;
  transform: rotate(-5deg);
}
.float-rider { top: -4%; right: 4%; font-size: 2.8rem; filter: drop-shadow(0 8px 8px rgba(0,0,0,.18)); }
@keyframes floatArt { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-10px) rotate(0deg); } }

.promo-wrap { margin-top: 12px; }
.promos { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo {
  flex: 1 0 232px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r);
  color: #fff;
  box-shadow: 0 14px 28px -18px var(--shadow);
}
.promo b { font: 900 1.42rem var(--font-d); }
.promo span { font-weight: 760; }
.promo small { margin-top: 6px; opacity: .9; font-weight: 720; }
.p1 { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.p2 { background: linear-gradient(135deg, var(--blue), #245fae); }
.p3 { background: linear-gradient(135deg, var(--green), #2f7655); }

section { padding: 52px 0; }
.sec-head { text-align: center; max-width: 62ch; margin: 0 auto 28px; }
.sec-tag { color: var(--accent-deep); font: 900 .72rem var(--font-d); letter-spacing: .2em; text-transform: uppercase; }
.sec-head h2 { margin: 8px 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head p { color: var(--muted); }
.app-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 610px;
  margin: 0 auto 18px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 12px 28px -24px var(--shadow);
}
.app-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.cat-circles,
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-circles { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; padding: 3px 1px 16px; scrollbar-width: none; }
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle {
  flex: 0 0 80px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font: 850 .75rem var(--font-d);
}
.cc-emoji {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.75rem;
}
.cat-circle.active .cc-emoji,
.cat-circle:hover .cc-emoji { border-color: var(--accent); background: var(--pink); transform: translateY(-2px); }
.filter {
  margin-bottom: 24px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--muted);
  font: 850 .9rem var(--font-d);
}
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-deep); }
.rail-head { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 12px; }
.rail-head h3 { font-size: 1.22rem; }
.rail-head small { color: var(--muted); font-weight: 720; }
.trend-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.trend-rail::-webkit-scrollbar { display: none; }
.trend-rail .card { flex: 0 0 220px; width: 220px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 42px -28px var(--shadow); }
.plate { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--blue-soft); }
.plate img { width: 92%; height: 92%; object-fit: contain; transition: transform .28s ease; }
.card:hover .plate img { transform: scale(1.05); }
.plate.noimg::after { content: "🎁"; font-size: 4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--yellow);
  color: #5f4100;
  font: 900 .68rem var(--font-d);
}
.plate .badge { position: absolute; top: 9px; right: 9px; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.card-body h3 { font-size: 1.03rem; line-height: 1.25; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; }
.stars { background: var(--green-soft); color: #276347; border: 1px solid #cce9da; border-radius: 5px; padding: 1px 6px; font-weight: 850; }
.rating-row small { color: var(--muted); font-weight: 720; }
.desc {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; padding-top: 6px; }
.price-block { display: grid; gap: 1px; min-width: 0; }
.amt { color: var(--ink); font: 900 1.15rem var(--font-d); }
.deliv-note { color: var(--muted); font-size: .68rem; font-weight: 760; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.add {
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border-radius: var(--r);
  padding: 8px 10px;
  font: 850 .82rem var(--font-d);
}
.ghost-add { background: #fff; color: var(--accent-deep); }
.no-results,
.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 760;
}
.empty-state span { display: block; font-size: 2.4rem; }
.empty-state b { display: block; color: var(--ink); font: 850 1.1rem var(--font-d); margin: 6px 0; }

.order-stats,
.collection-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 14px;
  text-align: center;
}
.stat-card .num { display: block; color: var(--accent-deep); font: 900 clamp(1.1rem, 3vw, 1.55rem) var(--font-d); overflow-wrap: anywhere; }
.stat-card .label { color: var(--muted); font-size: .75rem; font-weight: 760; }
.active-orders { display: grid; gap: 14px; }
.order-card,
.collection-shelf {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 28px -24px var(--shadow);
}
.order-card-head,
.shelf-title-row,
.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.order-card-head small { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; }
.status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #2f5f9f;
  font: 850 .78rem var(--font-d);
}
.status.delivered { background: #fff6df; color: #8a5a00; }
.status.signed { background: var(--green-soft); color: #276347; }
.status.opened { background: var(--pink); color: #a72d5d; }
.order-card-items,
.track-items { display: grid; gap: 8px; margin: 14px 0; }
.order-card-item,
.track-items div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fbfdff;
}
.order-card-item img,
.track-items img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 6px; }
.order-card-item small { display: block; color: var(--muted); font-size: .74rem; font-weight: 720; }
.track-strip { margin: 12px 0; }
.track-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
}
.track-bar.big { height: 12px; margin: 14px 0; }
.track-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width .3s ease;
}
.track-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 760; margin-top: 5px; }
.order-delivery-grid,
.delivery-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.order-delivery-grid div,
.delivery-live-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fbfdff;
}
.order-delivery-grid span,
.delivery-live-grid span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
}
.order-delivery-grid b,
.delivery-live-grid b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font: 850 .78rem var(--font-d);
}
.order-card-foot { align-items: center; flex-wrap: wrap; color: var(--muted); font-weight: 760; }
.order-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.progress-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #2f5f9f;
  font: 850 .75rem var(--font-d);
}
.collection-shelves { display: grid; gap: 18px; }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  border-radius: var(--r);
  background: #edf3fb;
}
.toy-slot {
  position: relative;
  min-height: 140px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.72);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  cursor: pointer;
  padding: 8px;
}
.toy-slot:hover { transform: translateY(-2px); }
.toy-slot img { width: 86%; height: 86px; object-fit: contain; filter: grayscale(1) brightness(.45); opacity: .28; }
.toy-slot.unlocked { background: #fff; border-color: #cbd8ea; }
.toy-slot.unlocked img { filter: none; opacity: 1; }
.toy-slot.hidden-slot.unlocked { background: var(--pink); border-color: #ffc7da; }
.toy-slot span { width: 100%; color: var(--muted); text-align: center; font: 800 .73rem var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toy-slot.unlocked span { color: var(--ink); }
.dup-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
}

.steps3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step3 {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 20px 16px;
  text-align: center;
}
.step3 .n { color: var(--accent-deep); font: 900 .78rem var(--font-d); letter-spacing: .12em; }
.step3 .em { margin: 8px 0; font-size: 2.3rem; }
.step3 h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step3 p { color: var(--muted); font-size: .86rem; }

footer { padding: 38px 0 98px; background: var(--ink); color: #b8c4d6; text-align: center; }
footer .brand { justify-content: center; color: #fff; margin-bottom: 8px; }
footer .fnote { margin-top: 8px; font-size: .84rem; color: #90a0b8; }
.toast {
  position: fixed;
  top: 82px;
  right: max(16px, calc((100vw - min(1140px, 92vw)) / 2));
  z-index: 130;
  max-width: min(520px, calc(100vw - 28px));
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 850 .9rem var(--font-d);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
  transition:
    opacity .22s ease,
    visibility .22s ease,
    transform .28s cubic-bezier(.2, 1.3, .4, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 80;
  width: min(560px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  box-shadow: 0 18px 40px -15px rgba(223,85,75,.72);
  font: 850 .98rem var(--font-d);
}
.cart-bar.empty { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.cart-bar.bump { animation: bump .38s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.04); } }
.cb-left { display: flex; align-items: center; min-width: 0; gap: 8px; }
.cart-bar .count { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.24); padding: 0 7px; }
.cb-total { opacity: .9; white-space: nowrap; }
.cb-cta { white-space: nowrap; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 32, 51, .52);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 96;
  width: min(430px, 94vw);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-left: 1.5px solid var(--line);
  transform: translateX(105%);
  transition: transform .26s cubic-bezier(.2, 1, .3, 1);
  box-shadow: -24px 0 58px -28px var(--shadow);
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1.5px solid var(--line);
}
.x-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.25rem;
}
.limit-banner { padding: 10px 16px; background: #fff2eb; color: var(--accent-deep); font: 850 .8rem var(--font-d); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; display: grid; align-content: start; gap: 12px; }
.drawer-foot { padding: 16px; border-top: 1.5px solid var(--line); background: #fff; }
.cart-empty { display: grid; gap: 4px; justify-items: center; margin: 24px 0; color: var(--muted); text-align: center; }
.cart-empty .em { font-size: 3rem; }
.cart-empty b { color: var(--ink); font-family: var(--font-d); }
.cart-empty small { max-width: 32ch; }
.ci {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.ci-em { width: 58px; height: 58px; object-fit: contain; background: var(--blue-soft); border-radius: 6px; }
.ci-mid { min-width: 0; }
.ci-mid b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ci-opts { color: var(--muted); font-size: .74rem; font-weight: 720; }
.ci-price { color: var(--ink); font: 900 .95rem var(--font-d); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 25px; height: 25px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 900; }
.qty span { min-width: 16px; text-align: center; font-weight: 850; }
.tot-row,
.bl,
.or { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; color: var(--muted); font-weight: 760; }
.tot-row.grand,
.bl.grand,
.or.tot { margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); color: var(--ink); font: 900 1.05rem var(--font-d); }
.limit-note { margin-bottom: 10px; padding: 9px 10px; border-radius: var(--r); background: var(--green-soft); color: #276347; font: 850 .78rem var(--font-d); text-align: center; }
.limit-note.warn,
.bl-save.warn { background: var(--pink); color: #a72d5d; }
.hist { border-top: 1.5px dashed var(--line); padding-top: 12px; }
.hist-h { margin-bottom: 8px; color: var(--ink); font: 850 .96rem var(--font-d); }
.hist-row {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 11px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.hist-row span { display: block; color: var(--ink); font-weight: 850; }
.hist-row small { display: block; color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: relative;
  width: min(520px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--cream);
  padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.55);
  transform: translateY(12px) scale(.98);
  transition: transform .24s cubic-bezier(.2, 1.2, .3, 1);
}
.modal.show .sheet { transform: none; }
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.sheet h3 { margin-right: 42px; margin-bottom: 12px; font-size: 1.45rem; }
.co-block,
.osum,
.bill,
.account-profile,
.account-note,
.eta-card {
  margin: 12px 0;
  padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.co-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.co-row + .co-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.co-ic { font-size: 1.35rem; }
.co-row small { display: block; color: var(--muted); font-size: .78rem; font-weight: 720; }
.co-h { display: block; color: var(--ink); margin-bottom: 8px; }
.bl-save { margin-top: 10px; padding: 9px; border-radius: var(--r); background: var(--green-soft); color: #276347; font-weight: 800; text-align: center; }
.co-cta { flex-direction: column; width: 100%; line-height: 1.1; }
.co-cta small { opacity: .88; font-size: .7rem; }
.detail-sheet { width: min(1080px, 96vw); max-height: 94vh; }
.detail-hero { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 26px; align-items: center; }
.detail-image-button {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: zoom-in;
}
.detail-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}
.detail-image-button:hover img,
.detail-image-button:focus-visible img { transform: scale(1.035); }
.detail-image-button:focus-visible { outline: 3px solid rgba(74, 144, 226, .35); outline-offset: 2px; }
.detail-hero-image { aspect-ratio: 1; }
.detail-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(23, 32, 51, .82);
  color: #fff;
  font: 800 .7rem var(--font-d);
  box-shadow: 0 5px 16px rgba(23, 32, 51, .18);
}
.detail-hero p { margin-top: 8px; color: var(--muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.detail-meta span { padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: #2f5f9f; font: 850 .8rem var(--font-d); }
.lineup-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lineup-heading small { color: var(--muted); font-weight: 720; }
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.lineup-tile { padding: 9px; text-align: center; }
.lineup-tile.hidden-item { background: var(--pink); }
.lineup-tile img { height: 164px; }
.lineup-tile > span:not(.detail-zoom-hint) { display: block; color: var(--ink); font: 800 .72rem var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineup-tile .detail-zoom-hint { top: 9px; bottom: auto; padding: 5px 7px; }
.sheet-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.sheet-actions .btn { flex: 1; min-width: 145px; }

.image-lightbox {
  z-index: 112;
  padding: 16px;
  background: rgba(12, 18, 31, .92);
  backdrop-filter: blur(12px);
}
.image-lightbox-sheet {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  width: min(1240px, 100%);
  height: min(92vh, 920px);
  transform: translateY(10px) scale(.985);
  transition: transform .22s ease;
}
.image-lightbox.show .image-lightbox-sheet { transform: none; }
.image-lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  height: 100%;
  margin: 0;
}
.image-lightbox-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: var(--r);
}
.image-lightbox-figure figcaption {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  min-height: 24px;
  color: #fff;
  text-align: center;
}
.image-lightbox-figure figcaption span { color: rgba(255, 255, 255, .65); font-size: .8rem; }
.image-lightbox-close,
.image-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.image-lightbox-close:hover,
.image-lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.image-lightbox-close:focus-visible,
.image-lightbox-nav:focus-visible { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 2px; }
.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.7rem;
}
.image-lightbox-nav {
  width: 46px;
  height: 72px;
  border-radius: 999px;
  font-size: 2.5rem;
  line-height: 1;
}
.image-lightbox-prev { justify-self: start; }
.image-lightbox-next { justify-self: end; }
.image-lightbox-nav:disabled { visibility: hidden; }

.track { text-align: left; }
.eta-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eta-card small { display: block; color: var(--muted); font-weight: 720; }
.eta-card span { padding: 8px 10px; border-radius: var(--r); background: var(--green-soft); color: #276347; font: 850 .8rem var(--font-d); }

.delivery-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
}
.delivery-info-grid .di-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.delivery-info-grid span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.delivery-info-grid b {
  font-size: 0.95rem;
  color: var(--ink);
}
.delivery-info-grid b.highlight {
  color: var(--accent);
}
.track-map-container {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin-top: 12px;
  border: 1.5px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  background: #1a202c;
}
.track-map-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.delivery-log {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--r) var(--r);
  background: #111827;
  color: #60a5fa;
  font-size: .85rem;
  font-weight: 780;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
  animation: pulse 1.5s infinite;
}

@media (max-width: 600px) {
  .delivery-info-grid,
  .order-delivery-grid,
  .delivery-live-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.stages { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.stages li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 760; }
.sdot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font: 850 .78rem var(--font-d); }
.stages li.done { color: var(--ink); }
.stages li.done .sdot { background: var(--accent); border-color: var(--accent); color: #fff; }

#unboxingModal { z-index: 102; }
.unboxing-stage {
  width: min(880px, 96vw);
  max-height: 94vh;
  overflow-y: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #111827;
  color: #fff;
  padding: 18px;
  box-shadow: 0 34px 90px -30px rgba(0,0,0,.7);
}
.unboxing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.unboxing-head small { color: #aebbd1; font-weight: 760; }
.unboxing-head h3 { color: #fff; font-size: clamp(1.25rem, 4vw, 1.8rem); }
.unboxing-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.rarity-pill { border-radius: 999px; padding: 7px 10px; background: #2e3a4f; color: #dbeafe; font: 850 .8rem var(--font-d); white-space: nowrap; }
.rarity-pill.hidden { display: inline-flex !important; background: #fff0f4; color: #a72d5d; }
.rarity-pill.regular { background: var(--green-soft); color: #276347; }
.unbox-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #324157;
  border-radius: 50%;
  background: #1f2937;
  color: #dbeafe;
  cursor: pointer;
  font: 900 1rem var(--font-d);
  line-height: 1;
}
.unbox-icon-btn:hover,
.unbox-icon-btn:focus-visible { background: #2e3a4f; color: #fff; outline: none; }
.unbox-icon-btn.is-muted { color: #94a3b8; background: #162033; }
.unbox-scene {
  position: relative;
  min-height: 430px;
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0f172a;
}
.particle-canvas,
.stage-art,
.unbox-glow,
.blind-box-wrapper,
.unbox-result { position: absolute; }
.particle-canvas { inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }
.stage-art {
  inset: 16px;
  z-index: 3;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  opacity: 1;
  transform: scale(.985);
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.28));
  transition: opacity .24s ease, transform .24s ease;
}
.unbox-glow { width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 209, 102, .18); filter: blur(20px); opacity: 0; z-index: 2; }
.blind-box-wrapper {
  z-index: 2;
  width: min(300px, 62vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.box-lid,
.box-body {
  position: absolute;
  width: 92%;
  height: 55%;
  background-size: cover;
  background-position: center;
  border-radius: var(--r);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.box-lid { top: 4%; transform-origin: left bottom; }
.box-body { bottom: 8%; }
.box-seal { position: absolute; z-index: 5; width: 42%; height: 16%; border-radius: var(--r); background: linear-gradient(135deg, #ffd166, #ff6f61); box-shadow: 0 8px 18px rgba(0,0,0,.26); transition: transform .35s ease, opacity .25s ease; }
.unboxing-stage[data-state="sealed"] .blind-box-wrapper:hover { animation: shake .55s ease; }
.unboxing-stage[data-state="peek"] .box-lid,
.unboxing-stage[data-state="display"] .box-lid { transform: translate(-38px, -110px) rotate(-24deg); }
.unboxing-stage[data-state="peek"] .unbox-glow,
.unboxing-stage[data-state="display"] .unbox-glow { opacity: 1; }
.unboxing-stage[data-state="peel"] .stage-art,
.unboxing-stage[data-state="peek"] .stage-art { transform: scale(1); }
.unboxing-stage[data-state="display"] .stage-art { opacity: 0; transform: scale(.96); }
.unboxing-stage[data-state="display"] .blind-box-wrapper { opacity: 0; transform: translateY(28px) scale(.9); }
.unbox-result { z-index: 5; display: grid; place-items: center; opacity: 0; transform: translateY(18px) scale(.92); transition: opacity .25s ease, transform .25s ease; }
.unboxing-stage[data-state="display"] .unbox-result { opacity: 1; transform: none; }
.unbox-result img { width: min(360px, 70vw); max-height: 360px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
@keyframes shake { 20% { transform: rotate(-2deg); } 40% { transform: rotate(2deg); } 60% { transform: rotate(-1deg); } 80% { transform: rotate(1deg); } }
.unbox-multi-view { display: none; margin-top: 12px; }
.unboxing-stage[data-state="display"] .unbox-multi-view { display: block; }
.section-title { color: #dbeafe; font: 850 .9rem var(--font-d); margin-bottom: 8px; }
.angle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.angle-card { border: 1px solid #324157; border-radius: var(--r); background: #1f2937; padding: 8px; text-align: center; }
.angle-card img { width: 100%; height: 110px; object-fit: contain; }
.angle-card span { display: block; color: #cbd5e1; font-size: .72rem; font-weight: 760; }
.unbox-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; }
.unbox-message { color: #e2e8f0; font-weight: 800; }
.unbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.unboxing-stage.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.unboxing-stage.is-immersive,
.unboxing-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 209, 102, .22), transparent 34%),
    linear-gradient(145deg, #111827 0%, #0b1020 56%, #172033 100%);
}
.unboxing-stage.is-immersive .unboxing-head,
.unboxing-stage:fullscreen .unboxing-head { margin-bottom: 0; }
.unboxing-stage.is-immersive .unbox-scene,
.unboxing-stage:fullscreen .unbox-scene {
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(219, 234, 254, .12);
}
.unboxing-stage.is-immersive .unbox-result,
.unboxing-stage:fullscreen .unbox-result {
  inset: 12px;
  overflow: hidden;
}
.unboxing-stage.is-immersive .unbox-result img,
.unboxing-stage:fullscreen .unbox-result img {
  width: auto;
  height: auto;
  max-width: min(72vw, 1000px);
  max-height: min(45vh, 560px);
  object-fit: contain;
}
.unboxing-stage.is-immersive .unbox-multi-view,
.unboxing-stage:fullscreen .unbox-multi-view { margin-top: 0; }
.unboxing-stage.is-immersive .angle-grid,
.unboxing-stage:fullscreen .angle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.unboxing-stage.is-immersive .angle-card,
.unboxing-stage:fullscreen .angle-card { background: rgba(31, 41, 55, .82); }
.unboxing-stage.is-immersive .angle-card img,
.unboxing-stage:fullscreen .angle-card img { height: clamp(90px, 12vh, 150px); }

.share-sheet { width: min(560px, 96vw); }
.share-hint,
.muted-line { color: var(--muted); font-weight: 720; margin-bottom: 12px; }
.poster-container { display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 10px; }
.share-poster-img { max-width: min(320px, 100%); width: 100%; border-radius: var(--r); background: #f1f5f9; }
.share-text-preview {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  margin: 12px 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  background: #fff;
  color: var(--text);
}
.share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.account-stats,
.leaderboard-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.account-stat { border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 12px; text-align: center; }
.account-stat b { display: block; color: var(--accent-deep); font: 900 1.24rem var(--font-d); }
.account-stat span { color: var(--muted); font: 760 .75rem var(--font-b); }
.leaderboard-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.leaderboard-tabs button { border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); padding: 9px 8px; font-weight: 900; cursor: pointer; }
.leaderboard-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.leaderboard-list { display: grid; gap: 9px; margin: 12px 0; }
.leaderboard-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 10px; }
.leaderboard-rank { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent); color: #fff; font: 900 .82rem var(--font-d); }
.leaderboard-person small,
.leaderboard-score small { display: block; color: var(--muted); font-size: .72rem; font-weight: 720; }
.leaderboard-score { color: var(--accent-deep); text-align: right; font: 900 1rem var(--font-d); }
.leaderboard-empty { border: 1.5px dashed var(--line); border-radius: var(--r); background: #fff; color: var(--muted); padding: 16px; text-align: center; font-weight: 820; }
.leaderboard-privacy { color: var(--muted); font-size: .78rem; font-weight: 720; margin: 8px 0 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .account-btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta,
  .hero-stat { justify-content: center; }
  .hero-art { min-height: 270px; }
  .steps3 { grid-template-columns: repeat(2, 1fr); }
  .order-stats,
  .collection-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .brand span:not(.logo) { display: none; }
  .leaderboard-btn span,
  .donation-btn span,
  .account-btn span { display: none; }
  header { padding-top: 22px; }
  section { padding: 40px 0; }
  .locbar { align-items: stretch; }
  .loc-search { max-width: none; }
  .menu-grid { grid-template-columns: 1fr; }
  .steps3,
  .order-stats,
  .collection-stats,
  .angle-grid,
  .share-actions { grid-template-columns: 1fr; }
  .detail-sheet { width: min(100%, 96vw); padding: 16px; }
  .detail-hero { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .detail-hero-image { width: min(100%, 420px); margin-inline: auto; }
  .lineup-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .lineup-tile img { height: clamp(130px, 38vw, 180px); }
  .image-lightbox { padding: 10px; }
  .image-lightbox-sheet {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    height: 94vh;
  }
  .image-lightbox-nav { width: 38px; height: 58px; font-size: 2rem; }
  .image-lightbox-close { width: 40px; height: 40px; }
  .image-lightbox-figure figcaption { padding-inline: 8px; flex-wrap: wrap; gap: 4px 8px; }
  .order-card-head,
  .shelf-title-row,
  .order-card-foot,
  .unbox-footer { align-items: stretch; flex-direction: column; }
  .order-actions { justify-content: flex-start; }
  .ci { grid-template-columns: 52px 1fr; }
  .ci-price { grid-column: 2; }
  .unbox-scene { min-height: 340px; }
  .angle-card img { height: 150px; }
  .unboxing-stage.is-immersive,
  .unboxing-stage:fullscreen { padding: 14px; gap: 10px; }
  .unboxing-stage.is-immersive .unboxing-head,
  .unboxing-stage:fullscreen .unboxing-head { align-items: center; }
  .unboxing-stage.is-immersive .unbox-result img,
  .unboxing-stage:fullscreen .unbox-result img {
    width: auto;
    height: auto;
    max-width: 78vw;
    max-height: 35vh;
  }
  .unboxing-stage.is-immersive .angle-grid,
  .unboxing-stage:fullscreen .angle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unboxing-stage.is-immersive .angle-card img,
  .unboxing-stage:fullscreen .angle-card img { height: 94px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* --- REQ-003 Additional Styles --- */

.donation-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 12px;
  font-family: var(--font-d);
  font-weight: 850;
  box-shadow: 0 3px 0 #cfd8e6;
  white-space: nowrap;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.donation-btn:hover {
  transform: translateY(-1px);
  border-color: #d97706;
}

/* Authentication Form */
.account-form {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  text-align: left;
}
.account-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}
.account-form input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
.demo-code-box {
  padding: 11px 12px;
  border: 1.5px dashed #9fc5f8;
  border-radius: var(--r);
  background: var(--blue-soft);
  color: #2f5f9f;
}
.demo-code-box b,
.demo-code-box small { display: block; }
.demo-code-box small { margin-top: 3px; color: #466f9f; font-weight: 720; }
.account-field { display: grid; gap: 6px; }
.account-field label { color: var(--muted); font: 850 .78rem var(--font-d); }
.account-field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: 760 .96rem var(--font-b);
}
.account-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.account-mini,
.account-captcha {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font: 850 .8rem var(--font-d);
  padding: 0 12px;
  min-width: 104px;
  cursor: pointer;
}
.account-mini:disabled { opacity: .6; cursor: wait; }
.account-captcha { width: 122px; min-width: 122px; overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.account-captcha svg { display: block; width: 120px; height: 40px; border-radius: 9px; }
.account-error { min-height: 20px; color: var(--accent-deep); font-weight: 850; font-size: .82rem; }
.account-profile.mini { margin: 12px 0 0; padding: 10px 12px; }
.co-buyer-action {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font: 850 .78rem var(--font-d);
  padding: 8px 11px;
  cursor: pointer;
}
.virtual-payment-note {
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  border: 1.5px solid #ffd6a0;
  border-radius: var(--r);
  background: #fff7e8;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
}
.virtual-payment-note b { color: #8a4b00; font: 900 .95rem var(--font-d); }
.virtual-payment-note small { color: #6c4f1d; font-weight: 800; line-height: 1.45; }
.unbox-quota {
  margin: 14px 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #fffdf8;
  padding: 13px 14px;
  text-align: left;
}
.unbox-quota.checkout { margin-top: 8px; }
.quota-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.quota-head b { display: block; font: 900 1rem var(--font-d); color: var(--ink); }
.quota-head small { display: block; color: var(--muted); font-weight: 760; margin-top: 2px; }
.quota-head button {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 850 .76rem var(--font-d);
  padding: 7px 10px;
  white-space: nowrap;
}
.quota-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 10px 0; }
.quota-grid div { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 10px; text-align: center; }
.quota-grid b { display: block; color: var(--accent-deep); font: 900 1.15rem var(--font-d); }
.quota-grid span { display: block; color: var(--muted); font-weight: 800; font-size: .72rem; margin-top: 2px; }
.quota-note,
.quota-rule,
.quota-error { margin: 7px 0 0; font-size: .78rem; font-weight: 780; line-height: 1.5; }
.quota-note { color: var(--muted); }
.quota-rule { color: #276347; }
.quota-error { color: var(--accent-deep); }
.auth-form {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  text-align: left;
}
.auth-form label {
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--ink);
}
.auth-input-group {
  display: flex;
  gap: 8px;
}
.auth-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: 0.95rem;
  font-family: inherit;
}
.auth-input:focus {
  border-color: var(--accent);
  outline: none;
}
.auth-btn-send {
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: #f8fafc;
  font-family: inherit;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.auth-btn-send:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

/* WeChat Donation Modal */
.donation-sheet {
  width: min(420px, 92vw);
  text-align: center;
}
.cup { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); margin: 0 auto 10px; font-size: 1.55rem; }
.donation-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 12px; }
.donation-amounts button {
  border: 1.5px solid var(--accent);
  background: #fff;
  color: var(--accent-deep);
  border-radius: var(--r);
  padding: 13px 8px;
  box-shadow: 0 4px 0 #ffd1c8;
  cursor: pointer;
}
.donation-amounts button b { display: block; font: 900 1.2rem var(--font-d); }
.donation-amounts button small { display: block; color: var(--muted); font-weight: 850; font-size: .7rem; margin-top: 3px; }
.donation-amounts button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 #e8edf5; border-color: var(--line); }
.donation-status { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 13px; margin: 13px 0; text-align: left; }
.donation-status b { display: block; font: 900 .95rem var(--font-d); color: var(--ink); margin-bottom: 4px; }
.donation-status small { display: block; color: var(--muted); font-weight: 760; line-height: 1.5; }
.donation-status.pending { border-color: #f3cf7b; background: #fff9e7; }
.donation-status.paid { border-color: #b8e1cb; background: var(--green-soft); color: #276347; }
.donation-status.failed,
.donation-status.expired,
.donation-status.cancelled { border-color: #ffc7da; background: var(--pink); }
.donation-rule { display: block; color: var(--muted); font-weight: 780; line-height: 1.45; margin: 4px 0 10px; }
.donation-qr { display: grid; justify-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; margin: 12px auto; max-width: 260px; }
.donation-qr img { width: 210px; height: 210px; max-width: 100%; object-fit: contain; image-rendering: pixelated; }
.donation-qr small { color: var(--muted); font-weight: 850; }
.donation-code { background: #2e3a4f; color: #fff; border-radius: var(--r); padding: 12px; margin: 12px 0; text-align: left; }
.donation-code span { display: block; color: #ffd166; font: 900 .8rem var(--font-d); margin-bottom: 7px; }
.donation-code code { display: block; word-break: break-all; white-space: normal; color: #fff; font-size: .75rem; line-height: 1.45; }
.donation-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.donor-board { margin: 16px 0 0; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; text-align: left; }
.donor-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.donor-head b { font: 900 .95rem var(--font-d); color: var(--ink); }
.donor-head small { color: var(--muted); font-weight: 820; font-size: .7rem; text-align: right; line-height: 1.35; }
.donor-list { display: grid; gap: 7px; }
.donor-row { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; border: 1px solid #f6ded5; border-radius: var(--r); background: #fff9f5; padding: 8px 9px; }
.donor-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #fff1ec; }
.donor-person { min-width: 0; }
.donor-person b,
.donor-person small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donor-person b { color: var(--ink); font-size: .84rem; }
.donor-person small { color: var(--muted); font-weight: 800; font-size: .68rem; }
.donor-amount { font: 900 .86rem var(--font-d); color: var(--accent-deep); white-space: nowrap; }
.donor-empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 11px; color: var(--muted); font-weight: 820; text-align: center; font-size: .82rem; }
.donor-empty small { display: block; font-size: .7rem; margin-top: 3px; }
.donor-privacy { margin-top: 9px; color: #276347; background: var(--green-soft); border: 1px solid #cce9da; border-radius: 10px; padding: 8px 10px; font-weight: 800; font-size: .7rem; line-height: 1.4; }
.qr-container {
  display: inline-block;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.mock-qr {
  width: 140px;
  height: 140px;
  background:
    linear-gradient(45deg, #1f2937 25%, transparent 25%, transparent 75%, #1f2937 75%, #1f2937),
    linear-gradient(45deg, #1f2937 25%, transparent 25%, transparent 75%, #1f2937 75%, #1f2937);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.85;
  border: 2px solid #fff;
  position: relative;
  margin: 0 auto;
}
.mock-qr::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px; width: 32px; height: 32px;
  border: 6px solid #1f2937;
  background: #fff;
}
.mock-qr::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px; width: 32px; height: 32px;
  border: 6px solid #1f2937;
  background: #fff;
}
.mock-qr-bot-left {
  position: absolute;
  bottom: 6px; left: 6px; width: 32px; height: 32px;
  border: 6px solid #1f2937;
  background: #fff;
}
.donation-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* Homepage Collection Preview */
.collection-preview-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  margin-top: 16px;
  text-align: left;
}
.cp-info h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.15rem;
}
.cp-info p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.cp-stats {
  font-weight: 750;
  color: var(--accent-deep);
  font-size: 0.9rem;
}

/* Independent Collection Page */
#collection.independent-page {
  padding-top: 80px;
  min-height: 80vh;
}
.collection-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.collection-header-row .back-link {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}
.collection-header-row .back-link:hover {
  color: var(--ink);
}
#collection.independent-page .sec-head {
  text-align: left;
  margin-bottom: 24px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Collection Enhancements */
.stage-container {
  margin: 0 0 24px 0;
  padding: 18px;
  background: var(--blue-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
}
.stage-container h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #1e3a8a;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stage-container h3 small {
  font-size: 0.8rem;
  color: #60a5fa;
  font-weight: 750;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stage-slot {
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.stage-slot.filled {
  border-style: solid;
  border-color: #93c5fd;
}
.stage-slot.filled:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.stage-slot.hidden-slot {
  border-color: var(--pink);
  background: #fff1f8;
}
.stage-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.stage-slot img {
  width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.stage-slot-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.stage-slot-info b { font-size: 0.8rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stage-slot-info small { font-size: 0.65rem; color: var(--muted); margin-top: 3px; font-weight: 600; }
.stage-slot .empty-icon { font-size: 1.8rem; opacity: 0.2; margin-bottom: 6px; display: block; }
.stage-slot.empty small { color: var(--muted); font-weight: 700; }
.stage-slot .dup-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
  padding: 3px 7px;
  border-radius: 999px;
  line-height: 1;
}

@media (max-width: 600px) {
  .stage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shelf-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}
.badge.full-set {
  background: #fef08a;
  color: #854d0e;
}
.badge.has-hidden {
  background: var(--pink);
  color: #a72d5d;
}

.locked-details {
  margin-top: 14px;
  border-top: 1.5px dashed var(--line);
  padding-top: 14px;
}
.locked-details summary {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
  outline: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.locked-details summary::before {
  content: "▶";
  font-size: 0.7rem;
  transition: transform .2s;
}
.locked-details[open] summary::before {
  transform: rotate(90deg);
}
.locked-details summary::-webkit-details-marker { display: none; }

.uncollected-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
}
.uncol-title {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 800;
}
.uncollected-shelf {
  opacity: 0.6;
  filter: grayscale(0.7);
  transition: opacity .3s, filter .3s;
}
.uncollected-shelf:hover, .uncollected-shelf[open] {
  opacity: 1;
  filter: grayscale(0);
}
.uncollected-shelf summary {
  cursor: pointer;
  list-style: none;
}
.uncollected-shelf summary::-webkit-details-marker { display: none; }
.uncollected-shelf summary:focus { outline: none; }

#shareModal { z-index: 110; }
