:root { color-scheme:dark; --ink:#f0f4ff; --muted:#aab7ce; --paper:#090e1a; --panel:#121c2d; --line:#35445f; --green:#66e7f4; --green-dark:#a3f5fc; --orange:#b5a1ff; --focus:#8ff4ff; --soft:#0d1524; --gold:#f5d07a; --silver:#c5d4ea; --bronze:#e8af89; --mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--paper); }
[hidden] { display:none !important; }
* { box-sizing:border-box; } body { margin:0; line-height:1.55; } button,input,select { font:inherit; } button { cursor:pointer; } button:disabled { cursor:not-allowed; opacity:.62; }
.shell { width:min(1120px,calc(100% - 2.5rem)); margin:auto; }.site-header { border-bottom:1px solid var(--line); background:rgba(247,245,238,.94); }.header-content { min-height:4.5rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }.wordmark { color:var(--ink); text-decoration:none; font-weight:800; letter-spacing:-.035em; font-size:1.2rem; }.wordmark span { color:var(--green); }.header-link { color:var(--green-dark); font-weight:700; }
.skip-link { position:fixed; left:1rem; top:-5rem; z-index:10; background:#fff; padding:.7rem 1rem; color:var(--ink); }.skip-link:focus { top:1rem; }.hero { padding:clamp(4rem,9vw,8rem) 0; border-bottom:1px solid var(--line); background:linear-gradient(110deg,#eef3e9 0%,#f7f5ee 62%); }.hero-grid,.two-column { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(16rem,.75fr); gap:clamp(2rem,7vw,7rem); align-items:start; }.eyebrow { color:var(--green-dark); text-transform:uppercase; font-size:.76rem; font-weight:800; letter-spacing:.11em; margin:0 0 .5rem; }.hero h1 { font-family:Georgia,serif; font-size:clamp(2.6rem,6vw,5.25rem); line-height:.99; letter-spacing:-.055em; max-width:12ch; margin:0; }.hero-copy { max-width:57ch; font-size:1.1rem; margin:1.5rem 0 2rem; }.hero-note,.participation-panel,.rules-panel,.profile-panel { background:var(--panel); border:1px solid var(--line); padding:1.5rem; }.hero-note { border-top:5px solid var(--orange); }.hero-note p:last-child { margin-bottom:0; }
.section { padding:clamp(3.5rem,7vw,6rem) 0; }.section-tint { background:var(--soft); }.section-heading { display:flex; justify-content:space-between; align-items:end; gap:1.25rem; margin-bottom:1.25rem; }.section h2 { font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.045em; line-height:1; margin:0; }.month-control { display:grid; gap:.25rem; font-size:.9rem; font-weight:700; }.month-control input { border:1px solid var(--line); background:var(--panel); padding:.55rem .65rem; min-height:2.7rem; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); background:var(--panel); }.table-wrap:focus { outline:3px solid var(--focus); outline-offset:3px; } table { width:100%; border-collapse:collapse; min-width:37rem; } th,td { padding:1rem; text-align:left; border-bottom:1px solid var(--line); } th { color:var(--muted); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; } tbody tr:last-child td { border-bottom:0; } .score { font-variant-numeric:tabular-nums; font-weight:800; }.status-text,.form-message,.field-help,.quiet { color:var(--muted); }.status-text { min-height:1.55rem; }.field-help { font-size:.9rem; margin:.4rem 0 1.2rem; }.unverified { color:var(--muted); font-size:.82em; font-weight:500; }.form-message { min-height:1.55rem; margin:.9rem 0; }.form-message.error,.status-text.error { color:#a42912; }.form-message.success { color:var(--green-dark); font-weight:700; }
fieldset { padding:0; border:0; margin:0; } .profile-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:1.5rem 0; background:var(--line); border:1px solid var(--line); } .profile-stats > div { padding:1rem; background:var(--panel); } .profile-stats dt { color:var(--muted); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; } .profile-stats dd { margin:.15rem 0 0; font-size:1.65rem; font-variant-numeric:tabular-nums; font-weight:800; } legend { font-weight:800; margin-bottom:1rem; } label:not(.consent-row) { display:block; font-weight:700; margin:1rem 0 .35rem; } input[type="text"],select { width:100%; border:1px solid #89938a; background:#fff; border-radius:0; min-height:2.8rem; padding:.55rem .65rem; color:var(--ink); } .consent-row { display:flex; gap:.75rem; align-items:flex-start; margin:1.35rem 0; font-weight:650; }.consent-row input { margin-top:.28rem; width:1.1rem; height:1.1rem; flex:0 0 auto; }.button { display:inline-flex; justify-content:center; align-items:center; min-height:2.8rem; border:1px solid transparent; border-radius:0; padding:.65rem 1rem; font-weight:800; text-decoration:none; }.button-primary { color:#fff; background:var(--green); }.button-primary:hover { background:var(--green-dark); }.button-secondary { color:var(--green-dark); background:transparent; border-color:var(--green-dark); }.button-danger { color:#fff; background:#9f2817; }.retry { margin-top:1rem; }.site-footer { background:var(--ink); color:#eaf1e9; padding:2rem 0; font-size:.94rem; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; } .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; }
@media (max-width:680px) { .shell { width:min(100% - 2rem,1120px); }.hero-grid,.two-column { grid-template-columns:1fr; gap:2rem; }.section-heading { align-items:start; flex-direction:column; }.month-control { width:100%; }.month-control input { width:100%; }.hero { padding:4rem 0; }.hero h1 { max-width:14ch; }.profile-stats { grid-template-columns:1fr; } th,td { padding:.8rem; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }

/* League arena: shared surfaces and controls, with rank as the visual centerpiece. */
a { color:var(--green); text-underline-offset:.25em; } a:hover { color:var(--ink); }
p { overflow-wrap:anywhere; } h1,h2,h3 { text-wrap:balance; }
.site-header { background:#0b1220; }
.header-content nav { display:flex; gap:1.5rem; flex-wrap:wrap; }
.header-link { display:inline-block; padding:.6rem 0; font-size:.9rem; }
.skip-link { background:var(--green); color:var(--paper); }
.hero { padding:clamp(3rem,7vw,6rem) 0; background:radial-gradient(ellipse at 80% 10%,#242047 0%,transparent 60%); }
.hero-grid,.two-column { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:clamp(2rem,5vw,5rem); }
.eyebrow { font-family:var(--mono); color:var(--green); margin:0 0 .75rem; }
.hero h1,.section h2 { font-family:inherit; line-height:1.08; }
.section h2 { font-size:clamp(2rem,4vw,3rem); }
.hero h1 { max-width:none; font-size:clamp(2.5rem,6vw,5rem); }
.hero h1 span { color:var(--orange); }
.hero-copy { color:var(--muted); }
.hero-ranking-link { margin-left:1.25rem; display:inline-block; padding:.75rem 0; font-size:.9rem; }
.hero-note,.participation-panel,.rules-panel,.profile-panel { border-radius:.75rem; min-width:0; padding:clamp(1.25rem,3vw,2rem); }
.hero-note { margin-top:1.5rem; border-top:1px solid var(--line); }
.protocol-score { font:700 clamp(1.4rem,2.8vw,2rem)/1.4 var(--mono); letter-spacing:-.04em; }
.protocol-score span { display:block; color:var(--orange); }
.section { scroll-margin-top:1rem; }
.section-tint { border-block:1px solid #24314a; }
.month-control { font:500 .8rem/1.6 var(--mono); color:var(--muted); }
.month-control input { color:var(--ink); border-radius:.4rem; min-height:2.8rem; }
.podium { list-style:none; padding:0; margin:2.5rem 0; display:grid; grid-template-columns:1fr 1.15fr 1fr; gap:1rem; align-items:end; }
.podium-card { --medal:var(--gold); min-width:0; text-align:center; background:var(--panel); border:1px solid var(--line); border-top:3px solid var(--medal); border-radius:.75rem; padding:1.5rem; }
.podium-1 { grid-column:2; grid-row:1; padding-block:2.25rem; background:linear-gradient(160deg,#2a2540,#121c2d 75%); border-color:#786342; border-top-color:var(--gold); box-shadow:0 12px 36px #0004; }
.podium-2 { --medal:var(--silver); grid-column:1; grid-row:1; }
.podium-3 { --medal:var(--bronze); grid-column:3; grid-row:1; }
.podium-rank { color:var(--medal); font:700 .8rem/1.5 var(--mono); margin:0 0 1.25rem; text-transform:uppercase; }
.podium-name { display:block; font-weight:750; font-size:1.3rem; overflow-wrap:anywhere; color:var(--ink); }
.podium-name:hover { color:var(--green); }
.podium-repository { color:var(--muted); font:.8rem/1.6 var(--mono); margin:.6rem 0 1.5rem; }
.podium-count { margin:0; display:grid; gap:.25rem; }
.podium-count strong { font:750 2.8rem/1 var(--mono); color:var(--medal); }
.podium-1 .podium-count strong { font-size:3.5rem; }
.podium-count span { font-size:.8rem; color:var(--muted); }
.ranking-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-top:2rem; }
.ranking-heading h3 { font-size:1rem; }
.ranking-heading p { font:.75rem/1.6 var(--mono); color:var(--muted); }
.table-wrap { border-radius:.6rem; }
table { table-layout:fixed; min-width:52rem; }
th,td { overflow-wrap:anywhere; }
th { font-family:var(--mono); } th:first-child { width:5rem; } th:last-child { width:8rem; }
td:first-child,td:last-child { font-family:var(--mono); font-variant-numeric:tabular-nums; }
td:last-child,th:last-child { text-align:right; }
td:last-child { font-weight:750; color:var(--green); }
tbody tr:hover { background:#1a2840; }
.form-message.error,.status-text.error { color:#ffb5bd; }
.form-message.success,.status-text.success { color:#90ecc8; }
fieldset { min-width:0; }
input[type="text"],select { border-color:#627491; background:#0d1524; border-radius:.4rem; }
.consent-row input { accent-color:var(--green); }
.button { border-radius:.4rem; gap:.75rem; }
.button-primary { color:#07111c; }.button-primary:hover { color:#07111c; }
.button-secondary { color:var(--green); background:#122135; border-color:#66e7f480; }
.button-secondary:hover { color:var(--ink); background:#1b304b; }
.button-danger { color:#ffb5bd; background:#281925; border-color:#aa6773; }
.button-danger:hover { color:var(--ink); background:#492334; }
.withdrawal-zone { margin-top:2rem; padding-top:1rem; border-top:1px solid var(--line); }
.withdrawal-zone p { color:var(--muted); font-size:.9rem; }
.journey-steps { list-style:none; counter-reset:step; padding:0; margin:2rem 0; display:grid; gap:1rem; }
.journey-steps li { counter-increment:step; display:grid; grid-template-columns:2.25rem 1fr; column-gap:.75rem; }
.journey-steps li::before { content:"0" counter(step); grid-row:span 2; color:var(--orange); font-family:var(--mono); }
.journey-steps span { color:var(--muted); font-size:.9rem; }
.profile-panel > .eyebrow { margin-top:1.5rem; }
#profile-content h2 { color:var(--orange); margin-top:1.5rem; font-size:2rem; }
.profile-stats { gap:1rem; background:transparent; border:0; }
.profile-stats > div { background:#0d1524; border:1px solid var(--line); border-radius:.5rem; }
.profile-stats dt,.profile-stats dd { font-family:var(--mono); }
.rules-panel li+li { margin-top:1rem; }
.site-footer { background:var(--paper); border-top:1px solid var(--line); color:var(--muted); font-family:var(--mono); }
/* Current configuration stays subordinate to rank, but never truncates names. */
.podium-configuration { border-top:1px solid var(--line); margin:1.2rem 0 .5rem; padding-top:1rem; text-align:left; display:grid; gap:.65rem; min-width:0; }
.podium-configuration dt { color:var(--muted); font-family:var(--mono); font-size:.75rem; text-transform:uppercase; }
.podium-configuration dd { margin:0; overflow-wrap:anywhere; }
.configuration-qualifier { color:var(--muted); font-size:.78rem; text-align:left; }
.tool-combobox { position:relative; min-width:0; }
#tool-options { position:absolute; z-index:2; inset:100% 0 auto; list-style:none; margin:.25rem 0 0; padding:.25rem; border:1px solid var(--line); border-radius:.4rem; background:var(--panel); max-height:18rem; overflow-y:auto; }
#tool-options [role="option"] { padding:.65rem; min-height:2.8rem; overflow-wrap:anywhere; cursor:pointer; }
#tool-options [aria-selected="true"],#tool-options [role="option"]:hover { color:var(--ink); background:#243852; outline:1px solid var(--focus); outline-offset:-1px; }
@media (max-width:760px) {
  .hero-grid,.two-column { grid-template-columns:1fr; gap:2rem; }
  .hero-note { margin-top:0; }
  .podium { grid-template-columns:1fr; gap:.75rem; }
  .podium-card { grid-column:1; grid-row:auto; text-align:left; padding:1.5rem; }
  .podium-count { margin-top:1rem; display:flex; align-items:baseline; gap:1rem; }
  .podium-rank { margin-bottom:.75rem; }.podium-repository { margin-bottom:0; }
  .header-content { flex-wrap:wrap; padding-block:.75rem; gap:.25rem; }
  .section-heading { align-items:start; flex-direction:column; }
  .month-control,.month-control input { width:100%; }
  .profile-stats { grid-template-columns:1fr; }
  .ranking-heading { flex-wrap:wrap; gap:0; }
}
