
/* Navigation: menu and identity left, search centered, language right. */
.topbar{height:64px;min-height:64px;padding:0 24px;display:grid;grid-template-columns:minmax(260px,1fr) minmax(240px,600px) minmax(120px,1fr);gap:28px;background:#0e1411;border-bottom:0;backdrop-filter:none}
.header-start{display:flex;align-items:center;gap:16px;min-width:0}.topbar .brand{flex-basis:auto;display:block;flex-shrink:0}.brand img{display:block;width:205px;height:36px;object-fit:contain}.header-right{justify-self:end;width:auto;gap:0}.topbar .toolbar-search{width:100%;min-width:0;order:0;margin:0;flex-basis:auto;border-radius:24px;gap:12px;padding:0 18px;max-width:none;background:#0a100c;border-color:#3a463e}.toolbar-search input{height:44px;max-width:none;font-size:15px;color:var(--text)}.toolbar-search svg{width:20px;height:20px}.topbar #filter-open{position:relative;width:44px;height:44px;min-width:44px;border:0;border-radius:50%;padding:10px;background:transparent;flex-shrink:0}.topbar #filter-open:hover,.topbar #filter-open[aria-expanded=true]{background:#27362c}.topbar #filter-open>span[data-i18n]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.topbar #filter-count{position:absolute;right:0;top:0;padding:0 4px;min-width:16px;font-size:10px;line-height:16px;background:var(--up);color:#182416;border-radius:8px}.language{border:0;background:#18231c;border-radius:20px;padding:3px;gap:2px}.language button{border-radius:16px;min-height:36px;padding:4px 12px}.workspace{grid-template-columns:272px minmax(0,1fr)}.sidebar,.demo-banner~.workspace .sidebar{top:64px;height:calc(100vh - 64px);border-right:0;background:var(--bg);padding-top:20px}.sidebar #set-list{height:calc(100vh - 290px)}.set-item{border-radius:10px;min-height:50px;padding:9px 12px;gap:12px}.set-item[aria-current=true]:before{display:none}.all-sets{border:0;background:var(--bg)}.sidebar-head{padding-bottom:8px}.sidebar-head .order{font-size:11px}.set-search{margin:8px 12px}.set-search span{display:none}.set-search input{border-radius:20px;padding:10px 14px}.sidebar .set-match:empty{display:none}.sidebar h2{font-size:14px}.set-year{letter-spacing:0}.heading{margin-bottom:18px}.heading h1{font-size:22px}.heading .stats{background:transparent;border:0;border-radius:0}.heading .stats>div{padding:4px 10px}.heading .stats small{display:none}.heading .stats strong{margin-bottom:0}.board{border:0;background:transparent;border-radius:0}.boardhead{padding:0 0 12px}.boardhead h2{font-size:16px}.scope{margin-bottom:3px}.view-toolbar{padding:0 0 12px;justify-content:flex-start;gap:12px}.view-toggle,.tabs,.currency-toggle{border:0;border-radius:24px;background:#19251d;padding:3px;gap:2px}.view-toggle button,.tabs button{border-radius:20px}.currency-toggle button{border-radius:16px}.results-currency{margin-left:auto}.affiliate-short{margin:0 0 10px;font-size:11px;color:#9aaa9e}.notice{margin:0 0 12px;border-radius:0 6px 6px 0;font-size:12px}.fx-note{margin:0 0 10px}main{padding-top:24px}.board{scroll-margin-top:80px}#heatmap-section{padding:0 0 18px}.tablewrap{border-radius:10px;overflow:hidden}th{border-top:0}.tabs button,.view-toggle button{width:44px;height:44px}.multi-hint{display:none}#filter-drawer{background:var(--bg)}
@media(max-width:1200px){.topbar{grid-template-columns:250px minmax(180px,1fr) auto;gap:20px;padding:0 18px}.workspace{grid-template-columns:240px minmax(0,1fr)}.brand img{width:185px}.header-start{gap:10px}}
@media(max-width:760px){.topbar{height:auto;min-height:112px;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:8px 14px 12px}.header-start{grid-column:1;grid-row:1;gap:8px}.brand img{width:174px;height:32px}.header-right{grid-column:2;grid-row:1;width:auto}.topbar .toolbar-search{grid-column:1 / -1;grid-row:2;width:100%;padding:0 15px}.toolbar-search input{height:40px;font-size:14px}.language button{padding:4px 9px;min-height:34px;font-size:13px}.workspace{display:block}.sidebar,.demo-banner~.workspace .sidebar{position:static;height:auto;padding:10px 14px 0}.sidebar #set-list{height:auto;max-height:400px}.sidebar summary{border-radius:22px;min-height:44px;padding:9px 14px}.sidebar{scroll-margin-top:125px}.board{scroll-margin-top:125px}main{padding:18px 14px 0}.heading h1{font-size:21px}.heading .stats{max-width:none}.heading .stats>div{padding:4px 7px}.heading .stats strong{font-size:17px}.heading .updated{font-size:11px}.boardhead{padding:0 0 10px}.boardhead h2{font-size:15px}.view-toolbar{padding:0 0 10px;gap:8px}.view-toggle button{width:40px}.tablewrap{overflow:visible}.affiliate-short{margin:0 0 10px;font-size:10px}.notice{margin:0 0 12px}.results-currency .count{font-size:11px}.currency-toggle button{padding-inline:9px}#filter-drawer{margin-top:0}.topbar #filter-open{width:40px;min-width:40px;height:40px;min-height:40px}}
@media(max-width:360px){.brand img{width:145px}.topbar{padding-inline:10px;column-gap:6px}.header-start{gap:4px}}

.boardhead{padding-bottom:8px}.boardhead .scope{margin:0}.view-toolbar .tabs{margin-left:0}.view-toolbar{gap:8px}.affiliate-short{font-size:11px}@media(max-width:760px){.view-toolbar{gap:6px}.view-toggle button,.tabs button{width:36px;height:40px;min-height:40px;padding:8px}.results-currency{gap:5px}.currency-toggle button{padding-inline:7px}.affiliate-short{font-size:11px}}
/* Mobile rows give the card artwork most of the row height. */
@media(max-width:760px){
 #rows tr{position:relative;min-height:236px;grid-template-columns:36% minmax(0,1fr) 54px;grid-template-rows:auto auto minmax(44px,1fr);column-gap:10px;row-gap:8px;padding:16px 14px}
 #rows .card-cell,#rows .card{display:contents}
 #rows .card>div{grid-column:2 / 4;grid-row:1;min-width:0}
 #rows .card strong{font-size:15px;line-height:1.35}
 #rows .card small{font-size:11px;line-height:1.4}
 #rows .card-preview{position:absolute;left:14px;top:10%;height:80%!important;width:auto!important;max-width:34%;aspect-ratio:5 / 7;min-height:0}
 #rows .card-preview img{width:100%!important;height:100%!important;object-fit:contain}
 #rows .rank-cell{position:absolute;left:18px;top:5px;padding:0;font-size:10px;line-height:1.2;z-index:1}
 #rows .price{grid-column:2;grid-row:2;font-size:17px;white-space:normal}
 #rows .change{grid-column:2;grid-row:3;font-size:14px;align-self:start}
 #rows .change small{font-size:11px}
 #rows .buy-cell{grid-column:3;grid-row:2 / 4;align-self:end;min-width:0}
 #rows .buy-actions{gap:5px}
 #rows .buy{padding:8px;min-width:44px}
 #rows .chart-cell{grid-column:2;grid-row:3;align-self:end;padding-top:42px}
 #rows .spark{height:38px;min-height:38px}
 #rows .availability-badge{font-size:9px;padding:2px 3px}
}

/* Compact overview keeps the cards near the top of the screen. */
.stats{background:transparent;border:0;border-radius:0;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}.stats>div{padding:4px 9px;border-bottom:0;border-right:1px solid var(--border)}.stats span{display:block;font-size:10px;line-height:1.3;white-space:nowrap}.stats strong{font-size:18px;line-height:1.2;margin:4px 0 0;white-space:nowrap}.stats small{display:none}.header-right{gap:16px;display:flex;align-items:center}.header-right .stats{width:340px}.topbar{grid-template-columns:250px minmax(200px,1fr) auto;gap:22px}.topbar .toolbar-search{max-width:600px;justify-self:center}.heading{display:block;margin-bottom:12px}.heading-title{display:flex;align-items:center;gap:14px}.heading h1{font-size:18px;letter-spacing:-.3px}.heading .updated{margin:0;font-size:11px}.boardhead{height:0;padding:0;overflow:hidden}.view-toolbar>.scope{font-size:12px;max-width:38%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 auto 0 0;align-self:center}.view-toolbar{justify-content:flex-end}.results-currency{margin-left:0}.view-toolbar .count{font-size:11px}.sidebar-head{padding:0 12px 6px}.set-item{min-height:36px;padding:5px 10px;margin-bottom:2px;gap:10px;align-items:center}.set-symbol,.set-icon-fallback,.all-symbol{width:22px;height:22px;flex-basis:22px;margin:0}.set-symbol img{width:20px;height:20px}.set-item strong{font-size:12px;line-height:1.25}.set-item small{font-size:10px;line-height:1.2;margin-top:2px}.all-sets{min-height:36px;margin-bottom:3px}.all-symbol svg{width:18px;height:18px}.set-year{padding:9px 10px 3px;font-size:11px}.set-badge{font-size:9px;padding:0 4px;margin-top:2px}.sidebar #set-list{height:calc(100vh - 205px)}main{padding-top:14px}
@media(max-width:1099px){.header-right .stats{display:none}.heading{display:flex;flex-direction:column;align-items:stretch;gap:10px}.heading .stats{order:2;max-width:none;width:100%}.topbar{grid-template-columns:240px minmax(180px,1fr) auto;gap:18px}.heading-title{order:1}.heading .stats>div{padding:3px 8px}.heading .stats strong{font-size:17px}}
@media(max-width:760px){.topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.header-right{gap:0}.heading-title{display:block}.heading h1{font-size:17px}.heading .updated{font-size:10px;margin-top:3px}.heading{margin-bottom:8px;gap:8px}.heading .stats{gap:0}.heading .stats span{font-size:9px}.heading .stats strong{font-size:15px;margin-top:3px}.heading .stats>div{padding:2px 6px}.view-toolbar{flex-wrap:wrap;gap:6px;padding-bottom:8px}.view-toolbar>.scope{flex:1 1 100%;max-width:100%;font-size:11px}.view-toolbar>.view-toggle{margin-left:auto}.results-currency .count{font-size:10px}.sidebar #set-list{height:auto;max-height:400px}.set-item{min-height:40px}.sidebar{padding-top:8px}main{padding-top:12px}}
@font-face{font-family:RankGothic;src:url('/fonts/league-gothic.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
#rows .rank-cell{font-family:RankGothic,"Arial Narrow",sans-serif;font-size:32px;line-height:1;letter-spacing:.02em;color:#dce9dd;font-variant-numeric:tabular-nums}
@media(max-width:760px){#rows .rank-cell{top:8px;left:18px;font-size:26px;line-height:1;z-index:2;padding:2px 5px;background:#0e1411e8;border-radius:4px;pointer-events:none}}

.mobile-rank{display:none}
@media(max-width:760px){
 #rows tr{min-height:220px}
 #rows .rank-cell{display:none}
 #rows .card strong{display:flex;align-items:baseline;gap:8px}
 #rows .mobile-rank{display:inline-block;flex-shrink:0;font-family:RankGothic,"Arial Narrow",sans-serif;font-size:26px;line-height:1;letter-spacing:.02em;color:#dce9dd}
 #rows .card-preview{top:50%;transform:translateY(-50%);width:calc((100% - 28px) * .36)!important;max-width:none;height:auto!important;aspect-ratio:auto;line-height:0;overflow:hidden;padding:0}
 #rows .card-preview img{display:block;width:100%!important;height:auto!important;object-fit:initial}
}
/* Compact mobile card rows: artwork and rank share the same top edge. */
@media(max-width:760px){
 #rows tr{min-height:0;grid-template-columns:34% minmax(0,1fr) 48px;grid-template-rows:auto auto auto;row-gap:5px;column-gap:9px;padding:12px 14px}
 #rows .card-preview{top:12px;transform:none;width:calc((100% - 28px) * .34)!important}
 #rows .card>div{grid-row:1;min-height:0}
 #rows .card strong{align-items:flex-start;gap:6px;font-size:14px;line-height:1.3}
 #rows .mobile-rank{font-size:24px;line-height:1;margin-top:0}
 #rows .card small{font-size:10px;line-height:1.25;margin-top:2px}
 #rows .foil-badge{margin-top:3px;font-size:9px!important;padding:2px 6px}
 #rows .price{grid-row:2;font-size:16px;line-height:1.3}
 #rows .price-badges{margin-top:3px}
 #rows .condition-badge{font-size:10px;padding:2px 5px}
 #rows .change{grid-row:3;font-size:13px;line-height:1.3}
 #rows .change small{font-size:10px;margin-top:2px}
 #rows .chart-cell{grid-row:3;padding-top:34px}
 #rows .spark{height:30px;min-height:30px}
 #rows .buy-cell{grid-row:2 / 4;align-self:end}
 #rows .buy{min-height:40px;height:40px;min-width:40px;width:40px;padding:8px}
 #rows .buy-actions{gap:4px}
 #rows .availability-badge{font-size:9px}
}
@media(max-width:760px){#rows tr{min-height:calc((100vw - 56px) * .34 * 1.4 + 24px)}}
/* Desktop overview is one compact row above the disclosure and cards. */
@media(min-width:1100px){
 main{display:grid;grid-template-columns:minmax(260px,1fr) auto;column-gap:18px;align-content:start;padding-top:10px}
 .heading{grid-column:1;grid-row:1;margin:0;align-self:center;min-width:0}
 .heading-title{gap:12px;flex-wrap:wrap;row-gap:2px}
 .heading h1{font-size:16px;line-height:1.3}
 .heading .updated{font-size:10px;line-height:1.3}
 .board{display:contents}
 .boardhead{display:none}
 .view-toolbar{grid-column:2;grid-row:1;align-items:center;margin:0;padding:0 0 6px;gap:8px;min-height:42px}
 .view-toolbar>.scope{max-width:210px;margin:0 12px 0 0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .view-toggle,.tabs,.currency-toggle{padding:2px}
 .view-toggle button,.tabs button{width:36px;height:36px;min-height:36px;padding:8px}
 .view-toggle svg,.tabs svg{width:20px;height:20px}
 .currency-toggle button{min-height:32px;padding:4px 9px;font-size:11px}
 .board>.affiliate-short,.board>.fx-note,.board>.notice,.board>.loading-view,.board>#heatmap-section,.board>.tablewrap,.board>.pagination,.board>.empty{grid-column:1 / -1}
 .affiliate-short{margin:0 0 7px;font-size:10px;line-height:1.4}
 .fx-note{margin:0 0 5px}
 main>footer{grid-column:1 / -1}
}
#filter-drawer #colors,#filter-drawer #rarities{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:6px;margin-top:8px}
#filter-drawer #colors button,#filter-drawer #rarities button{position:relative;display:flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:6px;border-radius:8px;background:#19231d;border:1px solid #344638;color:#c5d0c7}
#filter-drawer #colors button[aria-pressed=true],#filter-drawer #rarities button[aria-pressed=true]{background:#2a4633;border-color:#b1e58d;box-shadow:inset 0 0 0 1px #b1e58d}
#filter-drawer #colors button[aria-pressed=true]::after,#filter-drawer #rarities button[aria-pressed=true]::after{content:'✓';position:absolute;right:3px;bottom:0;font-size:10px;font-weight:700;color:#b1e58d;line-height:1.3}
#colors img{width:26px;height:26px}#colors svg,#rarities svg{width:23px;height:23px;fill:currentColor}.multicolor-symbol{width:26px;height:26px;border-radius:50%;background:conic-gradient(#f6f0cc 0deg 72deg,#70aeca 72deg 144deg,#918d91 144deg 216deg,#d9836c 216deg 288deg,#71a87e 288deg);border:2px solid #cfbd79}.rarity-symbol{display:grid;place-items:center;width:28px;height:28px;font-size:18px;font-weight:750;font-family:'Segoe UI',sans-serif;line-height:1}.rarity-common{color:#ccd3ce}.rarity-uncommon{color:#a9bdcc}.rarity-rare{color:#ddbf6b}.rarity-mythic{color:#ef9c68}.rarity-special{color:#c4a2e5}.rarity-bonus{color:#97c6c0}#filter-drawer .set-filters{gap:18px;padding-top:18px}

.metric-toggle{flex-shrink:0;width:44px;height:44px;padding:5px;border:0;border-radius:50%;background:#19251d;color:#8f9e93}.metric-toggle svg{width:32px;height:32px}.metric-toggle text{fill:currentColor;font:bold 17px system-ui,sans-serif}.metric-toggle path{fill:none;stroke:currentColor;stroke-width:1;opacity:.45}.metric-toggle[data-metric=percent] .metric-percent,.metric-toggle[data-metric=delta] .metric-money{fill:var(--up)}.metric-toggle:hover{background:#27362c}.metric-toggle:focus-visible{outline:2px solid var(--up);outline-offset:3px}@media(max-width:760px){.view-toolbar{column-gap:4px}.metric-toggle{width:36px;height:44px;padding:2px}.view-toolbar>.scope{flex-basis:100%}}

@media(max-width:760px){.view-toolbar .count{display:none}}
.movement-toggle{display:flex;flex-shrink:0;gap:2px;padding:3px;border-radius:24px;background:#19251d}.movement-toggle button{width:44px;height:44px;min-height:44px;border:0;border-radius:20px;padding:8px;background:transparent;color:#b8c5bc;font-size:20px;font-weight:650;line-height:1}.movement-toggle button[aria-pressed=true]{background:#b7e99b;color:#172515}.movement-toggle button:hover{background:#27362c}.movement-toggle button[aria-pressed=true]:hover{background:#b7e99b}.movement-toggle button:focus-visible{outline:2px solid var(--up);outline-offset:3px}@media(min-width:1100px){.movement-toggle{padding:2px}.movement-toggle button{width:36px;height:36px;min-height:36px}}@media(max-width:760px){.movement-toggle{padding:3px}.movement-toggle button{width:36px;height:40px;min-height:40px}.view-toolbar{display:flex;gap:4px}.view-toolbar>.view-toggle{margin-left:auto}}

@media(max-width:760px){
 .view-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:center}
 .view-toolbar>.scope{grid-column:1 / -1;grid-row:1}
 .view-toolbar>.view-toggle,.view-toolbar>.movement-toggle,.view-toolbar>.tabs,.view-toolbar>.results-currency{grid-row:2;width:100%;min-width:0;margin:0;justify-self:stretch}
 .view-toolbar>.view-toggle{grid-column:1}.view-toolbar>.movement-toggle{grid-column:2}.view-toolbar>.tabs{grid-column:3}.view-toolbar>.results-currency{grid-column:4}
 .view-toolbar .view-toggle,.view-toolbar .movement-toggle,.view-toolbar .tabs,.view-toolbar .currency-toggle{display:flex;box-sizing:border-box;width:100%;gap:2px;padding:3px}
 .view-toolbar .view-toggle button,.view-toolbar .movement-toggle button,.view-toolbar .tabs button,.view-toolbar .currency-toggle button{flex:1 1 0;width:0;min-width:0;height:44px;min-height:44px;padding:4px 0;display:flex;align-items:center;justify-content:center}
 .view-toolbar .currency-toggle button{font-size:11px}.view-toolbar .count{display:none}
}

/* Shared selected colors across all segmented controls. */
.language button[aria-pressed=true],.view-toggle button[aria-pressed=true],.movement-toggle button[aria-pressed=true],.tabs button[aria-pressed=true],.currency-toggle button[aria-pressed=true],.filter-options button[aria-pressed=true]{background:#b7e99b;color:#172515;border-color:#b7e99b;box-shadow:none}
.language button[aria-pressed=false],.view-toggle button[aria-pressed=false],.movement-toggle button[aria-pressed=false],.tabs button[aria-pressed=false],.currency-toggle button[aria-pressed=false],.filter-options button[aria-pressed=false]{color:#b8c5bc}

.menu-overview{display:flex;flex-direction:column;gap:8px;padding:12px 0 16px;margin-bottom:16px;border-bottom:1px solid var(--border)}.menu-overview .updated{font-size:11px;color:var(--muted);margin:0}.menu-overview .boardhead{display:block;height:auto;padding:0;overflow:visible}.menu-overview .boardhead h2{font-size:14px;margin:0}.menu-overview .scope{font-size:12px;margin:0;color:var(--up)}.menu-overview .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px;width:100%}.menu-overview .stats>div{padding:0;border:0}.menu-overview .stats span{font-size:11px;white-space:normal}.menu-overview .stats strong{font-size:20px;margin-top:4px}.menu-overview .stats small{display:none}@media(max-width:760px){.view-toolbar>.view-toggle,.view-toolbar>.movement-toggle,.view-toolbar>.tabs,.view-toolbar>.results-currency{grid-row:1}}

/* Frequently used ranking controls stay beside the view controls. */
.view-toolbar>.ranking-control{min-width:0;margin:0;padding:0;border:0;flex:0 0 auto}.ranking-control .filter-options{display:flex;flex-wrap:nowrap;gap:2px;padding:3px;border-radius:24px;background:#19251d}.ranking-control .filter-options button{min-width:0;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:20px;background:transparent;color:#b8c5bc;font-size:12px;white-space:nowrap}.ranking-control .filter-options button[aria-pressed=true]{background:#b7e99b;color:#172515}@media(min-width:761px){.view-toolbar{flex-wrap:nowrap}.ranking-control .filter-options button{padding-inline:10px}}@media(min-width:1100px){.ranking-control .filter-options{padding:2px}.ranking-control .filter-options button{height:36px;min-height:36px;padding:6px 10px}}@media(max-width:760px){.view-toolbar>.ranking-control{grid-column:1 / -1;grid-row:2;width:100%}.ranking-control .filter-options button{flex:1;min-height:40px;padding:7px 10px}.ranking-control .filter-options{width:100%;box-sizing:border-box}}

.spark.history-pending{background:linear-gradient(90deg,transparent,#b7e99b18,transparent);background-size:200% 100%;animation:history-loading 1.4s ease-in-out infinite;border-radius:6px;min-height:38px}@keyframes history-loading{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.spark.history-pending{animation:none}}

.view-toolbar>.finish-control{flex:0 0 auto;margin:0;padding:0;border:0;min-width:0}.finish-control .filter-options{display:flex;flex-wrap:nowrap;gap:2px;background:#19251d;padding:3px;border-radius:24px}.finish-control .filter-options button{border:0;border-radius:20px;min-height:44px;padding:8px 10px;white-space:nowrap;font-size:12px;background:transparent}.finish-control .filter-options button[aria-pressed=true]{background:#b7e99b;color:#172515}.finish-control .filter-options button[aria-pressed=false]{color:#b8c5bc}.filter-field[hidden]{display:none!important}@media(min-width:1100px){.finish-control .filter-options button{height:36px;min-height:36px;padding:6px 9px}}@media(min-width:761px) and (max-width:1099px){.view-toolbar{flex-wrap:wrap}}@media(max-width:760px){.view-toolbar>.ranking-control{grid-column:1 / 3;grid-row:2}.view-toolbar>.finish-control{grid-column:3 / 5;grid-row:2;width:100%}.finish-control .filter-options{width:100%;box-sizing:border-box}.finish-control .filter-options button,.ranking-control .filter-options button{flex:1;min-width:0;min-height:44px;padding:6px 2px;font-size:11px}.finish-control .filter-options button{font-size:10px}}

/* Size ranking segments by their label, rather than equal zero-basis columns. */
.view-toolbar .ranking-control .filter-options button{flex:1 0 auto;width:auto;padding-inline:10px}@media(max-width:760px){.view-toolbar .ranking-control .filter-options button{flex:1 1 auto;padding-inline:4px;font-size:10px}}

.stats{grid-template-columns:repeat(3,minmax(0,1fr))}

@font-face{font-family:RankingJP;src:url('/fonts/ranking-jp.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap}
.heading .ranking-title{display:flex;align-items:baseline;gap:5px;margin:0;font-family:RankingJP,'Noto Sans JP','Yu Gothic',sans-serif;font-size:22px;font-weight:800;line-height:1.15;letter-spacing:-.03em;white-space:nowrap}.ranking-title #ranking-period{font-family:RankGothic,RankingJP,sans-serif;font-size:1.28em;font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:.01em}.ranking-title #ranking-period:empty{display:none}html[lang=en] .heading .ranking-title{font-family:RankGothic,sans-serif;font-weight:400;font-size:28px;letter-spacing:.01em}html[lang=en] .ranking-title #ranking-period{font-size:1em}@media(max-width:760px){.heading .ranking-title{font-size:21px}html[lang=en] .heading .ranking-title{font-size:27px}}

.heading .ranking-title #ranking-suffix{font-family:var(--font);font-size:12px;font-weight:400;letter-spacing:0;line-height:1.3;color:var(--muted);margin-left:3px}html[lang=en] .heading .ranking-title #ranking-suffix{font-size:12px}@media(max-width:760px){.heading .ranking-title #ranking-suffix{font-size:11px}}

#detail{width:min(1040px,94vw);overflow-y:auto}.detail-edition{color:var(--muted);font-size:12px;margin:5px 0 0}.detail-overview{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;margin-top:20px;align-items:start}.detail-art{position:relative;overflow:hidden;border-radius:10px;line-height:0;isolation:isolate}.detail-art img{display:block;width:100%;height:auto}.detail-market #chart{margin:0}.detail-market h3,.detail-versions h3{font-size:14px;margin:16px 0 8px}.detail-history{margin:20px 0;border-top:1px solid var(--border);padding-top:14px}.detail-history summary{cursor:pointer;color:var(--muted);font-size:12px;min-height:32px}.detail-versions{border-top:1px solid var(--border);padding-top:6px}#card-versions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.version-card{display:flex;text-align:left;align-items:center;gap:10px;padding:10px;min-width:0}.version-card[aria-current=true]{border-color:var(--up);background:#233629}.version-card img{width:40px;height:56px;object-fit:contain;flex-shrink:0}.version-card span{min-width:0;display:flex;flex-direction:column;gap:3px}.version-card strong{font-size:12px;line-height:1.3;overflow-wrap:anywhere}.version-card small{font-size:10px;line-height:1.3;color:var(--muted)}#versions-status{font-size:12px;color:var(--muted)}#versions-more{margin-top:12px}@media(max-width:760px){#detail{padding:18px;width:96vw;max-height:92dvh}.detail-overview{grid-template-columns:90px minmax(0,1fr);gap:12px}.detail-market .condition-offers{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-market #chart{grid-column:1 / -1}.detail-market h3{font-size:12px}.detail-affiliate{font-size:10px}#card-versions{grid-template-columns:repeat(2,minmax(0,1fr))}.version-card{gap:7px;padding:8px}.version-card img{width:32px;height:45px}}

@media(max-width:760px){.detail-overview{display:flex;flex-direction:column;gap:14px}.detail-art{width:130px;align-self:center}.detail-market{width:100%;min-width:0}}

.period-picker{position:relative;display:inline-flex;align-items:baseline}.heading .ranking-title #ranking-period{border:0;border-radius:4px;min-height:36px;padding:0 2px;background:transparent;color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:var(--muted);text-underline-offset:5px;cursor:pointer}.heading .ranking-title #ranking-period:hover,.heading .ranking-title #ranking-period[aria-expanded=true]{color:var(--up);background:#b7e99b0c}.period-menu{position:absolute;z-index:20;left:0;top:calc(100% + 8px);display:flex;gap:4px;padding:6px;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 28px #0006;font-family:var(--font);font-size:13px;font-weight:400;letter-spacing:0}.period-menu button{white-space:nowrap;padding:8px 10px;min-width:44px;min-height:44px;border:0;border-radius:6px}.period-menu button[aria-pressed=true]{background:var(--up);color:var(--bg)}@media(max-width:760px){.heading .ranking-title #ranking-period{min-height:44px}}

.period-menu button:disabled,[data-filter="days"] button:disabled{opacity:.35;cursor:not-allowed;background:transparent;color:var(--muted);border-color:transparent}.period-menu button:disabled:hover,[data-filter="days"] button:disabled:hover{background:transparent}


@media(max-width:760px){
 #card-hover{display:none}
 .heading{display:flex;flex-direction:row;align-items:center;gap:6px;margin-bottom:6px;min-width:0}
 .heading-title{flex:1 1 auto;min-width:0}
 .heading .ranking-title{font-size:17px;gap:3px}
 html[lang=en] .heading .ranking-title{font-size:22px}
 .heading .ranking-title #ranking-suffix{display:none}
 .heading>.view-toolbar{position:static;display:flex;flex:0 0 auto;flex-wrap:nowrap;gap:4px;margin:0;padding:0;min-height:44px;overflow:visible}
 .heading .view-toolbar>.scope{display:none}
 .heading .view-toolbar>.view-toggle,.heading .view-toolbar>.tabs,.heading .view-toolbar>.results-currency{width:auto;min-width:0;margin:0;grid-row:auto;grid-column:auto;flex:0 0 auto}
 .heading .view-toggle,.heading .tabs,.heading .currency-toggle{gap:0;padding:2px}
 .heading .view-toggle button,.heading .tabs button{width:28px;height:40px;min-height:40px;padding:5px}
 .heading .currency-toggle button{width:28px;min-height:40px;padding:0;font-size:0}
 .heading [data-currency=JPY]::after{content:'¥';font-size:16px}
 .heading [data-currency=USD]::after{content:'$';font-size:16px}
 #filter-drawer .movement-toggle{width:max-content;margin:8px 0 18px}
 #filter-drawer .finish-control,#filter-drawer .ranking-control{width:100%;margin:0 0 18px}
 #filter-drawer .finish-control legend,#filter-drawer .ranking-control legend{position:static;width:auto;height:auto;clip-path:none;overflow:visible}
 main{padding-bottom:20px}
}

@media(max-width:760px){.heading-title{order:0}.heading>.view-toolbar{order:1}}

.menu-overview{display:none!important}
@media(max-width:760px){
 .topbar{min-height:64px;height:64px;grid-template-rows:auto;padding:8px 14px}
 .sidebar{padding-top:0}
 main{padding-top:8px}
 .mobile-navigation{display:flex;flex-direction:column;gap:12px;margin:12px 0 20px}
 .mobile-navigation .toolbar-search{display:flex;width:100%;margin:0;padding:0 14px;border-radius:24px;background:#0a100c;border:1px solid var(--border)}
 .mobile-navigation .toolbar-search input{width:100%;min-width:0;height:44px}
 .mobile-navigation #set-panel{width:100%}
 .mobile-navigation #set-panel summary{display:flex;gap:8px;align-items:center;justify-content:space-between}
 .mobile-navigation .sidebar-head{display:none}
 .mobile-navigation #set-list{height:auto;max-height:320px}
 .sidebar{scroll-margin-top:64px}
}

@media(max-width:760px){
 .topbar{grid-template-columns:76px minmax(0,1fr) auto;gap:6px;padding:8px 10px}
 .header-start{grid-column:1;grid-row:1;gap:4px}
 .topbar #filter-open{width:36px;min-width:36px;padding:8px}
 .topbar .brand{flex-basis:auto;width:36px}
 .brand picture{display:block}
 .brand img{width:36px;height:40px;object-fit:contain}
 .topbar .toolbar-search{grid-column:2;grid-row:1;order:0;gap:6px;padding:0 9px;border-radius:22px}
 .toolbar-search svg{width:16px;height:16px;flex-shrink:0}
 .toolbar-search input{width:100%;min-width:0;height:40px;font-size:16px}
 .header-right{grid-column:3;grid-row:1}
 .language button{padding:4px 7px;min-width:30px;font-size:12px}
}

.brand .brand-mobile{display:none}@media(max-width:760px){.brand .brand-full{display:none}.brand .brand-mobile{display:block}}

.topbar{background:#080f0b;border-bottom:1px solid #1b2920}
.header-right:empty,.view-toolbar>.results-currency:empty{display:none}
.preference-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 18px}
.preference-controls .language,.preference-controls .currency-toggle{display:flex;width:max-content}
.preference-controls button{min-height:44px;padding:6px 12px}
.heading .ranking-title #ranking-label{font:inherit;letter-spacing:inherit;color:inherit;background:transparent;border:0;padding:0 2px;min-height:44px;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:var(--muted);text-underline-offset:5px;border-radius:4px}
.heading .ranking-title #ranking-label:hover:not(:disabled){color:var(--up);background:#b7e99b0c}
.heading .ranking-title #ranking-label:disabled{cursor:default;text-decoration:none;opacity:1}
@media(max-width:760px){.topbar{grid-template-columns:76px minmax(0,1fr);gap:8px}.topbar .header-right{display:none}}

@media(max-width:760px){
 .topbar{grid-template-columns:112px minmax(0,1fr)}
 .topbar .brand{width:72px}
 .brand .brand-mobile{width:72px;height:44px}
 .heading .ranking-title #ranking-suffix{display:inline;font-size:10px;margin-left:2px}
}

@media(max-width:760px){.topbar{grid-template-columns:124px minmax(0,1fr)}.topbar .brand{width:84px}.brand .brand-mobile{width:84px;height:44px}}

/* Menu controls share one shape, rhythm, and readable labels. */
#filter-drawer .dialogtop{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}
#filter-drawer .filters{gap:20px}
#filter-drawer .filter-field{margin:0!important;padding:0;border:0;min-width:0;width:100%}
#filter-drawer legend{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:8px;padding:0}
#filter-drawer .filter-options,#filter-drawer .language,#filter-drawer .currency-toggle,#filter-drawer .movement-toggle{display:flex;gap:4px;width:100%;margin:0;padding:0;background:transparent;border:0;border-radius:0}
#filter-drawer .filter-options button,#filter-drawer .language button,#filter-drawer .currency-toggle button,#filter-drawer .movement-toggle button{flex:1 1 0;width:auto;min-width:0;min-height:44px;height:auto;padding:10px 6px;border:1px solid var(--border);border-radius:5px;background:#19251d;color:var(--text);font-size:12px;line-height:1.35;white-space:normal}
#filter-drawer button[aria-pressed=true]{background:var(--up);color:#172515;border-color:var(--up)}
#filter-drawer .filter-options button:disabled{opacity:.35;background:transparent;color:var(--muted)}
#filter-drawer .metric-field .movement-toggle button{font-size:12px}
#filter-drawer .preference-controls{padding-top:20px;margin:20px 0;border-top:1px solid var(--border);gap:12px}
#filter-drawer .mobile-navigation{margin:0 0 20px}
#filter-drawer #set-panel summary{border-radius:5px}
#filter-drawer #filter-done{margin-top:4px;border-radius:5px}
#filter-drawer .set-filters{padding-top:20px}

.version-card .version-image{position:relative;display:block;flex:0 0 40px;width:40px;overflow:hidden;border-radius:3px;line-height:0;isolation:isolate}
.version-card .version-image img{width:100%;height:auto;display:block}
.version-card .version-edition{display:flex;align-items:center;gap:6px}
.version-card .version-edition>span{display:block}
.version-card .version-set-symbol{width:16px;height:16px;flex:0 0 16px;filter:brightness(0) invert(.85);object-fit:contain}
.version-card .foil-badge{display:inline-flex;margin:2px 0;width:max-content}
@media(max-width:760px){.version-card .version-image{width:40px;flex-basis:40px}}

.view-toolbar .ranking-control legend,.view-toolbar .finish-control legend{display:none}
