.banlists-page { --ink: var(--home-text); --muted: var(--home-muted); --ban-surface: #fffdf7; --ban-soft: #f1f5ed; --ban-blue: #236999; --ban-muted: #756955; --ban-grid: #eadfcb; }
body.banlists-page .skip-link { transform: none; left: -9999px; }
body.banlists-page .skip-link:focus { left: 8px; }
.ban-shell { width: min(1180px, calc(100% - 48px)); margin: 28px auto 36px; display: grid; gap: 24px; }
.ban-heading { padding: 24px 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ban-back { font-size: 13px; font-weight: 800; text-decoration: none; }
.ban-back:hover, .ban-footer a:hover { text-decoration: underline; }
.ban-eyebrow { font-size: 11px; font-weight: 900; color: var(--ban-blue); letter-spacing: .12em; margin: 20px 0 6px; }
.ban-heading h1 { font-size: 42px; margin: 0; letter-spacing: .04em; }
.ban-intro { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 10px 0 0; }
.ban-mascot { flex: 0 0 118px; width: 118px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff1c8 0 60%, transparent 61%); }
.ban-mascot img { width: 88px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.ban-section { padding: 26px 30px; scroll-margin-top: 20px; }
.ban-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ban-section-heading .ban-eyebrow { margin-top: 0; }
.ban-section h2 { font-size: 23px; margin: 0; }
.ban-tag { font-size: 12px; font-weight: 800; white-space: nowrap; padding: 7px 11px; border: 1px solid #c7d9e4; border-radius: 6px; color: var(--ban-blue); background: #eaf3f8; }
.ban-search-form { display: flex; align-items: flex-start; gap: 14px; }
.ban-search-field { flex: 1; min-width: 0; }
.ban-search-field label, .ban-period-field label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.ban-search-field input, .ban-period-field select { width: 100%; height: 48px; padding: 0 14px; border: 2px solid #b5a183; border-radius: 7px; background: var(--ban-surface); color: var(--ink); font: inherit; font-size: 15px; }
.ban-search-field input:focus, .ban-period-field select:focus { outline: 3px solid #c6e5f8; border-color: var(--maple-blue); }
.ban-search-form .retro-button { margin-top: 23px; height: 48px; flex-shrink: 0; }
.ban-help, .ban-disclaimer { color: var(--ban-muted); font-size: 12px; line-height: 1.65; margin: 8px 0 0; }
.ban-disclaimer { border-top: 1px dashed #d6c8b3; padding-top: 14px; margin-top: 14px; }
.ban-disclaimer a { font-weight: 800; }
.ban-message { padding: 12px 14px; border: 1px solid #bfd8e8; border-radius: 6px; background: #eef6fb; color: #285b79; font-size: 13px; line-height: 1.6; margin-bottom: 0; overflow-wrap: anywhere; }
.ban-message.ban-error, .ban-message.ban-warning { background: #fff0dc; border-color: #e1b77a; color: #805021; }
.ban-search-results { padding-top: 20px; }
.ban-results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ban-results-heading h3 { font-size: 17px; margin: 0; }
.ban-results-heading span { color: var(--ban-muted); font-size: 12px; }
.ban-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ban-table th { text-align: left; padding: 12px 10px; background: var(--ban-soft); color: var(--muted); font-size: 11px; }
.ban-table td { padding: 13px 10px; border-bottom: 1px solid var(--ban-grid); overflow-wrap: anywhere; vertical-align: middle; }
.ban-table th:first-child { width: 22%; }
.ban-table th:nth-child(4) { width: 25%; }
.ban-table th:nth-child(5), .ban-table th:nth-child(6) { width: 10%; }
.ban-record-name { font-weight: 900; font-size: 14px; color: var(--ban-blue); }
.ban-job-english { display: block; font-size: 11px; color: var(--ban-muted); margin-top: 3px; }
.ban-record-issue { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ban-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 16px; font-size: 12px; }
.ban-pagination button, .ban-expand { font: inherit; border: 1px solid #b9cbd5; border-radius: 6px; color: var(--ban-blue); background: var(--ban-surface); padding: 8px 12px; cursor: pointer; font-weight: 800; }
.ban-pagination button:disabled, .retro-button:disabled { opacity: .5; cursor: default; }
.ban-period-field { width: 218px; flex-shrink: 0; }
.ban-period-field label { margin-bottom: 5px; }
.ban-period-field select { height: 42px; font-size: 13px; }
.ban-counting-note { font-size: 12px; color: var(--ban-muted); margin: -8px 0 20px; line-height: 1.7; }
.ban-metrics { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 12px; }
.ban-metric { display: flex; flex-direction: column; padding: 17px 18px; border: 1px solid #ded3be; border-radius: 8px; background: var(--ban-surface); min-width: 0; }
.ban-metric span { font-size: 12px; color: var(--muted); font-weight: 800; }
.ban-metric strong { font-size: 32px; font-weight: 900; margin: 8px 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ban-metric small { font-size: 11px; color: var(--ban-muted); }
.ban-metric-main { background: #eaf3ed; border-color: #9ec6ad; }
.ban-metric-main strong { color: #2c7647; }
.ban-update-status { margin: 14px 0 22px; font-size: 11px; color: var(--ban-muted); line-height: 1.6; }
.ban-charts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.ban-chart { min-width: 0; padding: 22px 18px; border: 1px solid #ded3be; border-radius: 9px; background: var(--ban-surface); }
.ban-chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.ban-chart-heading h3 { font-size: 17px; margin: 0; }
.ban-chart-heading p { font-size: 11px; color: var(--ban-muted); margin: 7px 0 0; }
.ban-chart-symbol { font-size: 23px; }
.ban-bar-list { display: grid; gap: 14px; }
.ban-bar-row { display: grid; grid-template-columns: minmax(100px, 1.1fr) minmax(80px, 1.45fr) 58px; gap: 10px; align-items: center; min-width: 0; }
.ban-bar-label { display: flex; align-items: center; min-width: 0; gap: 8px; font-size: 12px; font-weight: 800; }
.ban-bar-label-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.ban-bar-label-text small { display: block; font-size: 10px; font-weight: 400; color: var(--ban-muted); margin-top: 3px; }
.ban-bar-rank { display: grid; place-items: center; flex: 0 0 21px; height: 21px; font-size: 10px; background: var(--ban-soft); border-radius: 5px; color: var(--ban-muted); }
.ban-bar-row:nth-child(-n+3) .ban-bar-rank { background: #ffe6b5; color: #8b5b16; }
.ban-bar-track { height: 17px; border-radius: 4px; background: var(--ban-soft); overflow: hidden; }
.ban-bar-svg { display: block; width: 100%; height: 100%; color: #5394b7; }
.ban-bar-row:nth-child(1) .ban-bar-svg { color: #d69a39; }
.ban-bar-row:nth-child(2) .ban-bar-svg { color: #4e9990; }
.ban-bar-row:nth-child(3) .ban-bar-svg { color: #6c89c3; }
.ban-bar-number { text-align: right; white-space: nowrap; }
.ban-bar-number strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.ban-bar-number small { display: block; font-size: 10px; color: var(--ban-muted); margin-top: 3px; }
.ban-expand { width: 100%; margin-top: 20px; font-size: 12px; padding: 10px; }
.ban-level-chart .ban-bar-row { grid-template-columns: 78px minmax(70px, 1fr) 58px; }
.ban-level-chart .ban-bar-svg { color: #55a084; }
.ban-level-chart .ban-bar-track { height: 25px; }
.ban-level-chart .ban-bar-list { gap: 22px; padding-top: 6px; }
.ban-chart-note { margin-top: 18px; font-size: 12px; color: var(--ban-muted); line-height: 1.7; }
.ban-world-summary { margin-top: 26px; padding-top: 20px; border-top: 1px dashed #d6c8b3; }
.ban-world-summary h4 { font-size: 13px; margin: 0 0 12px; }
.ban-world-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ban-world-pill { background: var(--ban-soft); border: 1px solid var(--ban-grid); border-radius: 6px; padding: 7px 9px; font-size: 11px; line-height: 1.3; }
.ban-world-pill strong { margin-left: 7px; color: var(--ban-blue); font-size: 12px; }
.ban-empty { color: var(--ban-muted); font-size: 13px; line-height: 1.6; margin: 12px 0; }
.ban-footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 5px 4px; font-size: 11px; font-weight: 800; color: #3c5133; }
.ban-footer a { text-decoration: none; }
.ban-noscript { position: fixed; bottom: 0; padding: 16px; background: #fff; width: 100%; }
[hidden] { display: none !important; }

html[data-theme="dark"] .banlists-page { --ban-surface: #242d38; --ban-soft: #2d3944; --ban-blue: #9ccfee; --ban-muted: #b6c0ce; --ban-grid: #46505c; }
html[data-theme="dark"] .ban-mascot { background: radial-gradient(circle, #3c3940 0 60%, transparent 61%); }
html[data-theme="dark"] .ban-tag { background: #263b4b; border-color: #426176; }
html[data-theme="dark"] .ban-metric, html[data-theme="dark"] .ban-chart { border-color: #535867; }
html[data-theme="dark"] .ban-metric-main { background: #243e36; border-color: #548271; }
html[data-theme="dark"] .ban-metric-main strong { color: #a6d9b8; }
html[data-theme="dark"] .ban-search-field input, html[data-theme="dark"] .ban-period-field select { border-color: #657180; }
html[data-theme="dark"] .ban-message { background: #253e50; color: #c2deee; border-color: #48718a; }
html[data-theme="dark"] .ban-warning, html[data-theme="dark"] .ban-error { background: #493b2a; color: #f2d0a5; border-color: #927954; }
html[data-theme="dark"] .ban-footer { color: #d0dbcc; }

@media (max-width: 920px) {
  .ban-charts { grid-template-columns: 1fr; }
  .ban-bar-row { grid-template-columns: minmax(110px, 1fr) minmax(90px, 2fr) 64px; }
  .ban-level-chart .ban-bar-row { grid-template-columns: 88px minmax(90px, 1fr) 64px; }
}
@media (max-width: 600px) {
  .ban-shell { width: calc(100% - 24px); margin-top: 14px; gap: 20px; }
  .ban-heading, .ban-section { padding: 20px 16px; }
  .ban-heading { gap: 8px; }
  .ban-heading h1 { font-size: 33px; }
  .ban-intro { font-size: 12px; }
  .ban-eyebrow { font-size: 9px; letter-spacing: .05em; }
  .ban-mascot { flex-basis: 68px; width: 68px; height: 82px; }
  .ban-mascot img { width: 66px; height: 42px; }
  .window-titlebar { font-size: 10px; gap: 6px; }
  .window-controls { display: none; }
  .ban-section-heading { align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
  .ban-section h2 { font-size: 20px; }
  .ban-tag { font-size: 10px; padding: 5px 7px; }
  .ban-search-form { flex-direction: column; gap: 8px; }
  .ban-search-field, .ban-search-form .retro-button { width: 100%; }
  .ban-search-form .retro-button { margin: 0; }
  .ban-period-field { width: 100%; }
  .ban-counting-note { margin-top: 0; }
  .ban-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ban-metric { padding: 13px 11px; }
  .ban-metric strong { font-size: 26px; }
  .ban-chart { padding: 18px 12px; }
  .ban-chart-heading h3 { font-size: 16px; }
  .ban-bar-row { grid-template-columns: minmax(92px, 1.1fr) minmax(40px, 1fr) 46px; gap: 7px; }
  .ban-bar-label { font-size: 11px; gap: 5px; }
  .ban-bar-label-text small { font-size: 9px; }
  .ban-bar-number strong { font-size: 12px; }
  .ban-bar-number small { font-size: 9px; }
  .ban-level-chart .ban-bar-row { grid-template-columns: 66px minmax(45px, 1fr) 46px; }
  .ban-level-chart .ban-bar-track { height: 22px; }
  .ban-results-heading { flex-direction: column; gap: 6px; }
  .ban-table, .ban-table tbody { display: block; }
  .ban-table thead { display: none; }
  .ban-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; border: 1px solid var(--ban-grid); background: var(--ban-surface); border-radius: 7px; padding: 14px; margin-bottom: 10px; }
  .ban-table td { display: block; padding: 0; border: 0; font-size: 12px; }
  .ban-table td::before { display: block; content: attr(data-label); font-size: 10px; font-weight: 400; color: var(--ban-muted); margin-bottom: 4px; }
  .ban-table td:first-child { grid-column: 1 / -1; }
  .ban-pagination { gap: 8px; font-size: 10px; }
  .ban-pagination button { padding: 8px; }
  .ban-footer { gap: 12px; line-height: 1.8; }
}
@media (max-width: 360px) {
  #ban-level-range { font-size: 22px; white-space: nowrap; }
}
