@font-face{font-family:Inter;src:url('/fonts/inter-latin-ext.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;src:url('/fonts/inter-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Space Grotesk;src:url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');font-weight:300 700;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Space Grotesk;src:url('/fonts/space-grotesk-latin.woff2') format('woff2');font-weight:300 700;font-display:swap}

:root {
  color-scheme: dark;
  --base: #131112;
  --header: #191617;
  --surface: #1d191a;
  --raised: #272122;
  --line: #3b3133;
  --ink: #faf5f3;
  --muted: #c0b2b3;
  --subtle: #a89a9c;
  --accent: #ff6969;
  --accent-soft: #382225;
  --accent-border: #713c41;
  --green: #77e0a7;
  --amber: #fbd68d;
  --title: "Space Grotesk", Inter, sans-serif;
  font-family: Inter, sans-serif;
  font-size: 16px;
  background: var(--base);
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--title); letter-spacing: -.035em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.22rem); }
h3 { font-size: 1.22rem; }
p { line-height: 1.6; color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: default; }
button, input, select { border-radius: .68rem; }
small { font-size: .8rem; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#main:focus { outline: none; }
::selection { color: #1c1010; background: #ff8580; }
.skip { position: fixed; top: .8rem; left: .8rem; z-index: 40; transform: translateY(-150%); padding: .75rem; background: var(--raised); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: -.18em; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.surface { border: 1px solid var(--line); background: var(--surface); border-radius: .55rem; }
.initial { padding: 8rem 1.5rem; text-align: center; color: var(--muted); }

#header { z-index: 5; background: var(--header); border-bottom: 1px solid var(--line); }
.nav { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: .65rem; font: 700 1.19rem/1 var(--title); letter-spacing: -.04em; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand-accent { color: var(--accent); }
.nav nav { display: flex; height: 100%; gap: 1.6rem; align-items: stretch; }
.nav nav a { display: inline-flex; align-items: center; position: relative; white-space: nowrap; color: var(--muted); font-size: .9rem; font-weight: 600; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; height: 2px; inset-inline: 0; background: var(--accent); border-radius: 2px; }
.nav-tools { justify-content: end; display: flex; gap: .4rem; align-items: center; }
.search-toggle, .language, .nav-toggle { display: inline-flex; align-items: center; gap: .53rem; padding: .55rem .68rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); min-height: 38px; white-space: nowrap; font-size: .85rem; font-weight: 560; }
.search-toggle:hover, .language:hover, .nav-toggle:hover { border-color: var(--accent-border); color: var(--ink); }
.language { border-radius: .58rem; }
kbd { font: .75rem Inter, sans-serif; color: var(--subtle); border: 1px solid var(--line); border-radius: .25rem; min-width: 1.12rem; text-align: center; padding: .02rem .16rem; }
.nav-toggle { display: none; }

.main-content { padding-block: 2.15rem 4.5rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding: clamp(1.5rem, 5vw, 4.6rem) 0 clamp(1.5rem, 4vw, 3.5rem);
}
.hero h1 { font-size: clamp(3rem, 6.5vw, 6rem); line-height: .98; letter-spacing: -.075em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-content > p { margin-top: 1rem; font-size: 1.1rem; }
.hero-leaders { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: .5rem; }
.hero-leaders h2 { padding: 1rem 1.1rem; font-size: 1.15rem; }
.hero-leaders > p { padding: 0 1.1rem 1rem; }
.leader { width: 100%; display: grid; grid-template-columns: 2rem auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .63rem .8rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.leader:last-child { border-radius: 0 0 .5rem .5rem; }
.leader:hover { background: var(--raised); }
.leader > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.leader small { color: var(--muted); font-weight: 500; }
.hero-actions, .dialog-actions { display: flex; align-items: center; gap: .7rem; margin-top: 1.65rem; flex-wrap: wrap; }
.button { min-height: 2.72rem; display: inline-flex; align-items: center; justify-content: center; gap: .57rem; white-space: nowrap; padding: .64rem .95rem; border: 1px solid transparent; border-radius: .65rem; font-size: .87rem; font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
.button.primary { color: #1c1010; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #ff8580; }
.button.quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button.quiet:hover { background: var(--raised); border-color: var(--accent-border); }
.home-status { display: flex; align-items: center; justify-content: space-between; gap: .7rem 1rem; flex-wrap: wrap; padding-block: .85rem; border-block: 1px solid var(--line); }
.source-inline { display: flex; align-items: center; gap: .65rem; color: var(--subtle); font-size: .8rem; }
.data-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.data-status i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--green); }
.data-status.stale i, .source-inline .data-status:only-child i { background: var(--amber); box-shadow: none; }
.stats { display: flex; flex-wrap: wrap; gap: .45rem clamp(.85rem, 3vw, 2rem); margin: 0; }
.stats > div { display: flex; flex-direction: row-reverse; align-items: baseline; gap: .35rem; }
.stats dd { margin: 0; font: 700 1.05rem/1.1 var(--title); }
.stats dt { color: var(--muted); font-size: .82rem; }

.feature-icon, .mode-icon { display: inline-grid; place-items: center; flex: none; border: 1px solid var(--accent-border); border-radius: .45rem; width: 2.45rem; height: 2.45rem; background: var(--accent-soft); color: var(--accent); }
.feature-icon .icon, .mode-icon .icon { width: 1.22rem; height: 1.22rem; }
.mode-icon { width: 2.7rem; height: 2.7rem; }
.kit-icon { flex: none; width: 1.125rem; height: 1.125rem; object-fit: contain; image-rendering: pixelated; }
.mode-card .kit-icon { width: 1.625rem; height: 1.625rem; }

.section { margin-top: 3.2rem; scroll-margin-top: 1rem; }
.section-heading, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-heading { margin-bottom: 1rem; }
.page-heading { margin-block: .8rem 1.65rem; }
.page-heading p, .section-heading p { margin-top: .5rem; }
.page-heading p:empty { display: none; }
.mode-card:hover { background: var(--raised); border-color: var(--accent-border); }
.avatar { display: inline-grid; position: relative; flex: none; place-items: center; width: 2.2rem; height: 2.2rem; overflow: hidden; background: var(--raised); border: 1px solid var(--line); color: var(--muted); border-radius: .48rem; font: 700 .73rem/1 var(--title); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; object-fit: contain; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .78rem; }
.mode-card { display: flex; align-items: center; padding: .85rem; gap: .7rem; min-width: 0; }
.mode-card strong, .mode-card small { display: block; }
.mode-card small { color: var(--muted); margin-top: .25rem; }
.guide-grid { display: grid; border-top: 1px solid var(--line); }
.guide-card { padding: .85rem .35rem; display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; align-items: baseline; gap: .35rem 1rem; border-bottom: 1px solid var(--line); }
.guide-card:hover strong { color: var(--accent); }
.guide-card strong { font: 700 1.14rem/1.2 var(--title); }
.guide-card p { font-size: .95rem; }
.scoring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.scoring-grid > div { padding: 1.15rem; }
.scoring { display: grid; margin: .8rem 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.scoring div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .2rem .6rem; background: var(--raised); min-height: 2.35rem; border-radius: .45rem; padding: .35rem .5rem; font-size: .82rem; }
.scoring dd { margin: 0; font-weight: 700; }
.scoring small { font-weight: 400; color: var(--muted); }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .7rem; cursor: pointer; font-weight: 650; padding: .9rem 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary .icon { rotate: 180deg; }
.faq-list p { padding: 0 1rem .9rem; }
.faq-list p a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }

.connection-grid, .edition-grid { display: grid; gap: .85rem; }
.connection-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connection-address, .connection-status, .edition { padding: clamp(.9rem, 2.6vw, 1.5rem); }
.connection-address { border-top: 2px solid var(--accent); }
.connection-grid h2, .edition h3 { font-size: 1.28rem; margin-bottom: .7rem; }
.copy-address { display: flex; gap: .5rem; }
.copy-address input { min-width: 0; flex: 1; padding: .6rem .7rem; border: 1px solid var(--line); background: var(--base); font-family: ui-monospace, monospace; font-size: clamp(.82rem, 2vw, 1.15rem); }
.copy-address input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-feedback { margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.copy-feedback:empty { margin: 0; }
.online-count { margin-top: .18rem; }
.online-count strong { color: var(--ink); font: 700 1.6rem/1.2 var(--title); }
.edition > p { color: var(--accent); font-size: .88rem; }
.edition ol { display: grid; gap: .65rem; margin: 1rem 0 0; padding-left: 1.25rem; color: var(--muted); line-height: 1.55; }
.edition li::marker { color: var(--ink); font-weight: 700; }

.mode-tabs { display: flex; overflow-x: auto; gap: .22rem; border-bottom: 1px solid var(--line); padding-bottom: .7rem; scrollbar-width: thin; }
.mode-tabs a { flex: none; display: flex; align-items: center; gap: .45rem; border: 1px solid transparent; border-radius: .53rem; padding: .58rem .65rem; color: var(--muted); font-size: .87rem; font-weight: 630; }
.mode-tabs a:hover { color: var(--ink); background: var(--raised); }
.mode-tabs a[aria-current] { color: var(--ink); border-color: var(--accent-border); background: var(--accent-soft); }
.mode-tabs a[aria-current] .icon { color: var(--accent); }
.board-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding-block: 1rem .8rem; }
.filters { display: flex; align-items: stretch; flex-wrap: wrap; gap: .55rem; }
.filters select, .search-field, .filter-search { background: var(--surface); border: 1px solid var(--line); border-radius: .59rem; }
.filters select { height: 100%; min-height: 2.72rem; padding: .52rem 2rem .52rem .72rem; color: var(--muted); font-size: .84rem; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23c0b2b3' stroke-linecap='round' stroke-width='1.7'/%3E%3C/svg%3E") right .55rem center / 1rem no-repeat; }
.filter-search, .search-field { display: flex; gap: .55rem; align-items: center; padding-inline: .7rem; color: var(--muted); }
.filter-search input, .search-field input { background: transparent; border: 0; color: var(--ink); padding: .55rem 0; min-width: 0; width: 100%; }
.filter-search input { width: 12rem; font-size: .84rem; }
input:focus { outline: none; }
label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder { color: var(--subtle); }
.board-meta { margin-bottom: .7rem; font-size: .84rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: var(--raised); white-space: nowrap; color: var(--muted); font-size: .83rem; font-weight: 650; }
td, th { padding: .62rem .85rem; }
td { font-size: .91rem; border-top: 1px solid var(--line); }
td small { display: inline-block; color: var(--muted); font-size: .75rem; }
tr:hover td { background: var(--raised); }
td:first-child { width: 4.45rem; }
.rank-number { font: 700 1.04rem/1 var(--title); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-number.medal-1 { color: var(--amber); }
.rank-number.medal-2 { color: #d3d5ec; }
.rank-number.medal-3 { color: #e7ab90; }
.player-button { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-align: start; border: none; background: transparent; padding: 0; }
.player-button:hover strong { color: var(--accent); }
.player-button strong, .player-button small { display: block; white-space: nowrap; }
.player-button small { margin-top: .12rem; }
.point-number { white-space: nowrap; font: 700 1.05rem var(--title); font-variant-numeric: tabular-nums; }
.country { white-space: nowrap; color: var(--muted); font-size: .86rem; }
.kit-pills { display: flex; flex-wrap: wrap; gap: .32rem; }
.kit-pills > span { display: inline-flex; align-items: center; gap: .22rem; color: var(--muted); border: 1px solid var(--line); border-radius: .32rem; padding-left: .25rem; }
.kit-pills > span > :is(.icon, .kit-icon) { width: .875rem; height: .875rem; }
.tier { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 2.2rem; white-space: nowrap; color: var(--ink); background: var(--raised); padding: .24rem .33rem; border-radius: .32rem; font: 700 .8rem/1 var(--title); }
.tier-ht1, .tier-lt1 { color: #ffe1ad; background: #4d3324; }
.tier-ht2, .tier-lt2 { color: #e2c5ff; background: #422b59; }
.tier-ht3, .tier-lt3 { color: #a1ddff; background: #223d55; }
.tier-ht4, .tier-lt4 { color: #acebc3; background: #233f38; }
.tier-ht5, .tier-lt5 { color: #dfd9d8; background: #393233; }
.tier-ht1, .tier-ht2, .tier-ht3, .tier-ht4, .tier-ht5 { box-shadow: inset 0 0 0 1px currentColor; }
.tier-none { color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: .85rem; margin-top: 1.1rem; }
.pager small { color: var(--muted); }
.tier-row { display: flex; width: 100%; min-width: 0; align-items: center; gap: .38rem; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .42rem .49rem; text-align: left; color: var(--ink); font-size: .79rem; }
.tier-row:last-child { border-bottom: 0; }
.tier-row:hover { background: var(--raised); }
.tier-row .avatar { width: 1.7rem; height: 1.7rem; }
.tier-row strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 2.1rem 1rem; border: 1px solid var(--line); background: var(--surface); border-radius: .85rem; }
.empty > .icon { color: var(--accent); width: 1.6rem; height: 1.6rem; }
.retry { margin-top: .6rem; }

.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .87rem; padding: .3rem 0; margin-bottom: .75rem; }
.back-link:hover { color: var(--ink); }
.profile-head { border: 1px solid var(--line); border-radius: .95rem; background: var(--surface); padding: clamp(1.2rem, 4vw, 2.6rem); }
.profile-summary { display: flex; gap: clamp(.7rem, 4vw, 2rem); align-items: center; }
.body-render { width: 7rem; height: 8.6rem; border-radius: .72rem; font-size: 1.6rem; }
.body-render img { padding: .38rem; }
.profile-summary h1, .profile-summary h2 { overflow-wrap: anywhere; margin: .16rem 0 .35rem; }
.player-title { color: var(--accent); font-size: .86rem; font-weight: 700; }
.profile-stats { display: flex; flex-wrap: wrap; gap: .7rem 1.35rem; margin-top: .8rem; }
.profile-stats > div { display: grid; gap: .18rem; color: var(--ink); }
.profile-stats strong { font: 700 1.25rem var(--title); }
.profile-stats small { color: var(--muted); font-weight: 550; white-space: nowrap; }
.profile-table td:first-child { width: auto; }
.profile-mode { display: flex; align-items: center; gap: .48rem; font-weight: 650; white-space: nowrap; }
.profile-mode .mode-icon { width: 2rem; height: 2rem; }
.profile-mode .icon { width: 1.02rem; height: 1.02rem; }
.bare { border: none; background: transparent; padding: 0; }
.bare:hover .tier { filter: brightness(1.25); }
.quick-kits { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem; }
.quick-kits button { display: flex; align-items: center; gap: .46rem; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: .43rem; font-size: .82rem; font-weight: 650; }
.quick-kits button:hover { background: var(--raised); }
.quick-kits button > span:nth-child(2) { flex: 1; }
.quick-kits .mode-icon { width: 1.75rem; height: 1.75rem; }
.quick-kits .mode-icon .icon { width: .95rem; height: .95rem; }
.article-copy { display: grid; gap: 1.5rem; max-width: 52rem; }
.article-copy h2 { font-size: 1.55rem; margin-bottom: .5rem; }
.community { padding: 1.45rem; max-width: 34rem; display: grid; justify-items: start; gap: .9rem; }

dialog { width: min(34rem, calc(100vw - 2rem)); max-height: min(83vh, 48rem); overflow: auto; padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); box-shadow: 0 18px 80px #000a; }
dialog::backdrop { background: #100b0ddb; backdrop-filter: blur(4px); }
dialog > h2 { font-size: 1.65rem; margin: .25rem 2.6rem .7rem 0; }
.dialog-close { display: grid; place-items: center; position: absolute; top: .65rem; right: .7rem; width: 2rem; height: 2rem; border: 1px solid var(--line); background: var(--raised); color: var(--muted); z-index: 1; }
.dialog-close:hover { color: var(--ink); }
.dialog-tabs { display: flex; gap: .4rem; overflow: auto; padding: .15rem .05rem .67rem; }
.dialog-tabs button { padding: .45rem .6rem; border: 1px solid var(--line); white-space: nowrap; font-size: .82rem; color: var(--muted); }
.dialog-tabs button[aria-pressed=true] { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-border); }
.info-body .scoring { margin: 0; }
.inventory { display: grid; gap: .85rem; }
.inventory section h3 { margin-bottom: .4rem; }
.inventory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
.inventory-list div { display: flex; justify-content: space-between; gap: .27rem; padding: .42rem; background: var(--raised); border-radius: .32rem; font-size: .75rem; }
.inventory-list strong { color: var(--accent); white-space: nowrap; }
.peer-list { border: 1px solid var(--line); border-radius: .5rem; margin-top: .55rem; }
.peer-list .tier-row { font-size: .86rem; }
.search-field input { min-height: 2.65rem; }
#search-results { margin-top: .65rem; }
#search-results p { font-size: .88rem; }
.search-result { display: flex; width: 100%; align-items: center; gap: .6rem; text-align: left; background: transparent; border: none; color: var(--ink); padding: .4rem; }
.search-result:hover { background: var(--raised); }
.search-result strong { flex: 1; font-size: .9rem; }
.search-result > span:last-child { color: var(--muted); font-size: .8rem; }

#footer { border-top: 1px solid var(--line); background: var(--header); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.footer p { font-size: .83rem; margin-top: .28rem; }
.footer-links { display: flex; gap: .85rem; flex-wrap: wrap; font-size: .83rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 970px) {
  .wrap { width: calc(100% - 48px); }
  .nav { gap: .72rem; }
  .nav nav { gap: .85rem; }
  .search-toggle span, .search-toggle kbd { display: none; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; height: 58px; }
  .nav nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .menu-open .nav nav { display: flex; position: absolute; z-index: 3; top: 57px; left: 0; right: 0; height: auto; background: var(--header); border-bottom: 1px solid var(--line); padding-inline: .95rem; flex-wrap: wrap; }
  .menu-open .nav nav a { min-height: 2.8rem; }
  .brand img { width: 35px; height: 35px; }
  .brand { font-size: 1.07rem; }
  .search-toggle, .language, .nav-toggle { padding: .48rem; min-height: 35px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .main-content { padding-top: 1.1rem; padding-bottom: 3rem; }
  .hero { grid-template-columns: 1fr; padding-top: 1.15rem; }
  .hero h1 { font-size: clamp(2.9rem, 11vw, 4.3rem); }
  .hero-content > p { margin-top: .65rem; font-size: 1rem; }
  .hero-actions { gap: .45rem; margin-top: .85rem; }
  .button { padding-inline: .63rem; font-size: .82rem; }
  .section { margin-top: 2.35rem; }
  .section-heading, .page-heading { align-items: flex-start; }
  .section-heading p, .page-heading p { font-size: .9rem; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; }
  .mode-card { padding: .52rem; gap: .42rem; }
  .mode-card .mode-icon { width: 2rem; height: 2rem; }
  .mode-card .mode-icon .icon { width: 1.03rem; height: 1.03rem; }
  .mode-card .kit-icon { width: 1.375rem; height: 1.375rem; }
  .mode-card strong { font-size: .87rem; }
  .guide-card { grid-template-columns: 1fr; }
  .scoring-grid { grid-template-columns: 1fr; }
  .connection-grid, .edition-grid { grid-template-columns: 1fr; }
  .board-tools { align-items: flex-start; }
  .filters { gap: .4rem; }
  .filters select { max-width: 9rem; }
  .filter-search input { width: 10rem; }
  td, th { padding-inline: .43rem; }
  .kits-cell { display: none; }
  .rankings-table td:first-child { width: 3.6rem; }
  .rankings-table .player-button strong { max-width: clamp(5.5rem, 23vw, 10rem); overflow: hidden; text-overflow: ellipsis; }
  .profile-table th, .profile-table td { font-size: .76rem; }
  .profile-table .mode-icon { display: none; }
  .body-render { width: 5rem; height: 6.5rem; }
  .profile-stats { gap: .5rem .7rem; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .hero-actions .button { width: 100%; }
  .quick-kits { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
