: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: #76510e;
  --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 { 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, .home-view, footer { font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
.site-header { width: min(1220px, calc(100% - 2.5rem)); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #dfd8c8; }
.brand { display: flex; align-items: center; gap: .65rem; color: #282724; text-decoration: none; }
.brand img { width: 70px; height: auto; aspect-ratio: 1192 / 670; object-fit: contain; }
.brand span { display: grid; }
.brand strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; }
.brand small { color: var(--gold-edge); font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.top-nav__item { min-height: 44px; display: inline-flex; align-items: center; border: 0; border-radius: 8px; padding: .65rem .85rem; background: transparent; color: #4a4842; font-size: .875rem; font-weight: 650; text-decoration: none; }
.top-nav__item:hover:not(:disabled) { background: rgb(255 255 255 / 70%); color: #282724; }
.top-nav__item.is-active { background: #fff2cc; color: #463712; box-shadow: none; }
.top-nav__item--store { background: var(--gold); color: #352a0d; }
.top-nav__item--store:hover { background: #e3bd59; color: #352a0d; }

.server-utility { width: min(1220px, calc(100% - 2.5rem)); min-height: 58px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid #dfd8c8; color: #282724; font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
.server-utility__address { min-width: 0; display: flex; align-items: center; gap: .65rem; }
.server-utility__address > span:first-child { color: #6a665d; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.server-utility__address strong { color: #282724; font-size: .95rem; font-weight: 700; }
.server-utility button, .server-utility__discord { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem .9rem; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 700; }
.server-utility button { border: 1px solid #d6c7a6; background: #ffffff; color: #4c3a12; }
.server-utility button:hover { border-color: var(--gold-edge); background: #fffaf0; }
.server-utility__feedback { min-width: 215px; color: #665c44; font-size: .78rem; }
.server-utility__discord { border: 1px solid var(--gold); background: #fff2cc; color: #493813; text-decoration: none; white-space: nowrap; }
.server-utility__discord:hover { background: #f7df9e; }

.home-view, .page-intro, .shell, footer { width: min(1220px, calc(100% - 2.5rem)); margin-inline: auto; }
.home-view { padding: 0 0 3.5rem; color: #282724; }
.home-masthead { min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem 2.4rem; text-align: center; }
.home-masthead__logo { display: block; width: clamp(220px, 20vw, 260px); height: auto; aspect-ratio: 1192 / 670; object-fit: contain; }
.home-eyebrow { margin: .55rem 0 0; color: var(--gold-edge); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.home-masthead h1 { margin: .45rem 0 0; color: #282724; font-size: clamp(3.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
.home-masthead__lead { max-width: 640px; margin: .9rem auto 0; color: #5d5a53; font-size: 1rem; font-weight: 400; line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.35rem; }
.home-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .78rem 1.3rem; border: 1px solid transparent; border-radius: 8px; color: #2f352f; font-size: .9rem; font-weight: 700; text-decoration: none; }
.home-action--primary { border-color: var(--gold); background: var(--gold); }
.home-action--primary:hover { background: #e3bd59; }
.home-action--secondary { border-color: #d7c9a9; background: transparent; }
.home-action--secondary:hover { border-color: var(--gold-edge); background: #fffdf7; }
.home-discover { width: min(1120px, 100%); margin-inline: auto; }
.home-discover > h2 { margin: 0 0 1.6rem; color: #282724; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; text-align: center; }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-card { min-width: 0; overflow: hidden; border: 1px solid #e1d7c0; border-radius: 12px; background: #ffffff; box-shadow: 0 8px 22px rgb(74 57 27 / 7%); }
.home-card__art { height: 150px; display: grid; place-items: center; overflow: hidden; background: #f7edd2; border-bottom: 1px solid #e6dcc5; }
.home-card__art img { display: block; width: min(150px, 100%); height: min(150px, 100%); padding: 12px; object-fit: contain; }
.home-card__body { min-height: 215px; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.45rem; }
.home-card h3 { margin: 0; color: #282724; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.home-card p { margin: .65rem 0 1.15rem; color: #5d5a53; font-size: 1rem; line-height: 1.55; }
.home-card a { margin-top: auto; color: #7f5b0d; font-size: .9rem; font-weight: 700; text-decoration: none; }
.home-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.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: #744d08; 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: #714b08; 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: #645945; 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__copy { min-width: 0; display: grid; gap: .08rem; }
.rail-button__label { display: -webkit-box; overflow: hidden; font-size: .79rem; line-height: 1.2; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rail-button__status { color: var(--muted); font-size: .61rem; font-weight: 750; line-height: 1.2; }
.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; }
.results-status { min-height: 1.25em; margin: -.55rem 0 .8rem; color: var(--muted); font-size: .76rem; }

.notice { margin: .8rem 0; padding: .8rem .95rem; background: #fffaf0; border-left: 4px solid var(--gold-edge); border-radius: 9px; color: #645945; 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[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 220px; margin-inline: auto; }
.podium[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 447px; margin-inline: auto; }
.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: #625844; 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; }
.score--pending { max-width: 12rem; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.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-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid #e4c35e; border-radius: 14px; background: #fff5d3; }
.competition-callout div { display: grid; gap: .18rem; }
.competition-callout strong { color: var(--forest); }
.competition-callout span { color: #5f5848; font-size: .82rem; }
.competition-callout a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .6rem .85rem; border-radius: 9px; background: var(--forest); color: white; font-size: .78rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.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; }
.competition-countdown { margin: -.25rem 0 .8rem; color: var(--forest) !important; font-weight: 900; opacity: 1 !important; }
.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; }
.competition-scoring { display: grid; gap: .45rem; margin: .85rem 0 1rem; }
.competition-scoring div { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.competition-scoring dt { color: var(--forest); font-weight: 900; }
.competition-scoring dd { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.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-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: end; margin: 0 0 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.guide-search label { display: grid; gap: .3rem; color: var(--muted); font-size: .7rem; font-weight: 850; }
.guide-search input { min-height: 44px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.guide-search button { min-height: 44px; padding: .65rem .9rem; border: 1px solid #d6c9af; border-radius: 10px; background: white; color: var(--forest); font-weight: 850; }
.guide-search p { grid-column: 1 / -1; min-height: 1.2em; margin: 0; color: var(--muted); font-size: .75rem; }
.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; }
.testing-walkthroughs { padding: .85rem 1rem; border: 1px solid #ddcfb1; border-radius: 14px; background: #fffaf0; }
.testing-walkthroughs summary { min-height: 44px; display: flex; align-items: center; color: var(--forest); font-weight: 900; cursor: pointer; }
.testing-walkthroughs > p { margin: 0 0 .85rem; color: var(--muted); font-size: .82rem; }
.testing-walkthroughs > .guide-grid { margin-top: .35rem; }
.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; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .65rem; align-items: center; 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 { grid-column: 1; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.command-copy { grid-column: 2; grid-row: 1 / span 2; min-width: 4.5rem; min-height: 44px; padding: .5rem .65rem; border: 1px solid #d1b45e; border-radius: 9px; background: white; color: var(--forest); font-size: .75rem; font-weight: 900; }
.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; }
.community-section { scroll-margin-top: 1rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid #e0c66f; border-radius: 18px; background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%); }
.community-section:focus { outline: 3px solid var(--gold-edge); outline-offset: 4px; }
.community-heading { max-width: 760px; margin-bottom: 1rem; }
.community-heading h3 { margin: .35rem 0 .55rem; color: var(--forest); font-size: clamp(1.4rem, 3vw, 2rem); }
.community-heading p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.community-card h4 { margin: 0 0 .55rem; color: var(--forest); font-size: 1.2rem; }
.community-card--wide { grid-column: 1 / -1; }
.staff-commands { margin-top: 1rem; border-top: 1px solid var(--line); }
.staff-commands summary { min-height: 44px; display: flex; align-items: center; color: var(--forest); font-weight: 900; cursor: pointer; }
.community-destinations { display: grid; gap: .7rem; margin-top: 1rem; }
.community-destinations section { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; }
.community-destinations h5 { margin: .2rem 0 .35rem; color: var(--forest); font-size: 1rem; }
.community-destinations p { margin: 0 0 .45rem; }
.community-destinations code { color: var(--forest-deep); font-weight: 900; }
.destination-label { color: var(--gold-edge) !important; font-size: .68rem; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
.atlas-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; padding: 0; list-style: none; }
.atlas-stops li { min-width: 0; display: flex; align-items: center; gap: .55rem; padding: .7rem; border: 1px solid var(--line); border-radius: 11px; background: #fffdfa; color: var(--forest); }
.atlas-stops span { flex: 0 0 auto; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: var(--forest-deep); font-weight: 950; }
.atlas-stops strong { overflow-wrap: break-word; }

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; }
.profile-section-title { margin: 1.15rem 0 .55rem; color: var(--forest); font-size: .95rem; }
.profile-history { display: grid; gap: .45rem; margin: 0; }
.profile-history div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.profile-history dt { color: var(--muted); font-size: .75rem; }
.profile-history dd { margin: 0; color: var(--forest); font-size: .75rem; font-weight: 900; text-align: right; }
.profile-empty { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.profile-actions { display: grid; gap: .45rem; }
.profile-share-feedback { min-height: 1.2em; color: var(--muted); font-size: .72rem; }
.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: #68716d; font-size: .78rem; }
footer strong { color: #303733; font-weight: 700; }

@media (max-width: 900px) {
  .home-card__body { min-height: 235px; padding-inline: 1.2rem; }
  .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: 58px; height: auto; }
  .brand strong { font-size: .98rem; }
  .brand small { font-size: .61rem; }
  .top-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .top-nav__item { min-height: 44px; display: grid; place-items: center; padding: .55rem .2rem; font-size: clamp(.66rem, 2.7vw, .76rem); line-height: 1.1; text-align: center; }
  .server-utility { gap: .45rem .7rem; padding: .45rem 0; }
  .server-utility__address { flex: 1 1 auto; flex-wrap: wrap; gap: .35rem .5rem; }
  .server-utility__address > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .server-utility__feedback { min-width: 0; min-height: 1.1em; flex: 1 1 100%; }
  .server-utility__feedback:empty { display: none; }
  .server-utility__discord { flex: 0 0 auto; }
  .home-view { padding-bottom: 2.5rem; }
  .home-masthead { min-height: 410px; padding-inline: 0; }
  .home-masthead h1 { font-size: clamp(3rem, 14vw, 3.6rem); }
  .home-masthead__lead { max-width: 520px; }
  .home-cards { grid-template-columns: 1fr; gap: 1rem; }
  .home-card { display: grid; grid-template-columns: 145px minmax(0, 1fr); }
  .home-card__art { height: 100%; min-height: 165px; border-right: 1px solid #e6dcc5; border-bottom: 0; }
  .home-card__body { min-height: 0; padding: 1.2rem; }
  .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; }
  .competition-callout { align-items: stretch; flex-direction: column; }
  .rule-meta { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card--wide { grid-column: auto; }
  .atlas-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-search { grid-template-columns: 1fr; }
  .guide-search p { grid-column: 1; }
}

@media (max-width: 600px) {
  .community-section { padding: .65rem; }
  .community-card { padding: .85rem; }
  .community-card .command-card { grid-template-columns: minmax(0, 1fr); gap: .45rem; padding: .65rem; }
  .community-card .command-card span { grid-column: 1; }
  .community-card .command-copy { grid-column: 1; grid-row: auto; width: 100%; }
}

@media (max-width: 520px) {
  .site-header, .server-utility, .home-view, .page-intro, .shell, footer { width: calc(100% - 1.2rem); }
  .home-actions { display: grid; }
  .home-action { width: 100%; }
  .home-masthead { min-height: 400px; padding-block: 1.6rem 2rem; }
  .home-masthead__logo { width: 220px; }
  .home-discover > h2 { margin-bottom: 1.25rem; }
  .home-card { display: block; }
  .home-card__art { height: 125px; min-height: 0; border-right: 0; border-bottom: 1px solid #e6dcc5; }
  .home-card__art img { width: 125px; height: 125px; padding: 12px; }
  .home-card__body { padding: 1.2rem 1.25rem 1.3rem; }
  .atlas-stops { grid-template-columns: 1fr; }
  .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 { table-layout: fixed; }
  .ranking-table th:nth-child(3), .ranking-table td:nth-child(3) { display: none; }
  .ranking-table th, .ranking-table td { padding: .7rem .5rem; }
  .ranking-table th:first-child, .ranking-table td:first-child { width: 4.5rem; }
  .ranking-table th:nth-child(2), .ranking-table td:nth-child(2) { width: 44%; }
  .ranking-table .profile-button { overflow-wrap: break-word; word-break: normal; font-size: .82rem; line-height: 1.25; }
  .ranking-table .score { overflow-wrap: normal; word-break: normal; font-size: .75rem; line-height: 1.25; }
  .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) {
  .home-masthead h1 { font-size: 2.85rem; }
  .top-nav__item { font-size: .64rem; }
  .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; }
}
