:root {
  color-scheme: light;
  --ink: #24352d;
  --muted: #647069;
  --bg: #fbf4e2;
  --panel: #ffffff;
  --panel-soft: #ffffff;
  --line: #e0e3da;
  --forest: #24352d;
  --forest-deep: #283328;
  --green: #245843;
  --gold: #deb64f;
  --gold-edge: #9a7118;
  --danger: #a44336;
  --shadow: 0 10px 26px rgb(36 53 45 / 10%);
  font-family: Rubik, "Trebuchet MS", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--gold-edge); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 50; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .7rem 1rem; border-radius: 10px; background: var(--gold); color: var(--forest-deep); font-weight: 900; }
.skip-link:focus { transform: none; }

.site-header { width: min(1220px, calc(100% - 2.5rem)); min-height: 5.5rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; color: #245843; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 5px rgb(38 67 46 / 15%)); }
.brand span { display: grid; }
.brand strong { font-size: 1.08rem; font-weight: 950; letter-spacing: -.02em; }
.brand small { color: var(--gold-edge); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.top-nav__item { border: 0; border-radius: 999px; padding: .7rem 1rem; background: transparent; color: #245843; font-size: .84rem; font-weight: 850; text-decoration: none; }
.top-nav__item:hover:not(:disabled) { background: #ffffff; }
.top-nav__item.is-active { background: var(--gold); color: var(--forest-deep); box-shadow: inset 0 -3px var(--gold-edge); }
.top-nav__item--store { border-radius: 12px; background: var(--gold); color: var(--forest-deep); box-shadow: 0 4px 0 var(--gold-edge); }
.top-nav__item--store:hover { background: #e7c468; color: var(--forest-deep); transform: translateY(-1px); }

.page-intro, .shell, footer { width: min(1220px, calc(100% - 2.5rem)); margin-inline: auto; }
.page-intro { padding: 4.2rem 0 2.2rem; text-align: center; }
.intro-meta { display: flex; justify-content: center; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.section-kicker { margin: 0; color: var(--gold-edge); font-size: .72rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.period-pill { display: inline-flex; padding: .33rem .65rem; border: 1px solid #e7c975; border-radius: 999px; background: #fff3ca; color: #8c6013; font-size: .69rem; font-weight: 900; }
.page-intro h1 { margin: 0; color: var(--forest); font-size: clamp(3rem, 7vw, 4.9rem); font-weight: 1000; line-height: .94; letter-spacing: -.065em; text-transform: uppercase; }
.page-intro > p { margin: 1rem auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 650; }
.shell { margin-bottom: 4rem; }
.demo-banner { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; margin-bottom: 1rem; background: #fff1bd; border: 1px solid #e4c056; color: #765110; border-radius: 14px; }
.demo-banner strong { color: var(--forest); font-size: .78rem; text-transform: uppercase; }
.utility-row { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; margin-bottom: 1rem; }
.freshness { margin-left: auto; color: var(--muted); font-size: .76rem; text-align: right; }
.freshness strong { display: block; color: var(--forest); font-weight: 900; }
.freshness .is-stale { color: var(--danger); }

.scope-tabs { display: inline-flex; padding: .3rem; background: #ffffff; border: 1px solid var(--line); border-radius: 999px; }
.scope-tabs button { min-height: 2.5rem; border: 0; border-radius: 999px; padding: .55rem 1.25rem; background: transparent; color: #68766f; font-weight: 900; }
.scope-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--forest-deep); box-shadow: 0 3px 0 var(--gold-edge); }

.filters { display: grid; grid-template-columns: minmax(220px, 1fr) auto 190px 190px; grid-template-areas: "search submit category period"; gap: .65rem; align-items: end; padding: .75rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.filter-disclosure { display: none; }
.filter-disclosure summary { display: none; }
.field { display: grid; gap: .3rem; color: var(--muted); font-size: .7rem; font-weight: 850; }
.field input, .field select { width: 100%; height: 3.4rem; min-height: 3.4rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 13px; background: #fffdfa; color: var(--ink); text-align: left; }
.field--search { grid-area: search; }
.field--search input { border: 0; background: white; font-weight: 700; }
.field--category { grid-area: category; }
.field--period { grid-area: period; }
.search-button { grid-area: submit; display: grid; place-items: center; height: 3.4rem; min-height: 3.4rem; text-align: center; }
.field input, .field select, .search-button { font-size: .9rem; line-height: 1.2; }
.search-button, .retry { min-height: 3.35rem; padding: .65rem 1.25rem; border: 0; border-radius: 13px; background: var(--gold); color: var(--forest-deep); font-weight: 950; box-shadow: 0 4px 0 var(--gold-edge); }
.search-button:hover, .retry:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--gold-edge); }

.category-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin: 1.35rem 0; }
.category-card { position: relative; min-height: 154px; overflow: hidden; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; color: var(--ink); text-align: left; box-shadow: 0 5px 16px rgb(36 53 45 / 9%); }
.category-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 9px 20px rgb(36 53 45 / 13%); }
.category-card.is-active { outline: 3px solid var(--gold); outline-offset: 2px; background: #ffffff; }
.category-card__status { position: relative; z-index: 2; display: inline-flex; margin-bottom: .65rem; padding: .24rem .48rem; border: 1px solid #ead392; border-radius: 999px; background: #fff5d8; color: #8b6217; font-size: .61rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.category-card strong { position: relative; z-index: 2; display: block; max-width: 56%; overflow-wrap: normal; word-break: normal; hyphens: none; color: var(--forest); font-size: 1.02rem; line-height: 1.08; }
.category-card small { position: relative; z-index: 2; display: block; max-width: 50%; margin-top: .5rem; overflow-wrap: anywhere; color: var(--muted); font-size: .67rem; font-weight: 800; }
.category-card__unit { letter-spacing: .04em; text-transform: uppercase; }
.category-card__art { position: absolute; z-index: 1; right: -.2rem; bottom: -.15rem; width: 45%; height: 90%; object-fit: contain; object-position: right bottom; pointer-events: none; }

.rankings-panel { display: grid; grid-template-columns: 205px minmax(0, 1fr); overflow: hidden; min-height: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.category-rail { padding: 1.25rem .85rem; background: var(--bg); border-right: 1px solid var(--line); }
.category-rail > p { margin: 0 .6rem .75rem; color: #81745d; font-size: .69rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.category-rail > div { display: grid; gap: .3rem; }
.rail-button { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: .65rem; align-items: center; padding: .72rem .65rem; border: 0; border-radius: 12px; background: transparent; color: #586961; text-align: left; }
.rail-button:hover, .rail-button.is-active { background: white; color: var(--forest); box-shadow: 0 3px 9px rgb(61 45 17 / 8%); }
.rail-button.is-active { font-weight: 950; }
.rail-button__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.rail-button[data-status="paused"] .rail-button__dot { background: var(--gold-edge); }
.rail-button[data-status="shadow"] .rail-button__dot { background: var(--gold-edge); }
.rail-button[data-status="unavailable"] .rail-button__dot { background: #a9aaa4; }
.rail-button[data-status="informational"] .rail-button__dot { background: #497ca8; }
.rail-button span:last-child { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.rankings-content { min-width: 0; padding: 1.5rem; }
.rankings-heading { margin: 1.25rem 0 .9rem; }
.rankings-heading h2 { margin: .25rem 0 0; color: var(--forest); font-size: 1.65rem; font-weight: 950; }

.notice { margin: .8rem 0; padding: .8rem .95rem; background: #eef8ef; border-left: 4px solid var(--green); border-radius: 9px; color: #4c665b; font-size: .82rem; line-height: 1.45; }
.notice strong { color: var(--forest); }
.notice--info { border-color: #497ca8; background: #eef6fc; }
.notice--warning { border-color: var(--gold-edge); background: #fff7dc; }
.notice--error { border-color: var(--danger); background: #fff0ec; }
.state-card { margin: .85rem 0; padding: 2.2rem 1rem; border: 1px dashed #ddcfb1; background: var(--panel-soft); border-radius: 16px; text-align: center; }
.state-card h3 { margin: 0 0 .45rem; color: var(--forest); font-size: 1.15rem; }
.state-card p { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.55; }
.retry { margin-top: 1rem; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: end; margin: 1.3rem 0 1rem; padding-top: 1.5rem; }
.podium:empty { display: none; }
.podium-card { min-width: 0; min-height: 132px; display: grid; justify-items: center; align-content: center; padding: 1rem .7rem; border: 1px solid var(--line); border-radius: 17px 17px 8px 8px; background: #ffffff; color: var(--ink); text-align: center; box-shadow: inset 0 -5px var(--line); }
.podium-card--1 { order: 2; min-height: 165px; background: #fff3c9; box-shadow: inset 0 -5px #eac45d; }
.podium-card--2 { order: 1; }
.podium-card--3 { order: 3; background: #ffffff; box-shadow: inset 0 -5px var(--line); }
.podium-card:nth-child(1) { order: 2; }
.podium-card:nth-child(2) { order: 1; }
.podium-card:nth-child(3) { order: 3; }
.podium-card__rank { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: .55rem; border-radius: 50%; background: var(--gold); color: var(--forest-deep); font-weight: 950; box-shadow: 0 3px 0 var(--gold-edge); }
.podium-card--1 .podium-card__rank { width: 3.2rem; height: 3.2rem; background: var(--gold); color: var(--forest-deep); box-shadow: 0 3px 0 var(--gold-edge); }
.podium-card__name { max-width: 100%; margin: 0; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.podium-card__score { margin: .32rem 0 0; color: var(--gold-edge); font-size: .78rem; font-weight: 900; }

.ranking-panel { overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 14px; }
#table-region > .state-card { margin: 0; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { background: #faf4e7; color: #827761; font-size: .66rem; text-align: left; letter-spacing: .08em; text-transform: uppercase; }
.ranking-table th, .ranking-table td { padding: .78rem .85rem; border-bottom: 1px solid var(--line); }
.ranking-table tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover { background: #fffaf0; }
.ranking-table tbody tr.is-selected { background: #fff4cd; box-shadow: inset 4px 0 var(--gold); }
.rank { width: 4.5rem; color: var(--gold-edge); font-weight: 950; }
.score { text-align: right !important; color: var(--forest); font-variant-numeric: tabular-nums; font-weight: 950; }
.profile-button { width: 100%; min-height: 2rem; padding: .2rem 0; border: 0; background: none; color: var(--forest); font-weight: 900; text-align: left; }
.profile-button, .podium-card__name, #profile-title { overflow-wrap: anywhere; }
.profile-button:hover { color: #297257; text-decoration: underline; text-underline-offset: .2rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem .85rem; background: #faf4e7; color: var(--muted); font-size: .75rem; }
.pagination__buttons { display: flex; gap: .45rem; }
.pagination button { min-height: 2.15rem; padding: .4rem .7rem; border: 1px solid #d6c9af; border-radius: 9px; background: white; color: var(--forest); font-weight: 850; }
.pagination button:disabled { cursor: not-allowed; opacity: .38; }

.standings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 300px); gap: .9rem; align-items: start; }
.selected-entry-panel { position: sticky; top: 1rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.selected-entry-panel .state-card { margin: 0; padding: 1.35rem .75rem; }
.selected-entry__name { margin: .35rem 0 .55rem; overflow-wrap: anywhere; color: var(--forest); font-size: 1.35rem; line-height: 1.08; }
.selected-entry__status { display: inline-flex; margin: 0 0 .85rem; padding: .3rem .55rem; border: 1px solid #e3cf8f; border-radius: 999px; background: #fff4cd; color: #7d5916; font-size: .67rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.selected-entry__status.is-informational { border-color: #b9d2e6; background: #edf6fc; color: #315f84; }
.selected-entry__summary { display: grid; gap: .5rem; margin: 0; }
.selected-entry__summary div { padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.selected-entry__summary dt { color: var(--muted); font-size: .65rem; font-weight: 800; }
.selected-entry__summary dd { margin: .2rem 0 0; overflow-wrap: anywhere; color: var(--forest); font-size: .86rem; font-weight: 950; }
.selected-entry__heading { margin: 1rem 0 .55rem; color: var(--forest); font-size: .83rem; }
.selected-entry-panel .breakdown { grid-template-columns: 1fr; margin-top: 0; }
.selected-entry__action { width: 100%; min-height: 2.65rem; margin-top: .85rem; border: 1px solid var(--gold-edge); border-radius: 10px; background: var(--gold); color: var(--forest-deep); font-weight: 950; box-shadow: 0 3px 0 var(--gold-edge); }
.selected-entry__action:hover { transform: translateY(-1px); }
.podium-card.is-selected { outline: 3px solid var(--gold); outline-offset: 2px; }

#competitions-view { padding: 1.4rem; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.competition-status-row { display: flex; justify-content: flex-end; margin: -.2rem 0 .8rem; }
.competition-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.feature-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-soft); }
.feature-card--live { position: relative; overflow: hidden; background: #ffffff; color: var(--ink); border-color: var(--gold); box-shadow: 0 5px 0 var(--gold); }
.feature-card__art { position: absolute; z-index: 0; top: .8rem; right: 1rem; width: 88px; height: 88px; object-fit: contain; pointer-events: none; }
.feature-card--live > :not(.feature-card__art) { position: relative; z-index: 1; }
.feature-card--live > h3, .feature-card--live > #competition-window { max-width: calc(100% - 100px); }
.feature-card h3 { margin: .35rem 0 .5rem; font-size: 1.45rem; font-weight: 950; }
.feature-card > p:not(.section-kicker,.status-pill) { color: inherit; opacity: .75; line-height: 1.5; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; margin: 0; color: #245843; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.status-pill span { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.rule-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.1rem; }
.rule-meta div { padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.rule-meta dt { color: var(--muted); font-size: .65rem; }
.rule-meta dd { margin: .22rem 0 0; font-size: .76rem; font-weight: 850; overflow-wrap: anywhere; }
.rules-list { margin: .85rem 0 0; padding-left: 1.2rem; color: #52685f; line-height: 1.5; }
.rules-list li + li { margin-top: .48rem; }
.archive-heading { margin: 1.8rem 0 .7rem; }
.archive-heading h3 { margin: .3rem 0 0; color: var(--forest); font-size: 1.5rem; }
.archive-list { display: grid; gap: .6rem; }
.archive-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.archive-row h4 { margin: 0 0 .2rem; }
.archive-row p { margin: 0; color: var(--muted); font-size: .76rem; }
.archive-winner { text-align: right; }
.archive-winner strong { display: block; color: var(--gold-edge); }

.guide-view { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.guide-heading { max-width: 760px; margin-bottom: 1.25rem; }
.guide-heading h2 { margin: .3rem 0 .55rem; color: var(--forest); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.guide-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.guide-list, .guide-grid { display: grid; gap: 1rem; }
.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 17px; background: var(--panel-soft); }
.guide-card h3 { margin: 0 0 .55rem; color: var(--forest); font-size: 1.2rem; }
.guide-card p, .guide-card li, .guide-card dd { color: var(--muted); line-height: 1.55; }
.guide-card ul { margin: .85rem 0 0; padding-left: 1.2rem; }
.guide-card li + li { margin-top: .35rem; }
.guide-card--wide { grid-column: 1 / -1; }
.guide-steps { margin: .85rem 0 0; padding-left: 1.35rem; }
.guide-result { margin-bottom: 0; padding: .75rem; border-left: 4px solid var(--gold); background: #fff8df; }
.guide-card__tag { display: inline-block; margin: 0 0 .6rem; padding: .25rem .55rem; border-radius: 999px; background: var(--gold); color: var(--forest-deep) !important; font-size: .7rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.guide-card__tag--muted { background: #e9e3d5; }
.guide-card__meta { margin: 0 0 .55rem; color: var(--gold-edge) !important; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.command-card { display: grid; gap: .3rem; margin-top: .75rem; padding: .75rem; border: 1px solid #e3cf8f; border-radius: 12px; background: #fff8df; }
.command-card code { overflow-wrap: anywhere; color: var(--forest-deep); font-weight: 900; }
.command-card span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.guide-definitions { display: grid; gap: .6rem; margin: .85rem 0 0; }
.guide-definitions div { padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.guide-definitions dt { color: var(--forest); font-weight: 900; }
.guide-definitions dd { margin: .2rem 0 0; }

dialog { width: min(520px, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid #ddcfb2; border-radius: 20px; background: white; color: var(--ink); box-shadow: 0 22px 60px rgb(23 59 49 / 32%); }
dialog::backdrop { background: rgb(19 48 40 / 62%); }
.dialog-close { position: absolute; top: .7rem; right: .7rem; width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; background: #f1e8d5; color: var(--forest); font-size: 1.2rem; }
.profile-rank { color: var(--gold-edge); font-size: .75rem; font-weight: 900; }
#profile-title { margin: .3rem 0 0; color: var(--forest); font-size: 1.75rem; }
.profile-score { color: var(--gold-edge); font-size: 1.15rem; font-weight: 950; }
.breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: 1rem; }
.breakdown div { padding: .75rem; border: 1px solid var(--line); border-radius: 12px; }
.breakdown dt { color: var(--muted); font-size: .7rem; }
.breakdown dd { margin: .25rem 0 0; font-size: 1.05rem; font-weight: 900; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.7rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer strong { color: var(--forest); }

@media (max-width: 900px) {
  .category-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(180px, 1fr) auto 170px; grid-template-areas: "search submit category" "period period period"; }
  .rankings-panel { grid-template-columns: 175px minmax(0, 1fr); }
  .standings-grid { grid-template-columns: 1fr; }
  .selected-entry-panel { position: static; }
}

@media (max-width: 720px) {
  .site-header { min-height: 0; align-items: flex-start; flex-wrap: wrap; gap: .4rem; padding: .6rem 0; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: .98rem; }
  .brand small { font-size: .61rem; }
  .top-nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-nav__item { padding: .65rem .3rem; font-size: .76rem; text-align: center; }
  .top-nav__item--store { grid-column: 1 / -1; }
  .page-intro { padding: 1.7rem 0 1.2rem; }
  .page-intro > p { margin-top: .65rem; }
  .utility-row { gap: .55rem; margin-bottom: .7rem; }
  .scope-tabs { padding: .2rem; }
  .scope-tabs button { min-height: 2.25rem; padding: .45rem .85rem; }
  .freshness { font-size: .7rem; }
  .freshness span { display: none; }
  .filters { grid-template-columns: 1fr; grid-template-areas: "category" "details"; gap: .55rem; padding: .65rem; }
  .filter-disclosure { grid-area: details; display: block; border: 1px solid var(--line); border-radius: 13px; background: #fffdfa; }
  .filter-disclosure[open] { display: block; padding: .55rem; }
  .filter-disclosure summary { display: list-item; padding: .75rem .85rem; color: var(--forest); font-weight: 900; cursor: pointer; }
  .filter-disclosure[open] summary { margin: -.55rem -.55rem .65rem; border-bottom: 1px solid var(--line); }
  .filter-disclosure[open] .search-button { width: 100%; margin-block: .65rem .9rem; }
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; }
  .category-card { min-width: 0; min-height: 128px; padding: .8rem; }
  .category-card strong { max-width: 56%; }
  .category-card small { max-width: 58%; }
  .category-card__art { width: 38%; height: 82%; }
  .rankings-panel { display: block; }
  .category-rail { display: none; }
  .rankings-content { padding: 1rem; }
  .competition-grid { grid-template-columns: 1fr; }
  .rule-meta { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header, .page-intro, .shell, footer { width: calc(100% - 1.2rem); }
  .page-intro h1 { font-size: clamp(2.45rem, 13vw, 3.4rem); }
  .intro-meta { flex-wrap: wrap; }
  .utility-row { align-items: center; flex-direction: row; }
  .freshness { margin-left: auto; text-align: right; }
  .rankings-content { padding: 1rem .65rem; }
  .podium { gap: .4rem; }
  .podium-card { min-height: 118px; padding-inline: .35rem; }
  .podium-card--1 { min-height: 145px; }
  .ranking-table th:nth-child(3), .ranking-table td:nth-child(3) { display: none; }
  .ranking-table th, .ranking-table td { padding: .7rem .5rem; }
  .rank { width: 3rem; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .archive-row { grid-template-columns: 1fr; }
  .archive-winner { text-align: left; }
  footer { flex-direction: column; }
}

@media (max-width: 340px) {
  .category-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
