@font-face { font-family: "Sora"; src: url("/static/fonts/sora-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/static/fonts/sora-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/static/fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --abyss: #0D1314;
  --ground: #111719;
  --surface: #172022;
  --raised: #1E292B;
  --line: #2A3739;
  --heading: #E6ECE8;
  --text: #DCE3DF;
  --muted: #9AA8A4;
  --quiet: #7D8B87;
  --verdigris: #7FB8A4;
  --verdigris-hover: #A3D1C0;
  --oxide: #C9A27E;
  --win: #8CB4D8;
  --loss: #C97E66;
  --caution: #D8C38A;
  --twig: #7D7A72;
  --wood: #9E6B4A;
  --stone: #A9B2AE;
  --metal: #7FB8A4;
  --armored: #C9A27E;

  --display: "Sora", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color-scheme: dark; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--text); background: var(--ground); -webkit-font-smoothing: antialiased; }
a { color: var(--verdigris); }
a:hover { color: var(--verdigris-hover); }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--heading); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.muted { color: var(--muted); }

.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verdigris); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--raised); color: var(--text);
  font: 600 14px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--quiet); color: var(--heading); }
.btn-primary { background: var(--verdigris); border-color: var(--verdigris); color: var(--abyss); }
.btn-primary:hover { background: var(--verdigris-hover); border-color: var(--verdigris-hover); color: var(--abyss); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }

.top { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -0.02em; color: var(--heading); text-decoration: none; }
.brand:hover { color: var(--heading); }
.brand img { display: block; }
.nav { display: flex; gap: 8px; flex: 1; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--heading); }
.nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--verdigris); }

.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 64px; padding-bottom: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.lede { max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }

.live-card { display: flex; flex-direction: column; gap: 8px; }
.live-head { display: flex; justify-content: space-between; align-items: center; }
.stat-xl { font: 600 64px/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--heading); }
.stat-lg { font: 600 24px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--heading); }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.pairs dt { font-size: 13px; color: var(--quiet); }
.pairs dd { margin: 4px 0 0; font: 600 20px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--quiet); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--quiet); }
[data-status="live"] .status { color: var(--verdigris); }
[data-status="live"] .dot { background: var(--verdigris); animation: pulse 2s ease-out infinite; }
[data-status="reconnecting"] .status { color: var(--caution); }
[data-status="reconnecting"] .dot { background: var(--caution); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 184, 164, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(127, 184, 164, 0); }
}
@media (prefers-reduced-motion: reduce) { [data-status="live"] .dot { animation: none; } }

