/* Soft Minimal UI: shared colors, surfaces, and component radii. */
.toast.toast-warning{top:var(--toast-top,16px);bottom:auto;left:var(--toast-left,50%);max-width:var(--toast-width,calc(100vw - 32px));padding:8px 14px;border:0;border-radius:10px;background:var(--coral);color:#fff;box-shadow:0 6px 20px rgba(90,40,40,.2);gap:8px;font-size:13px;line-height:20px;pointer-events:none;opacity:0;transform:translate(-50%,-4px);transition:opacity 160ms ease-out,transform 160ms ease-out}
.toast.toast-warning>[data-icon]{color:#fff}.toast.toast-warning svg{width:16px;height:16px}
.toast.toast-warning.is-visible{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){.toast.toast-warning,.toast.toast-warning.is-visible{transform:translateX(-50%);transition:opacity 160ms ease-out}}
html[data-focus-mode="keyboard"] .toast.toast-warning{transition:none;transform:translateX(-50%)}
:root {
  --wish: #F6A623;
  --wish-bg: #FAF2DF;
  --bg: #F7F5F1;
  --paper: #FFFFFF;
  --ink: #38332F;
  --muted: #8F867E;
  --line: #E9E3DC;
  --control-line: var(--line);
  --coral: #A75D59;
  --coral-dark: #914E4A;
  --pink: #F6EAE7;
  --owned-line: #E7B4BE;
  --action-pink: var(--owned-line);
  --action-pink-hover: #DFA5B1;
  --action-pink-ink: #633F49;
  --action-pink-soft: #FCF0F3;
  --owned-bg: #FEFAFB;
  --sage: #E8EDE3;
  --blue: #E6EDF0;
  --radius: 20px;
  --control-radius: 14px;
  --shadow: 0 4px 16px rgba(60, 45, 35, 0.04);
  --focus-ring: 0 0 0 3px rgba(167, 93, 89, 0.18);
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:96px}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,textarea,dialog,[tabindex]{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{cursor:not-allowed;opacity:.35}a{color:inherit;text-decoration:none}button,input,select,a{outline-offset:4px}:focus{outline:none}dialog:focus{outline:none}:where(html:not([data-focus-mode="pointer"])) :where(button,a[href],input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--coral);outline-offset:4px}button,select{touch-action:manipulation}img{max-width:100%;display:block}svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[data-icon]{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center}[hidden]{display:none!important}h1,h2,h3,p{margin:0}button{transition:background .16s,color .16s,box-shadow .16s,transform .16s}button:active{transform:translateY(1px)}.skip-link{position:fixed;top:-60px;left:20px;background:var(--ink);color:white;z-index:100;padding:12px}.skip-link:focus{top:8px}.site-header{height:82px;background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;backdrop-filter:none}.header-inner{max-width:1400px;margin:auto;height:100%;padding:0 48px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:11px;align-items:center;font-size:21px;font-weight:750;letter-spacing:1px;white-space:nowrap}.brand-icon{width:43px;height:43px;color:#665a50;background:#f4e1d8;border-radius:14px;display:grid;place-items:center}.brand-icon svg{width:35px;height:35px;stroke:none;fill:currentColor}.brand-light{font-weight:450;margin-left:5px}.brand-dot{font-size:17px;color:var(--coral);margin-left:7px}.header-actions{display:flex;align-items:center;gap:23px}.save-state{color:var(--muted);font-size:12px;display:flex;gap:7px;align-items:center}.save-state>span{background:#93a28a;width:6px;height:6px;border-radius:50%}.header-collection{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:white}.header-collection svg{width:17px;height:17px;color:var(--coral)}.count-badge{min-width:21px;background:var(--pink);border-radius:6px;color:var(--coral-dark);font-size:11px;padding:0 5px}.icon-button{width:40px;height:40px;border-radius:var(--control-radius);display:grid;place-items:center;color:var(--muted)}@media(hover:hover) and (pointer:fine){.icon-button:hover{background:var(--paper);color:var(--ink)}}.menu-anchor{position:relative}.more-menu{position:absolute;right:0;top:49px;min-width:235px;border:1px solid var(--line);box-shadow:var(--shadow);background:var(--paper);border-radius:var(--radius);padding:8px;z-index:40}.more-menu button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px;border-radius:8px}@media(hover:hover) and (pointer:fine){.more-menu button:hover{background:var(--bg)}}.more-menu p{font-size:11px;color:var(--muted);padding:7px 10px;border-top:1px solid var(--line);margin-top:4px}.page-shell{max-width:1400px;padding:34px 48px 0;margin:auto}.hero{min-height:275px;background:#f0eee6;border-radius:22px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:31px 44px;background-image:radial-gradient(ellipse at 87% 49%,#faf2df 0,transparent 52%)}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:11px;letter-spacing:2.1px;color:#8b806b;margin-bottom:13px;display:flex;align-items:center;gap:7px}.tiny-flower{color:var(--coral);font-size:18px}.hero h1{font-size:35px;font-weight:700;line-height:1.45;letter-spacing:3px}.hero h1>span{color:var(--coral)}.hero-copy>p{font-size:12px;color:#8d877a;letter-spacing:.6px;margin-top:12px}.hero-note{display:flex;align-items:center;gap:7px;font-size:11px;color:#918772;margin-top:20px}.hero-note svg{width:15px;height:15px;color:#b5a075}.hero-note strong{font-weight:600;color:#6d675a}.hero-art{width:53%;height:260px;position:absolute;right:15px;bottom:0}.hero-doll{position:absolute}.hero-doll img{object-fit:contain;mix-blend-mode:multiply;filter:drop-shadow(0 11px 5px #786a4f12)}.doll-chii{width:200px;height:200px;bottom:12px;left:35%;z-index:3;transform:rotate(-6deg)}.doll-hachi{width:177px;height:177px;bottom:38px;left:6%;transform:rotate(-12deg);z-index:2}.doll-usagi{width:183px;height:205px;bottom:28px;right:2%;transform:rotate(11deg);z-index:1}.doll-hachi>span{position:absolute;top:-14px;left:19px;background:#fffcf5;padding:4px 12px;border:1px solid #e6e0d1;border-radius:12px 12px 1px 12px;color:#92836a;font-size:10px;white-space:nowrap;transform:rotate(5deg)}.art-label{position:absolute;bottom:13px;right:22px;z-index:4;background:#fffdf6ed;box-shadow:0 3px 10px #73664d09;border:1px solid #e8e1d1;padding:6px 13px;border-radius:6px;transform:rotate(-5deg);font-size:10px;letter-spacing:1px;color:#8c7f69;display:flex;align-items:center;gap:7px}.art-label svg{width:13px;height:13px;color:var(--coral)}.art-star{position:absolute;color:#b6a377}.star-one{font-size:34px;top:20px;left:36%;transform:rotate(-15deg)}.star-two{font-size:21px;top:59px;right:0}.art-orbit{position:absolute;width:360px;height:190px;left:20%;bottom:21px;border-radius:50%;border:1px dashed #d2c8ac;transform:rotate(-15deg)}.character-nav{margin-top:26px;border-bottom:1px solid var(--line);padding:0 0 18px}.character-tabs{display:flex;align-items:center;justify-content:space-between;gap:5px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#d8d1c5 transparent;padding:5px 3px}.character-tab{flex:0 0 83px;display:flex;flex-direction:column;align-items:center;gap:9px;position:relative;padding:7px 6px 5px;border-radius:15px;font-size:12px;color:#8a847b;white-space:nowrap}@media(hover:hover) and (pointer:fine){.character-tab:hover{background:#efebe5}}.character-tab .avatar{width:58px;height:58px;background:var(--avatar-bg,#ece9e1);border-radius:50%;padding:5px;display:grid;place-items:center;border:2px solid transparent;transition:box-shadow .16s,border-color .16s;position:relative}.character-tab .avatar .avatar-portrait{position:absolute;inset:0;border-radius:inherit;overflow:hidden;background:inherit;isolation:isolate}.character-tab .avatar .avatar-portrait img{position:absolute;left:var(--portrait-x);top:var(--portrait-y);width:var(--portrait-size);height:var(--portrait-size);max-width:none;object-fit:contain;mix-blend-mode:multiply}.character-tab .avatar svg{width:23px;height:23px;stroke-width:1.5}.character-tab.active{color:var(--coral);font-weight:650}.character-tab.active .avatar{background:var(--pink);border-color:#e3c6c0;box-shadow:none}.character-tab.mine-tab .avatar{background:#f3e1dc;color:#b67a70}.catalog{padding-top:29px;scroll-margin-top:100px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.section-kicker{font-size:10px;letter-spacing:1.4px;color:#9b9487;display:block;margin-bottom:6px}.catalog-heading h2{font-size:25px;font-weight:680;letter-spacing:1px;display:flex;align-items:center;gap:11px}.catalog-heading h2>span{font-size:11px;letter-spacing:0;font-weight:500;background:#ebe9e1;color:#8d8678;padding:2px 9px;border-radius:6px}.catalog-heading p{font-size:12px;color:var(--muted);margin-top:6px;letter-spacing:.2px}.secondary-button,.primary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border-radius:var(--control-radius);font-size:12px;font-weight:600;white-space:nowrap}.secondary-button{background:var(--paper);border:1px solid transparent;color:var(--muted)}@media(hover:hover) and (pointer:fine){.secondary-button:hover{background:var(--paper);border-color:var(--line);color:var(--ink)}}.secondary-button svg{width:16px;height:16px}.primary-button{background:var(--action-pink);color:var(--paper)}@media(hover:hover) and (pointer:fine){.primary-button:hover{background:var(--action-pink-hover)}}.danger-button{background:var(--pink);color:var(--coral-dark);border:1px solid transparent}@media(hover:hover) and (pointer:fine){.danger-button:hover{background:#efdbd6}}.filters{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fffdf9;border:1px solid var(--line);border-radius:13px;padding:12px 14px}.filter-controls{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.select-control{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;min-height:40px;background:white;position:relative;padding:0 11px;white-space:nowrap}.control-label{color:#9b9387;font-size:11px;flex-shrink:0}.select-control select{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--ink);font-size:12px;min-width:80px;padding:10px 21px 10px 0;cursor:pointer;max-width:160px}.select-control>span:last-child{pointer-events:none}.select-control>span:last-child svg{width:13px;height:13px}.select-control:has(select)>span:last-child{position:absolute;right:10px}.series-anchor{position:relative}.series-toggle{width:178px;font-size:12px;text-align:left}.series-toggle #series-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.search-control{display:flex;align-items:center;gap:8px;min-width:100px;flex:1;padding:0 7px}.search-control svg{width:16px;height:16px;color:#a59c8d}.search-control input{border:0;background:transparent;outline-offset:1px;width:100%;min-width:0;font-size:12px;padding:10px 0;color:var(--ink)}input::placeholder{color:#aaa397}.group-control{display:flex;align-items:center;gap:10px;white-space:nowrap}.group-control>span{font-size:11px;color:#9b9387}.segmented{display:flex;padding:3px;background:#f0eee8;border:1px solid #eae6de;border-radius:8px}.segmented button{display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 10px;font-size:11px;border-radius:5px;color:#999084;white-space:nowrap}.segmented button svg{width:13px;height:13px}.segmented button.active{background:white;box-shadow:0 1px 4px #4d443716;color:#766959;font-weight:650}.series-popover{position:absolute;top:48px;left:0;width:310px;max-width:calc(100vw - 40px);border:1px solid var(--line);background:white;border-radius:14px;box-shadow:var(--shadow);z-index:25;padding:10px}.series-search-wrap{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--bg);padding:9px 11px;border-radius:8px}.series-search-wrap svg{width:16px;height:16px;color:var(--muted)}.series-search-wrap input{width:100%;min-width:0;border:0;background:transparent;font-size:12px;color:var(--ink)}.series-options{max-height:270px;overflow-y:auto;margin-top:8px;overscroll-behavior:contain}.series-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;text-align:left;border-radius:7px;font-size:12px}@media(hover:hover) and (pointer:fine){.series-option:hover{background:var(--bg)}}.series-option.selected{background:var(--pink);color:var(--coral-dark)}.series-option small{font-size:10px;color:var(--muted);flex-shrink:0}.series-option-empty{font-size:12px;color:var(--muted);padding:25px 10px;text-align:center}.popover-note{font-size:10px;color:#a69d90;border-top:1px solid var(--line);margin-top:8px;padding:8px 4px 0}.result-bar{display:flex;align-items:center;justify-content:space-between;min-height:50px;gap:12px}.result-bar p{font-size:11px;color:#9b9386}.result-bar strong{font-weight:600;color:#746c5f}.text-button{font-size:11px;color:#8f8270;display:inline-flex;gap:5px;align-items:center;padding:7px 1px}@media(hover:hover) and (pointer:fine){.text-button:hover{color:var(--coral-dark)}}.text-button svg{width:13px;height:13px}.active-filters{display:flex;gap:7px;flex-wrap:wrap}.active-filters:not(:empty){padding:0 0 20px}.filter-chip{font-size:11px;background:#efe9df;border-radius:6px;padding:4px 8px;display:flex;gap:7px;align-items:center;color:#85735e}.filter-chip svg{width:11px;height:11px}.catalog-group{margin:6px 0 34px;content-visibility:auto;contain-intrinsic-size:auto 750px}.group-heading{display:flex;align-items:center;gap:9px;margin-bottom:14px}.group-avatar{width:30px;height:30px;object-fit:contain;mix-blend-mode:multiply}.group-heading h3{font-size:16px;font-weight:650;letter-spacing:.5px}.group-heading>.group-number{font-size:10px;color:var(--muted);padding:1px 7px;border:1px solid var(--line);border-radius:5px}.group-line{height:1px;background:var(--line);flex:1;margin-left:5px}.group-caption{font-size:10px;color:#aaa092;margin-left:4px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.product-card{min-width:0;background:var(--paper);border:1px solid transparent;border-radius:var(--radius);overflow:hidden;position:relative;transition:box-shadow .18s,transform .18s,border-color .18s}@media(hover:hover) and (pointer:fine){.product-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:transparent}}.product-image-button{width:100%;display:block;padding:0;text-align:left}.product-image{position:relative;aspect-ratio:1.08;background:#fbfaf7;padding:19px 15px 10px;overflow:hidden;display:grid;place-items:center}.product-image img{width:100%;height:100%;max-height:260px;object-fit:contain;transition:transform .3s}@media(hover:hover) and (pointer:fine){.product-card:hover .product-image img{transform:scale(1.04)}}.product-type{position:absolute;top:10px;left:10px;z-index:1;background:#f1eee7df;border:1px solid var(--line);border-radius:4px;padding:1px 5px;font-size:9px;color:var(--muted);max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collect-button,.product-info-button{position:absolute;right:2px;width:44px;height:44px;border-radius:50%;color:var(--muted);display:grid;place-items:center;z-index:2}.collect-button{top:2px}.product-info-button{bottom:0}.collect-button::before,.product-info-button::before{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--paper)}.collect-button svg,.product-info-button svg{position:relative;width:20px;height:20px;stroke-width:1.6}.collect-button svg{width:17px;height:17px}@media(hover:hover) and (pointer:fine){.collect-button:hover,.product-info-button:hover{color:var(--coral)}}.collect-button.owned::before{background:var(--pink)}@media(hover:hover) and (pointer:fine){.collect-button:hover::before,.product-info-button:hover::before{background:var(--pink)}}.collect-button.owned{color:var(--coral)}.collect-button.owned svg{fill:currentColor}.product-meta .product-character{padding-right:32px}.product-card.owned{border-color:transparent}.product-meta{padding:13px 13px 14px}.product-name{font-size:12px;font-weight:600;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-character{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);margin-top:6px}.character-dot{width:5px;height:5px;border-radius:50%;background:var(--dot,#ccbfb0)}.site-footer{padding:28px 0 34px;text-align:center;border-top:1px solid var(--line);margin-top:24px}.footer-flower{color:#c1ab87;font-size:22px}.site-footer p{font-size:12px;letter-spacing:1px;color:#928675;margin-top:6px}.site-footer>span:last-child{display:block;color:#b0a897;font-size:10px;margin-top:7px}.empty-state{padding:64px 20px 70px;text-align:center;border:1px dashed #e3dbcf;border-radius:16px;background:#fdfbf6;margin:9px 0 30px}.empty-icon{margin:0 auto 18px;width:72px;height:72px;border-radius:50%;background:var(--pink);color:#c0897e;display:grid;place-items:center}.empty-icon svg{width:29px;height:29px;stroke-width:1.3}.empty-state h3{font-size:20px;letter-spacing:1px;font-weight:600}.empty-state p{font-size:12px;color:var(--muted);margin:11px auto 22px;max-width:310px;line-height:1.9}.skeleton-grid>div{height:240px;border-radius:13px;background:linear-gradient(110deg,#edeae3 8%,#f6f4ee 18%,#edeae3 33%);background-size:250% 100%;animation:shimmer 1.5s linear infinite}.loading-label{padding:24px;color:var(--muted);font-size:12px}@keyframes shimmer{to{background-position:-250% 0}}
dialog{position:fixed;top:var(--dialog-top,0px);bottom:calc(100% - var(--dialog-top,0px) - var(--dialog-height,100dvh));margin-block:auto;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:0;box-shadow:0 12px 40px rgba(60,45,35,.10);max-height:calc(var(--dialog-height,100dvh) - 44px);overflow:auto;background:var(--paper)}dialog::backdrop{background:#38332f40}body:has(dialog[open]){overflow:hidden}.panel-dialog{width:490px;max-width:calc(100vw - 32px);padding:28px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:22px;letter-spacing:1px;font-weight:650}.dialog-description{font-size:12px;line-height:1.9;color:var(--muted);margin:15px 0 20px}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.dialog-footer .primary-button{min-width:90px}.data-summary{display:flex;gap:13px;align-items:center;background:var(--pink);border:1px solid transparent;border-radius:var(--control-radius);padding:15px;margin:22px 0 16px;color:var(--coral-dark)}.data-summary>[data-icon]{width:38px;height:38px;border-radius:50%;background:#fff7f2}.data-summary strong{font-size:15px;display:block}.data-summary div>span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.data-action{display:flex;gap:13px;align-items:center;width:100%;padding:15px 4px;border-bottom:1px solid var(--line);text-align:left}.data-action>[data-icon]:first-child{color:var(--muted)}.data-action>span:nth-child(2){flex:1}.data-action strong{font-size:13px;font-weight:600;display:block}.data-action small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.data-action>[data-icon]:last-child{color:var(--muted)}.data-message{font-size:11px;color:var(--muted);margin:12px 0}.data-message.error{color:#ae5b4d}.danger-zone{border-top:1px dashed #dfcfc5;margin-top:30px;padding-top:20px;display:flex;align-items:center;gap:15px}.danger-zone strong{font-size:12px;font-weight:600}.danger-zone p{font-size:10px;color:var(--muted);margin-top:5px}.danger-zone .danger-button{margin-left:auto;font-size:11px;min-height:36px;padding:7px 11px}.compact-dialog{text-align:center;width:390px;padding:30px}.warning-icon{display:grid;margin:0 auto 20px;width:54px;height:54px;border-radius:50%;background:var(--pink);color:var(--coral)}.warning-icon svg{width:25px;height:25px}.compact-dialog h2{font-size:20px;font-weight:650}.compact-dialog>p{font-size:12px;color:var(--muted);line-height:1.9;margin:14px 0 24px}.confirm-actions{display:flex;justify-content:center;gap:10px}.detail-dialog{width:790px;max-width:calc(100vw - 32px)}.detail-layout{display:grid;grid-template-columns:1fr 1fr;position:relative}.detail-close{position:absolute;right:12px;top:12px;z-index:3;background:#fffdf9de}.detail-visual{background:#fff;min-height:390px;display:grid;place-items:center;padding:38px}.detail-visual img{width:100%;max-height:340px;object-fit:contain}.detail-info{padding:48px 30px 30px;display:flex;flex-direction:column;align-items:flex-start}.detail-eyebrow{display:flex;gap:7px;font-size:10px;margin-bottom:14px}.detail-eyebrow span{background:var(--bg);padding:3px 9px;border-radius:6px;color:var(--muted)}.detail-eyebrow span+span{background:var(--bg);color:var(--muted)}.detail-info h2{font-size:25px;line-height:1.5;font-weight:650;letter-spacing:.8px}.detail-subtitle{font-size:11px;color:#a09585;margin-top:10px}.detail-info dl{width:100%;display:grid;grid-template-columns:54px 1fr;gap:12px 14px;font-size:11px;margin:25px 0}.detail-info dt{color:var(--muted)}.detail-info dd{margin:0;overflow-wrap:anywhere}.detail-info .primary-button{width:100%;margin-top:auto;min-height:44px}.detail-info .primary-button svg{width:17px;height:17px}.detail-info .primary-button.is-owned{background:var(--pink);color:var(--coral-dark)}.detail-info .primary-button.is-owned svg{fill:currentColor}.detail-link{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px;margin:14px auto 0}.detail-link svg{width:12px;height:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#514b41;color:white;border:1px solid #6b6252;border-radius:12px;box-shadow:0 7px 35px #3b352127;display:flex;align-items:center;gap:10px;padding:13px 18px;font-size:12px;width:max-content;max-width:calc(100vw - 32px)}.toast>[data-icon]{color:#dbc7a7}.toast svg{width:15px;height:15px}.toast button{color:#f0d3a6;font-size:12px;border-left:1px solid #ffffff30;padding-left:11px;margin-left:4px}.image-fallback{font-size:11px;color:#b4a58f;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;min-height:100px}.image-fallback svg{width:32px;height:32px;stroke-width:1}.noscript{text-align:center;padding:40px}
@media(min-width:1450px){.hero-art{right:50px;width:54%}.doll-chii{left:36%}.doll-hachi{left:10%}.doll-usagi{right:7%}.hero{min-height:290px}.hero-art{height:280px}.doll-chii{width:218px;height:218px}.doll-hachi{width:195px;height:195px}.doll-usagi{width:205px;height:224px}}
@media(max-width:1200px){.header-inner{padding:0 32px}.page-shell{padding:27px 32px 0}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.character-tab{flex-basis:74px;font-size:11px}.character-tab .avatar{width:51px;height:51px}.hero{padding:30px;min-height:260px}.hero h1{font-size:32px}.hero-art{width:51%;right:9px}.doll-chii{width:173px;height:173px;left:31%;bottom:25px}.doll-hachi{width:154px;height:154px;left:0;bottom:48px}.doll-usagi{width:160px;height:184px;right:0;bottom:41px}.art-orbit{width:280px;left:12%}.art-label{right:20px;bottom:21px}.filters{gap:12px}.filter-controls{gap:8px}.series-toggle{width:155px}.segmented button{padding:6px 8px}.group-control{gap:7px}.select-control{gap:9px}.group-caption{display:none}}
@media(max-width:1000px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.character-tabs{justify-content:flex-start;gap:10px}.character-tab{flex-basis:69px}.hero-art{width:49%}.hero h1{font-size:30px;letter-spacing:2px}.doll-hachi{width:135px;height:135px;left:-4%;bottom:52px}.doll-chii{width:160px;height:160px;left:27%;bottom:30px}.doll-usagi{width:145px;height:165px;right:-4%;bottom:46px}.doll-hachi>span{font-size:9px;left:5px;top:-25px}.art-star.star-one{top:37px;left:45%}.filters{flex-wrap:wrap;gap:12px}.filter-controls{flex-basis:100%}.group-control{justify-content:flex-end;width:100%}.search-control{padding-left:15px}.filters{padding:12px}.group-control>span{margin-right:2px}.hero-copy>p{font-size:11px}.save-state{display:none}}
@media(max-width:700px){.site-header{height:68px}.header-inner{padding:0 20px}.brand{font-size:17px;gap:8px;letter-spacing:.5px}.brand-icon{width:35px;height:35px;border-radius:11px}.brand-icon svg{width:30px;height:30px}.brand-light{margin-left:3px}.brand-dot{display:none}.header-actions{gap:8px}.header-collection{padding:7px 9px;gap:5px;font-size:11px}.header-collection>span:nth-child(2){display:none}.header-collection svg{width:16px;height:16px}.icon-button{width:34px;height:34px}.page-shell{padding:20px 20px 0}.hero{min-height:225px;border-radius:17px;padding:24px}.hero h1{font-size:26px;letter-spacing:1.5px;line-height:1.5}.eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:9px}.tiny-flower{font-size:14px}.hero-copy>p{font-size:10px;max-width:172px;line-height:1.8;margin-top:10px}.hero-note{font-size:9px;margin-top:14px;gap:5px}.hero-note svg{width:12px;height:12px}.hero-art{width:47%;height:216px;right:0;bottom:0}.doll-chii{width:122px;height:122px;left:8%;bottom:14px}.doll-hachi{width:105px;height:105px;left:4%;bottom:95px;transform:rotate(-15deg)}.doll-usagi{width:105px;height:126px;right:-7%;bottom:67px;transform:rotate(13deg)}.doll-hachi>span{display:none}.art-orbit{width:155px;height:150px;left:0;bottom:31px;transform:rotate(20deg)}.art-label{display:none}.star-one{font-size:24px;top:12px;left:57%!important}.star-two{font-size:15px;top:158px;right:7%}.character-nav{margin:18px -20px 0;padding:0 20px 13px;border-bottom:1px solid var(--line)}.character-tabs{gap:9px;padding:6px 3px;scrollbar-width:none}.character-tab{flex-basis:63px;font-size:11px;gap:7px;padding:7px 5px 4px}.character-tab .avatar{width:48px;height:48px}.character-tab .avatar svg{width:21px;height:21px}.catalog{padding-top:24px;scroll-margin-top:85px}.catalog-heading{margin-bottom:19px;align-items:flex-start}.section-kicker{font-size:9px;letter-spacing:1px}.catalog-heading h2{font-size:22px;gap:8px}.catalog-heading h2>span{font-size:10px;padding:2px 7px}.catalog-heading p{font-size:11px;max-width:250px;line-height:1.8;margin-top:5px}.catalog-heading>.secondary-button{font-size:10px;gap:5px;padding:7px 10px;min-height:36px;margin-top:15px}.catalog-heading>.secondary-button svg{width:13px;height:13px}.filters{padding:12px;gap:11px;border-radius:12px}.filter-controls{flex-wrap:wrap;gap:9px}.filter-controls>.select-control{width:calc(50% - 5px)}.select-control select{width:100%;min-width:0;max-width:none;font-size:11px}.series-anchor{width:calc(50% - 5px)}.series-toggle{width:100%;gap:7px;font-size:11px;padding:0 9px}.control-label{font-size:10px}.select-control{gap:7px;min-height:42px}.series-popover{left:auto;right:0;width:290px}.search-control{flex-basis:100%;border:1px solid var(--line);background:white;border-radius:8px;padding:0 10px;min-height:40px}.search-control input{font-size:11px}.group-control{border-top:1px solid var(--line);padding-top:10px;justify-content:space-between}.group-control>span{font-size:10px}.segmented button{font-size:10px;padding:6px 12px}.result-bar{min-height:48px}.result-bar p{font-size:10px}.text-button{font-size:10px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.group-heading h3{font-size:15px}.group-heading{gap:7px;margin-bottom:12px}.group-avatar{width:27px;height:27px}.catalog-group{margin-bottom:27px}.product-card{border-radius:10px}.product-image{padding:22px 10px 8px;aspect-ratio:1}.product-type{font-size:8px;top:8px;left:7px;padding:1px 4px;max-width:55%}.product-meta{padding:10px}.product-name{font-size:11px}.product-character{font-size:9px;margin-top:5px}.site-footer{margin-top:15px}.toast{font-size:11px;padding:12px 14px;bottom:16px}.detail-layout{grid-template-columns:1fr}.detail-visual{min-height:240px;padding:25px;height:260px}.detail-visual img{height:100%;max-height:220px}.detail-info{padding:24px}.detail-info h2{font-size:23px}.detail-info dl{margin:22px 0}.detail-info .primary-button{margin-top:5px}.panel-dialog{padding:23px}.dialog-heading h2{font-size:20px}.danger-zone{gap:10px}.danger-zone p{font-size:10px;max-width:185px}.data-action small{font-size:10px}.empty-state{padding:45px 18px}.empty-state h3{font-size:18px}}
@media(max-width:480px){.hero{padding:21px 19px}.hero h1{font-size:24px}.hero-copy>p{max-width:151px;font-size:9px}.hero-note{font-size:8px}.hero-art{width:47%;right:-1px}.doll-chii{left:0;bottom:15px;width:113px;height:113px}.doll-hachi{width:94px;height:94px;bottom:105px;left:3%}.doll-usagi{width:94px;height:111px;right:-10%;bottom:75px}.art-star.star-one{top:18px;font-size:20px}.art-orbit{width:133px;height:140px;bottom:42px}.hero{min-height:220px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-image{aspect-ratio:1.05;padding:23px 15px 9px}.product-meta{padding:12px}.product-name{font-size:12px}.product-character{font-size:10px}.product-type{font-size:9px;top:11px;left:10px}.brand{font-size:16px}.header-inner{padding:0 17px}.header-actions{gap:5px}.page-shell{padding:17px 17px 0}.character-nav{margin-left:-17px;margin-right:-17px;padding-left:17px;padding-right:17px}.catalog-heading p{max-width:205px}.catalog-heading>.secondary-button{font-size:9px;padding:7px 8px}.catalog-heading>.secondary-button svg{display:none}.confirm-actions{gap:8px}.confirm-actions button{font-size:11px}.compact-dialog{padding:25px 22px}.detail-dialog{max-height:calc(var(--dialog-height,100dvh) - 30px)}}
/* Compact catalog navigation and controls. */
.more-menu{width:202px;min-width:0;max-width:calc(100vw - 34px);box-shadow:0 12px 36px rgba(60,45,35,.10)}
#more-menu>button{min-height:44px;padding:10px 12px;border-radius:12px;gap:12px;font-size:14px;font-weight:500;line-height:22px;color:var(--ink)}
#more-menu>button>[data-icon],#more-menu>button>svg{width:20px;height:20px;flex:0 0 20px;color:inherit}
#more-menu>button svg{width:20px;height:20px;stroke-width:1.6;color:inherit}
#more-menu #open-account{align-items:flex-start}
#more-menu #open-account>[data-icon]{margin-top:1px}
.settings-dialog{width:420px}
.settings-dialog .dialog-description{margin:12px 0 16px}
.progress-types{min-width:0;border:0;padding:0;margin:20px 0 0}
.progress-types legend{padding:0;margin-bottom:8px;font-size:12px;color:var(--muted)}
.progress-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.progress-type-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;cursor:pointer;border-bottom:1px solid var(--line);font-size:13px}
.progress-type-option input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--coral);cursor:pointer}
.settings-note{font-size:11px;color:var(--muted);line-height:1.8;margin-top:16px}
.settings-footer{display:flex;justify-content:flex-end;margin-top:18px}
.settings-footer .primary-button{min-width:88px}
.guide-dialog{width:520px}
.guide-dialog .dialog-description{margin:10px 0 16px}
.guide-example{margin:0 0 12px;padding:13px 16px;border-radius:12px;background:var(--pink);color:var(--coral-dark);font-size:14px;line-height:1.8}
.guide-topic{border-bottom:1px solid var(--line)}
.guide-topic summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 0;list-style:none;cursor:pointer;font-size:14px;font-weight:600}
.guide-topic summary::-webkit-details-marker{display:none}
.guide-topic summary>[data-icon]{display:flex;flex:none;color:var(--muted)}
.guide-topic summary svg{width:18px;height:18px}
.guide-topic[open] summary svg{transform:rotate(180deg)}
.guide-copy,.guide-options{margin:0;padding:0 0 16px;font-size:13px;line-height:1.9}
.guide-copy p{margin:0}
.guide-copy p+p{margin-top:10px}
.guide-options>div+div{margin-top:12px}
.guide-options dt{font-weight:600;color:var(--coral-dark)}
.guide-options dd{margin:2px 0 0;color:var(--muted)}
.guide-footer{display:flex;justify-content:flex-end;margin-top:20px}
.guide-footer .primary-button{min-width:88px;min-height:44px}
.guide-link{display:block;min-height:32px;margin-top:4px;padding:4px 0;color:var(--coral-dark);text-decoration:underline;text-underline-offset:3px;font-size:12px}
.menu-divider{height:1px;background:var(--line);margin:6px 12px}
.site-header{height:auto;background:var(--bg)}
.header-inner{gap:16px;align-items:center}
.header-inner .character-nav{flex:1;min-width:0;margin:0;border:0;padding:8px 0}
.header-inner .character-tabs{justify-content:flex-start;gap:12px;padding:5px 3px}
.character-tab{flex-basis:70px;gap:5px;padding:4px 5px;font-size:12px;color:var(--muted);line-height:1.4}
.character-tab .avatar{width:48px;height:48px;border:1px solid transparent}
.character-tab .avatar .collection-ring{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);overflow:visible;fill:none;stroke-width:3;pointer-events:none}
.collection-ring-track{stroke:var(--line)}
.collection-ring-fill{stroke:var(--coral);stroke-linecap:round}

