/* Binder theme: warm paper, one colour per IP, game switch as binder index tabs, cards in sleeves,
   rarity as sticker labels. Loaded last so removing this file restores the previous look. */
:root{--new:#D7261E;--new-on:#fff;--paper:#EFEAE0;--paper-2:#F8F5EE;--ink:#1F1B16;--ink-2:#5A5348;--rule:#D9D1C0;--ip:#3B3A36;--ip-2:#C9A227;--ip-on:#fff;--ip-2-on:#2B2105;--ip-ink:#3B3A36;--tint:var(--ip);--band:linear-gradient(135deg,#3B3A36,#5A5348);--band-on:#fff;--logo:none}
/* ADR 0028: the official logos (assets/ip-logos/, used unaltered on a white plate) identify each game; the band
   colours are sampled from those logos. --ip: buttons and selected states; --ip-ink: small text on paper.
   Every text pair here measures at or above 4.5:1 (band titles are large text, at or above 3:1). */
body[data-game="pokemon"],[data-ip="pokemon"]{--ip:#C4000F;--ip-ink:#B5000E;--tint:#E50012;--band:linear-gradient(135deg,#9E000B 0%,#C4000F 55%,#E50012 100%);--band-on:#fff;--logo:url(/assets/ip-logos/pokemon.svg)}
body[data-game="onepiece"],[data-ip="onepiece"]{--ip:#1A1A1A;--ip-ink:#1A1A1A;--tint:#1A1A1A;--band:linear-gradient(135deg,#0E0E0E 0%,#1A1A1A 55%,#333 100%);--band-on:#fff;--logo:url(/assets/ip-logos/onepiece.png)}
body[data-game="yugioh"],[data-ip="yugioh"]{--ip:#A3121F;--ip-ink:#A3121F;--tint:#C8102E;--band:linear-gradient(135deg,#7A0A15 0%,#A3121F 55%,#C8102E 100%);--band-on:#fff;--logo:url(/assets/ip-logos/yugioh.png)}
body[data-game="frieren"],body[data-game="weiss-schwarz"],[data-ip="frieren"],[data-ip="weiss-schwarz"]{--ip:#2E4170;--ip-ink:#2E4170;--tint:#2E4170;--band:linear-gradient(135deg,#16233F 0%,#22335A 55%,#2E4170 100%);--band-on:#fff;--logo:url(/assets/ip-logos/weiss-schwarz.png)}
body[data-game="haikyuu"],[data-ip="haikyuu"]{--ip:#A63F07;--ip-ink:#A63F07;--tint:#DF600E;--band:linear-gradient(135deg,#8F3606 0%,#B8480A 55%,#DF600E 100%);--band-on:#fff;--logo:url(/assets/ip-logos/haikyuu.svg)}
body[data-game="dragonball-fw"],[data-ip="dragonball-fw"]{--ip:#0A6670;--ip-ink:#0A6670;--tint:#1596A3;--band:linear-gradient(135deg,#063F47 0%,#0A6670 55%,#1596A3 100%);--band-on:#fff;--logo:url(/assets/ip-logos/dragonball-fw.png)}

body{background:var(--paper);color:var(--ink);font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',system-ui,sans-serif}
.top{background:var(--paper-2);border-bottom:1px solid var(--rule)}
main .section,main .hero{background:transparent}
.card-tools{background:#F3EEE3f2;border:1px solid var(--rule)}
main .section{border-color:var(--rule)}
h1,h2,.title h2,.title b{letter-spacing:-0.02em}

/* Game pages: IP pills become binder index tabs sitting on the coloured band below them. */
body[data-view="game"] .channels{gap:3px;padding:6px 0 0;overflow-x:auto}
body[data-view="game"] .channel{border-radius:7px 7px 0 0;border:1px solid var(--rule);border-bottom:0;background:#E6E0D2;color:var(--ink-2);padding:0 16px;min-height:44px}
body[data-view="game"] .channel b{font-weight:500}
body[data-view="game"] .channel.on b{font-weight:700}
/* Each tab shows its game's official logo (small, on paper); the selected tab is white, taller, and joins the band. */
body[data-view="game"] .channel[data-ip]{position:relative;display:flex;flex:none;align-items:center;gap:8px;background:#E6E0D2;margin-top:6px;transition:margin-top .15s,min-height .15s}
body[data-view="game"] .channel[data-ip] .channel-art{display:block;flex:none;height:22px;width:auto;border:0;border-radius:0;background:none;padding:0;box-shadow:none}
/* Fixed logo box so the tabs do not shift sideways when the logos finish loading. */
body[data-view="game"] .channel[data-ip] .channel-art img{height:22px;width:72px;max-width:72px;max-height:22px;object-fit:contain;padding:0}
body[data-view="game"] .channel[data-ip]:not(.on):hover{margin-top:2px;background:#F1ECE1}
body[data-view="game"] .channel[data-ip].on{margin-top:0;min-height:50px;background:#fff;color:var(--ink);border-color:var(--rule);box-shadow:inset 0 3px 0 var(--ip)}
/* Landing tiles: the official logo on white replaces the unofficial category pictures. */
/* Big enough for two-line logos to stay legible, and centred both ways (the base layout pinned them to the top). */
body[data-view="landing"] .channel[data-ip]{min-width:176px}
body[data-view="landing"] .channel[data-ip] .channel-art{display:flex;align-items:center;justify-content:center;height:84px;padding:10px 8px;box-sizing:border-box;background:#fff}
body[data-view="landing"] .channel[data-ip] .channel-art img{display:block;width:auto;height:auto;max-width:100%;max-height:60px;padding:0;object-fit:contain}
@media(max-width:760px){body[data-view="landing"] .channel[data-ip]{min-width:128px}body[data-view="landing"] .channel[data-ip] .channel-art{height:70px;padding:8px 10px}body[data-view="landing"] .channel[data-ip] .channel-art img{max-height:50px}}
body[data-view="landing"] .channels:empty{min-height:120px}

/* Cards in sleeves: a white outer sleeve and an inner frame around the art. */
.cards .card{background:#fff;border:1px solid #DDD5C4;border-radius:6px;padding:6px 6px 8px;box-shadow:none}
.cards .card .art{border:1px solid #E9E3D6;border-radius:3px;padding:3px;background:#fff}
.cards .card .art img{border-radius:2px}
.cards .card h3{font-weight:700;letter-spacing:-0.01em}
body[data-view="game"] .cards .card .ip-badge{display:none}
/* Most cards still have no public image, so the stand-in stays quiet: paper with a thin IP-colour band. */
.unified-image-fallback{background:#F3EEE3!important;color:var(--ink-2)!important;border:0!important;background-image:none!important;box-shadow:inset 0 6px 0 var(--ip)}
.unified-image-fallback b{font-weight:700;color:var(--ink)!important}
.unified-image-fallback small{color:var(--ink-2)!important}

/* Card number in a geometric face; rarity as a price-sticker label in three tiers. */
.card-no{font-family:'Space Grotesk',sans-serif;font-weight:500;font-variant-numeric:tabular-nums;color:var(--ink-2)}
.card .meta{display:flex;align-items:center;justify-content:space-between;gap:6px}
.card-sep{display:none}
.card-rarity{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:11px;padding:1px 7px 1px 9px;clip-path:polygon(5px 0,100% 0,100% 100%,5px 100%,0 50%);background:#E6E0D2;color:#4A443A;white-space:nowrap}
.card-rarity[data-tier="top"]{background:#C9A227;color:#2B2105}
.card-rarity[data-tier="high"]{background:#B8BCC4;color:#22252A}

/* Fewer pills: square-ish controls in the binder look. */
.view-switch button,.tabs .tab,.chip,.badge{border-radius:6px}

/* Remaining pills in the binder look: squared buttons whose selected state uses the IP colour like the index
   tabs, square status labels, and the buyback rise as a price sticker. The body prefix outranks the
   styles series-navigator.js injects at runtime, which come after this file. */
body .series-group,body .series-sort button,body .load-more,body .brand-showcase-copy button{border-radius:6px}
body .series-group,body .series-sort button{background:var(--paper-2)!important;border:1px solid var(--rule)!important;color:var(--ink-2)!important;box-shadow:none}
body .series-group:hover,body .series-sort button:hover{background:#E6E0D2!important;color:var(--ink)!important}
/* The original chip rules use !important, so the IP colour has to as well. */
body .series-group.on,body .series-sort button.on,body .view-switch button.on{background:var(--ip)!important;border-color:var(--ip)!important;color:var(--ip-on)!important}
.load-more{background:var(--paper-2);border:1px solid var(--ink);color:var(--ink);font-weight:700}
.search{border-radius:8px}
.search input{border-radius:8px 0 0 8px}
.search button{border-radius:0 7px 7px 0}
.hero-trust span,.beta-chip,.coverage-baseline-status,.coverage-status-source,.health-head-status{border-radius:3px}
body .trend-rise{border-radius:0;padding-left:10px;clip-path:polygon(6px 0,100% 0,100% 100%,6px 100%,0 50%);font-family:'Space Grotesk',sans-serif}

/* The whole game page carries its IP colour, not only the band: tinted paper, a coloured rule under the header,
   IP-coloured section marks, buttons, hover sleeves, top-tier stickers and the detail dialog. The landing page
   ("全部遊戲") stays neutral paper. */
body[data-view="game"]{background:color-mix(in srgb,var(--tint) 7%,#F6F2EA)}
body[data-view="game"] .top{border-bottom:4px solid var(--ip);background:color-mix(in srgb,var(--ip) 3%,#FBF9F4)}
body[data-view="game"] .search button{background:var(--ip);color:var(--ip-on)}
body[data-view="game"] .card-tools{background:color-mix(in srgb,var(--ip) 5%,#FBF9F4);border-color:color-mix(in srgb,var(--ip) 22%,var(--rule))}
body[data-view="game"] .section h2{border-left:5px solid var(--ip);padding-left:10px}
body[data-view="game"] .section-kicker{color:var(--ip-ink)}
body[data-view="game"] .title h2:before{background:color-mix(in srgb,var(--ip) 14%,#fff);color:var(--ip-ink)}
body[data-view="game"] .cards .card{border-color:color-mix(in srgb,var(--ip) 18%,#DDD5C4);transition:border-color .15s,box-shadow .15s}
body[data-view="game"] .cards .card:hover{border-color:var(--ip);box-shadow:0 0 0 1px var(--ip)}
body[data-view="game"] .card-rarity[data-tier="top"]{background:var(--ip-2);color:var(--ip-2-on)}
body[data-view="game"] .load-more{border-color:var(--ip);color:var(--ip-ink)}
body[data-view="game"] .load-more:hover{background:var(--ip);color:var(--ip-on)}
body[data-view="game"] .source-link{background:var(--ip);color:var(--ip-on)}
body[data-view="game"] .tab.on{border-bottom-color:var(--ip)}
body[data-view="game"] .dialog{border-top:8px solid var(--ip)}
body[data-view="game"] :focus-visible{outline-color:var(--ip-ink)}
body[data-view="game"] .bottom{border-top:3px solid var(--ip)}
body[data-view="game"] .bottom b{color:var(--ip-ink)}

/* 全部遊戲: brushed metal. A multi-stop silver gradient drifts slowly, a fine vertical grain gives the brushed
   finish, a light band sweeps across like metal turning under a lamp, and embossed rings ripple from the centre.
   The body[data-view] prefix outranks the white landing-tile rule above. Motion uses background-position and
   transform only, and stops under reduced motion. */
body[data-view] .channel[data-ip="all"] .channel-art{position:relative;overflow:hidden;isolation:isolate;border:1px solid #8B9097;background:repeating-linear-gradient(90deg,#ffffff12 0 1px,#00000010 1px 2px,#ffffff00 2px 3px),linear-gradient(115deg,#7E838B 0%,#C9CDD2 14%,#F4F5F7 24%,#A3A8AF 36%,#E2E5E8 50%,#8D9299 63%,#DADDE1 76%,#F7F8F9 86%,#80858C 100%);background-size:auto,250% 100%;animation:cs-metal 9s ease-in-out infinite;box-shadow:inset 0 1px 0 #ffffffb0,inset 0 -1px 0 #00000030}
body[data-view] .channel[data-ip="all"] .channel-art:before{content:"";position:absolute;inset:-20% auto -20% 0;width:45%;z-index:0;pointer-events:none;background:linear-gradient(90deg,#ffffff00,#ffffffd9 50%,#ffffff00);transform:translateX(-160%) skewX(-18deg);animation:cs-sheen 4.2s ease-in-out infinite}
body[data-view] .channel[data-ip="all"] .channel-art:after{content:"";position:absolute;left:50%;top:50%;width:180%;aspect-ratio:1;border-radius:50%;z-index:0;pointer-events:none;background:repeating-radial-gradient(circle,#ffffff00 0 9%,#ffffff70 9.6% 10.4%,#00000026 10.8% 11.6%,#ffffff00 12.2% 18%);transform:translate(-50%,-50%) scale(.35);opacity:0;animation:cs-ripple 5.2s ease-out infinite}
body[data-view] .channel[data-ip="all"] .channel-art img{position:relative;z-index:1;filter:drop-shadow(0 1px 0 #ffffffcc) drop-shadow(0 -1px 0 #00000040)}
@keyframes cs-metal{0%,100%{background-position:0 0,0% 50%}50%{background-position:0 0,100% 50%}}
@keyframes cs-sheen{0%,35%{transform:translateX(-160%) skewX(-18deg)}75%,100%{transform:translateX(320%) skewX(-18deg)}}
@keyframes cs-ripple{0%{transform:translate(-50%,-50%) scale(.35);opacity:0}15%{opacity:1}100%{transform:translate(-50%,-50%) scale(1.15);opacity:0}}
@media(prefers-reduced-motion:reduce){body[data-view] .channel[data-ip="all"] .channel-art,body[data-view] .channel[data-ip="all"] .channel-art:before,body[data-view] .channel[data-ip="all"] .channel-art:after{animation:none}body[data-view] .channel[data-ip="all"] .channel-art:before,body[data-view] .channel[data-ip="all"] .channel-art:after{opacity:0}}

body[data-view] .channel[data-ip="all"] .channel-art{border-color:#2B2F35;background:repeating-linear-gradient(90deg,#ffffff14 0 1px,#00000010 1px 2px,#ffffff00 2px 3px),linear-gradient(115deg,#2A2E34 0%,#565C64 14%,#A9AFB7 24%,#3B4048 36%,#7D848D 50%,#2F343A 63%,#6B727B 76%,#B9BFC6 86%,#2A2E34 100%);background-size:auto,250% 100%}
body[data-view] .channel[data-ip="all"] .channel-art img{filter:invert(1) drop-shadow(0 1px 0 #00000080)}

/* Finish: gunmetal. The game tiles share it as a bezel: each official logo stays unaltered
   on a white plate set into a gunmetal frame, and the sheen passes across the six tiles one after another. */
body[data-view="landing"] .channel[data-ip]:not([data-ip="all"]) .channel-art{position:relative;overflow:hidden;isolation:isolate;padding:7px;border:1px solid #2B2F35;background:repeating-linear-gradient(90deg,#ffffff14 0 1px,#00000010 1px 2px,#ffffff00 2px 3px),linear-gradient(115deg,#2A2E34 0%,#565C64 14%,#A9AFB7 24%,#3B4048 36%,#7D848D 50%,#2F343A 63%,#6B727B 76%,#B9BFC6 86%,#2A2E34 100%);background-size:auto,250% 100%;box-shadow:inset 0 1px 0 #ffffff55,inset 0 -1px 0 #00000055;animation:cs-metal 9s ease-in-out infinite}
body[data-view="landing"] .channel[data-ip]:not([data-ip="all"]) .channel-art img{position:relative;z-index:1;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;padding:6px 8px;border-radius:5px;background:#fff;object-fit:contain;box-shadow:0 1px 2px #00000066}
body[data-view="landing"] .channel[data-ip]:not([data-ip="all"]) .channel-art:before{content:"";position:absolute;inset:-20% auto -20% 0;width:45%;z-index:2;pointer-events:none;background:linear-gradient(90deg,#ffffff00,#ffffff59 50%,#ffffff00);transform:translateX(-160%) skewX(-18deg);animation:cs-sheen 4.2s ease-in-out infinite}
body[data-view="landing"] .channel[data-ip]:nth-child(2) .channel-art:before{animation-delay:.35s}
body[data-view="landing"] .channel[data-ip]:nth-child(3) .channel-art:before{animation-delay:.7s}
body[data-view="landing"] .channel[data-ip]:nth-child(4) .channel-art:before{animation-delay:1.05s}
body[data-view="landing"] .channel[data-ip]:nth-child(5) .channel-art:before{animation-delay:1.4s}
body[data-view="landing"] .channel[data-ip]:nth-child(6) .channel-art:before{animation-delay:1.75s}
body[data-view="landing"] .channel[data-ip]:nth-child(7) .channel-art:before{animation-delay:2.1s}
body[data-view="landing"] .channel[data-ip]:nth-child(1) .channel-art:before{animation-delay:0s}
@media(prefers-reduced-motion:reduce){body[data-view="landing"] .channel[data-ip] .channel-art,body[data-view="landing"] .channel[data-ip] .channel-art:before{animation:none}body[data-view="landing"] .channel[data-ip] .channel-art:before{opacity:0}}

/* Game pages in gunmetal. Unselected tabs are dark brushed metal with white names (the darkest stops keep white
   text at or above 4.5:1) and their logo on a small white plate; the selected tab stays white so the current game
   reads at a glance. */
body[data-view="game"] .channel[data-ip]:not(.on){color:#fff;border-color:#1E2126;background:repeating-linear-gradient(90deg,#ffffff0d 0 1px,#0000000d 1px 2px,#ffffff00 2px 3px),linear-gradient(115deg,#24282D 0%,#3A3F46 22%,#4B5159 38%,#2C3036 55%,#41464E 78%,#24282D 100%);background-size:auto,250% 100%;box-shadow:inset 0 1px 0 #ffffff33;animation:cs-metal 9s ease-in-out infinite}
body[data-view="game"] .channel[data-ip]:not(.on):hover{background:repeating-linear-gradient(90deg,#ffffff0d 0 1px,#0000000d 1px 2px,#ffffff00 2px 3px),linear-gradient(115deg,#2E3238 0%,#454A52 22%,#565C64 38%,#363A41 55%,#4B5159 78%,#2E3238 100%);background-size:auto,250% 100%}
body[data-view="game"] .channel[data-ip]:not(.on) .channel-art img{background:#fff;border-radius:3px;padding:2px 4px;box-sizing:content-box}
@media(prefers-reduced-motion:reduce){body[data-view="game"] .channel[data-ip]{animation:none}}

/* Card grid in gunmetal: each card sits in a dark brushed-metal frame (the darkest stops keep white names and the
   light-grey numbers at or above 4.5:1), its art inside a thin light bezel. Stickers and action buttons keep their
   own light fills. The frame sheen is static here so a full grid of cards stays calm. */
.cards .card{border-color:#1E2126;background:repeating-linear-gradient(90deg,#ffffff0d 0 1px,#0000000d 1px 2px,#ffffff00 2px 3px),linear-gradient(160deg,#3A3F46 0%,#24282D 30%,#2E3238 60%,#41464E 85%,#24282D 100%);box-shadow:inset 0 1px 0 #ffffff33,0 1px 3px #0000004d;color:#fff}
.cards .card .art{border:1px solid #B9BFC6;background:#F3F4F5;box-shadow:0 0 0 1px #1E2126}
.cards .card h3,.cards .card .card-list-main h3{color:#fff}
.cards .card .meta,.cards .card .card-no,.cards .card .card-list-main .meta{color:#C9CDD2}
.cards .card .badge:not(.ip-badge){background:#ffffff1f;color:#E9ECEF;border-color:#ffffff33}
.cards .card .card-price{color:#F7F8F9}
.cards .card:hover{border-color:#8D9299;box-shadow:inset 0 1px 0 #ffffff4d,0 4px 10px #00000059}
/* The action controls keep light fills, so they need dark text back (the card frame sets white). */
.cards .card .card-actions,.cards .card .card-actions button,.cards .card .watchlist-inline span{color:var(--ink)}

/* Series band (series-band.js): replaces the coloured title band with the kapaipai-style entry row — text
   tabs over square series tiles. The selected IP tab joins the white band. */
body[data-view="game"] #gameContext{display:none}
.series-band{margin:0;padding:6px 14px 14px;background:#fff;border:1px solid var(--rule);border-radius:0 10px 10px 10px}
.series-band-tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--rule)}
.series-band-tabs::-webkit-scrollbar{display:none}
.series-band-tabs button{flex:0 0 auto;min-width:0;padding:10px 12px 9px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--ink-2);font:500 15px/1.2 'Noto Sans TC',sans-serif;white-space:nowrap;cursor:pointer}
.series-band-tabs button:hover{color:var(--ink)}
.series-band-tabs button.on{color:var(--ink);font-weight:900;border-bottom-color:var(--ip)}
.series-band-rail{display:flex;gap:12px;overflow-x:auto;padding:12px 2px 4px;scroll-snap-type:x proximity}
.band-tile{flex:0 0 132px;width:132px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:0;border:0;background:none;color:var(--ink);text-align:center;cursor:pointer;scroll-snap-align:start}
.band-tile-art{position:relative;display:grid;place-items:center;width:132px;height:132px;overflow:hidden;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px var(--rule)}
.band-tile-art img{width:100%;height:100%;object-fit:contain;padding:10px;box-sizing:border-box;transition:transform .18s}
.band-tile:hover .band-tile-art img{transform:scale(1.05)}
/* No series image: the set code on the IP colour, so an empty grey box never stands in for art. */
.band-tile-art.is-type{background:var(--band);box-shadow:none}
.band-tile-art.is-type:before{content:attr(data-code);max-width:90%;color:var(--band-on);font:700 26px/1.1 'Space Grotesk','Noto Sans TC',sans-serif;letter-spacing:.01em;overflow-wrap:anywhere}
.band-tile-flag{position:absolute;left:6px;top:6px;padding:2px 6px;border-radius:4px;background:#1F1B16;color:#fff;font-size:11px;font-weight:700}
/* NEW marks a set released in the last 90 days, on its own tile (the separate text-only NEW tile is gone). */
.band-tile-flag.is-new{background:var(--new);color:var(--new-on);letter-spacing:.06em}
.band-tile-name{width:100%;margin-top:6px;font-size:17px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.band-tile-code{width:100%;color:#666;font:500 15px/1.2 'Space Grotesk',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.band-tile[aria-current] .band-tile-art{box-shadow:0 0 0 3px var(--ip)}
.band-tile[aria-current] .band-tile-name{color:var(--ip-ink)}
.selected-product-art .band-tile-art{width:100%;height:100%;min-height:120px}
.band-tile:focus-visible{outline:3px solid var(--ip);outline-offset:3px;border-radius:8px}
.series-band-empty{margin:8px 0;color:#666}
@media(max-width:760px){.series-band{padding:4px 10px 10px}.band-tile{flex-basis:104px;width:104px}.band-tile-art{width:104px;height:104px}.band-tile-name{font-size:15px}.band-tile-code{font-size:13px}.band-tile-art.is-type:before{font-size:21px}}
/* The band now carries the 商品圖鑑 categories and the region switch, so the old section and select step aside. */
body[data-view="game"] section.section:has(> #series),body[data-view="game"] .browse-regions{display:none}
.series-band-head{display:flex;align-items:center;gap:10px;padding:6px 0 2px}
.series-band-regions{display:flex;gap:6px;overflow-x:auto}
.series-band-regions button{flex:0 0 auto;min-width:0;min-height:44px;padding:0 14px;border:1px solid var(--rule);border-radius:6px;background:#fff;color:var(--ink-2);font:700 14px/1 'Noto Sans TC',sans-serif;cursor:pointer}
.series-band-regions button:hover{border-color:var(--ip);color:var(--ink)}
.series-band-regions button.on{background:var(--ip);border-color:var(--ip);color:var(--ip-on)}
.series-band-elsewhere{align-items:center;margin:8px 0}
/* Keyboard focus on the band's region switches and tabs, like the tiles. */
.series-band-regions button:focus-visible,.series-band-tabs button:focus-visible{outline:3px solid var(--ip);outline-offset:2px}
.series-band-note{flex:0 0 auto;color:var(--ink-2);font:600 13px/1.4 'Noto Sans TC',sans-serif}
.series-band-tabs button.starts-eras{margin-left:10px;position:relative}
.series-band-tabs button.starts-eras:before{content:"";position:absolute;left:-7px;top:11px;bottom:12px;width:1px;background:var(--rule)}
/* Products without a code show their name instead (wrapped, smaller). */
.band-tile-art.is-text:before{font:700 15px/1.3 'Noto Sans TC',sans-serif;padding:0 10px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
/* 詳細頁「收錄版本」：其他卡的版本可點擊切換卡圖（同作品層的 S／極／極P 等）。 */
.version-switch{display:block;width:100%;min-height:44px;text-align:left;color:inherit;font:inherit;border:1px solid transparent;cursor:pointer}
.version-switch:hover{border-color:var(--ip,#888)}
.version-switch:focus-visible{outline:3px solid var(--ip,#333);outline-offset:2px}

/* 日本官方卡表未列、保留待確認的卡（M6a 104–135 等） */
.badge.listing-badge,.cards .card .badge.listing-badge{background:#FFF4D6;color:#6B4A00;border:1px solid #E8C770}
.listing-note{color:#6B4A00}
/* 官方商品頁已證實、但官方卡片搜尋沒收的卡（S5I／S6H／S6K 的 SA 版 VMAX） */
.badge.listing-badge.listing-badge-confirmed,.cards .card .badge.listing-badge.listing-badge-confirmed{background:#E4F2E7;color:#1F4D2B;border:1px solid #9CC8A6}
.listing-note.listing-note-confirmed{color:#1F4D2B}

/* ADR 0044 (findability first). The old yellow --y (focus rings, selected marks) becomes the IP ink, so every ring and mark is dark on paper. */
:root{--y:var(--ip-ink)}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Header navigation: three real buttons (搜尋 / 圖鑑 / 我的收藏); the same three sit in the phone bottom bar. */
.nav{display:flex;gap:2px;margin:auto}
.nav button{padding:0 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--ink-2);font:700 14px/1 'Noto Sans TC',sans-serif;white-space:nowrap;cursor:pointer;transition:color .15s,border-color .15s}
.nav button:hover{color:var(--ink);border-bottom-color:var(--ip-ink)}
.nav button:focus-visible{outline:3px solid var(--ip-ink);outline-offset:-3px}
.bottom button{color:var(--ink-2)}
.bottom button:focus-visible{outline:3px solid var(--ip-ink);outline-offset:-3px}
/* The search box shows keyboard focus (it only had a caret before). */
.search input:focus-visible{outline:none}
.search:focus-within{box-shadow:0 0 0 3px var(--paper-2),0 0 0 6px var(--ink-2)}

/* Views: landing = search first; game = band + cards; about = data status (coverage, health, guidance moved out of the landing). */
.about-intro,.cards-mode[hidden]{display:none}
/* 首頁主視覺有大搜尋框所以頂欄的收起來；但搜尋結果（#cardsSection.has-results）仍是 data-view=landing，頂欄要有搜尋框才能改搜 */
body[data-view="landing"]:where(:not(:has(#cardsSection.has-results))) .top .search{display:none}
body[data-view="landing"] #cardsSection:not(.has-results),body[data-view="landing"] section.section:has(> #series),body[data-view="about"] section.section:has(> #series),body[data-view="privacy"] section.section:has(> #series){display:none}
body:not([data-view="about"]) .beta-guidance,body:not([data-view="about"]) #coverageStatus,body:not([data-view="about"]) #catalogHealth,body:not([data-view="about"]) .brand-showcase,body:not([data-view="about"]) #status{display:none}
body[data-view="about"] .hero,body[data-view="about"] #cardsSection,body[data-view="about"] #trendsSection,body[data-view="about"] #selectedProduct,body[data-view="privacy"] .hero,body[data-view="privacy"] #cardsSection,body[data-view="privacy"] #trendsSection,body[data-view="privacy"] #selectedProduct{display:none}
body[data-view="about"] .about-intro{display:grid;gap:6px;max-width:760px;padding:22px 0 4px}
body[data-view="about"] .about-intro h2{margin:0;font-size:clamp(26px,3vw,38px);line-height:1.1}
body[data-view="about"] .about-intro p{margin:0;color:var(--ink-2)}
body:not([data-view="landing"]) .home-search,body:not([data-view="landing"]) .home-examples,body:not([data-view="landing"]) #homeLatest{display:none}
.game-context:empty{display:none}
body[data-view="about"] .hero-eyebrow{color:var(--ink-2)}
/* privacy view (?view=privacy): privacy text + data-sources table; hidden in every other view */
body:not([data-view="privacy"]) .info-page{display:none}
.info-page{max-width:960px;padding:22px 0 8px}
.info-page h2{margin:0;font-size:clamp(24px,3vw,34px);line-height:1.15}
.info-page h3{margin:24px 0 8px;font-size:18px}
.info-page p,.info-page li{color:var(--ink-2);line-height:1.7}
.info-page ul,.info-page ol{margin:6px 0;padding-left:1.4em}
.info-page a{color:var(--ip-ink,var(--ink))}
.source-table-wrap{max-width:100%;margin:14px 0;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.source-table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px;line-height:1.6}
.source-table caption{padding:10px 12px;text-align:left}
.source-table th,.source-table td{padding:10px 12px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.source-table thead th{border-top:0;color:var(--ink-2);white-space:nowrap}
.source-table tbody th{width:9em;white-space:normal}

/* Landing first screen: one big search box, tappable examples, the game tiles, then the newest series. */
.home-search{display:flex;max-width:780px;margin:14px 0 8px;border:2px solid var(--ink);border-radius:8px;background:#fff;overflow:hidden}
.home-search input{flex:1;min-width:0;padding:0 18px;border:0;background:transparent;color:var(--ink);font-size:18px}
.home-search input:focus-visible{outline:none}
.home-search:focus-within{box-shadow:0 0 0 3px var(--paper),0 0 0 6px var(--ink-2)}
.home-search button{min-width:96px;border:0;border-radius:0;background:var(--ink);color:#fff;font:700 16px/1 'Noto Sans TC',sans-serif;cursor:pointer}
.home-search button:focus-visible{outline:3px solid var(--paper);outline-offset:-6px}
.home-examples{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 4px}
.home-examples>span{color:var(--ink-2);font-size:13px;font-weight:700}
.home-examples button{padding:0 14px;border:1px solid var(--rule);border-radius:6px;background:var(--paper-2);color:var(--ink);font:500 14px/1 'Noto Sans TC','Space Grotesk',sans-serif;cursor:pointer;transition:border-color .15s,background .15s}
.home-examples button:hover{border-color:var(--ink);background:#fff}
.home-latest{margin:10px 0 0}
.home-latest h2{margin:0;font-size:18px}
.home-latest .series-band-rail{padding-top:8px}
body[data-view="landing"] .hero-intro h1{font-size:clamp(26px,3vw,38px)}
.showcase-link:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* Search results: heading, applied-condition chips, the 全部卡片 switch, empty state. */
.cards-mode{align-self:center;padding:0 16px;border:1px solid var(--ink);border-radius:6px;background:var(--paper-2);color:var(--ink);font:700 14px/1 'Noto Sans TC',sans-serif;white-space:nowrap;cursor:pointer}
.cards-mode:hover{background:#fff}
body[data-view="game"] .cards-mode{border-color:var(--ip);color:var(--ip-ink)}
#cardsTitle:focus{outline:none}
#cardsTitle:focus-visible{outline:3px solid var(--ip-ink);outline-offset:4px}
.applied-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 2px}
.applied-label{color:var(--ink-2);font-size:13px;font-weight:700}
.applied-chip{display:inline-flex;align-items:center;gap:6px;padding:0 14px;border:1px solid var(--ink-2);border-radius:6px;background:var(--paper-2);color:var(--ink);font:700 14px/1 'Space Grotesk','Noto Sans TC',sans-serif}
button.applied-chip{cursor:pointer}
button.applied-chip:hover{border-color:var(--ink);background:#fff}
.search-empty{gap:10px;border:1px solid var(--rule);background:var(--paper-2);color:var(--ink)}
.search-empty b{font-size:17px}
.search-empty p{margin:0}
.search-empty ul{margin:0;padding-left:20px;text-align:left;color:var(--ink-2)}
.suggest-chip{padding:0 14px;border:1px solid var(--ink);border-radius:6px;background:#fff;color:var(--ink);font:700 14px/1 'Noto Sans TC',sans-serif;cursor:pointer}
.cards-state{border-color:var(--rule)}
.cards-state.loading{background:transparent}
.cards-state.error{background:#FBEDEB;border-color:#B3261E}
/* Loading sleeves: grey blocks in the card shape instead of an empty white frame (grid cells like real cards). */
.sk-card{padding:6px 6px 8px;border:1px solid #DDD5C4;border-radius:6px;background:#fff}
.sk-art{aspect-ratio:5/7;border-radius:3px;background:#E6E0D2}
.sk-card i{display:block;width:80%;height:12px;margin-top:10px;border-radius:3px;background:#E6E0D2}
.sk-card i.short{width:45%}
.sk-art,.sk-card i{animation:cs-skeleton 1.4s ease-in-out infinite}
@keyframes cs-skeleton{0%,100%{opacity:1}50%{opacity:.5}}
@media(prefers-reduced-motion:reduce){.sk-art,.sk-card i{animation:none}}

/* Status notice and retry button in the card palette (the old yellow / pill styles lived in index.html). */
.notice,.notice[data-state="info"],.notice[data-state="empty"]{border-color:var(--rule);background:var(--paper-2);color:var(--ink)}
.notice[data-state="loading"]{border-color:var(--rule);background:#fff}
.notice[data-state="error"]{border-color:#B3261E;background:#FBEDEB}
.notice-retry{border-radius:6px;background:var(--ink);border-color:var(--ink)}
.notice-retry:focus-visible{outline-color:var(--ip-ink)}
.channel.on .channel-art{box-shadow:none}
.selected-product{background:var(--paper-2);border-color:var(--rule)}
.channel-art{background:#fff}
.tabs .tab.on,.tab.on{border-bottom-color:var(--ip-ink)}
@media(max-width:760px){.nav{display:none}}