.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; font-weight: 600; }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.server { display: flex; flex-direction: column; gap: 16px; }
.server-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.server-head h3 { font-size: 20px; font-weight: 600; }
.server-count { display: flex; align-items: baseline; gap: 8px; }
.server-count .status { margin-left: auto; }
.connect { display: flex; flex-direction: column; gap: 8px; }
.connect-field { display: flex; }
.connect-field code { flex: 1; min-width: 0; padding: 0 12px; line-height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px/40px var(--mono); color: var(--text); background: var(--abyss); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
.connect-copy { border-radius: 0 8px 8px 0; }
.server-down { font-size: 14px; }
.is-soon { background: transparent; border-style: dashed; }
.is-soon h3 { color: var(--muted); }
.is-soon p { font-size: 14px; }
.chip { align-self: flex-start; padding: 4px 8px; border-radius: 4px; background: var(--raised); font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.mode { display: flex; flex-direction: column; gap: 12px; }
.mode-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mode h3 { font-size: 18px; font-weight: 600; }
.mode p { flex: 1; font-size: 14px; color: var(--muted); }
.count { font: 400 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--quiet); white-space: nowrap; }
.count span { font-weight: 600; color: var(--text); }
.meta { font: 400 12px/1 var(--mono); color: var(--quiet); }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.board { padding: 8px 24px; }
.board-rows { list-style: none; margin: 0; padding: 0; }
.board-row { display: flex; align-items: center; gap: 16px; height: 56px; border-bottom: 1px solid var(--line); }
.board-rank { width: 40px; font: 600 14px/1 var(--mono); color: var(--quiet); }
.board-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--heading); }
.board-elo { font: 600 18px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--heading); }
.board-row:first-child .board-elo { color: var(--oxide); }
.board-record { width: 104px; text-align: right; font: 400 14px/1 var(--mono); font-variant-numeric: tabular-nums; }
.win { color: var(--win); }
.loss { color: var(--loss); }
.board-empty { padding: 32px 0; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.board-more { display: block; padding: 16px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.board-more::after, .link-card h3::after { content: " →"; }

.tier { width: 12px; height: 12px; flex: none; border-radius: 2px; transform: rotate(45deg); }
.tier-twig { background: var(--twig); }
.tier-wood { background: var(--wood); }
.tier-stone { background: var(--stone); }
.tier-metal { background: var(--metal); }
.tier-armored { background: var(--armored); box-shadow: 0 0 0 3px #2A2420; }
.tier-unranked { border: 1px solid var(--quiet); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.link-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.link-card:hover { border-color: var(--quiet); background: var(--raised); }
.link-card h3 { font-size: 18px; font-weight: 600; }
.link-card h3::after { color: var(--verdigris); }
.link-card p { font-size: 14px; color: var(--muted); }

.foot { margin-top: 48px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand .brand { font-size: 16px; }
.foot-brand .brand img { width: 22px; height: 22px; }
.foot-brand p { font-size: 13px; color: var(--quiet); }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--heading); }
.foot-links span { font-size: 14px; color: var(--quiet); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .split, .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .top-row { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 12px; }
  .top-row > .btn { margin-left: auto; height: 32px; padding: 0 12px; font-size: 13px; }
  .nav { order: 3; flex-basis: 100%; height: 48px; overflow-x: auto; margin: 0 -12px; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .board { padding: 8px 16px; }
  .board-row { gap: 12px; }
  .board-record { width: auto; }
}

.quiet { color: var(--quiet); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stat-lg { font-size: 28px; }

.tier-text-twig { color: var(--twig); }
.tier-text-wood { color: var(--wood); }
.tier-text-stone { color: var(--stone); }
.tier-text-metal { color: var(--metal); }
.tier-text-armored { color: var(--armored); }
.tier-text-unranked { color: var(--muted); }
.tier-lg { width: 40px; height: 40px; border-radius: 8px; transform: rotate(45deg) scale(0.75); }
.tier-lg.tier-armored { box-shadow: 0 0 0 4px #2A2420; }

.profile-head { display: flex; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 8px; }
.avatar { display: grid; place-items: center; width: 80px; height: 80px; flex: none; border-radius: 12px; background: var(--raised); border: 2px solid var(--line); font: 700 32px/1 var(--display); color: var(--heading); }
.avatar-twig { border-color: var(--twig); }
.avatar-wood { border-color: var(--wood); }
.avatar-stone { border-color: var(--stone); }
.avatar-metal { border-color: var(--metal); }
.avatar-armored { border-color: var(--armored); }
.profile-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-id h1 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--quiet); }
.profile-links { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.rank-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.rank-card { display: flex; flex-direction: column; gap: 24px; }
.rank-tier { display: flex; align-items: center; gap: 16px; }
.rank-tier > div { display: flex; flex-direction: column; gap: 4px; }
.tier-name { font: 600 24px/1 var(--display); }
.rank-numbers { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.rank-numbers > div { display: flex; flex-direction: column; gap: 4px; }
.rank-numbers .stat-xl { font-size: 56px; }
.rank-position .stat-lg { font-size: 28px; }
.rank-position .quiet { font-size: 13px; }
.progress { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.progress p { font-size: 13px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--quiet); }
.bar-twig span { background: var(--twig); }
.bar-wood span { background: var(--wood); }
.bar-stone span { background: var(--stone); }
.bar-metal span { background: var(--metal); }
.bar-armored span { background: var(--armored); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.tile .stat-lg { font-size: 28px; }
.tile-sub { font-size: 13px; line-height: 1.4; color: var(--quiet); }
.rank-empty { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.rank-empty h3 { font-size: 18px; font-weight: 600; }
.rank-empty p { max-width: 480px; font-size: 14px; color: var(--muted); }

.mode-stats { display: flex; flex-direction: column; gap: 16px; }
.mode-stats h3 { font-size: 18px; font-weight: 600; }
.mode-kd { display: flex; justify-content: space-between; align-items: baseline; }
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-size: 14px; color: var(--muted); }
.rows dd { margin: 0; font: 600 14px/1.55 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.mode-stats .muted { font-size: 14px; }

.board-name { text-decoration: none; }
.board-name:hover { color: var(--verdigris); }

.not-found { padding-top: 96px; padding-bottom: 96px; }
.not-found h1 { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; }

@media (max-width: 1000px) {
  .rank-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .profile-head { flex-wrap: wrap; gap: 16px; padding-top: 32px; }
  .avatar { width: 64px; height: 64px; font-size: 26px; }
  .profile-id h1 { font-size: 30px; }
  .profile-links { margin-left: 0; flex-basis: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.account { display: flex; align-items: center; gap: 12px; }
.account form { margin: 0; }
.account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--heading); text-decoration: none; }
a.account-name:hover { color: var(--verdigris); }

.link-page { display: flex; flex-direction: column; gap: 24px; max-width: 760px; padding-top: 64px; padding-bottom: 48px; }
.link-page h1 { font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.notice { padding: 12px 16px; border: 1px solid var(--loss); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; }
.steps { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 999px; border: 2px solid var(--line); font: 600 14px/1 var(--mono); color: var(--quiet); }
.step.is-current .step-mark { border-color: var(--verdigris); color: var(--verdigris); }
.step.is-done .step-mark { border-color: var(--verdigris); background: var(--verdigris); color: var(--abyss); }
.step.is-pending { opacity: 0.6; }
.step-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step-body h2 { font-size: 18px; font-weight: 600; line-height: 32px; }
.step-body p { font-size: 15px; color: var(--muted); }
.step-body strong { color: var(--heading); }
.step-body .actions { margin-top: 8px; }
.step-body form { margin: 0; }
.text-button { align-self: flex-start; padding: 0; border: 0; background: none; font: 500 14px/1.5 var(--body); color: var(--verdigris); cursor: pointer; }
.text-button:hover { color: var(--verdigris-hover); }

@media (max-width: 760px) {
  .account { margin-left: auto; }
  .account .btn { height: 32px; padding: 0 12px; font-size: 13px; }
  .account-name { max-width: 120px; font-size: 13px; }
  .link-page { padding-top: 40px; }
  .link-page h1 { font-size: 36px; }
}

.board-page { display: flex; flex-direction: column; gap: 24px; padding-top: 64px; padding-bottom: 48px; }
.board-page h1 { font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.you-card { display: flex; flex-direction: column; gap: 4px; min-width: 200px; text-decoration: none; }
.you-card:hover { border-color: var(--quiet); background: var(--raised); }
.you-card .quiet { font-size: 13px; }
.tier-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.tier-strip li { display: inline-flex; align-items: center; gap: 8px; }
.tier-strip .mono { color: var(--text); }

.table-card { padding: 0; overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.board-table th a { color: inherit; text-decoration: none; }
.board-table th a:hover { color: var(--heading); }
.board-table th[aria-sort="descending"], .board-table th[aria-sort="ascending"] { color: var(--verdigris); }
.board-table th[aria-sort="descending"] a::after { content: " ↓"; }
.board-table th[aria-sort="ascending"] a::after { content: " ↑"; }
.board-table td { height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table tbody tr { cursor: pointer; }
.board-table tbody tr:hover { background: var(--raised); }
.board-table tr.is-you { background: var(--raised); box-shadow: inset 2px 0 0 var(--verdigris); }
.board-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.board-table th.num { font-family: var(--body); }
.board-table .pos { width: 56px; font-family: var(--mono); color: var(--quiet); }
.board-table .player { min-width: 200px; }
.player-cell { display: flex; align-items: center; gap: 12px; }
.board-table .player a { overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--heading); text-decoration: none; }
.board-table tr:hover .player a { color: var(--verdigris); }
.board-table .elo { font-weight: 600; color: var(--heading); }
.board-table .elo.is-first { color: var(--oxide); }
.board-empty { text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 14px; }
.btn.is-disabled { opacity: 0.4; cursor: default; }

@media (max-width: 760px) {
  .board-page { padding-top: 40px; }
  .board-page h1 { font-size: 36px; }
  .board-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .board-table .opt { display: none; }
  .board-table th, .board-table td { padding: 0 10px; }
  .board-table th { padding: 12px 10px; }
  .board-table .pos { width: 40px; }
  .board-table .player { min-width: 140px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.search { display: flex; gap: 8px; max-width: 640px; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--abyss); font: 400 16px/1 var(--body); color: var(--text); }
.search input::placeholder { color: var(--quiet); }
.search input:focus { outline: none; border-color: var(--verdigris); }
.board-note { font-size: 14px; color: var(--quiet); }

@media (max-width: 760px) {
  .search .btn-lg { padding: 0 16px; }
}

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--heading); }
.tabs a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--verdigris); }
.board-table .strong { font-weight: 600; color: var(--heading); }

.prose { display: flex; flex-direction: column; gap: 12px; max-width: 760px; padding-top: 64px; padding-bottom: 48px; }
.prose > header { margin-bottom: 16px; }
.prose h1 { font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.prose h2 { margin-top: 24px; font-size: 22px; font-weight: 600; }
.prose h3 { margin-top: 8px; font-size: 16px; font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }
.prose li::marker { color: var(--quiet); }
.prose strong { font-weight: 600; color: var(--heading); }
.prose code { font: 400 14px/1 var(--mono); color: var(--heading); }

.contact-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.contact-card h2 { font-size: 18px; font-weight: 600; }
.contact-card p { flex: 1; font-size: 14px; color: var(--muted); }
.contact-card .btn { align-self: flex-start; }
.contact-grid { align-items: stretch; }

@media (max-width: 760px) {
  .prose { padding-top: 40px; }
  .prose h1 { font-size: 36px; }
}

.dist { display: flex; flex-direction: column; gap: 16px; }
.dist-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.dist-head h2 { font-size: 18px; font-weight: 600; }
.dist-head span { font-size: 13px; }
.dist-bars { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dist-col { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dist-count { height: 14px; font: 400 11px/14px var(--mono); font-variant-numeric: tabular-nums; color: var(--quiet); }
.dist-track { display: flex; align-items: flex-end; width: 100%; height: 140px; border-bottom: 1px solid var(--line); }
.dist-bar { display: block; width: 100%; min-height: 0; border-radius: 3px 3px 0 0; }
.dist-bar.tier-armored { box-shadow: none; }
.dist-label { font: 400 11px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--quiet); white-space: nowrap; }
.dist-col.is-edge .dist-label { color: var(--muted); }
.dist-col.is-you .dist-label { color: var(--verdigris); font-weight: 600; }
.dist-col.is-you .dist-track { box-shadow: inset 0 -2px 0 var(--verdigris); }

.match-page { display: flex; flex-direction: column; gap: 24px; padding-top: 64px; padding-bottom: 48px; }
.match-page h1 { font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.match-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--quiet); }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 32px; }
.score-side { display: flex; align-items: center; gap: 24px; }
.score-side.is-right { justify-content: flex-end; }
.score { font: 600 64px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.score-side.is-winner .score { color: var(--heading); }
.score-side .team-name { font: 700 24px/1 var(--display); }
.score-status { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
.score-status .chip { align-self: center; }
.team-name { font-weight: 600; }
.team-0 { color: var(--verdigris); }
.team-1 { color: var(--oxide); }
.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.team-caption { padding: 16px 16px 8px; text-align: left; font: 600 18px/1 var(--display); color: var(--heading); }
.result { font-weight: 600; text-decoration: none; }
.result.quiet { color: var(--muted); }
.result.win { color: var(--win); }
.result.loss { color: var(--loss); }

@media (max-width: 1000px) {
  .teams { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dist-count, .dist-col:not(.is-edge):not(.is-you) .dist-label { visibility: hidden; }
  .dist-bars { gap: 2px; }
  .match-page { padding-top: 40px; }
  .match-page h1 { font-size: 36px; }
  .scoreline { gap: 12px; padding: 24px 16px; }
  .score { font-size: 40px; }
  .score-side { flex-direction: column; gap: 8px; }
  .score-side.is-right { flex-direction: column-reverse; }
  .score-side .team-name { font-size: 16px; }
}
