:root { --doll-gold:#d0aa55; --doll-light:#f4dea6; --doll-paper:#e9dfc9; --doll-paper-alt:#d7c9aa; --doll-red:#8f241c; }

.doll-page-main { width:min(1500px, calc(100% - 24px)); }
.doll-frame { padding:14px; }
.doll-guide-content { padding:clamp(14px,2vw,24px); }
.doll-catalog { overflow:hidden; border:1px solid #4a3618; border-radius:9px; color:#211b13; background:var(--doll-paper); font:14px/1.55 "PMingLiU", "新細明體", "MingLiU", serif; }
.doll-catalog *, .doll-catalog *::before, .doll-catalog *::after { box-sizing:border-box; }
.doll-catalog button, .doll-catalog input { font:inherit; }
.doll-catalog button { cursor:pointer; }

.doll-catalog-heading { min-height:120px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 32px; color:#fff6d5; border-bottom:3px solid var(--doll-gold); background:radial-gradient(circle at 82% 50%,rgba(194,145,53,.22),transparent 34%),linear-gradient(115deg,#080705,#2a1b0c 65%,#0b0906); }
.doll-catalog-heading p { margin:0 0 7px; color:var(--doll-gold); font-weight:bold; font-size:11px; letter-spacing:.24em; }
.doll-catalog-heading h1 { margin:0; color:#fff4cf; font-size:clamp(27px,3vw,42px); letter-spacing:.08em; text-shadow:0 3px 0 #000,0 0 18px rgba(208,170,85,.2); }
.doll-catalog-heading div>span { display:block; margin-top:8px; color:#cbbd9d; }
.doll-catalog-heading>strong { min-width:130px; padding:13px 18px; border:1px solid #8d6a31; color:#d6c08f; background:rgba(0,0,0,.35); text-align:center; }
.doll-catalog-heading>strong span { display:block; color:#f6d77e; font:34px/1 Georgia,serif; }

.doll-category-panel { display:flex; flex-wrap:wrap; gap:8px; margin:22px 24px 14px; padding:12px; border:1px solid #9f7a37; background:#ddd0b4; }
.doll-category-panel button { flex:1 1 170px; min-height:42px; padding:8px 12px; border:1px solid #9b783b; color:#5e3317; background:#f4ead3; font-weight:bold; }
.doll-category-panel button b { margin-left:5px; color:#8b7652; font-size:11px; }
.doll-category-panel button:hover, .doll-category-panel button.active { border-color:#4a2e0d; color:#ffe1a0; background:linear-gradient(#5b3615,#2b1b0b); box-shadow:inset 0 -3px #c9821f; }
.doll-category-panel button.active b { color:#e5c67d; }

.doll-search-panel { position:sticky; top:66px; z-index:4; display:flex; align-items:end; gap:14px; margin:0 24px; padding:12px 14px; border:1px solid #b08a42; background:#21180d; box-shadow:0 5px 14px rgba(20,12,4,.3); }
.doll-search-panel label { display:grid; flex:1; gap:5px; color:#dcc58f; font-size:11px; }
.doll-search-panel input { min-height:38px; padding:8px 11px; border:1px solid #8e713c; color:#211b13; background:#fffaf0; outline:none; }
.doll-search-panel input:focus { border-color:#e0bb65; box-shadow:0 0 0 2px rgba(224,187,101,.2); }
.doll-search-panel>strong { padding:9px 6px; color:#f0d487; white-space:nowrap; }

.doll-results { padding:0 24px 34px; }
.doll-group { margin-top:26px; scroll-margin-top:125px; }
.doll-group>header { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:9px 16px; border:1px solid #a37e39; color:#f3deb0; background:linear-gradient(90deg,#271c0e,#4a361a); }
.doll-group>header span { color:#ad9870; font-size:9px; letter-spacing:.16em; }
.doll-group>header h2 { margin:2px 0 0; color:#ffe5a3; font-size:18px; }
.doll-group>header>b { color:#e3c878; font-size:12px; }
.doll-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-left:1px solid #b9a57c; }
.doll-card { min-width:0; display:grid; grid-template-columns:106px 1fr; border-right:1px solid #f8f1e1; border-bottom:1px solid #f8f1e1; background:#e5dac3; }
.doll-card:nth-child(even) { background:var(--doll-paper-alt); }
.doll-card:hover { background:#fff1c3; }
.doll-image { min-height:176px; display:grid; place-items:center; align-content:center; padding:9px; color:#d2a84c; background:#050403; }
.doll-image img { display:block; width:88px; height:118px; object-fit:contain; image-rendering:auto; }
.doll-image span { font:bold 36px Georgia,serif; }
.doll-card-body { min-width:0; padding:12px 13px; }
.doll-id { margin:0; color:#887860; font:9px/1.2 monospace; }
.doll-card h3 { margin:3px 0 9px; color:#74251a; font-size:17px; }
.doll-effects>b, .doll-negative>b { display:block; margin-bottom:3px; color:#4c3820; font-size:11px; }
.doll-effects ul, .doll-negative ul { margin:0; padding-left:18px; }
.doll-effects li { margin:2px 0; color:#3c3020; }
.doll-empty-effect { color:#8b806e!important; }
.doll-negative { margin-top:8px; padding:7px 9px; border-left:3px solid #b22d22; background:rgba(153,28,20,.08); }
.doll-negative b, .doll-negative li { color:var(--doll-red); font-weight:bold; }
.doll-meta { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:11px 0 0; padding-top:9px; border-top:1px solid rgba(111,77,31,.25); }
.doll-meta div { min-width:0; }
.doll-meta dt { color:#7b6c52; font-size:9px; }
.doll-meta dd { margin:2px 0 0; color:#593719; font-size:11px; font-weight:bold; }
.doll-status-box, .doll-loading { margin:22px 24px; padding:70px 20px; border:1px solid #a98b53; color:#6d5c3d; background:#f8f2e4; text-align:center; }

@media(max-width:1100px) {
  .doll-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(max-width:800px) {
  .doll-page-main { width:100%; padding-top:14px; }
  .doll-catalog-heading { min-height:108px; padding:18px; }
  .doll-catalog-heading>strong { min-width:100px; }
  .doll-category-panel, .doll-search-panel { margin-inline:10px; }
  .doll-results { padding-inline:10px; }
  .doll-grid { grid-template-columns:1fr; }
  .doll-page-footer { width:100%; }
}

@media(max-width:520px) {
  .doll-catalog-heading { align-items:flex-start; }
  .doll-catalog-heading div>span { display:none; }
  .doll-catalog-heading>strong { padding:10px; }
  .doll-catalog-heading>strong span { font-size:27px; }
  .doll-search-panel { align-items:stretch; flex-direction:column; }
  .doll-search-panel>strong { padding:0; }
  .doll-card { grid-template-columns:84px 1fr; }
  .doll-image { min-height:160px; padding:5px; }
  .doll-image img { width:72px; height:105px; }
  .doll-meta { grid-template-columns:1fr; }
}