.character-tab.active .avatar{background:var(--pink);border:1px solid #e3c6c0;box-shadow:none}
.character-tab.mine-tab .avatar{background:var(--paper);color:var(--coral)}
.character-tab.mine-tab .avatar svg{fill:currentColor}
.character-tab.mine-tab.active .avatar{background:var(--pink);color:var(--coral)}
.header-actions{flex-shrink:0;gap:0}
.header-actions .icon-button{width:44px;height:44px}
.header-actions{align-self:flex-start;padding-top:17px}
.header-actions #more-button{width:48px;height:48px;border:0;border-radius:0;background:transparent;color:var(--muted)}
.header-actions #more-button[aria-expanded="true"]{color:var(--coral)}@media(hover:hover) and (pointer:fine){.header-actions #more-button:hover{background:transparent;color:var(--coral)}}
.header-actions #more-button:active{transform:scale(.96)}
.more-menu{top:calc(100% + 8px)}
.page-shell{padding-top:16px}
.catalog{padding-top:0;scroll-margin-top:0}
.catalog-heading{min-height:44px;gap:12px;align-items:center;margin-bottom:16px}
.catalog-heading h1{font-size:24px;font-weight:650;letter-spacing:.5px;line-height:1.35}
.catalog-heading>.secondary-button{min-height:44px;margin:0;font-size:12px;padding:8px 12px}
.catalog-heading>.secondary-button svg{display:block;width:16px;height:16px}
.catalog-heading{margin-bottom:10px}
.filter-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 8px;background:var(--paper);color:var(--muted);border-radius:11px;font-size:12px;line-height:1.4;white-space:nowrap;box-shadow:var(--shadow)}
.filter-toggle[aria-expanded="true"],.filter-toggle:has(.filter-count:not([hidden])){color:var(--coral)}
@media(hover:hover) and (pointer:fine){.filter-toggle:hover{background:var(--paper)}}
.filter-toggle svg{width:14px;height:14px}
.filter-toggle-chevron{transition:transform .16s}
.filter-toggle[aria-expanded="true"] .filter-toggle-chevron{transform:rotate(180deg)}
.filter-count{min-width:17px;padding:0 3px;background:var(--pink);color:var(--coral-dark);border-radius:5px;font-size:11px;text-align:center}
.filters{display:block;padding:0;border:0;background:none;border-radius:0}
.filter-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;min-width:0}
.filter-options{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:8px;min-width:0}
.search-control,.select-control{min-width:0;height:36px;min-height:36px;border:1px solid transparent;border-radius:11px;background:var(--paper);padding:0 12px;box-shadow:var(--shadow)}
.search-control{gap:9px}
.search-control svg{width:16px;height:16px;color:var(--muted)}
.search-control input{height:100%;font-size:16px;padding:0;line-height:1.4}
.search-control input:focus-visible,.series-search-wrap input:focus-visible{outline:0}
input::placeholder{color:var(--muted);opacity:1}
:where(html:not([data-focus-mode="pointer"])) .search-control:focus-within,:where(html:not([data-focus-mode="pointer"])) .select-control:focus-within,:where(html:not([data-focus-mode="pointer"])) .series-search-wrap:focus-within{border-color:var(--coral);box-shadow:var(--focus-ring)}
.search-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}
.search-filter-row .search-control{height:44px;min-height:44px;border-color:var(--line);border-radius:var(--control-radius);box-shadow:none}
:where(html:not([data-focus-mode="pointer"])) .search-filter-row .search-control:focus-within{border-color:var(--coral);box-shadow:var(--focus-ring)}
.search-filter-row .filter-toggle{min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--control-radius);box-shadow:none}
.search-filter-row .filter-toggle[aria-expanded="true"]{background:var(--pink)}
.select-control select{width:100%;max-width:none;min-width:0;height:34px;min-height:0;font-size:16px;padding:4px 22px 4px 0;text-overflow:ellipsis}
.filter-options>.select-control{padding-right:10px;padding-left:10px}
.series-anchor{min-width:0;width:auto}
.series-toggle{width:100%;gap:8px;justify-content:space-between;font-size:16px;text-align:left}
.series-toggle #series-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-control>span:last-child svg{width:15px;height:15px;color:var(--muted)}
.series-popover{top:42px;left:auto;right:0;width:280px;max-width:calc(100vw - 34px);border-color:var(--line);border-radius:var(--radius)}
.series-search-wrap{border-color:transparent;border-radius:var(--control-radius);min-height:44px}
.series-search-wrap input{font-size:16px}
.series-option{min-height:44px;font-size:13px;line-height:1.5}
.series-option small{font-size:11px;color:var(--muted)}
.series-option.selected{font-weight:650;color:var(--coral-dark)}
.result-bar{min-height:44px;gap:8px;margin:8px 0 12px;align-items:center}
.result-bar p{min-width:0;font-size:12px;line-height:1.5;color:var(--muted)}
.result-bar strong{font-weight:700;color:var(--ink)}
.segmented{flex-shrink:0;border-color:transparent;padding:4px;gap:2px;background:var(--paper);border-radius:var(--control-radius)}
.segmented button{min-height:36px;gap:5px;padding:7px 11px;border:1px solid transparent;font-size:12px;line-height:1.4;color:var(--muted);border-radius:10px}
.segmented button svg{width:15px;height:15px}
.segmented button.active{border-color:transparent;background:var(--pink);box-shadow:none;color:var(--coral);font-weight:650}
@media(hover:hover) and (pointer:fine){.segmented button:not(.active):hover{background:var(--bg);color:var(--ink)}}
.filter-summary{display:flex;align-items:flex-start;gap:10px}
.filter-summary:has(.active-filters:empty){display:none}
.active-filters{flex:1;min-width:0;gap:7px}
.active-filters:not(:empty){padding:0 0 14px}
.filter-chip{max-width:100%;min-height:36px;border:1px solid transparent;background:var(--pink);color:var(--coral-dark);font-size:12px;padding:6px 9px;text-align:left;overflow-wrap:anywhere}
.filter-chip svg{flex-shrink:0;width:13px;height:13px}
.text-button{font-size:12px;color:var(--muted);min-height:36px;white-space:nowrap}
.catalog-group{content-visibility:visible;contain-intrinsic-size:none}
#catalog-content.has-card-size .product-card{content-visibility:auto;contain-intrinsic-block-size:auto var(--card-height)}
#catalog-content .catalog-group:first-child .product-card:first-child{content-visibility:visible}
.group-heading>.group-number{font-size:11px;color:var(--muted);border-color:transparent;background:var(--paper)}
.group-caption{color:var(--muted)}
.product-card{border-color:transparent;border-radius:var(--radius);isolation:isolate;transition:box-shadow .18s,transform .18s}
.product-card.owned{border-color:#E295A0;outline:2px solid #E295A0;outline-offset:-2px}
/* 圖片與文字共用卡片底色，收藏時整張同步切換。 */
/* 圖片維持完整比例，不再保留舊角色列補出的額外高度。 */
.product-image{display:block;aspect-ratio:1.08;box-sizing:border-box;padding:0;background:transparent}
.product-image img{position:absolute;inset:10px 6px 3px;width:calc(100% - 12px);height:calc(100% - 13px);max-height:none;object-fit:contain}
.product-image img:not([src]){visibility:hidden}
.product-image .image-fallback{position:absolute;inset:10px 6px 3px;min-height:0;overflow:hidden}
.product-meta{padding:6px 48px 7px 10px}
.product-name{margin:0;color:var(--ink)}
.product-image-button:focus-visible{outline-offset:-3px}
.series-toggle[aria-expanded="true"]{border-color:var(--line)}
.product-type{background:var(--bg);color:var(--muted);border-color:transparent;border-radius:6px}

.empty-state{padding:24px 20px;margin:0 0 24px;border:0;border-radius:var(--radius);background:var(--paper);box-shadow:var(--shadow)}
.empty-icon{width:40px;height:40px;margin-bottom:10px;background:var(--bg);color:var(--muted)}
.empty-icon svg{width:21px;height:21px;stroke-width:1.5}
.empty-state h3{font-size:18px;font-weight:600;letter-spacing:.5px}
.empty-state p{font-size:13px;margin:6px auto 0;max-width:320px;color:var(--muted);line-height:1.8}
.empty-state .primary-button{margin-top:18px}


html{scroll-padding-top:118px}
@media(max-width:1000px){
  .header-inner .character-tabs{gap:8px}
  .filter-controls{grid-template-columns:minmax(0,1fr);gap:6px}
  .filter-options{gap:6px}
  .filter-options>.select-control,.series-anchor{width:auto}
}
@media(max-width:700px){
  .site-header{height:auto}
  .header-inner{padding:0 17px;gap:8px}
  .header-inner .character-nav{padding:6px 0;margin:0}
  .header-inner .character-tabs{gap:5px}
  .character-tab{flex-basis:60px;padding:4px 3px;gap:4px}
  .character-tab .avatar{width:44px;height:44px}
  .header-actions{padding-top:15px}
  .header-actions #more-button{width:44px;height:44px}

  .page-shell{padding:12px 17px 0}
  .catalog-heading h1{font-size:22px}
  .catalog-heading>.secondary-button{min-height:44px;font-size:12px;padding:8px 10px}
  .filter-controls{gap:6px}
  .result-bar{margin:8px 0 12px}
  .segmented button{padding:7px 9px}
  .product-grid{gap:10px 6px}
  .product-card{border-radius:12px}
  .product-image{aspect-ratio:1;padding:0}
  .product-image img{inset:10px 4px 3px;width:calc(100% - 8px);height:calc(100% - 13px)}
  .product-image .image-fallback{inset:10px 4px 3px}
  .product-type{top:8px;left:8px;font-size:8px;padding:1px 3px;max-width:calc(100% - 34px);border-radius:4px}
  .collect-button{top:0;right:0;width:34px;height:34px}
  .collect-button::before{inset:4px}
  .collect-button svg{width:15px;height:15px}
  .product-info-button{right:0;bottom:0;width:30px;height:32px}
  .product-info-button::before{inset:5px}
  .product-info-button svg{width:16px;height:16px}
  .product-meta{padding:4px 32px 5px 6px}
  .product-name{font-size:11px}
  .image-fallback{font-size:8px;gap:3px;text-align:center}
  .image-fallback svg{width:18px;height:18px}
  .empty-state{padding:24px 18px}
  .empty-state h3{font-size:18px}
  html{scroll-padding-top:108px}
}
@media(max-width:360px){
  .segmented button{padding:7px 8px;gap:4px}
  .segmented button svg{display:none}
  .result-bar p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.product-card:hover,.product-card:hover img{transform:none}}

/* The divider holds the toggle, leaving the character row free for portraits. */
.header-inner .character-nav{position:static;display:block;padding-bottom:8px}
.header-inner .character-tabs{position:relative;min-width:0;scrollbar-width:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.character-tabs::-webkit-scrollbar{display:none}
.character-tabs img{-webkit-user-drag:none}
/* 觸控按壓底色只在按住時顯示，放開立即清除；滑鼠移入效果限定滑鼠裝置。 */
.character-tab{transition-property:color,box-shadow,transform}
.character-tab:active{background:#efebe5}
/* 焦點外框保留在按鈕內，避免被可左右滑動的角色列裁切。 */
.character-tab:focus-visible{outline-offset:-2px}
.character-toggle{position:absolute;left:50%;bottom:-22px;width:64px;height:44px;border-radius:22px;color:var(--muted);transform:translateX(-50%);z-index:2;background:transparent}
.character-toggle::before{content:"";position:absolute;inset:10px 6px;border:1px solid var(--line);border-radius:16px;background:var(--bg)}
@media(hover:hover) and (pointer:fine){.character-toggle:hover{background:transparent;color:var(--coral)}}
@media(hover:hover) and (pointer:fine){.character-toggle:hover::before{background:var(--pink)}}
.character-toggle:active{transform:translateX(-50%) translateY(1px)}
.character-toggle>[data-icon]{position:relative}
.character-toggle svg{transition:transform .16s ease-out}
.character-toggle[aria-expanded="true"]{color:var(--coral)}
.character-toggle[aria-expanded="true"]::before{background:var(--pink);border-color:#E3C6C0}
.character-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.character-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:4px 55px 4px 3px}
.character-picker-title{font-size:13px;font-weight:650;color:var(--ink);white-space:nowrap}
.character-sort-hint{color:var(--muted);font-size:12px;line-height:1.5;text-align:right}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.header-inner:has(.character-nav.is-expanded){align-items:flex-start;gap:0}
.header-inner .character-nav.is-expanded{padding-top:6px}
.header-inner:has(.character-nav.is-expanded) .header-actions{position:absolute;right:max(48px,calc((100vw - 1400px)/2 + 48px));top:10px;margin:0;padding-top:0}
.header-inner .character-nav.is-expanded .character-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));align-items:start;gap:12px 8px;max-height:calc(100dvh - 124px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px 3px 12px}
.character-nav.is-expanded .character-tab{width:100%;min-width:0;justify-content:flex-start;cursor:grab;touch-action:pan-y}
.character-nav.is-expanded .mine-tab,.character-nav.is-expanded .wish-tab,.character-nav.is-expanded .all-tab{cursor:pointer}
.character-tabs.is-sorting{cursor:grabbing;scroll-behavior:auto}
.character-tab.is-drag-source{opacity:.25;background:var(--pink);outline:1px dashed #CFAAA4;outline-offset:-2px}
.character-drag-preview{position:fixed!important;z-index:110;pointer-events:none;margin:0;min-width:0;background:var(--paper);color:var(--ink);box-shadow:0 8px 24px #5A3B3026;outline:1px solid #E3C6C0;transition:none;cursor:grabbing;will-change:transform}
.character-drag-preview .avatar{width:48px;height:48px}
.page-shell{padding-top:12px}
@media(max-width:1200px){.header-inner:has(.character-nav.is-expanded) .header-actions{right:32px}}
@media(max-width:700px){
  .header-inner .character-nav{padding-bottom:8px}
  .header-inner .character-tabs{gap:4px}
  .character-tab{flex-basis:55px}
  .header-inner:has(.character-nav.is-expanded) .header-actions{right:17px}
  .header-inner .character-nav.is-expanded .character-tabs{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:10px 5px}
  .character-nav.is-expanded .character-tab{font-size:11px;min-height:72px}
  .character-sort-hint{font-size:11px}
  .character-drag-preview{font-size:11px}
  .character-drag-preview .avatar{width:44px;height:44px}
}
@media(max-width:360px){.character-tab{flex-basis:52px}}

/* 名稱最多兩行；資訊按鈕對齊最後一行，星星疊在圖片左上角。 */
.product-card{display:flex;flex-direction:column}
.product-visual{position:relative;flex-shrink:0}
.product-image-button{flex-shrink:0;background:transparent;transition:none}
.product-image-button:active{transform:none}
.product-meta{display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:end;gap:2px;padding:8px 8px 10px}
.product-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.5;height:auto;max-height:3em;font-weight:600}
.collect-button{width:44px;height:44px;top:0;right:0}
.collect-button::before,.wish-button::before{content:none}
.collect-button svg,.wish-button svg{width:18px;height:18px;stroke-width:1.6}
/* 星星輪廓較內縮，放大後與愛心同寬，並維持相近的實際線條粗細。 */
.wish-button svg{width:21px;height:21px;stroke-width:1.4}
.product-meta .product-info-button{position:relative;inset:auto;width:22px;height:19.5px;padding:0;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.product-meta .product-info-button::before{inset:0;background:transparent}
/* 擴大可點範圍，讓緊湊的圖示仍容易用手指操作。 */
.product-meta .product-info-button::after{content:"";position:absolute;width:44px;height:44px;left:50%;top:50%;transform:translate(-50%,-50%)}
.product-meta .product-info-button svg{width:16px;height:16px;stroke-width:1.5;opacity:.85;position:relative}
.wish-button{position:absolute;left:0;top:0;z-index:2;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
@media(hover:hover) and (pointer:fine){.wish-button:hover{color:var(--wish)}}
.wish-button.wished{color:var(--wish)}
.wish-button.wished svg{fill:currentColor}
.product-sale-ribbon{position:absolute;top:0;left:0;z-index:1;width:72px;height:72px;overflow:hidden;pointer-events:none}
.product-sale-ribbon span{position:absolute;top:15px;left:-26px;width:112px;padding:3px 0;background:#C64246;color:#fff;text-align:center;transform:rotate(-45deg);font-size:8px;font-weight:750;line-height:12px;letter-spacing:.7px}
.product-card.is-selling .wish-button{top:44px}
.product-card.wished{border-color:#F7C04A;outline:2px solid #F7C04A;outline-offset:-2px}
.character-tab.wish-tab .avatar{background:var(--paper);color:var(--wish)}
.character-tab.wish-tab .avatar svg{fill:currentColor}
.character-tab.wish-tab.active{color:var(--wish)}
.character-tab.wish-tab.active .avatar{background:var(--wish-bg);border-color:#F7C04A}
.character-tab.all-tab .avatar{background:var(--paper);padding:3px}
.character-tab.all-tab.active .avatar{background:var(--pink)}
.all-characters-portrait{display:block;width:100%;height:100%;background:url('./assets/all-characters.png?v=da0e7160a8b12ce6') center/contain no-repeat}
.collection-overview{margin:14px 0 16px}
.summary-context{font-size:11px;color:var(--muted);margin-bottom:8px}
.catalog-summary{display:grid;grid-template-columns:repeat(3,max-content);justify-content:space-between;flex:1 1 165px;min-width:max-content;gap:10px;max-width:300px}
.summary-stat{display:flex;flex-direction:column;gap:3px;min-width:0}
.summary-label{font-size:11px;line-height:1.4;color:var(--muted);white-space:nowrap}
.summary-value{display:flex;align-items:baseline;gap:3px;font-size:11px;color:var(--muted);white-space:nowrap}
.summary-value strong{font-size:16px;line-height:1.35;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.result-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-height:44px}
.collection-overview .segmented{margin-left:auto;gap:1px;padding:3px;border-radius:12px}
.collection-overview .segmented button{min-height:34px;padding:6px 8px;font-size:11px;line-height:1.5;gap:0;border-radius:9px}
.collection-overview .segmented button svg,.collection-overview .segmented button [data-icon]{display:none}
.catalog-group .group-heading{margin-bottom:6px}
.group-target{display:inline-flex;align-items:center;flex-shrink:0;min-height:20px;padding:1px 8px;border-radius:999px;background:var(--pink);color:var(--coral);font-size:11px;line-height:1.5;font-weight:500;white-space:nowrap}
.group-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin-bottom:15px;font-size:12px;color:var(--muted)}
.group-summary>span{white-space:nowrap}
.group-summary>span+span::before{content:'·';display:inline-block;margin:0 9px;color:var(--muted)}
.group-summary strong{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:700px){
  .result-tools{column-gap:24px}
  .catalog-summary{flex-basis:0}
  .group-summary{font-size:11px;margin-bottom:12px}
  .group-summary>span+span::before{margin:0 7px}
}
@media(pointer:coarse){.collection-overview .segmented button{min-height:44px}}
.detail-info h2{overflow-wrap:anywhere}
.detail-visual{position:relative;overflow:hidden;isolation:isolate}
.detail-sale-ribbon{position:absolute;top:0;left:0;width:130px;height:130px;overflow:hidden;pointer-events:none;z-index:1}
.detail-sale-ribbon span{position:absolute;top:28px;left:-43px;width:190px;padding:7px 0;background:#C64246;color:#fff;text-align:center;transform:rotate(-45deg);font-size:13px;font-weight:750;line-height:20px;letter-spacing:1.6px}
.detail-overview{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;width:100%;margin-bottom:18px}
.detail-overview .detail-eyebrow{flex:1;flex-wrap:wrap;align-items:flex-start;margin:0;gap:6px}
.detail-sale{position:relative;flex:0 0 auto;min-width:0;display:flex;align-items:center}
#detail-sale-price-field{position:absolute;right:0;bottom:calc(100% + 12px);z-index:2;width:calc(58px + var(--sale-price-ch,3)*1ch);max-width:min(300px,calc(100vw - 76px));font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.detail-sale label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.detail-sale-money{display:flex;align-items:center;gap:6px;min-height:38px;padding:4px 10px;border:1px solid var(--control-line);border-radius:10px;background:var(--paper);box-shadow:0 3px 12px rgba(60,45,35,.06)}
.detail-sale-money>span{flex:0 0 28px;font-size:12px;color:var(--muted)}
.detail-sale-money input{width:100%;min-width:0;height:28px;padding:0;border:0;outline:none;background:transparent;color:var(--ink);font-size:22px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;line-height:28px}
.detail-sale-money input::placeholder{font-size:14px;font-weight:400;line-height:28px;color:var(--muted)}
.detail-sale-toggle{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:24px;padding:3px 9px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-size:11px;font-weight:600;line-height:16px;color:var(--muted);white-space:nowrap}
.detail-sale-toggle::before{content:"";position:absolute;inset:-10px 0}
.detail-sale-toggle svg{width:15px;height:15px;stroke-width:1.8}
.detail-sale-toggle.is-selling{background:var(--coral);border-color:var(--coral);color:#fff}
.detail-sale-error{position:absolute;right:0;bottom:calc(100% + 6px);width:180px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:11px;line-height:1.5;color:#B9363C;box-shadow:var(--shadow)}
@media(min-width:701px){.detail-info:has(.detail-sale){padding-top:104px}}
@media(hover:hover) and (pointer:fine){.detail-sale-toggle:hover{border-color:var(--coral);color:var(--coral)}.detail-sale-toggle.is-selling:hover{background:var(--coral-dark);color:#fff}}
.detail-own-context{width:100%;margin-top:16px;padding:11px 13px;border:1px solid var(--owned-line);border-radius:12px;background:var(--action-pink-soft)}
.detail-own-context strong{display:block;font-size:14px;font-weight:600;color:var(--action-pink-ink)}
.detail-own-context p{margin-top:3px;font-size:12px;line-height:1.6;color:var(--action-pink-ink)}
.detail-own-context+.detail-collection{margin-top:16px;padding-top:0;border-top:0}
.detail-collection{width:100%;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.detail-info .detail-collection .primary-button{margin-top:0}
.quantity-panel{width:100%}
.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.quantity-row label{font-size:13px;font-weight:500;white-space:nowrap;color:var(--ink)}
.quantity-stepper{display:flex;align-items:center;min-width:0;flex-shrink:0;border:1px solid var(--line);border-radius:10px;background:transparent}
.quantity-stepper button{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;color:var(--ink);border-radius:9px}
@media(hover:hover) and (pointer:fine){.quantity-stepper button:hover{background:var(--bg);color:var(--coral)}}
.quantity-stepper button:active{background:var(--bg)}
.quantity-stepper svg{width:15px;height:15px}
.quantity-stepper input{appearance:textfield;-moz-appearance:textfield;width:calc(4ch + 4px);min-width:0;height:44px;padding:0 2px;border:0;background:transparent;color:var(--ink);text-align:center;font-size:22px;font-weight:500;line-height:44px;font-variant-numeric:tabular-nums;border-radius:4px}
.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.detail-wish-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:10px;padding:10px 12px;border:1px solid #E8D9B9;background:var(--paper);color:var(--wish);border-radius:var(--control-radius);font-size:13px;font-weight:600}
.detail-wish-button.wished{background:var(--wish-bg)}@media(hover:hover) and (pointer:fine){.detail-wish-button:hover{background:var(--wish-bg)}}
.detail-wish-button.wished svg{fill:currentColor}
.detail-wish-button svg{width:18px;height:18px}
.detail-info dl{border-top:1px solid var(--line);padding-top:20px;margin:22px 0 0}
.detail-info .detail-product-facts{row-gap:8px}
.detail-final-label{align-self:center}
.detail-final-value{display:flex;align-items:center;gap:12px;min-width:0}
.detail-final-value>span{flex:1;min-width:0}
.detail-link{flex-shrink:0;margin:0;color:var(--coral);white-space:nowrap}
.collection-record{width:100%;margin-top:22px;border-top:1px solid var(--line);background:var(--paper)}
.record-toggle{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:48px;padding:12px 0;font-size:13px;color:var(--coral)}
.record-toggle svg{width:14px;height:14px}
.record-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.record-content{padding-top:3px}
.collection-record.has-record .record-content{padding-top:16px}
.collection-record [hidden]{display:none!important}
.record-form-heading,.record-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--ink)}
.record-form-heading{margin-bottom:14px;color:var(--ink);font-weight:500}
.record-form-heading>span+span{font-size:12px;color:var(--ink);font-weight:400}
.record-heading-title{display:flex;align-items:center;gap:10px}
.record-help{min-height:36px;padding:6px 0;font-size:12px;font-weight:400;color:var(--coral);white-space:nowrap}
.record-money-field:has(input:disabled){background:var(--bg)}
.record-money-field input:disabled{color:var(--muted)}
.record-rate-label span{display:block;margin-top:2px;font-size:11px;color:var(--muted)}
.record-help-dialog{width:300px;max-width:calc(100% - 40px);padding:22px;border-radius:18px;font-size:13px;line-height:1.7}
.record-help-dialog h2{margin:0 0 19px;font-size:16px;font-weight:500;line-height:1.5}
.record-help-dialog p+p{margin-top:15px}
.record-help-dialog strong{font-weight:500}
.record-help-example{padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.record-help-actions{display:flex;justify-content:flex-end;margin-top:20px}
.record-money-grid,.detail-info .record-amounts>div{display:grid;grid-template-columns:minmax(118px,1fr) minmax(0,156px);align-items:center;gap:10px}
.record-money-grid{width:100%}
.record-money-grid>label,.detail-info .record-amounts dt{font-size:14px;color:var(--ink);padding-left:11px;white-space:nowrap}
.record-money-field,.record-money-grid select{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:7px 10px;background:var(--paper)}
.record-money-field,.detail-info .record-amounts .record-amount-value{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:6px}
.record-symbol{display:block;width:32px;text-align:left;font-size:13px;color:var(--ink)}
.record-money-field input{width:100%;min-width:0;height:28px;padding:0;border:0;background:transparent;font-size:22px;font-weight:500;line-height:28px;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink)}
.record-money-field input::placeholder{font-size:14px;font-weight:400;line-height:28px;color:var(--muted)}
.record-money-grid select{font-family:inherit;font-size:14px;color:var(--ink)}
.record-note-label{display:block;margin:20px 0 8px;font-size:13px;font-weight:500}
#record-note{display:block;resize:none;overflow:hidden;overflow-wrap:anywhere;width:100%;min-height:44px;height:44px;border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:var(--paper);color:var(--ink);font-family:inherit;font-size:16px;line-height:24px}
#record-note::placeholder{font-size:14px;line-height:24px;color:var(--muted)}
:where(html:not([data-focus-mode="pointer"])) .record-money-grid select:focus,:where(html:not([data-focus-mode="pointer"])) #record-note:focus{border-color:var(--action-pink);background:var(--action-pink-soft)}
/* 數字欄位共用同一個圓角外框，焦點只標示在外層。 */
.detail-sale-money,.record-money-field,.quantity-stepper{border:1px solid var(--control-line);border-radius:10px;background:var(--paper);box-shadow:0 3px 12px rgba(60,45,35,.06)}
:where(html:not([data-focus-mode="pointer"])) .detail-sale-money:focus-within,:where(html:not([data-focus-mode="pointer"])) .record-money-field:focus-within,:where(html:not([data-focus-mode="pointer"])) .quantity-stepper:focus-within{border-color:var(--coral);background:var(--paper);box-shadow:var(--focus-ring)}
.detail-sale-money input,.record-money-field input,.quantity-stepper input,
.detail-sale-money input:focus-visible,.record-money-field input:focus-visible,.quantity-stepper input:focus-visible{outline:none;box-shadow:none}
/* 空白時以提示文字的字級排版，避免小字沿用大數字的基準而偏下。 */
.detail-sale-money input:placeholder-shown,.record-money-grid .record-money-field input:placeholder-shown{font-size:16px;font-weight:400}
#record-note:placeholder-shown{font-size:16px}
.record-form-actions,.record-conflict>div{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px}
.record-save,.record-cancel{min-height:44px;border-radius:12px;padding:9px 18px;font-size:14px}
.record-save{background:var(--action-pink);color:#fff;font-weight:500}
.record-cancel{color:var(--muted)}
.record-error,.record-conflict{margin-top:12px;font-size:12px;line-height:1.7;color:var(--coral-dark)}
.record-conflict p{white-space:pre-wrap;overflow-wrap:anywhere}
.record-conflict>div{flex-wrap:wrap}
.record-summary-heading{min-height:36px;margin-top:-4px}
.record-edit{display:flex;align-items:center;gap:5px;min-height:44px;padding-left:12px;font-size:13px;color:var(--coral)}
.record-edit svg{width:14px;height:14px}
.detail-info .record-amounts{display:grid;grid-template-columns:1fr;gap:10px;width:100%;margin:4px 0 0;padding:0;border:0}
.detail-info .record-amounts>div{min-height:44px}
.detail-info .record-amounts .record-amount-value{min-width:0;min-height:44px;margin:0;padding:7px 11px}
.record-number{min-width:0;text-align:right;overflow-wrap:anywhere;font-size:22px;font-weight:500;line-height:1.2;font-variant-numeric:tabular-nums}
.record-summary-rate{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:10px;padding:0 11px;font-size:12px;line-height:1.5;color:var(--ink)}
.record-summary-rate>span{flex-shrink:0}
.record-summary-rate output{min-width:0;text-align:right;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.record-money-grid.has-long-rate:not(.has-long-amount)>.record-rate-label,.record-money-grid.has-long-rate:not(.has-long-amount)>.record-rate-field{grid-column:1/-1}
.record-money-grid.has-long-rate input#record-rate{font-size:18px}
.record-money-grid.has-extra-long-rate>.record-rate-field{grid-template-columns:minmax(0,1fr)}
.record-money-grid.has-extra-long-rate>.record-rate-field .record-symbol{display:none}
.record-money-grid.has-extra-long-rate input#record-rate{font-size:16px}
.record-money-grid.has-long-amount,.detail-info .record-amounts.has-long-amount>div{grid-template-columns:minmax(0,1fr);row-gap:4px;column-gap:6px}
.record-money-grid.has-long-amount>label,.detail-info .record-amounts.has-long-amount dt{grid-column:1/-1;grid-row:1}
.record-money-grid.has-long-amount>.record-money-field{grid-column:1}
.record-money-grid.has-long-amount>.record-money-field:first-of-type{grid-row:2}
.record-money-grid.has-long-amount>.record-money-field:nth-of-type(2){grid-row:4}
.record-money-grid.has-long-amount>#record-currency{grid-column:1/-1;grid-row:3;width:130px;margin-top:10px}
.record-money-grid.has-long-amount>.record-rate-label{grid-row:5;margin-top:10px}
.record-money-grid.has-long-amount>.record-rate-field{grid-row:6}
.detail-info .record-amounts.has-long-amount .record-amount-value{grid-column:1;grid-row:2}
.record-money-grid.has-long-amount input,.detail-info .record-amounts.has-long-amount .record-number{font-size:20px;white-space:nowrap;overflow-wrap:normal}
@media(max-width:330px){
  .record-money-grid.has-extra-long-amount input,.detail-info .record-amounts.has-extra-long-amount .record-number{font-size:18px}
}
.record-note-summary{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.record-note-summary>div{font-size:12px;color:var(--muted)}
.record-note-summary p{margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
.record-note-summary.note-only{margin-top:0;padding-top:0;border:0}
.record-note-summary.note-only p{margin-top:2px}
@media(max-width:380px){.record-money-grid:not(.has-long-amount),.detail-info .record-amounts:not(.has-long-amount)>div{grid-template-columns:minmax(108px,1fr) minmax(0,156px);gap:10px 8px}}
@media(pointer:coarse){.record-help{min-height:44px}}
@media(max-width:700px){
  .product-meta{padding:6px 8px 10px}
  .product-name{font-size:12px}
  .product-meta .product-info-button{height:18px}
  .product-type{max-width:calc(100% - 47px)}
  .detail-info{padding:22px 20px}
  .detail-info h2{font-size:21px}
  .detail-visual{min-height:0;height:210px;padding:22px}
  .detail-visual img{max-height:180px}
  .detail-collection{margin-top:18px}
}
@media(max-width:360px){
  .quantity-row{gap:6px}
}

/* 大螢幕增加每排卡片數，手機延續原有的三欄。 */
@media(min-width:701px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}}
@media(min-width:1000px){.product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1280px){.product-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}}

/* 地區、種類與系列各自篩選。 */
.filter-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr)}
@media(max-width:700px){.filter-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.filter-options>.series-anchor{grid-column:1/-1}}

/* 系列選單固定在開啟位置，選項在視窗內捲動。 */
.series-popover{display:flex;flex-direction:column;top:calc(100% + 6px);max-height:var(--series-menu-space,calc(100dvh - 220px))}
.series-popover.filter-popover{position:fixed;right:auto;z-index:30}
.filter-popover-flat .series-options{margin-top:0}
.filter-menu-anchor{min-width:0}
.filter-menu-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.series-search-wrap{flex-shrink:0}
.series-popover-tools{display:flex;align-items:center;gap:4px}
.series-popover-tools .series-search-wrap{flex:1;min-width:0}
.series-popover-close{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:8px;color:var(--muted)}
.series-popover-close svg{width:16px;height:16px}
.series-options{min-height:0;max-height:440px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.series-all{margin-bottom:4px}
.series-category{border-top:1px solid var(--line)}
.series-category-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px;text-align:left;font-size:13px;line-height:1.5;border-radius:7px;transition:background .16s,color .16s}
.series-category-name{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-weight:600}
.series-category-name svg{width:14px;height:14px;color:var(--coral)}
.series-category-toggle small{flex-shrink:0;color:var(--muted);font-size:11px;white-space:nowrap}
.series-category-toggle>svg{width:15px;height:15px;color:var(--muted);transform:rotate(-90deg)}
.series-category-toggle[aria-expanded="true"]{background:var(--bg)}
.series-category-toggle[aria-expanded="true"]>svg{transform:rotate(0)}
.series-category-toggle.has-selection{color:var(--coral-dark)}
.series-category-options{margin:3px 0 8px 14px;padding-left:5px;border-left:1px solid var(--line)}
.series-subgroup+.series-subgroup{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.series-subgroup-heading{padding:8px 10px 4px;font-size:11px;line-height:1.5;font-weight:600;color:var(--muted)}
.series-option>span{min-width:0;overflow-wrap:anywhere}
.series-option small{white-space:nowrap}
.series-search-heading{padding:10px 10px 4px;font-size:11px;font-weight:600;color:var(--muted)}
.series-unassigned{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
@media(hover:hover) and (pointer:fine){.series-category-toggle:hover{background:var(--bg)}}

/* 畫面外以整區略過排版；只依卡片數量估算高度，不逐張測量商品。 */
#catalog-content.has-card-size .catalog-group{content-visibility:auto;contain-intrinsic-block-size:auto calc(64px + var(--group-rows,1) * (var(--card-height) + var(--grid-row-gap,10px)))}
@media(min-width:701px){#catalog-content{--grid-row-gap:14px}}
@media(min-width:1280px){#catalog-content{--grid-row-gap:16px}}

/* 商品資訊的滑動與背景清單分開，包含手機鍵盤開啟時的頁面位置。 */
dialog{overscroll-behavior:contain}
dialog::backdrop{overflow:hidden;overscroll-behavior:contain}
html.detail-page-locked{min-height:var(--detail-document-height);overflow:hidden;overscroll-behavior:none;scroll-behavior:auto}
html.detail-page-locked body{position:fixed;top:var(--detail-page-top);left:var(--detail-page-left);width:var(--detail-page-width);padding-top:var(--detail-header-height);overflow:hidden}
/* 頂端列保留開啟前的位置，原高度由背景頁留位，不使用跨整頁的大幅位移。 */
html.detail-page-locked .site-header{position:fixed;top:var(--detail-header-top);left:var(--detail-page-left);width:var(--detail-page-width)}
/* 目前清單名稱固定在角色列下方；開啟浮動視窗時保留原本位置。 */
.catalog-heading{position:sticky;top:var(--catalog-heading-top,120px);z-index:24;background:var(--bg);padding:6px 0;margin-bottom:6px}
html.detail-page-locked .catalog-heading{transform:translateY(var(--detail-heading-offset,0px))}
.selling-dialog{width:760px;max-width:calc(100vw - 32px);max-height:calc(var(--dialog-height,100dvh) - 40px);padding:0;overflow-y:auto;isolation:isolate}
.selling-dialog-header{position:sticky;top:0;z-index:3;padding:20px 20px 12px;background:var(--paper);border-bottom:1px solid var(--line)}
.selling-dialog .dialog-heading h2{font-size:20px}
.selling-title-line{display:flex;align-items:center;gap:8px;min-width:0}
.selling-title-line h2{white-space:nowrap}
.selling-info{width:32px;height:32px;flex:0 0 32px;color:var(--muted)}
.selling-info svg{width:18px;height:18px}
.selling-help{width:360px;max-width:calc(100vw - 32px);padding:22px 24px}
.selling-help h2{font-size:18px;font-weight:500;margin:0 0 14px}
.selling-help p{font-size:14px;line-height:1.75}
.selling-help p+p{margin-top:12px}
.selling-help-actions{display:flex;justify-content:flex-end;margin-top:18px}
.selling-help-actions button{min-height:44px}
.selling-count{margin-top:6px;font-size:12px;color:var(--muted)}
#selling-content{padding:16px 20px 20px}
.selling-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.selling-dialog .product-name{display:block;height:auto;max-height:none;overflow:visible;white-space:normal;-webkit-line-clamp:unset;overflow-wrap:anywhere}
.selling-dialog .collect-button,.selling-dialog .wish-button{display:none}
.selling-dialog .empty-state{margin:0;border:0;background:transparent;padding:44px 8px}
@media(max-width:700px){.selling-grid{gap:12px}.selling-dialog-header{padding:16px 16px 10px}#selling-content{padding:14px 14px 18px}}

/* 上方入口維持原有大小；更多共用圓形與下方文字，不加外層底框。 */
.site-header{padding:0;border-bottom:1px solid var(--line);background:var(--bg)}
.header-inner{--nav-avatar:48px;--character-tab-min:70px;position:relative;width:100%;max-width:1400px;height:auto;padding:0 48px;gap:16px;border-radius:0;background:transparent}
.header-inner .character-nav{padding:8px 0}
.header-inner .character-tabs{gap:4px;padding:5px 3px;align-items:flex-start}
.header-inner .character-tab{flex:0 0 70px;padding:4px 5px;gap:5px;border-radius:15px;font-size:12px;line-height:17px}
.header-inner .character-tab .avatar{width:var(--nav-avatar);height:var(--nav-avatar)}
.header-inner .header-actions{position:relative;flex:0 0 70px;align-self:flex-start;margin:0;padding:13px 0 0 10px}
.header-inner .header-actions::before{content:"";position:absolute;left:0;top:17px;width:1px;height:var(--nav-avatar);background:var(--line)}
.header-inner #more-button{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;height:auto;padding:4px 0;border:0;border-radius:15px;background:transparent;color:var(--muted);font-size:12px;line-height:17px;white-space:nowrap}
.more-avatar{position:relative;display:grid;place-items:center;width:var(--nav-avatar);height:var(--nav-avatar);border:1px solid transparent;border-radius:50%;background:var(--paper)}
.more-avatar svg{width:23px;height:23px}
.header-inner #more-button[aria-expanded="true"] .more-avatar{background:var(--pink);border-color:#e3c6c0}
.header-inner #more-button:focus-visible{outline-offset:-2px}
.header-inner #more-button>.notification-dot{top:4px;right:max(0px,calc((100% - var(--nav-avatar))/2))}
.header-inner .more-menu{top:calc(100% + 8px)}
.header-inner:has(.character-nav.is-expanded){align-items:flex-start;gap:0}
.header-inner:has(.character-nav.is-expanded) .header-actions{position:absolute;top:0;right:48px;width:70px;padding-top:13px}
.header-inner .character-picker-heading{min-height:80px;padding:4px 86px 4px 3px}
.header-inner .character-nav.is-expanded .character-tabs{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:12px 8px;max-height:calc(100dvh - 160px);padding:8px 3px 12px}
.header-inner .character-nav.is-expanded .character-tab{min-height:0}
.character-drag-preview .avatar{width:48px;height:48px}
@media(hover:hover) and (pointer:fine){
  .header-inner #more-button:hover .more-avatar{background:var(--pink)}
}
@media(max-width:1200px){
  .header-inner{padding-right:32px;padding-left:32px}
  .header-inner:has(.character-nav.is-expanded) .header-actions{right:32px}
}
@media(max-width:700px){
  .header-inner{--nav-avatar:44px;--character-tab-min:55px;padding:0 17px;gap:8px}
  .header-inner .character-nav{padding:6px 0 8px}
  .header-inner .character-tabs{gap:4px}
  .header-inner .character-tab{flex-basis:55px;min-width:0;padding:4px 0;gap:4px;font-size:12px}
  .header-inner .header-actions{flex-basis:60px;padding-top:11px}
  .header-inner .header-actions::before{top:15px}
  .header-inner #more-button{gap:4px}
  .header-inner:has(.character-nav.is-expanded) .header-actions{right:17px;width:60px;padding-top:11px}
  .header-inner .character-picker-heading{min-height:76px;padding-right:76px}
  .header-inner .character-nav.is-expanded .character-tabs{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:10px 5px;max-height:calc(100dvh - 154px)}
  .header-inner .character-nav.is-expanded .character-tab{font-size:11px}
  .character-drag-preview .avatar{width:44px;height:44px}
}
/* 滑動停下時對齊完整入口，避免分隔線旁露出半個圓形。 */
.header-inner .character-nav:not(.is-expanded) .character-tabs{scroll-snap-type:x mandatory;scroll-padding-inline:3px}
.header-inner .character-nav:not(.is-expanded) .character-tab{flex-basis:var(--character-tab-width,var(--character-tab-min));scroll-snap-align:start}

/* 已確認的圖鑑上方排版與擁有狀態篩選 */
:root{--muted:#82796F;--control-radius:13px}
.header-inner{--nav-avatar:44px;--character-tab-min:58px;padding-inline:32px;gap:10px}
.header-inner .character-nav{padding:7px 0 6px}
.header-inner .character-tabs{padding:5px 3px;gap:4px}
.header-inner .character-tab{padding:3px 0;gap:5px;line-height:17px;border-radius:12px}
.character-tab .avatar .collection-ring{stroke-width:2;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px)}
.character-tab.active{font-weight:650}
.header-inner .header-actions{flex-basis:54px;padding:12px 0 0 7px}
.header-inner .header-actions::before{top:15px}
.header-inner #more-button{gap:5px;padding:3px 0;line-height:17px}
.more-avatar{background:transparent}
.character-toggle{left:50%;right:auto;bottom:-22px;transform:translateX(-50%);width:44px;height:44px;border-radius:12px;background:transparent}
.character-toggle::before{display:block;inset:15px 7px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.character-toggle:active{transform:translateX(-50%) translateY(1px)}
.character-toggle svg{width:13px;height:13px}
.header-inner .header-actions{padding-bottom:0}
.header-inner:has(.character-nav.is-expanded) .header-actions{right:32px;width:54px;padding-top:12px}
.header-inner .character-picker-heading{min-height:70px;padding-right:72px}
.site-header{border-bottom:1px solid #E9E3DC}
.page-shell{max-width:1400px;padding:22px 32px 0}
.catalog{padding-top:0}
.catalog-heading{display:block;position:static;padding:0;min-height:0;margin-bottom:12px;background:transparent;transform:none}
.catalog-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:660px}
.catalog-heading h1{font-size:25px;line-height:1.35;font-weight:700;letter-spacing:.2px;color:var(--ink)}
.catalog-heading .layout-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 4px;max-width:none;margin-top:2px;font-size:15px;line-height:24px;color:#786D61;font-variant-numeric:tabular-nums}
.layout-summary strong{font-size:16px;font-weight:650;color:#51463D}
.summary-slash{margin-inline:-3px}
.summary-dot{margin-inline:5px;color:#B6ADA2}
.filters{margin:0;padding:0;background:none;border:0;box-shadow:none}
.filter-controls{gap:10px}
.search-filter-row{gap:8px}
.search-filter-row .search-control{height:36px;min-height:36px;border-color:#E4DDD5;border-radius:11px;padding-inline:11px;background:#FFF;gap:8px}
.search-filter-row .search-control svg{width:16px;height:16px;color:#978C80}
.search-filter-row .search-control input{font-size:16px;letter-spacing:0;min-width:0}
.search-filter-row .search-control input::placeholder{color:#B7AFA6;opacity:1;font-weight:400}
.search-filter-row .filter-toggle,
:is(.catalog-title-row,.friend-catalog-toolbar) > .filter-menu-anchor > .series-toggle{height:36px;min-height:36px;border-color:#E4DDD5;border-radius:11px;background:var(--paper);color:#756B61}
.search-filter-row .filter-toggle{position:relative;display:grid;place-items:center;width:36px;min-width:36px;padding:0;gap:0}
.filter-toggle [id$="filter-toggle-label"]{display:none}
.filter-toggle .filter-count{position:absolute;top:5px;right:5px;width:5px;height:5px;min-width:0;min-height:0;padding:0;border-radius:50%;background:var(--coral);font-size:0;line-height:0}
.filter-toggle svg{width:17px;height:17px}
.filter-toggle-chevron{display:none}
.filter-options{grid-template-columns:1fr 1fr;gap:8px}
.filter-options .series-anchor{grid-column:1/-1}
.filter-options .select-control{height:44px;min-height:44px;border-color:var(--line);box-shadow:none}
.filter-options select{font-size:14px}
:is(.filter-options,.overview-filters) .series-toggle{height:44px;min-height:44px;padding-inline:10px;border-color:var(--line);box-shadow:none;font-size:14px}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin:8px 0 16px}
.catalog-toolbar:has(.ownership-control[hidden]){display:none}
.catalog:has(.catalog-toolbar .ownership-control[hidden]) > .filters{margin-bottom:14px}
.ownership-control{display:flex;align-items:center;gap:2px;padding:2px;border-radius:10px;background:#EDE8E1;min-width:0}
.ownership-control button{position:relative;flex:1 1 auto;min-height:28px;padding:4px 14px;border-radius:8px;color:#81766C;font-size:13px;line-height:20px;white-space:nowrap;transition:background 130ms ease,color 130ms ease}
.ownership-control button::before{content:"";position:absolute;inset:-8px 0}
.ownership-control button.active{background:#FFF;color:var(--coral-dark);font-weight:650;box-shadow:0 1px 4px #50402A0D}
.ownership-control button:active{transform:none;background:#F6EAE7}
:is(.catalog-title-row,.friend-catalog-toolbar) > .filter-menu-anchor{flex:none}
:is(.catalog-title-row,.friend-catalog-toolbar) > .filter-menu-anchor > .series-toggle{padding-inline:11px;font-size:14px;box-shadow:none}
:is(.catalog-title-row,.friend-catalog-toolbar) > .filter-menu-anchor > .series-toggle:active{background:#F1ECE6}
.result-context{margin:-10px 0 12px;font-size:12px;color:var(--muted);line-height:20px}
.catalog-toolbar:has(.ownership-control[hidden]) + .result-context{margin-top:0}
.filter-summary{align-items:center}
.active-filters:not(:empty){padding-bottom:16px}
.filter-chip{font-size:12px;min-height:36px;background:#F1E6E1}
.catalog-group{margin-bottom:28px}
.catalog-group .group-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0 0 11px}
.catalog-group .group-heading h3{font-size:17px;line-height:26px;font-weight:650;letter-spacing:.2px}
.catalog-scroll-controlled{scrollbar-width:none}
.catalog-scroll-controlled::-webkit-scrollbar{display:none}
.catalog-scroll-thumb,.catalog-scroll-hint{position:fixed;z-index:28;transform:translateY(-50%);user-select:none}
.catalog-scroll-thumb{width:16px;height:44px;padding:0;border-radius:8px;touch-action:none;cursor:grab;transition:none}
.catalog-scroll-thumb::before{content:'';position:absolute;inset:6px 4px;border-radius:999px;background:#A89B91}
.catalog-scroll-thumb:active{transform:translateY(-50%);cursor:grabbing}
.catalog-scroll-thumb.is-dragging::before{background:var(--coral)}
.catalog-scroll-hint{max-width:min(16rem,52vw);padding:8px 13px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--coral-dark);box-shadow:0 3px 14px #51463D1F;font-size:14px;font-weight:650;line-height:1.5;pointer-events:none;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.catalog-series-section{margin-top:16px}
.catalog-series-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:9px;margin-bottom:8px;border-top:1px solid var(--line);color:var(--coral-dark)}
.catalog-series-heading :is(h4,h5,h6){margin:0;font-size:14px;font-weight:650;overflow-wrap:anywhere}
.catalog-series-heading span{flex:none;font-size:12px;color:#796C60}
.catalog-series-section .catalog-series-section>.catalog-series-heading{padding-inline-start:12px}
#catalog-content.has-card-size .catalog-group:has(>.catalog-series-products){content-visibility:visible;contain-intrinsic-block-size:none}
.group-line{display:none}
.group-summary{margin:0 0 0 auto;font-size:12px;line-height:22px;flex:none;color:#8D8175}
.group-summary strong{font-weight:500;color:#796C60}
.group-caption{font-size:11px}
.group-target{min-height:18px;padding:0 6px;font-size:10px;align-self:center}
.product-grid{gap:12px 8px}
.product-card{border-radius:15px}
.product-card.owned{outline-width:2px;outline-offset:-2px;border-color:transparent}
.product-name{font-weight:600}
.privacy-footer{margin-top:30px}
@media(min-width:701px){.search-filter-row{max-width:660px}.catalog-toolbar{max-width:660px}.filter-options{max-width:660px}.ownership-control button{padding-inline:24px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:960px){
  #catalog > .catalog-heading .catalog-title-row{max-width:none}
  #catalog > .filters .filter-controls{
    grid-template-columns:minmax(220px,1.05fr) minmax(0,1fr) auto;
    grid-template-areas:"search options toggle";
    align-items:center;
  }
  #catalog > .filters .filter-controls:has(> #filter-options[hidden]){
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"search toggle";
  }
  #catalog > .filters .search-filter-row{display:contents}
  #catalog > .filters .search-control{grid-area:search;height:44px;min-height:44px}
  #catalog > .filters .filter-toggle{grid-area:toggle;width:44px;height:44px;min-height:44px}
  #catalog > .filters #filter-options{
    grid-area:options;
    max-width:none;
    grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.25fr);
  }
  #catalog > .filters #filter-options .series-anchor{grid-column:auto}
}
@media(min-width:1100px){.product-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){
  .header-inner{--nav-avatar:42px;--character-tab-min:55px;padding-inline:16px;gap:6px}
  .header-inner .character-tab{font-size:11px;gap:5px;line-height:16px}
  .header-inner .character-nav{padding:7px 0 6px}
  .header-inner .header-actions{flex-basis:47px;padding:12px 0 0 5px}
  .header-inner #more-button{font-size:11px;line-height:16px}
  .header-inner .header-actions::before{height:42px}
  .header-inner:has(.character-nav.is-expanded) .header-actions{right:16px;width:47px;padding-top:12px}
  .header-inner .character-nav.is-expanded .character-tabs{grid-template-columns:repeat(auto-fill,minmax(57px,1fr));max-height:calc(100dvh - 155px)}
  .page-shell{padding:20px 16px 0}
  .catalog-heading{margin-bottom:12px}
  .catalog-heading h1{font-size:25px}
  .catalog-toolbar{gap:10px;margin:8px 0 16px}
  .ownership-control{flex:1 1 auto;max-width:254px}
  .ownership-control button{padding-inline:8px;font-size:13px}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 7px}
  .product-card{border-radius:14px}
  .product-image{aspect-ratio:1.03}
  .product-image img{inset:10px 4px 3px;width:calc(100% - 8px);height:calc(100% - 13px)}
  .product-meta{padding:6px 7px 9px 8px;grid-template-columns:minmax(0,1fr) 18px;gap:3px}
  .product-name{font-size:12px;line-height:18px}
  .product-info-button{width:30px;height:34px;bottom:3px;right:0}
  .product-info-button svg{width:15px;height:15px}
  .collect-button{width:36px;height:36px}
  .collect-button svg{width:18px;height:18px}
  .wish-button{width:36px;height:36px}
  .wish-button svg{width:20px;height:20px}
}
@media(max-width:350px){
  .header-inner{--character-tab-min:50px}
  .search-filter-row .search-control{padding-inline:10px;gap:6px}
  .search-filter-row .search-control input{font-size:16px}
  .catalog-toolbar{gap:6px}
  .ownership-control button{padding-inline:5px;font-size:12px}
  .layout-summary{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.ownership-control button{transition:none}}
