/* #818: public community pages (rank.html, discord.html). Same palette, fonts and crest as the landing
   (fonts.css, favicon.svg); no new artwork, no scripts from other origins, no inline styles. */
:root { color-scheme: dark; --bg: #08151f; --panel: #0c1c29; --panel-2: #102536; --line: #3a3322; --gold: #e4c67e;
  --gold-hi: #f9e7b3; --text: #e9dfc4; --muted: #a9b3b8; --ok: #8dd1a4; --bad: #e59a8c; --focus: #ffe08a; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 1rem/1.6 Inter, Arial, sans-serif; color: var(--text);
  background: radial-gradient(ellipse at 50% -10%, #17384f 0%, #0b1d2b 45%, var(--bg) 100%) fixed; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 5; padding: 10px 14px; background: var(--gold-hi); color: #1a1405; font-weight: 600; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.site-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line); background: #06111a; }
.site-bar .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-hi);
  font: 600 1.15rem/1 Cinzel, Georgia, serif; letter-spacing: .06em; }
.site-bar .brand img { width: 36px; height: 36px; }
.site-bar nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-bar nav a { color: var(--text); text-decoration: none; padding: 8px 2px; min-height: 40px; display: inline-flex; align-items: center; font-weight: 600; font-size: .95rem; }
.site-bar nav a:hover, .site-bar nav a[aria-current="page"] { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; }
.page { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 56px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 12px; color: var(--gold-hi); font: 500 clamp(2.1rem, 5vw, 3.3rem)/1.08 "Cormorant Garamond", Georgia, serif; text-wrap: balance; }
h2 { margin: 0 0 12px; color: var(--gold-hi); font: 600 1.15rem/1.3 Cinzel, Georgia, serif; letter-spacing: .03em; }
.lead { margin: 0 0 28px; max-width: 62ch; color: var(--text); font: 500 1.3rem/1.45 "Cormorant Garamond", Georgia, serif; }
.panel { margin: 0 0 20px; padding: clamp(16px, 3vw, 28px); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 40px #0007; }
.panel p { margin: 0 0 10px; }
.panel p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-size: .92rem; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; }
.controls label { font-weight: 600; }
select, .btn { min-height: 44px; font: inherit; color: var(--text); background: #07121b; border: 1px solid #685940; border-radius: 4px; padding: 8px 14px; }
select { max-width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-weight: 600; }
.btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-hi); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: linear-gradient(180deg, #e9c76f, #b98d31); color: #1a1405; border-color: #f2d98d; }
.btn-primary:hover:not(:disabled) { color: #000; border-color: #fff1c0; }
.week-line { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.state { margin: 0; padding: 16px 18px; border-left: 3px solid var(--gold); background: #07121b; border-radius: 0 4px 4px 0; }
.state[data-kind="error"] { border-left-color: var(--bad); }
.table-wrap { overflow-x: auto; }
table.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.rank caption { text-align: left; padding: 0 0 8px; color: var(--muted); font-size: .9rem; }
table.rank th, table.rank td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #2b2a22; }
table.rank th { color: var(--gold); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
table.rank td.place, table.rank th.place { width: 5.5rem; }
table.rank td.points, table.rank th.points { width: 8rem; text-align: right; }
table.rank tr.top td.place { color: var(--gold-hi); font-weight: 700; }
table.rank td.alias { overflow-wrap: anywhere; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.site-foot { padding: 20px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); background: #06111a; color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--text); }
@media (max-width: 520px) { table.rank td.place, table.rank th.place { width: 3.8rem; } table.rank td.points, table.rank th.points { width: 5.6rem; } .site-bar nav { gap: 2px 14px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
