:root{--surface:#fffefa;--surface-soft:#eeefe8;--border:#d8dcd5;--ink:#29313c;--secondary:#65716e;--focus:#4063ce;--shadow:0 16px 45px #28384410;--accent:#c84737}html{scroll-behavior:smooth;scroll-padding-top:25px}body{line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:4px}button,a{transition:background-color .15s,color .15s,border-color .15s,box-shadow .15s}.brand{font-size:19px;letter-spacing:-.55px;gap:10px}.brand-sub{font-size:7px;letter-spacing:1.45px;margin-top:5px;white-space:nowrap}.sidebar{gap:25px}.sidebar nav a{padding-left:11px;padding-right:11px}.header-right{gap:17px}.play-game{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:var(--accent);white-space:nowrap}.play-game:hover{text-decoration:underline;text-underline-offset:4px}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);background:var(--surface);border-radius:6px;padding:8px 11px;font-size:10px;font-weight:500;color:var(--ink);min-height:34px;white-space:nowrap}.theme-toggle svg{flex-shrink:0}.theme-toggle:hover{border-color:#9ba9b9;box-shadow:0 2px 7px #253d4d0a}header{height:62px}.header-right #data-status{font-size:9px}.game-credit{max-width:1364px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:45px;padding:30px 0;border-top:1px solid var(--border)}.credit-kicker{font-size:8px;letter-spacing:1.7px;color:var(--secondary)}.game-credit h2{font-size:22px;letter-spacing:-.6px;margin:7px 0 9px}.game-credit p{font-size:11px;line-height:1.8;color:var(--secondary);max-width:720px;margin:0}.game-credit p a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}.game-credit>.button{flex-shrink:0;padding:12px 17px;font-size:11px}.game-credit+footer{border-top:0}.page-intro{gap:25px}.page-intro p{font-size:13px;line-height:1.8;max-width:790px}.page-intro h1{line-height:1.15}.section-bar{align-items:center}.section-bar h2{line-height:1.2}.filter-panel input,.filter-panel select{min-height:39px}.filter-panel label{font-size:10px;gap:7px}.filter-panel select,.filter-panel input[type=search]{font-size:12px}.comp-row{padding-top:21px;padding-bottom:21px;border-radius:7px}.comp-identity h3{line-height:1.35}.row-stat strong{font-variant-numeric:tabular-nums}.row-stat small{font-size:9px}.unit-tile>small{font-size:8px;line-height:1.5}.unit-tile .sprite{height:43px}.stats-table td{padding-top:17px;padding-bottom:17px;line-height:1.6}.stats-table th{font-size:11px}.table-pokemon b{font-size:13px}.table-pokemon small{font-size:10px}.cell-note{font-size:9px}.item-identity p{font-size:11px}.item-identity small{font-size:9px}.standings,.table-scroll{box-shadow:0 4px 18px #28384404}.standings-tools h2{font-size:21px}.standings-tools p{font-size:11px}.standings-filters input,.standings-filters select,.watch-toggle{font-size:11px;min-height:38px}.ladder-table th{font-size:10px}.trainer-cell b{font-size:13px}.trainer-cell small{font-size:10px}.league-label{font-size:11px}.gap-value{font-size:12px}.pin-row{min-width:30px;min-height:30px}.source-note{font-size:11px}.ladder-caption{font-size:10px}.ladder-caption>span:first-child{font-size:9px}.standings-foot{font-size:10px}.ladder-title h1{line-height:1.05}.podium-person h2{line-height:1.25}.podium-score{font-variant-numeric:tabular-nums}.podium-bottom{font-size:9px}.pin-player{font-size:10px}.podium-position{font-size:9px}.podium-person .player-tag{font-size:10px}.game-credit,footer{width:calc(100% - 76px)}footer{padding-left:0;padding-right:0;gap:25px;line-height:1.8}
/* Comp guide: fixed shared columns for every loadout, including missing data. */
dialog{width:min(1120px,94vw);padding:32px;border-radius:13px;border:1px solid var(--border);box-shadow:0 30px 100px #101e3940;scrollbar-width:thin}dialog .close{display:grid;place-items:center;top:16px;right:16px;width:32px;height:32px;background:var(--surface-soft);border-radius:50%;font-size:24px;line-height:1;z-index:1}.detail-head{padding-right:40px;margin-bottom:26px;gap:14px}.detail-head h2{font-size:29px;line-height:1.3;letter-spacing:-.8px}.detail-head .eyebrow{font-size:9px;margin-bottom:7px}.detail-head .tier{width:35px;height:40px;font-size:19px}.stage-grid{gap:20px;margin-top:28px}.stage{padding:20px;line-height:1.8}.stage p{font-size:11px}.stage .sprite-row{gap:9px}.stats{gap:13px}.stat{border-radius:8px;padding:17px 18px}.stat label{font-size:10px}.stat strong{font-size:26px;line-height:1.4;font-variant-numeric:tabular-nums}.stat small{font-size:10px;line-height:1.6}.board{border-radius:9px;padding:20px 18px 26px}.board-label{font-size:8px}.notice{line-height:1.9}.pokemon-card{padding:21px}.pokemon-card h3{line-height:1.4}.pokemon-card .poke-stats{font-size:10px;gap:10px}.pick{min-height:101px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.pick b{font-size:10px}.builder-layout .panel{min-width:0}.builder-layout .filters{align-items:end}.ability{font-size:12px;line-height:1.9}
/* Dark palette covers data tools and dialogs, not only the page background. */
html[data-theme=dark]{color-scheme:dark;--bg:#121821;--panel:#1a222e;--surface:#1a222e;--surface-soft:#222d3a;--line:#35404e;--border:#35404e;--text:#e7ecf3;--ink:#e7ecf3;--muted:#a6b2c1;--secondary:#a6b2c1;--accent:#f08b79;--focus:#8ca8fa;--shadow:0 16px 45px #0003}html[data-theme=dark] body{background:var(--bg);color:var(--text)}html[data-theme=dark] .sidebar{background:#171f29;border-color:var(--border)}html[data-theme=dark] .brand-sub{color:#95a5b9}html[data-theme=dark] nav a{color:#b0bdce}html[data-theme=dark] nav a.active{color:#f28d7c}html[data-theme=dark] nav a:hover{background:#222e3d}html[data-theme=dark] header{background:transparent}html[data-theme=dark] .breadcrumb,html[data-theme=dark] .breadcrumb b,html[data-theme=dark] .header-right #data-status{color:#a5b3c5}html[data-theme=dark] .breadcrumb span{color:#5f7289}html[data-theme=dark] .button{background:#222e3d;color:#dce5f2;border-color:#49586a}html[data-theme=dark] .button.primary{background:#d25947;color:#fff;border-color:#d25947}html[data-theme=dark] .button.primary:hover{background:#e16d59}html[data-theme=dark] .button.small{background:transparent;color:#b0bed1;border-color:#3f4e60}html[data-theme=dark] .patch{background:transparent;border-color:#405064;color:#a9b7c8}html[data-theme=dark] .eyebrow,html[data-theme=dark] .section-index{color:#f39887}html[data-theme=dark] .page-intro p,html[data-theme=dark] .results-summary,html[data-theme=dark] .results-summary span,html[data-theme=dark] .results-help{color:#a4b3c5}html[data-theme=dark] .filter-panel{background:transparent;border-color:var(--border)}html[data-theme=dark] .filter-panel label{color:#a0b1c6}html[data-theme=dark] input,html[data-theme=dark] select{background:#18212e;color:#e3ebf5;border-color:#405068}html[data-theme=dark] input::placeholder{color:#8799b1}html[data-theme=dark] .chip{background:transparent;border-color:#46566b;color:#b8c6d8}html[data-theme=dark] .chip.active{background:#dfdfd2;color:#222c39;border-color:#dfdfd2}html[data-theme=dark] .comp-table-head{color:#96aac3}html[data-theme=dark] .comp-row{background:#1a2432;border-color:#354459;border-left-color:var(--type);box-shadow:none}html[data-theme=dark] .comp-row:hover{background:#223043;border-color:#657b99;border-left-color:var(--type)}html[data-theme=dark] .comp-identity h3{color:#e1e9f6}html[data-theme=dark] .comp-identity>div>small{color:#93a6bf}html[data-theme=dark] .type-tag{color:var(--type);background:color-mix(in srgb,var(--type) 14%,#18212e)}html[data-theme=dark] .unit-tile .sprite{background:#111c2b}html[data-theme=dark] .unit-tile>small{color:#a7b8ce}html[data-theme=dark] .unit-stars{color:#f3cd85;text-shadow:0 1px 2px #000}html[data-theme=dark] .row-stat strong{color:#dfe8f6}html[data-theme=dark] .row-stat.placement strong,html[data-theme=dark] .placement{color:#f1b18b}html[data-theme=dark] .row-stat small,html[data-theme=dark] .row-stat label{color:#9aaec6}html[data-theme=dark] .tier{color:#f7acb5;background:#613543}html[data-theme=dark] .tier.A{color:#f4d48e;background:#574b32}html[data-theme=dark] .tier.B{color:#adcef7;background:#304863}html[data-theme=dark] .tier.C{color:#c1bdd5;background:#423e56}html[data-theme=dark] .rate-bar{background:#3c4b5d}html[data-theme=dark] .rate-bar i{background:#76c1aa}html[data-theme=dark] .notice{background:transparent;color:#a3b1c3;border-color:#435164}html[data-theme=dark] .stat,html[data-theme=dark] .panel{background:#1a2432;border-color:#3c4b5d;box-shadow:none}html[data-theme=dark] .stat label{color:#a0b2c9}html[data-theme=dark] .stat small{color:#a3b9bd}html[data-theme=dark] .stats-table{background:#1a2432;color:#d8e4f4}html[data-theme=dark] .stats-table th{background:#243246;color:#b4c5dc;border-color:#41526a}html[data-theme=dark] .stats-table td{border-color:#344459}html[data-theme=dark] .stats-table tr:hover td{background:#243346}html[data-theme=dark] .table-pokemon .sprite{background:#142032}html[data-theme=dark] .table-pokemon:hover b{color:#f3b49a}html[data-theme=dark] .table-pokemon small,html[data-theme=dark] .cell-note{color:#a2b5cf}html[data-theme=dark] .gold{color:#e4c37c}html[data-theme=dark] .item-icon,html[data-theme=dark] .item-icon img{background:#152032;border-color:#405572}html[data-theme=dark] .emblem-icon{color:var(--type);background:color-mix(in srgb,var(--type) 10%,#152032);border-color:var(--type)}html[data-theme=dark] .item-identity p{color:#c1cede}html[data-theme=dark] .item-identity small,html[data-theme=dark] .recipe-parts>span>small{color:#a1b3cd}html[data-theme=dark] .subnav a{color:#a7b9d2}html[data-theme=dark] .subnav a.active{color:#f3a891}html[data-theme=dark] dialog{background:#192330;color:#e3edf9;border-color:#4a5a71}html[data-theme=dark] dialog .close{color:#c3d0e0;background:#2a3b51}html[data-theme=dark] dialog::backdrop{background:#070d17c9}html[data-theme=dark] .stage,html[data-theme=dark] .ability{background:#202e40;border-color:#3b4e67}html[data-theme=dark] .ability b{color:#e0eafa}html[data-theme=dark] .board{background:#152235;border-color:#405572}html[data-theme=dark] .hex{background:#2c405e}html[data-theme=dark] .hex.occupied{background:#5a7392}html[data-theme=dark] .hex.selected{background:#e5b779}html[data-theme=dark] .board-label{color:#a4bad6}html[data-theme=dark] .synergy{background:#152032;color:#a9b9ce}html[data-theme=dark] .synergy.on{color:#a1d0b5}html[data-theme=dark] .pick{background:#142034;border-color:#3b4f6d}html[data-theme=dark] .pick small{color:#e0c28e}html[data-theme=dark] .pokemon-card{background:#1b283a;border-color:#3d4e67;box-shadow:none}html[data-theme=dark] .pokemon-card .sprite{background:#22334b}html[data-theme=dark] .pokemon-card .cost{color:#dfc287}html[data-theme=dark] .edition-stamp{border-color:#6a7f9c;color:#a5bfdf}html[data-theme=dark] .ladder-title p,html[data-theme=dark] .ladder-update,html[data-theme=dark] .ladder-caption,html[data-theme=dark] .ladder-caption>span:first-child{color:#9fb0c7}html[data-theme=dark] .ladder-tabs button{color:#9eb0c8}html[data-theme=dark] .ladder-tabs button.active{color:#e3eaf5}html[data-theme=dark] .ladder-mode-bar{border-color:#3f5067}html[data-theme=dark] .podium-1{background:#3155c8;border:0;box-shadow:0 5px 0 #1b3586}html[data-theme=dark] .podium-2{background:#28374e;color:#e0eafa;border-color:#435874}html[data-theme=dark] .podium-3{background:#3b3432;color:#f2e4d7;border-color:#625147}html[data-theme=dark] .podium-position{color:#b2c3da}html[data-theme=dark] .podium-1 .podium-position{color:#f4e3a6}html[data-theme=dark] .player-tag{color:inherit;opacity:.8}html[data-theme=dark] .podium-bottom{border-color:#8a9bb944}html[data-theme=dark] .standings{background:#1a2432;border-color:#40516a;box-shadow:none}html[data-theme=dark] .standings-tools p{color:#a5b7cf}html[data-theme=dark] .standings-filters input,html[data-theme=dark] .standings-filters select{background:#142033}html[data-theme=dark] .watch-toggle{border-color:#4c5d74;color:#acbfd8}html[data-theme=dark] .watch-toggle.active{background:#593f33;border-color:#a67a57;color:#f1cf9e}html[data-theme=dark] .watch-note{background:#302e29;border-color:#5a5140;color:#dfc68f}html[data-theme=dark] .watch-note b{color:#e3d6b9}html[data-theme=dark] .watch-note small{color:#c6b99d}html[data-theme=dark] .ladder-table th{background:#243245;color:#a7bbd4;border-color:#3b4f69}html[data-theme=dark] .ladder-table td{border-color:#314258}html[data-theme=dark] .ladder-table tr:hover td{background:#25354c}html[data-theme=dark] .pinned-row td{background:#3b3429}html[data-theme=dark] .trainer-cell b{color:#dee9f7}html[data-theme=dark] .trainer-cell small{color:#9cafd0}html[data-theme=dark] .table-place{color:#a5b5cb}html[data-theme=dark] .top-player .table-place{color:#f0a58a}html[data-theme=dark] .league-label{color:#afc4b5}html[data-theme=dark] .league-label .icon{color:#cdbb84}html[data-theme=dark] .ladder-value{color:#d2e1e6}html[data-theme=dark] .value-unit,html[data-theme=dark] .gap-value{color:#adc0c9}html[data-theme=dark] .leader-label{color:#f3ca95;border-color:#8b7759}html[data-theme=dark] .pin-row{color:#9eabbc}html[data-theme=dark] .pin-row[aria-pressed=true]{color:#efc585}html[data-theme=dark] .standings-foot{color:#a6b8ca}html[data-theme=dark] .ladder-bottom{border-color:#3f5067}html[data-theme=dark] .ladder-bottom b{color:#d9e3f0}html[data-theme=dark] .ladder-bottom p,html[data-theme=dark] .ladder-mascot span{color:#a7b7ce}html[data-theme=dark] .text-link{color:#f6ad92}html[data-theme=dark] .source-note{color:#9eafc6}html[data-theme=dark] .source-note a{color:#b6cdf0}html[data-theme=dark] footer{color:#a0b0c3;border-color:#36475e}html[data-theme=dark] .empty,html[data-theme=dark] .loading{color:#a4b6cf}
@media(min-width:1500px){.game-credit{max-width:1364px}.comp-table-head,.comp-row{column-gap:18px}}
@media(max-width:1150px){.sidebar{padding:0 25px;gap:18px}.brand{font-size:17px}.brand-sub{font-size:6px;letter-spacing:1.1px}.sidebar nav a{padding-left:8px;padding-right:8px;font-size:10px}.header-right{gap:12px}.game-credit{gap:25px}dialog{padding:27px}.unit-tile>small{font-size:7px}}
@media(max-width:850px){.header-right #data-status{display:none}}
@media(max-width:760px){.sidebar{padding:17px 18px 0}.brand{font-size:19px}.brand-sub{font-size:7px}.sidebar nav a{font-size:10px;padding:12px 8px 15px}.sidebar .brandmark,.sidebar .brandmark svg{width:35px;height:35px}header{height:auto;min-height:74px;padding:11px 18px;display:flex;gap:12px;align-items:flex-start}.breadcrumb{line-height:1.6;font-size:9px;max-width:120px}.header-right{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;flex:1}.play-game{font-size:9px;min-height:31px;margin-right:auto;order:0;flex-basis:100%;justify-content:flex-end}.theme-toggle{font-size:9px;padding:6px 9px;min-height:31px;order:1}.theme-toggle svg{width:13px;height:13px}.header-right .button.small{font-size:8px;padding:6px 8px;min-height:31px;order:2}.page-intro{gap:14px}.page-intro p{font-size:12px}.filter-panel input[type=search],.filter-panel select{font-size:11px}.game-credit{width:calc(100% - 36px);padding:25px 0;display:block}.game-credit h2{font-size:20px}.game-credit p{font-size:11px}.game-credit>.button{margin-top:17px}.game-credit+footer{width:calc(100% - 36px);padding:15px 0;flex-direction:column;gap:10px;font-size:8px}.standings-filters input{min-width:0}.standings-tools h2{font-size:19px}.comp-identity h3{font-size:17px}.comp-identity>div>small{font-size:9px}.row-stat small{font-size:8px}.unit-tile>small{font-size:7px}.unit-tile .sprite{height:38px}.ladder-title h1{font-size:44px}.podium-person .player-tag{font-size:9px}.podium-position{font-size:8px}.podium-bottom{font-size:8px}.pin-player{font-size:9px}.ladder-table th{font-size:10px}.trainer-cell b{font-size:12px}.league-label{font-size:10px}.gap-value{font-size:11px}.source-note{font-size:10px}dialog{padding:21px 16px;border-radius:11px;max-height:92vh;width:95vw}.detail-head{padding-right:26px;gap:10px;margin-bottom:18px}.detail-head h2{font-size:23px}.detail-head .eyebrow{font-size:7px}.detail-head .tier{width:28px;height:33px;font-size:15px}dialog .close{width:28px;height:28px;right:11px;top:11px;font-size:22px}.stats{gap:9px}.stat{padding:12px}.stat label{font-size:8px}.stat strong{font-size:23px}.stat small{font-size:9px}.board{padding:18px 14px 23px}.stage{padding:16px}.stage .sprite-row{gap:7px}.stage p{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,a{transition:none}}
