:root {
  --bg: #f8f5ff;
  --bg-2: #f0e9fd;
  --card: #ffffff;
  --ink: #261b3a;
  --ink-2: #4a3d63;
  --soft: #857a9c;
  --line: #e6dcf5;
  --line-2: #f2ecfb;
  --brand: #8b3fe0;
  --brand-dark: #6d28c9;
  --brand-bg: #f1e8ff;
  --accent: #c43d9b;
  --accent-dark: #a52a80;
  --accent-bg: #fce8f5;
  --ok: #1f9d6b;
  --ok-dark: #17734f;
  --ok-bg: #e2f5ec;
  --danger: #d93b4a;
  --danger-dark: #a3243a;
  --danger-bg: #fdecee;
  --gold: #f2b544;
  --gold-bg: #fff4dc;
  --night: #1c1033;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(70, 40, 120, .05), 0 6px 18px rgba(70, 40, 120, .08);
  --shadow-lift: 0 2px 6px rgba(70, 40, 120, .08), 0 16px 32px rgba(70, 40, 120, .16);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.08rem; font-weight: 700; }
small { color: var(--soft); }
svg { flex-shrink: 0; }
.mono, pre, .code { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.masthead { background: rgba(253, 251, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(139, 63, 224, .45); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.12rem; letter-spacing: .04em; }
.brand-text small { color: var(--accent); font-size: .62rem; font-weight: 700; letter-spacing: .18em; margin-top: 3px; }
.mainnav { display: flex; gap: 6px; margin: 0 auto; }
.mainnav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.mainnav a:hover { background: var(--brand-bg); color: var(--brand-dark); }
.actions { display: flex; align-items: center; gap: 8px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.statusbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .8rem; }
.statusbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.open { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; color: var(--ok-dark); font-weight: 700; white-space: nowrap; }
.open i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.open.closed { color: var(--soft); }
.open.closed i { background: #c4b8d6; box-shadow: none; }
.open small { font-weight: 500; margin-left: 2px; }
.notice-text { color: var(--ink-2); text-align: center; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock { background: #fff; border: 1px solid #d9c4f7; color: var(--brand-dark); border-radius: 999px; padding: 2px 11px; white-space: nowrap; }

main.wrap { padding-top: 28px; padding-bottom: 72px; min-height: 70vh; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 48px 48px; margin-bottom: 30px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(circle, rgba(255, 255, 255, .16) 1px, transparent 1.3px) 0 0 / 26px 26px, radial-gradient(ellipse at 85% 40%, rgba(196, 61, 155, .45), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(139, 63, 224, .55), transparent 50%), linear-gradient(135deg, #1c1033, #2d1757 55%, #3d1a63); box-shadow: 0 20px 50px rgba(45, 23, 87, .35); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .14); top: -60px; right: 30%; }
.hero::after { content: "✦"; position: absolute; z-index: -1; color: var(--gold); font-size: 28px; opacity: .8; top: 34px; right: 46%; text-shadow: 0 0 14px rgba(242, 181, 68, .8); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-tags a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 13px 4px 10px; font-size: .84rem; font-weight: 700; color: #ecdcff; text-decoration: none; backdrop-filter: blur(4px); }
.hero-tags a:hover { background: rgba(255, 255, 255, .16); }
.hero-tags svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.2rem); letter-spacing: .06em; margin-bottom: 6px; background: linear-gradient(180deg, #ffffff 30%, #d9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(196, 140, 255, .35); }
.hero-sub { color: #f3a8dc; font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 800; letter-spacing: .22em; margin: 0 0 14px; }
.tagline { color: #d6c9ec; margin: 0 0 26px; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta { min-width: 200px; padding: 14px 24px; font-size: 1rem; border-radius: 999px; }
.hero .hero-cta.primary { background: linear-gradient(135deg, #a855f7, #c43d9b); border: 0; box-shadow: 0 8px 24px rgba(196, 61, 155, .45); }
.hero .hero-cta.primary:hover { filter: brightness(1.08); }
.hero-cta.alt { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); box-shadow: none; }
.hero-cta.alt:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero-badge { display: grid; place-items: center; }
.hero-logo { width: min(320px, 100%); height: auto; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 60px rgba(168, 85, 247, .6), 0 0 120px rgba(196, 61, 155, .35); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.listing { scroll-margin-top: 90px; }
.tier-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tier-tabs a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tier-tabs a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tier-tabs .tt-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--line-2); color: var(--ink-2); }
.tier-tabs .tt-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tier-tabs b { display: block; font-size: 1.12rem; letter-spacing: .04em; }
.tier-tabs small { display: block; font-size: .8rem; }
.tier-tabs em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 1.1rem; color: var(--soft); }
.tier-tabs a.premium .tt-icon { background: var(--gold-bg); color: #9a6a00; }
.tier-tabs a.basic .tt-icon { background: var(--brand-bg); color: var(--brand-dark); }
.tier-tabs a.on { border-color: var(--ink-2); box-shadow: var(--shadow); }
.tier-tabs a.premium.on { border-color: var(--gold); background: linear-gradient(135deg, #fff, var(--gold-bg)); }
.tier-tabs a.premium.on em { color: #9a6a00; }
.tier-tabs a.basic.on { border-color: var(--brand); background: linear-gradient(135deg, #fff, var(--brand-bg)); }
.tier-tabs a.basic.on em { color: var(--brand-dark); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { text-decoration: none; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .9rem; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; transition: border-color .15s, color .15s; }
.chips a:hover { border-color: #cdb3f2; color: var(--brand-dark); }
.chips a small { background: var(--line-2); color: var(--soft); border-radius: 999px; padding: 0 7px; font-size: .72rem; line-height: 1.7; }
.chips a.on { background: var(--brand-bg); color: var(--brand-dark); border-color: #c9a8f5; font-weight: 700; }
.chips a.on small { background: #fff; color: var(--brand-dark); }
.finder { display: flex; gap: 8px; align-items: center; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; width: 17px; height: 17px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; }
.search-box input { padding-left: 38px; width: 250px; }
.finder select { width: auto; padding-right: 32px; }
.result-count { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: .86rem; margin: 4px 0 16px; }
.result-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.result-count a { margin-left: 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d4bff3; }
.card.reserved .thumb > img, .card.reserved .thumb > .art { filter: grayscale(.6) brightness(.95); }
.thumb { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--bg-2); }
.thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb > img { transform: scale(1.04); }
.no, .count, .tier-badge { position: absolute; font-style: normal; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.no { top: 10px; left: 10px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tier-badge { top: 10px; right: 10px; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.tier-badge.premium { background: linear-gradient(135deg, #ffd66b, #f2b544); color: #4a3200; }
.tier-badge.basic { background: var(--brand); }
.count { bottom: 10px; right: 10px; background: rgba(38, 27, 58, .62); color: #fff; font-weight: 500; }
.info { padding: 12px 15px 15px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--soft); }
.st { font-weight: 700; }
.st-available { color: var(--ok); }
.st-reserved { color: #c58a12; }
.st-sold { color: var(--soft); }
.info h3 { margin: 2px 0 0; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info p { margin: 0; color: var(--soft); font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info .price { margin-top: auto; padding-top: 10px; }
.price { color: var(--accent-dark); font-weight: 800; font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.price.big { font-size: 2.1rem; line-height: 1.1; margin: 4px 0 18px; display: block; }

.art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #8a7268, #5c4a43); }
.art::before { content: ""; position: absolute; right: -18%; top: -22%; width: 72%; aspect-ratio: 1; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .16); background: linear-gradient(transparent 0 45%, rgba(255, 255, 255, .16) 45% 55%, transparent 55%); }
.art::after { content: ""; position: absolute; right: calc(-18% + 36% - 22px); top: calc(-22% + 36% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 10px solid rgba(255, 255, 255, .16); }
.art b { font-size: 2.4rem; font-weight: 900; line-height: 1; position: relative; }
.art span { font-size: .8rem; opacity: .9; position: relative; margin-top: 4px; }
.theme-go { background: linear-gradient(135deg, #5aa7e6, #2f6fb8); }
.theme-sv { background: linear-gradient(135deg, #ef7b70, #a1488f); }
.theme-swsh { background: linear-gradient(135deg, #4cc3d4, #cf5f9e); }
.theme-pla { background: linear-gradient(135deg, #d6ac63, #7a5a35); }
.theme-home { background: linear-gradient(135deg, #4fc58d, #208578); }
.theme-tcg { background: linear-gradient(135deg, #f6c44e, #e0703a); }

.empty { text-align: center; padding: 56px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.empty b { font-size: 1.08rem; }
.empty p { color: var(--soft); margin: 6px 0 0; }

.promises { margin-top: 56px; }
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .22em; margin: 0 0 4px; }
.promises h2 { font-size: 1.35rem; margin-bottom: 18px; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promise { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.promise b { display: block; margin: 12px 0 4px; }
.promise p { margin: 0; color: var(--soft); font-size: .88rem; }
.pi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent-dark); }
.promise:nth-child(2n) .pi { background: var(--brand-bg); color: var(--brand-dark); }
.pi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: .92rem; margin-bottom: 18px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--brand-dark); }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.media { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.stage .art b { font-size: 4.2rem; }
.stage .art { padding: 28px; }
.thumbs-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs-row button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.thumbs-row button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-row button.on { border-color: var(--brand); }
.media-actions { display: flex; flex-direction: column; gap: 8px; }
.media-actions svg, .form button svg, .hero-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buy { display: flex; flex-direction: column; gap: 14px; }
.buy .sheet { padding: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: .76rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.tag.game-tag { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.premium { background: linear-gradient(135deg, #ffd66b, #f2b544); border-color: #f2b544; color: #4a3200; }
.tag.basic { background: var(--brand-bg); border-color: #d9c4f7; color: var(--brand-dark); }
.tag.st-available { color: var(--ok-dark); border-color: #b4e2cd; }
.tag.st-reserved { color: #a97404; border-color: #f0d797; }
.buy h1 { font-size: 1.5rem; margin: 0 0 6px; }
.summary { color: var(--ink-2); margin: 0 0 6px; font-weight: 600; }
.desc-box { background: var(--bg-2); border-radius: var(--r-sm); padding: 18px 20px; margin-bottom: 16px; }
.desc-box h2 { font-size: 1rem; margin-bottom: 8px; }
.desc { white-space: pre-wrap; color: var(--ink-2); font-size: .94rem; line-height: 1.9; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; background: var(--danger-bg); border: 1px solid #f5c2c8; color: #a3243a; border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 18px; font-size: .88rem; font-weight: 600; line-height: 1.7; }
.disclaimer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-top: 2px; }
.disclaimer p { margin: 0; }
.state { background: var(--line-2); border-radius: var(--r-sm); padding: 16px 18px; }
.state p { margin: 4px 0 0; color: var(--soft); }
.assure { list-style: none; margin: 0; padding: 4px 6px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.assure li { display: flex; gap: 10px; align-items: flex-start; }
.assure svg, .deadline svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assure svg { color: var(--ok); margin-top: 2px; }

.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.sheet + .sheet { margin-top: 16px; }
.sheet.narrow { max-width: 460px; margin: 12px auto; }
.sheet.muted { background: #fbf8ff; }
.sheet.delivered { border: 2px solid var(--ok); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 500; line-height: 1.6; }
.form label.check input { margin-top: 3px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea, select { font: inherit; font-weight: 400; padding: 10px 13px; border: 1px solid #dccff0; border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23857a9c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #a99cc0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(139, 63, 224, .12); }
.hint { font-size: .84rem; color: var(--soft); margin: -4px 0 0; font-weight: 400; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.group-label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { flex-direction: row; align-items: flex-start; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }
.choice label b { display: block; font-size: .95rem; color: var(--ink); }
.choice label small { font-weight: 400; }
.choice input { margin-top: 3px; }

button, .button { font: inherit; font-weight: 600; border: 1px solid #dccff0; background: #fff; border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
button:hover, .button:hover { border-color: #c3aee6; }
button:active, .button:active { transform: translateY(1px); }
button.primary, .button.primary { background: linear-gradient(135deg, var(--brand), #a843c9); border-color: var(--brand); color: #fff; font-weight: 700; padding: 12px 20px; box-shadow: 0 6px 16px rgba(139, 63, 224, .28); }
button.primary:hover, .button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.small { padding: 7px 14px; font-size: .88rem; box-shadow: none; border-radius: 999px; }
.button.ghost { border: 1.5px solid var(--accent); color: var(--accent-dark); border-radius: 999px; padding: 8px 16px; background: #fff; }
.button.ghost:hover { background: var(--accent-bg); }
button.block, .button.block { width: 100%; }
button.danger { color: var(--danger-dark); border-color: #f2b6bf; }
button.danger:hover { background: var(--danger-bg); }
button.link { border: 0; background: none; color: inherit; padding: 0; text-decoration: underline; font-weight: 500; }
button:disabled { opacity: .55; cursor: wait; }
button.copy { padding: 3px 10px; font-size: .76rem; border-radius: 7px; color: var(--ink-2); flex-shrink: 0; }
button.copy.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }

.alert { background: var(--danger-bg); border: 1px solid #f5c2c8; color: #9b2235; border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; }
.alert p { margin: 2px 0; }
.flash { background: var(--ok-bg); border: 1px solid #b4e2cd; color: var(--ok-dark); border-radius: var(--r-sm); padding: 11px 15px; margin-bottom: 18px; }

.receipt { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ticket { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--r); padding: 22px; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.code { font-size: .9rem; color: var(--soft); display: inline-flex; align-items: center; gap: 8px; letter-spacing: .05em; }
.ticket h1 { font-size: 1.3rem; margin-bottom: 14px; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--line); }
.ticket-meta small { display: block; font-size: .78rem; }
.ticket-meta b { font-variant-numeric: tabular-nums; }
.progress { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; color: var(--soft); position: relative; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done::before, .progress li.now::before { background: var(--brand); }
.progress i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; }
.progress li.done { color: var(--ink-2); }
.progress li.done i { background: var(--brand); border-color: var(--brand); }
.progress li.now { color: var(--brand-dark); font-weight: 700; }
.progress li.now i { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(139, 63, 224, .18); }
.deadline { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-bg); border-radius: var(--r-sm); padding: 13px 15px; margin-bottom: 18px; color: #7a5506; }
.deadline svg { width: 22px; height: 22px; margin-top: 1px; }
.deadline b { display: block; color: var(--ink); }
.deadline span { font-size: .86rem; }
.deadline.calm { background: var(--brand-bg); color: var(--brand-dark); }
.deadline.done { background: var(--ok-bg); color: var(--ok-dark); }
.bank { margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.bank div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--line-2); }
.bank div:last-child { border-bottom: 0; }
.bank dt { color: var(--soft); font-size: .88rem; flex-shrink: 0; }
.bank dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; text-align: right; word-break: break-all; }
.bank .mono dd span { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; font-size: 1.08rem; letter-spacing: .03em; }
.bank .total { background: var(--accent-bg); }
.bank .total dd span { color: var(--accent-dark); font-size: 1.2rem; }
.lines { margin: 0 0 14px; }
.lines div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.lines div:last-child { border-bottom: 0; }
.lines dt { color: var(--soft); flex-shrink: 0; }
.lines dd { margin: 0; text-align: right; word-break: break-all; }
.secret-wrap { background: var(--ink); border-radius: var(--r-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.secret { color: #fbf3ee; white-space: pre-wrap; word-break: break-all; font-size: 1.02rem; line-height: 1.75; margin: 0; width: 100%; }
.tips { padding-left: 20px; color: var(--soft); font-size: .88rem; margin: 16px 0; }
.tips li + li { margin-top: 4px; }
.keep { color: var(--soft); font-size: .86rem; text-align: center; margin: 0; }
.contact { text-align: center; margin: 0; }
details summary { cursor: pointer; color: var(--accent-dark); margin: 6px 0; font-size: .92rem; }
details[open] summary { margin-bottom: 14px; }
.terms { padding-left: 22px; margin: 0; }
.terms li { margin-bottom: 12px; color: var(--ink-2); }
.terms li::marker { color: var(--brand); font-weight: 800; }

.status { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #efe9f7; color: var(--ink); vertical-align: middle; }
.status.pending { background: var(--gold-bg); color: #7a5506; }
.status.reported { background: var(--gold); color: #4a3200; }
.status.delivered, .status.available { background: var(--ok-bg); color: var(--ok-dark); }
.status.cancelled, .status.expired, .status.sold { background: #efe9f7; color: var(--soft); }
.status.reserved { background: #e6eef9; color: #2c5689; }
.status.draft { background: #f1f1f1; color: #777; }

.colophon { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 34px; text-align: center; color: var(--soft); }
.colophon .wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.foot-logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 22px rgba(139, 63, 224, .35); margin-bottom: 6px; }
.foot-name { font-size: 1.3rem; color: var(--ink); letter-spacing: .06em; }
.foot-host { color: var(--accent); text-decoration: none; font-size: 1.02rem; margin-top: -4px; }
.foot-lines { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 4px; font-size: 1rem; }
.socials { display: flex; gap: 14px; margin: 8px 0; }
.socials a { display: block; width: 34px; height: 34px; transition: transform .15s; }
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 100%; height: 100%; }
.community { margin: 6px 0; }
.foot-pay { margin: 8px 0 0; font-size: .92rem; }
.foot-disclaimer { max-width: 620px; font-size: .82rem; color: #a35a74; margin: 6px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; font-size: .88rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--brand-dark); }
.copy { font-size: .82rem; margin: 8px 0 0; }

.auth { max-width: 440px; margin: 12px auto; }
.auth .sheet { padding: 30px 28px; }
.auth h1 { font-size: 1.5rem; }
.auth .hint { margin: 0 0 18px; }
.auth-aside { text-align: center; color: var(--soft); font-size: .92rem; margin: 16px 0 0; }
.row-links { display: flex; justify-content: flex-end; margin: 12px 0 0; font-size: .9rem; }
.mail-art { width: 64px; height: 46px; border-radius: 8px; background: var(--gold); position: relative; margin-bottom: 18px; overflow: hidden; }
.mail-art::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 46px; border: 3px solid var(--ink); border-radius: 6px; transform: scaleY(.9) rotate(45deg) translate(9px, 9px); width: 46px; margin: 0 auto; }
.mail-art::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 8px; }
.dot-warn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--gold-bg); border: 1px solid #f3dca4; border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; flex-wrap: wrap; }
.banner b { display: block; }
.banner span { font-size: .88rem; color: #7a5506; }
.member { max-width: 840px; margin: 0 auto; }
.member-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.member-head h1 { margin: 0; }
.member-head .hint { margin: 2px 0 0; }
.subnav { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.subnav a { text-decoration: none; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.subnav a.on { background: var(--brand); color: #fff; }
.subnav form { margin: 0 6px 0 4px; }
.subnav .link { color: var(--soft); font-size: .88rem; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.order-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.order-row small { display: block; margin-top: 2px; }
.order-row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.order-row .price { font-size: 1rem; }
.member .columns > div { display: flex; flex-direction: column; gap: 18px; }
.gate b { font-size: 1.02rem; }
.gate p { margin: 4px 0 14px; }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gate .alert { margin-bottom: 10px; }
.legal { max-width: 780px; margin: 0 auto; }
.legal .chips { margin-bottom: 14px; }
.prose { padding: 32px 36px; }
.prose h1 { margin-bottom: 18px; }
.prose h2 { font-size: 1.05rem; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.prose p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.9; }

@media (max-width: 960px) {
  .mainnav { display: none; }
  .actions { margin-left: auto; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .finder { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero-badge { order: -1; justify-items: start; }
  .hero-logo { width: 150px; }
  .detail { display: flex; flex-direction: column; gap: 14px; }
  .media { display: contents; }
  .stage { order: 1; }
  .thumbs-row { order: 2; }
  .buy { order: 3; }
  .media-actions { order: 4; }
  .columns { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .list { display: block; overflow-x: auto; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  main.wrap { padding-top: 16px; }
  .masthead .wrap { min-height: 58px; gap: 10px; }
  .mark { width: 36px; height: 36px; }
  .brand-text small { display: none; }
  .wide-only { display: none; }
  .notice-text { display: none; }
  .hero { padding: 26px 18px; border-radius: 20px; margin-bottom: 22px; }
  .hero-sub { letter-spacing: .12em; }
  .hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cta { min-width: 0; padding: 12px 10px; font-size: .92rem; }
  .tier-tabs { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tier-tabs a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .tier-tabs .tt-icon { width: 34px; height: 34px; border-radius: 10px; }
  .tier-tabs .tt-icon svg { width: 18px; height: 18px; }
  .tier-tabs b { font-size: .98rem; }
  .tier-tabs small { display: none; }
  .tier-tabs em { margin-left: 0; font-size: .85rem; }
  .toolbar { gap: 10px; }
  .finder { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .finder select { flex: 1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .info { padding: 10px 11px 12px; }
  .info h3 { font-size: .88rem; }
  .info p { display: none; }
  .meta { font-size: .7rem; }
  .price { font-size: 1rem; }
  .price.big { font-size: 1.8rem; }
  .no, .tier-badge { font-size: .66rem; padding: 2px 6px; top: 7px; }
  .no { left: 7px; }
  .tier-badge { right: 7px; }
  .art { padding: 10px 12px; }
  .art b { font-size: 1.6rem; }
  .art span { font-size: .7rem; }
  .art::before { border-width: 9px; }
  .art::after { width: 30px; height: 30px; border-width: 7px; right: calc(-18% + 36% - 15px); top: calc(-22% + 36% - 15px); }
  .stage .art b { font-size: 3rem; }
  .promise-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .promise { padding: 15px; }
  .pair, .choice { grid-template-columns: 1fr; }
  .sheet, .buy .sheet { padding: 18px 16px; }
  .ticket { padding: 18px 16px; }
  .auth .sheet { padding: 24px 18px; }
  .prose { padding: 22px 18px; }
  .order-row { padding: 13px 14px; }
}
.consent { display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); border-radius: var(--r-sm); padding: 14px 16px; }
.consent label.check { font-size: .88rem; }
.no.stock-badge { background: var(--brand); color: #fff; }
.tag.stock-tag { background: var(--brand-bg); border-color: #d9c4f7; color: var(--brand-dark); }
.batch-hint { margin: 0 0 12px; }
