/* Petit Atelier — 3 skins: sakura(粉, default) / night(星空) / white(纯白)
   切换方式：<html data-skin="night">。颜色全部走下面的 token，组件里不写死颜色。 */
:root {
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --radius: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* sakura */
  color-scheme: light;
  --bg: #FFF5F3;
  --bg-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23F2B3C3' fill-opacity='.45'%3E%3Cpath transform='translate(22 26) scale(.55)' d='M12 21s-9-5.6-11-11.2C-.2 5.6 2.6 1 7 1c2.2 0 3.8 1.2 5 3 1.2-1.8 2.8-3 5-3 4.4 0 7.2 4.6 6 8.8C21 15.4 12 21 12 21z'/%3E%3Cpath transform='translate(98 100) rotate(-14) scale(.42)' d='M12 21s-9-5.6-11-11.2C-.2 5.6 2.6 1 7 1c2.2 0 3.8 1.2 5 3 1.2-1.8 2.8-3 5-3 4.4 0 7.2 4.6 6 8.8C21 15.4 12 21 12 21z'/%3E%3Ccircle cx='70' cy='68' r='2.2'/%3E%3Ccircle cx='120' cy='22' r='1.6'/%3E%3Ccircle cx='18' cy='112' r='1.6'/%3E%3C/g%3E%3Cg fill='%23E2C394' fill-opacity='.55'%3E%3Cpath transform='translate(92 30) scale(.5)' d='M12 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C6.5 11 11 6.5 12 0z'/%3E%3Cpath transform='translate(40 92) scale(.36)' d='M12 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C6.5 11 11 6.5 12 0z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 10% -5%, #FDE1E8 0, transparent 38%),
    radial-gradient(circle at 105% 25%, #EFE7FB 0, transparent 32%);
  --surface: #FFFFFF;
  --surface-2: #FFF8F7;
  --glass: rgba(255, 245, 243, .86);
  --border: #F2DCE1;
  --ink: #5A4650;
  --ink-2: #8E7781;
  --accent: #E3879E;
  --accent-deep: #C9667F;
  --accent-soft: #FBE2E8;
  --alt: #B9A7E3;
  --alt-soft: #EEE8FA;
  --alt-ink: #7D68B8;
  --gold: #C6A26B;
  --gold-soft: #F7EEDF;
  --gold-ink: #9C7A44;
  --btn-bg: linear-gradient(135deg, #EE9BB0, #C9667F);
  --btn-ink: #FFFFFF;
  --btn-shadow: 0 6px 16px rgba(201, 102, 127, .3);
  --shadow: 0 6px 24px rgba(201, 102, 127, .12);
  --seg-on: linear-gradient(135deg, #F4AEC0, #E3879E);
  --me-bubble: linear-gradient(135deg, #F4AEC0, #E3879E);
  --cover-ink: #FFFFFF;
  --deco-1: #FFFFFF;
  --deco-2: #D9667F;
  --deco-3: #F9D9A8;
  --toast-bg: rgba(90, 70, 80, .94);
  --toast-ink: #FFFFFF;
}

:root[data-skin="night"] {
  color-scheme: dark;
  --bg: #0D0F2B;
  --bg-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='12' cy='18' r='1' fill-opacity='.9'/%3E%3Ccircle cx='64' cy='40' r='.7' fill-opacity='.6'/%3E%3Ccircle cx='110' cy='12' r='1.3' fill-opacity='.85'/%3E%3Ccircle cx='170' cy='34' r='.8' fill-opacity='.5'/%3E%3Ccircle cx='204' cy='80' r='1.1' fill-opacity='.8'/%3E%3Ccircle cx='38' cy='88' r='.6' fill-opacity='.5'/%3E%3Ccircle cx='96' cy='104' r='.9' fill-opacity='.7'/%3E%3Ccircle cx='150' cy='120' r='.6' fill-opacity='.45'/%3E%3Ccircle cx='18' cy='150' r='1.2' fill-opacity='.75'/%3E%3Ccircle cx='72' cy='170' r='.7' fill-opacity='.55'/%3E%3Ccircle cx='128' cy='186' r='1' fill-opacity='.8'/%3E%3Ccircle cx='190' cy='160' r='.7' fill-opacity='.5'/%3E%3Ccircle cx='200' cy='210' r='.9' fill-opacity='.6'/%3E%3Ccircle cx='50' cy='212' r='.6' fill-opacity='.4'/%3E%3C/g%3E%3Cg fill='%23F0D59A'%3E%3Cpath transform='translate(150 62) scale(.42)' d='M12 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C6.5 11 11 6.5 12 0z'/%3E%3Cpath transform='translate(40 120) scale(.3)' d='M12 0c1 6.5 5.5 11 12 12-6.5 1-11 5.5-12 12-1-6.5-5.5-11-12-12C6.5 11 11 6.5 12 0z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 85% 8%, rgba(150, 110, 230, .35) 0, transparent 45%),
    radial-gradient(ellipse at 0% 60%, rgba(230, 120, 180, .18) 0, transparent 40%),
    linear-gradient(180deg, #0D0F2B, #171A45 60%, #1E1B4D);
  --surface: rgba(255, 255, 255, .065);
  --surface-2: rgba(255, 255, 255, .08);
  --glass: rgba(13, 15, 43, .78);
  --border: rgba(255, 255, 255, .14);
  --ink: #F1EEFF;
  --ink-2: #ABA7D2;
  --accent: #C8B5FF;
  --accent-deep: #D9CBFF;
  --accent-soft: rgba(200, 181, 255, .16);
  --alt: #F2B5D4;
  --alt-soft: rgba(242, 181, 212, .16);
  --alt-ink: #F6C6DF;
  --gold: #EBCB86;
  --gold-soft: rgba(235, 203, 134, .14);
  --gold-ink: #F0D59A;
  --btn-bg: linear-gradient(135deg, #B7A1FF, #7C68DE);
  --btn-ink: #FFFFFF;
  --btn-shadow: 0 6px 20px rgba(124, 104, 222, .45);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --seg-on: linear-gradient(135deg, #B7A1FF, #7C68DE);
  --me-bubble: linear-gradient(135deg, #B7A1FF, #7C68DE);
  --cover-ink: #FFF8EA;
  --deco-1: #FFFFFF;
  --deco-2: #F0D59A;
  --deco-3: #F6C6DF;
  --toast-bg: rgba(241, 238, 255, .95);
  --toast-ink: #1A1C44;
}

:root[data-skin="white"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-image: none;
  --surface: #FFFFFF;
  --surface-2: #FAF9F8;
  --glass: rgba(255, 255, 255, .9);
  --border: #ECE7E5;
  --ink: #2A2527;
  --ink-2: #8B8386;
  --accent: #2A2527;
  --accent-deep: #2A2527;
  --accent-soft: #F4F1F0;
  --alt: #B9A7E3;
  --alt-soft: #F4F1F0;
  --alt-ink: #6E6468;
  --gold: #B8975F;
  --gold-soft: #F7F2EA;
  --gold-ink: #8E703F;
  --btn-bg: #2A2527;
  --btn-ink: #FFFFFF;
  --btn-shadow: none;
  --shadow: 0 1px 0 #ECE7E5;
  --seg-on: #2A2527;
  --me-bubble: #2A2527;
  --cover-ink: #2A2527;
  --deco-1: #B8975F;
  --deco-2: #B8975F;
  --deco-3: #D8C7A6;
  --toast-bg: rgba(42, 37, 39, .94);
  --toast-ink: #FFFFFF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .02em;
  min-height: 100vh;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
main { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; outline: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: var(--safe-t); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; color: var(--accent-deep); white-space: nowrap; }
.brand-kana { font-size: 10px; color: var(--ink-2); letter-spacing: .2em; white-space: nowrap; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.top-sns { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent-deep);
}
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 360px) { .top-sns .icon-btn:nth-child(3) { display: none; } }

/* skin picker */
.skin-btn { position: relative; }
.skin-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.skin-menu {
  position: fixed; z-index: 45; right: 12px; top: calc(var(--safe-t) + 62px);
  width: min(300px, calc(100vw - 24px));
  padding: 14px; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.skin-menu p { margin: 0 4px 10px; font-size: 12px; color: var(--ink-2); }
.skin-opts { display: grid; gap: 8px; }
.skin-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); text-align: left;
}
.skin-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.skin-opt strong { display: block; font-size: 14px; }
.skin-opt span { font-size: 11px; color: var(--ink-2); }
.skin-swatch { width: 44px; height: 44px; flex: none; border-radius: 12px; position: relative; overflow: hidden; }
.sw-sakura, .skin-dot.sakura { background: radial-gradient(circle at 30% 30%, #fff 0 12%, transparent 13%), linear-gradient(135deg, #FDE1E8, #E3879E); }
.sw-night, .skin-dot.night { background: radial-gradient(circle at 25% 30%, #fff 0 4%, transparent 5%), radial-gradient(circle at 70% 60%, #F0D59A 0 5%, transparent 6%), radial-gradient(circle at 55% 25%, #fff 0 3%, transparent 4%), linear-gradient(160deg, #0D0F2B, #3A2A6B); }
.sw-white, .skin-dot.white { background: linear-gradient(135deg, #FFFFFF, #F1EEEC); box-shadow: inset 0 0 0 1px #E3DEDB; }
.sw-white::after { content: ""; position: absolute; inset: 7px; border: 1px solid #B8975F; border-radius: 6px; }

/* ---------- common ---------- */
.section { margin-top: 40px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 19px; font-weight: 700;
}
.section-title .orn { width: 22px; height: 22px; color: var(--accent); flex: none; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
:root[data-skin="night"] .card { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.muted { color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-deep);
}
.pill.alt { background: var(--alt-soft); color: var(--alt-ink); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-align: center;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.btn-line { background: #06C755; color: #FFFFFF; box-shadow: 0 6px 16px rgba(6, 199, 85, .25); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--accent-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- cover ---------- */
.cover { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--accent-soft); isolation: isolate; }
.cover > img { width: 100%; height: 100%; object-fit: cover; }
.cover.has-img { aspect-ratio: auto; }
.cover.has-img > img { height: auto; }
.cover-btn { display: block; width: 100%; padding: 0; border-radius: 18px; cursor: zoom-in; }
.cover-art {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18% 14%; color: var(--cover-ink);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .22) 1.6px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .5) 0, transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, .3) 0, transparent 35%),
    linear-gradient(145deg, var(--c1), var(--c2));
}
/* 上下蕾丝花边（粉色风格） */
.cover-art::before, .cover-art::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background-repeat: repeat-x; background-size: 22px 12px; opacity: .85;
}
.cover-art::before { top: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12'%3E%3Cpath fill='%23FFFFFF' fill-rule='evenodd' d='M0 0H22V4A11 8 0 0 1 0 4ZM11 4.6a1.7 1.7 0 1 0 .01 0Z'/%3E%3C/svg%3E"); }
.cover-art::after { bottom: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12'%3E%3Cpath fill='%23FFFFFF' fill-rule='evenodd' d='M0 12H22V8A11 8 0 0 0 0 8ZM11 7.4a1.7 1.7 0 1 0 .01 0Z'/%3E%3C/svg%3E"); }
.ca-en { position: relative; z-index: 2; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 6.4vw, 36px); line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ca-jp { position: relative; z-index: 2; margin-top: 8px; font-size: 12px; letter-spacing: .15em; }
.ca-rule { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--deco-3); }
.ca-rule::before, .ca-rule::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .9; }
.ca-rule svg { width: 12px; height: 12px; }

.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco svg { width: 100%; height: 100%; display: block; }
.deco-set { display: none; }
:root:not([data-skin]) .deco-set.sakura, :root[data-skin="sakura"] .deco-set.sakura,
:root[data-skin="night"] .deco-set.night, :root[data-skin="white"] .deco-set.white { display: contents; }
.d-bow { color: var(--deco-2); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .12)); }
.d-heart { color: var(--deco-1); opacity: .9; }
.d-spark { color: var(--deco-3); }
.d-moon { color: var(--deco-2); filter: drop-shadow(0 0 10px rgba(240, 213, 154, .6)); }
.d-star { color: var(--deco-1); }
.d-corner { color: var(--deco-1); background: #FFFFFF; border-radius: 50%; z-index: 2; }

/* night 封面：深蓝紫底 + bag 主色微染 */
:root[data-skin="night"] .cover-art {
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--c2) 45%, transparent) 0, transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(242, 181, 212, .25) 0, transparent 40%),
    linear-gradient(160deg, #141638, #2E2463);
}
:root[data-skin="night"] .cover-art::before, :root[data-skin="night"] .cover-art::after { display: none; }
:root[data-skin="night"] .ca-en { text-shadow: 0 0 18px rgba(240, 213, 154, .35); }
/* white 封面：留白 + 金色细框 */
:root[data-skin="white"] .cover-art {
  background: linear-gradient(160deg, #FFFFFF, color-mix(in srgb, var(--c1) 14%, #FFFFFF));
  box-shadow: inset 0 0 0 1px var(--border);
}
:root[data-skin="white"] .cover-art::before { display: none; }
:root[data-skin="white"] .cover-art::after {
  top: 9px; bottom: 9px; left: 9px; right: 9px; height: auto; opacity: 1;
  background: none; border: 1px solid var(--gold); border-radius: 10px;
  box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 4px color-mix(in srgb, var(--gold) 45%, transparent);
}
:root[data-skin="white"] .ca-en { text-shadow: none; }
:root[data-skin="white"] .ca-jp { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { margin-top: 18px; padding: 14px; position: relative; }
.hero-ribbon {
  position: absolute; top: 28px; left: 28px; z-index: 3;
  background: var(--surface-2); color: var(--accent-deep);
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 15px;
  padding: 3px 14px 3px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
:root[data-skin="night"] .hero-ribbon { background: rgba(13, 15, 43, .7); color: var(--gold-ink); }
.hero-ribbon::before { content: "✦ "; color: var(--gold); }
.hero-body { padding: 14px 6px 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.hero-title { margin: 4px 0 0; font-size: 21px; line-height: 1.45; }
.hero-en { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-2); }
.hero-desc { margin: 10px 0 14px; font-size: 14px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.trust div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11.5px; line-height: 1.4; color: var(--ink-2); min-width: 0; }
.trust svg { width: 20px; height: 20px; color: var(--accent); }
.trust span { white-space: pre-line; }

.intro { text-align: center; margin: 28px 8px 0; font-size: 13.5px; color: var(--ink-2); }
.intro strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }

/* ---------- tabs ---------- */
.seg { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--seg-on); color: var(--btn-ink); }
.seg .count { font-size: 11px; opacity: .8; margin-left: 3px; }

/* ---------- bag grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bag-card { padding: 8px 8px 12px; display: flex; flex-direction: column; min-width: 0; }
.bag-card .cover { aspect-ratio: 1; border-radius: 16px; }
.bag-card .cover-art { padding: 16% 10%; }
.bag-card .ca-en { font-size: 17px; }
.bag-card .ca-jp, .bag-card .ca-rule, .bag-card .d-minor { display: none; }
.bag-card-body { padding: 8px 4px 0; }
.bag-card-title { margin: 4px 0 2px; font-size: 13.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bag-card-date { font-size: 11px; color: var(--ink-2); }
.badge-new { position: absolute; top: 14px; left: 10px; z-index: 3; background: var(--accent-deep); color: var(--surface-2); font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 999px; letter-spacing: .1em; }
:root[data-skin="night"] .badge-new { background: var(--gold); color: #1A1C44; }
:root[data-skin="white"] .badge-new { color: #FFFFFF; }
.soon-card { padding: 18px; display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.soon-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--alt-soft); color: var(--alt-ink); }
.soon-icon svg { width: 22px; height: 22px; }
.empty { text-align: center; padding: 30px 10px; color: var(--ink-2); font-size: 13px; }

/* ---------- order ---------- */
.steps { list-style: none; margin: 0; padding: 18px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 16px 46px; counter-increment: s; font-size: 14px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 600;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 32px; bottom: 2px; border-left: 1px dashed var(--accent); opacity: .5; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px dashed var(--border); font-size: 13px; }
.paypal-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: #F3F7FC; color: #003087; font-weight: 700; font-style: italic; font-family: Verdana, sans-serif; font-size: 14px; }
.paypal-badge b { color: #009CDE; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 10px; }
.review { padding: 14px 16px; font-size: 13.5px; }
.review p { margin: 0; }
.review .who { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.contact-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #FFFFFF; }
.contact-icon svg { width: 24px; height: 24px; }
.ci-line { background: #06C755; }
.ci-x { background: #222222; }
:root[data-skin="night"] .ci-x { background: #000000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.ci-instagram { background: linear-gradient(45deg, #F9CE34, #EE2A7B 55%, #6228D7); }
.contact-text { flex: 1; min-width: 0; }
.contact-text strong { display: block; font-size: 15px; }
.contact-text span { font-size: 12px; color: var(--ink-2); }
.contact-item .arrow { color: var(--accent); font-size: 18px; }
.contact-item.primary { border: 1.5px solid #8FDDB0; }
.rec { font-size: 10px; background: #E7F9EE; color: #087F3B; padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; vertical-align: 2px; }
.soon-tag { font-size: 10px; background: var(--gold-soft); color: var(--gold-ink); padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; vertical-align: 2px; }

/* ---------- faq ---------- */
.faq details { padding: 0 16px; border-bottom: 1px dashed var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; padding: 14px 24px 14px 0; position: relative; font-weight: 500; font-size: 14px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 17px; margin-right: 6px; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--accent); font-size: 18px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- bag detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.detail-head { margin-top: 6px; padding: 14px; }
.detail-title { margin: 12px 0 0; font-size: 21px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-tabs { margin-top: 22px; position: sticky; top: calc(var(--safe-t) + 60px); z-index: 10; }
.share-row { display: flex; gap: 8px; margin-top: 10px; }
.share-row .btn { flex: 1; min-height: 40px; font-size: 12.5px; }
.search {
  margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.search input { flex: 1; border: 0; outline: 0; background: none; height: 42px; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--ink-2); }
.search svg { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.items { list-style: none; margin: 12px 0 0; padding: 6px 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px dashed var(--border); }
.item:last-child { border-bottom: 0; }
.item-no { width: 26px; flex: none; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.item-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.wish {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--ink-2); opacity: .55; transition: all .15s;
}
.wish svg { width: 17px; height: 17px; }
.wish[aria-pressed="true"] { opacity: 1; background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.hero-en:empty { display: none; }
/* 详情页头部：用 bag 主题色做一层淡淡的底 */
.detail-head { background: linear-gradient(180deg, color-mix(in srgb, var(--bag, var(--accent)) 18%, var(--surface)) 0, var(--surface) 55%); }

/* 稀有度分组标题 */
.grid-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.grid-head:first-child { margin-top: 0; }
.grid-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid-head b { font-size: 11px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.grid-head span::before { content: "✦ "; }
.grid-head-S span::before { color: var(--gold); }
.grid-head-R span::before { color: var(--accent); }
.grid-head-n span::before { color: var(--ink-2); }

/* 带图的道具卡片 */
.item-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item-card {
  padding: 6px 6px 10px; display: grid; gap: 8px 4px; align-items: start;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img img" "body wish";
}
.item-img { position: relative; display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.item-card .item-img { grid-area: img; }
.item-card .item-img img { width: 100%; aspect-ratio: 921 / 880; object-fit: cover; }
.item-card .item-body { grid-area: body; min-width: 0; padding-left: 4px; }
.item-card .wish { grid-area: wish; width: 32px; height: 32px; }
.item-card .item-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.item-en { margin-top: 2px; font-size: 10.5px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.item-note { margin-top: 2px; font-size: 10.5px; color: var(--gold-ink); }
.rar { position: absolute; top: 8px; left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.rar-s { background: linear-gradient(135deg, #F6D88E, #D9A94F); color: #5A3E10; }
.rar-r { background: #FBE2E8; color: #B8546E; }

/* 房间布置图：横向滑动 */
.gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -16px; padding: 0 16px 6px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 86%; margin: 0; scroll-snap-align: center; }
.gallery-item:only-child { flex-basis: 100%; }
@media (min-width: 600px) { .gallery-item { flex-basis: 48%; } }
.gallery-item .item-img { border-radius: 16px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: auto; }
.gallery-item figcaption, .extra figcaption { margin: 6px 4px 0; font-size: 12px; color: var(--ink-2); }
.extras { display: grid; gap: 12px; }
.extra { margin: 0; padding: 8px; }
.extra img { width: 100%; height: auto; }

/* 点图放大 */
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--safe-t) + 56px) 12px calc(var(--safe-b) + 24px);
  background: rgba(15, 12, 30, .9);
}
.lightbox figure { margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: #FFFFFF; font-size: 13px; text-align: center; }
.lb-close { position: absolute; top: calc(var(--safe-t) + 10px); right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #FFFFFF; font-size: 26px; line-height: 1; }

.coords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.coord { padding: 8px; margin: 0; }
.coord img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.coord p { margin: 6px 4px 2px; font-size: 12px; }

.wish-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(110%); transition: transform .25s ease;
}
.wish-bar.show { transform: none; }
.wish-bar .wb-count { flex: 1; font-size: 13px; }
.wish-bar .wb-count b { color: var(--accent-deep); font-size: 17px; }
.wish-bar .wb-clear { font-size: 12px; color: var(--ink-2); text-decoration: underline; padding: 8px 4px; }
body.has-wishbar main { padding-bottom: 100px; }

/* ---------- static pages ---------- */
.page { margin-top: 10px; padding: 22px 18px; }
.page h1 { margin: 0 0 16px; font-size: 20px; }
.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.kv th { width: 34%; color: var(--ink-2); font-weight: 500; padding-right: 10px; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 30px 16px calc(100px + var(--safe-b)); font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--border); background: var(--glass); }
.footer-sns { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.disclaimer { max-width: 520px; margin: 0 auto 8px; font-size: 11px; line-height: 1.7; }
.copy { margin: 0; font-family: var(--serif); font-style: italic; font-size: 13px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--toast-bg); color: var(--toast-ink); font-size: 13px; padding: 10px 18px; border-radius: 999px;
  transition: all .25s ease; width: max-content; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- chat ---------- */
[hidden] { display: none !important; }
.chat-fab {
  position: fixed; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 40;
  display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  box-shadow: var(--btn-shadow), 0 8px 22px rgba(0, 0, 0, .12); font-weight: 700; font-size: 13px;
  transition: bottom .25s ease;
}
.chat-fab svg { width: 24px; height: 24px; }
body.has-wishbar .chat-fab { bottom: calc(84px + var(--safe-b)); }
.chat {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: min(78vh, 640px);
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  padding-bottom: var(--safe-b);
  animation: up .25s ease;
}
@media (min-width: 600px) {
  .chat { left: auto; right: 20px; bottom: 20px; width: 380px; border-radius: 24px; padding-bottom: 0; }
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.chat-title { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 15px; }
.ai-badge { font-size: 10px; font-weight: 700; background: var(--alt-soft); color: var(--alt-ink); padding: 0 7px; border-radius: 6px; letter-spacing: .08em; }
.chat-close { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--ink-2); }
.chat-disclosure { margin: 0 16px; padding: 6px 10px; font-size: 11px; color: var(--ink-2); background: var(--surface); border-radius: 10px; border: 1px solid var(--border); }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--me-bubble); color: var(--btn-ink); border-bottom-right-radius: 6px; }
.msg.typing { color: var(--ink-2); letter-spacing: .3em; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.msg-actions a { font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px; color: #FFFFFF; }
.msg-actions .a-line { background: #06C755; }
.msg-actions .a-x { background: #222222; }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button, .chat-chips a { flex: none; font-size: 12px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent); color: var(--accent-deep); white-space: nowrap; }
.chat-form { display: flex; gap: 8px; padding: 8px 12px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.chat-form input::placeholder { color: var(--ink-2); }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
