:root {
  color: #eef6ff;
  background: #060914;
  font-family: Inter, Aptos, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #060914;
  --panel: #0d1728;
  --paper: #f4f8ff;
  --muted: #9babc0;
  --blue: #71c7ff;
  --cyan: #5de4f4;
  --green: #66e4b6;
  --line: rgba(137, 185, 235, .16);
  --line-strong: rgba(75, 179, 255, .4);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { color: #04101d; background: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-160%); border-radius: 6px; padding: 10px 14px; color: #04101d; background: var(--cyan); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.league-header { position: absolute; top: 20px; left: 50%; z-index: 10; display: grid; width: min(calc(100% - 36px), var(--max)); grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px 12px 17px; background: rgba(7, 13, 26, .86); box-shadow: 0 24px 70px rgba(0, 0, 0, .24); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-size: 15px; font-weight: 750; letter-spacing: -.025em; }
.brand small { color: var(--blue); font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { position: relative; display: block; width: 26px; height: 25px; color: var(--blue); }
.brand-mark i { position: absolute; display: block; height: 7px; border: 1.5px solid currentColor; border-radius: 2px; background: #0a1322; }
.brand-mark i:first-child { top: 0; left: 0; width: 23px; }
.brand-mark i:nth-child(2) { top: 9px; left: 3px; width: 21px; opacity: .82; }
.brand-mark i:nth-child(3) { top: 18px; left: 6px; width: 19px; opacity: .62; }
.league-header nav { display: flex; gap: 24px; color: #9bacbf; font-size: 14px; font-weight: 650; }
.league-header nav a:hover, .back-link:hover { color: var(--paper); }
.back-link { justify-self: end; color: var(--blue); font-size: 14px; font-weight: 750; }

.league-hero { position: relative; display: grid; min-height: 750px; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); align-items: center; gap: clamp(45px, 7vw, 100px); overflow: hidden; padding: 145px max(24px, calc((100vw - var(--max)) / 2)) 80px; background: radial-gradient(circle at 78% 25%, rgba(53,169,255,.18), transparent 28%), radial-gradient(circle at 35% 90%, rgba(102,228,182,.06), transparent 28%), linear-gradient(140deg,#060914,#07101f 55%,#081425); }
.league-hero::before { position: absolute; top: -320px; right: -200px; width: 780px; height: 780px; border: 1px solid rgba(93,228,244,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 90px rgba(53,169,255,.018),0 0 0 190px rgba(53,169,255,.012); }
.hero-grid { position: absolute; inset: 0; opacity: .36; background-image: linear-gradient(rgba(117,177,238,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(117,177,238,.07) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom,black,transparent 90%); }
.hero-copy, .round-card, .crown-card { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 23px; color: var(--blue); font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
.league-hero h1, .section-heading h2, .how-it-works h2, .hall h2, .legal-shell h1 { margin: 0; color: var(--paper); font-size: clamp(52px, 6vw, 82px); font-weight: 720; letter-spacing: -.07em; line-height: .96; }
h1 em, h2 em { color: var(--blue); font-family: Georgia,"Times New Roman",serif; font-weight: 400; }
.lede { max-width: 670px; margin: 28px 0 0; color: #b0bed0; font-size: clamp(17px,1.6vw,20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; padding: 0 21px; font-size: 13px; font-weight: 800; cursor: pointer; }
.button-disabled { border-color: rgba(102,228,182,.3); color: #9eb8b8; background: rgba(102,228,182,.07); cursor: not-allowed; }
.button-telegram { border-color: #45aeea; color: #04101d; background: linear-gradient(135deg,#71c7ff,#5de4f4); box-shadow: 0 12px 35px rgba(53,169,255,.2); }
.button-telegram:hover { border-color: #9ee8ff; background: linear-gradient(135deg,#8dd4ff,#74edf8); }
.button[aria-busy="true"] { cursor: wait; opacity: .72; }
.button-outline { border-color: var(--line-strong); color: var(--paper); background: rgba(12,27,48,.67); }
.button-outline:hover { border-color: var(--blue); background: rgba(53,169,255,.11); }
.entry-note { max-width: 650px; margin: 20px 0 0; color: #879ab0; font-size: 13px; line-height: 1.65; }
.telegram-auth, .telegram-profile { max-width: 650px; margin-top: 18px; border: 1px solid rgba(87,188,255,.32); border-radius: 10px; padding: 18px; background: rgba(9,20,37,.88); box-shadow: 0 20px 55px rgba(0,0,0,.22); }
.telegram-auth { display: grid; gap: 15px; }
.telegram-auth-status { display: flex; align-items: center; gap: 13px; }
.telegram-auth-status strong, .telegram-profile-copy strong { display: block; color: var(--paper); font-size: 15px; }
.telegram-auth-status p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.telegram-pulse { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(113,199,255,.5); animation: telegram-pulse 1.6s infinite; }
.telegram-login-form, .telegram-code-form { display: grid; gap: 8px; }
.telegram-login-form label, .telegram-code-form label { color: #9cafc4; font-size: 12px; font-weight: 700; }
.telegram-login-form > div, .telegram-code-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.telegram-login-form input, .telegram-code-form input { min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 13px; color: var(--paper); background: rgba(4,12,24,.9); font: inherit; font-size: 15px; }
.telegram-code-form input { font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: .24em; }
.telegram-login-form button, .telegram-code-form button, .telegram-first-contact button { border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 17px; color: #04101d; background: var(--blue); cursor: pointer; font-weight: 800; }
.telegram-code-form small { color: #778ca3; font-size: 12px; }
.telegram-first-contact { border: 1px solid rgba(102,228,182,.25); border-radius: 8px; padding: 15px; background: rgba(102,228,182,.055); }
.telegram-first-contact strong { color: var(--green); font-size: 14px; }
.telegram-first-contact p { margin: 7px 0 12px; color: #a6b7c9; font-size: 12px; line-height: 1.6; }
.telegram-first-contact button { min-height: 38px; color: var(--paper); background: rgba(53,169,255,.12); }
.telegram-restart { justify-self: start; border: 0; padding: 0; color: #91a9c1; background: transparent; cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.telegram-restart:hover { color: var(--paper); }
.telegram-profile { display: grid; grid-template-columns: 64px 1fr; gap: 15px; align-items: center; }
.telegram-profile > img { width: 64px; height: 64px; border: 1px solid var(--line-strong); border-radius: 16px; object-fit: cover; background: #0b1020; }
.telegram-profile-copy span { display: block; margin-bottom: 5px; color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.telegram-profile-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.telegram-profile-edit { margin-top: 11px; border: 0; padding: 0; color: var(--blue); background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.telegram-profile-edit:hover { color: var(--paper); }
.telegram-profile-status { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding-top: 13px; color: var(--green); font-size: 12px; font-weight: 750; }
.telegram-profile-status.is-error { color: #ff9e9e; }
.telegram-profile form { grid-column: 1 / -1; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 15px; }
.telegram-profile form > label { color: #8fa2b8; font-size: 12px; }
.telegram-profile form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.telegram-profile input[type="text"], .telegram-profile input:not([type]) { min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 11px 12px; color: var(--paper); background: rgba(4,12,24,.85); font: inherit; font-size: 13px; }
.telegram-profile form button { border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 15px; color: var(--paper); background: rgba(53,169,255,.11); cursor: pointer; font-weight: 750; }
.telegram-profile .picture-choice { display: flex; align-items: center; gap: 8px; width: max-content; cursor: pointer; }

.crown-card { overflow: hidden; border: 1px solid rgba(87,188,255,.34); border-radius: 14px; padding: 27px; background: linear-gradient(145deg,rgba(17,34,57,.94),rgba(7,15,29,.99)); box-shadow: 0 38px 100px rgba(0,0,0,.42); }
.crown-card-head, .crown-deadline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.crown-card-head div { display: grid; gap: 7px; }
.crown-card-head span, .crown-deadline span { color: #879ab1; font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.crown-card-head strong { color: var(--paper); font-family: var(--mono); font-size: 18px; }
.crown-card-head > b { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(102,228,182,.28); border-radius: 100px; padding: 6px 9px; color: var(--green); background: rgba(102,228,182,.06); font-family: var(--mono); font-size: 11px; }
.crown-card-head > b i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.podium { display: grid; min-height: 245px; grid-template-columns: repeat(3,1fr); align-items: end; gap: 9px; padding: 34px 0 25px; }
.podium-place { position: relative; display: flex; min-width: 0; min-height: 135px; flex-direction: column; align-items: center; justify-content: flex-end; border: 1px solid var(--line); border-radius: 10px 10px 4px 4px; padding: 18px 7px 14px; background: rgba(5,13,26,.85); text-align: center; }
.podium-place.podium-1 { min-height: 185px; border-color: rgba(102,228,182,.32); background: linear-gradient(180deg,rgba(102,228,182,.08),rgba(5,13,26,.9)); }
.podium-place.podium-2 { min-height: 155px; }
.podium-place.podium-3 { min-height: 125px; }
.podium-place.empty { color: #6f8299; font-size: 11px; }
.podium-place strong { overflow: hidden; max-width: 100%; margin-top: 9px; color: var(--paper); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.podium-place small { margin-top: 5px; color: var(--blue); font-family: var(--mono); font-size: 10px; }
.podium-place > i { position: absolute; bottom: 7px; right: 8px; color: rgba(113,199,255,.35); font-family: var(--mono); font-size: 10px; font-style: normal; }
.podium-crown { position: absolute; top: -21px; color: var(--green); font-size: 24px; }
.podium-avatar, .board-avatar, .hall-avatar { display: grid; overflow: hidden; place-items: center; border: 1px solid var(--line-strong); color: var(--blue); background: #0b1525; font-weight: 800; }
.podium-avatar { width: 52px; height: 52px; border-radius: 15px; }
.podium-avatar img, .board-avatar img, .hall-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-loading, .hall-loading { min-height: 120px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(100deg,rgba(113,199,255,.025),rgba(113,199,255,.08),rgba(113,199,255,.025)); background-size: 220% 100%; animation: loading-sweep 1.8s infinite; }
.crown-deadline { border-top: 1px solid var(--line); padding-top: 18px; }
.crown-deadline strong { color: var(--cyan); font-family: var(--mono); font-size: 16px; text-transform: uppercase; }
.prize-line { display: flex; align-items: center; gap: 13px; margin-top: 20px; border-radius: 8px; padding: 13px; background: rgba(102,228,182,.055); }
.prize-line > span { color: var(--green); font-size: 25px; }
.prize-line div { display: grid; gap: 3px; }
.prize-line small { color: var(--green); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.prize-line strong { color: #c7d4e4; font-size: 12px; }

.stats-band { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #091221; }
.stats-band article { display: grid; min-height: 135px; align-content: center; gap: 7px; border-right: 1px solid var(--line); padding: 25px max(20px,calc((100vw - var(--max))/8)); }
.stats-band article:last-child { border-right: 0; }
.stats-band small { color: #8497ad; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.stats-band strong { color: var(--blue); font-size: clamp(23px,2.5vw,34px); letter-spacing: -.04em; }
.stats-band span { color: #71849b; font-size: 11px; }

.section-shell { width: min(calc(100% - 48px),var(--max)); margin: 0 auto; padding: 105px 0; }
.prize-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px,7vw,90px); align-items: center; }
.prize-story h2, .board-heading h2, .leaderboard-section h2, .hall-section h2, .privacy-board h2, .final-league-cta h2 { margin: 0; color: var(--paper); font-size: clamp(38px,5vw,64px); letter-spacing: -.065em; line-height: 1; }
.prize-story > div > p:last-child, .privacy-board > div > p:last-child, .final-league-cta p { color: var(--muted); line-height: 1.7; }
.prize-grid { display: grid; gap: 10px; }
.prize-grid article { display: grid; min-height: 125px; grid-template-columns: 1fr auto; gap: 8px 20px; align-content: center; border: 1px solid var(--line); border-radius: 10px; padding: 23px; background: var(--panel); }
.prize-grid small { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.prize-grid strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--green); font-size: 18px; }
.prize-grid span { color: #8fa2b9; font-size: 12px; }

.board-section, .leaderboard-section, .hall-section { border-top: 1px solid var(--line); }
.board-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.board-heading h2 { font-size: clamp(34px,4vw,52px); }
.prize-chip { flex: 0 0 auto; border: 1px solid rgba(102,228,182,.3); border-radius: 100px; padding: 8px 12px; color: var(--green); background: rgba(102,228,182,.06); font-family: var(--mono); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(9,19,34,.8); }
.board-row, .leader-row { display: grid; align-items: center; gap: 14px; min-height: 76px; border-bottom: 1px solid var(--line); padding: 12px 18px; }
.board-row { grid-template-columns: 58px minmax(180px,1fr) 155px 135px 130px; }
.leader-row { grid-template-columns: 58px minmax(180px,1fr) 155px 125px 80px 130px; }
.board-row:last-child, .leader-row:last-child { border-bottom: 0; }
.board-head { min-height: 48px; color: #6f839a; background: rgba(4,12,24,.9); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.board-rank { color: #8194aa; font-family: var(--mono); font-size: 12px; }
.top-rank .board-rank { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue); }
.board-person { display: flex; min-width: 0; align-items: center; gap: 11px; }
.board-avatar { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; font-size: 12px; }
.board-person > span { display: grid; min-width: 0; gap: 3px; }
.board-person strong { overflow: hidden; color: var(--paper); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.board-person small { color: #71859b; font-size: 10px; }
.board-metric { color: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 750; }
.board-metric.accent { color: var(--blue); }
.status { width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 100px; padding: 5px 8px; color: #879ab0; font-size: 9px; font-weight: 750; }
.status.eligible { border-color: rgba(102,228,182,.25); color: var(--green); background: rgba(102,228,182,.05); }
.status.winner { border-color: rgba(113,199,255,.32); color: var(--blue); }
.table-loading, .empty-ranking { display: grid; min-height: 150px; place-items: center; padding: 30px; color: #7890a8; font-size: 12px; text-align: center; }
.empty-ranking strong { color: var(--paper); font-size: 14px; }
.empty-ranking span { display: block; margin-top: 5px; color: #7890a8; }
.ranking-foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; color: #72869d; font-size: 10px; }
.ranking-foot i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(102,228,182,.7); }
.ranking-tabs { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: rgba(5,13,25,.8); }
.ranking-tabs button { min-height: 36px; border: 0; border-radius: 6px; padding: 0 13px; color: #8497ae; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.ranking-tabs button.active { color: #04101d; background: var(--blue); }
.anchor-alias { position: relative; top: -20px; display: block; }

.privacy-board { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; border-top: 1px solid var(--line); }
.privacy-board dl { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.privacy-board dl div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 17px 20px; background: rgba(12,23,40,.68); }
.privacy-board dl div:last-child { border-bottom: 0; }
.privacy-board dt { color: #8fa2b8; font-size: 12px; }
.privacy-board dd { margin: 0; color: var(--green); font-size: 12px; font-weight: 750; text-align: right; }
.hall-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 40px; }
.hall-card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--panel); }
.hall-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--green); font-family: var(--mono); }
.hall-person { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.hall-avatar { width: 50px; height: 50px; border-radius: 14px; }
.hall-person div { display: grid; gap: 4px; min-width: 0; }
.hall-person strong { overflow: hidden; color: var(--paper); text-overflow: ellipsis; white-space: nowrap; }
.hall-person small { color: #7c90a7; font-size: 10px; }
.hall-score { display: grid; gap: 4px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.hall-score strong { color: var(--blue); font-family: var(--mono); }
.hall-score span { color: #7f93aa; font-size: 10px; }
.hall-empty { grid-column: 1 / -1; display: grid; min-height: 150px; place-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 30px; color: #7e92a9; background: var(--panel); text-align: center; }
.hall-empty strong { color: var(--paper); }
.final-league-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 35px; align-items: center; border-top: 1px solid var(--line); }
.final-league-cta > span { align-self: start; color: var(--blue); font-family: var(--mono); font-size: 10px; }
.final-league-cta h2 { font-size: clamp(36px,4.5vw,58px); }
.final-league-cta p { max-width: 700px; }

@keyframes loading-sweep { to { background-position: -220% 0; } }

@keyframes telegram-pulse { 70% { box-shadow: 0 0 0 9px rgba(113,199,255,0); } 100% { box-shadow: 0 0 0 0 rgba(113,199,255,0); } }

.round-card { overflow: hidden; border: 1px solid rgba(87,188,255,.34); border-radius: 14px; padding: 27px; background: linear-gradient(145deg,rgba(17,34,57,.92),rgba(7,15,29,.98)); box-shadow: 0 38px 100px rgba(0,0,0,.42); }
.round-top, .countdown { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #879ab1; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.round-top b { border: 1px solid rgba(102,228,182,.28); border-radius: 100px; padding: 6px 9px; color: var(--green); background: rgba(102,228,182,.06); font-size: 12px; }
.round-card > strong { display: block; margin: 28px 0; color: var(--paper); font-family: var(--mono); font-size: clamp(20px,2.5vw,30px); letter-spacing: -.03em; }
.countdown { border-top: 1px solid var(--line); padding-top: 20px; }
.countdown b { color: var(--cyan); font-size: 15px; }
.round-card dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 22px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.round-card dl div { padding: 16px 12px; background: rgba(5,13,26,.94); }
.round-card dt { color: #7e92aa; font-size: 12px; }
.round-card dd { margin: 8px 0 0; color: var(--paper); font-size: 18px; font-weight: 750; }
.round-card > p { margin: 20px 0 0; color: #8194aa; font-size: 12px; line-height: 1.6; }

.league-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #091221; }
.league-strip span { min-height: 80px; border-right: 1px solid var(--line); padding: 29px max(18px,calc((100vw - var(--max))/8)); color: #9aacbf; font-size: 13px; }
.league-strip span:last-child { border-right: 0; }
.league-strip b { margin-right: 9px; color: var(--blue); font-family: var(--mono); }

.rankings, .how-it-works, .hall, .legal-shell { width: min(calc(100% - 48px),var(--max)); margin: 0 auto; padding: 105px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.section-heading h2, .how-it-works h2, .hall h2 { font-size: clamp(42px,5vw,66px); }
.section-heading > p { margin: 0 0 5px; color: var(--muted); line-height: 1.7; }
.ranking-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 56px; }
.ranking-card { border: 1px solid var(--line); border-radius: 11px; padding: 26px; background: radial-gradient(circle at 100% 0,rgba(53,169,255,.08),transparent 32%),var(--panel); }
.ranking-card header { display: flex; gap: 16px; min-height: 108px; }
.ranking-card header > b { color: var(--blue); font-family: var(--mono); font-size: 13px; }
.ranking-card h3 { margin: 0; color: var(--paper); font-size: 22px; letter-spacing: -.04em; }
.ranking-card header p { margin: 10px 0 0; color: #8799ae; font-size: 13px; line-height: 1.55; }
.empty-ranking { display: flex; min-height: 155px; flex-direction: column; align-items: center; justify-content: center; border-top: 1px solid var(--line); text-align: center; }
.empty-ranking > span { color: var(--blue); font-size: 28px; }
.empty-ranking strong { margin-top: 12px; color: var(--paper); font-size: 14px; }
.empty-ranking small { margin-top: 7px; color: #74879d; font-size: 12px; }

.how-it-works { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; border-top: 1px solid var(--line); }
.how-it-works ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.how-it-works li { display: grid; grid-template-columns: 45px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 9px; padding: 22px; background: rgba(13,23,40,.72); }
.how-it-works li > b { color: var(--blue); font-family: var(--mono); }
.how-it-works strong { color: var(--paper); font-size: 18px; }
.how-it-works p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.hall { border-top: 1px solid var(--line); }
.hall-empty { display: flex; align-items: center; gap: 22px; margin-top: 45px; border: 1px solid var(--line); border-radius: 10px; padding: 27px; background: var(--panel); }
.hall-empty > span { color: var(--blue); font-size: 36px; }
.hall-empty strong { color: var(--paper); font-size: 18px; }
.hall-empty p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.legal-shell { padding-top: 170px; }
.legal-shell h1 { max-width: 900px; font-size: clamp(48px,6vw,78px); }
.legal-lede { max-width: 850px; margin: 28px 0 55px; color: #b0bed0; font-size: 18px; line-height: 1.7; }
.rules-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.rules-grid article, .privacy-shell section { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: var(--panel); }
.rules-grid article > span { color: var(--blue); font-family: var(--mono); font-size: 12px; }
.rules-grid h2, .privacy-shell h2 { margin: 18px 0 0; color: var(--paper); font-size: 20px; }
.rules-grid p, .privacy-shell section p { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.72; }
.privacy-shell { max-width: 980px; }
.privacy-shell section { margin-top: 10px; }
.privacy-shell section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

footer { display: flex; width: min(calc(100% - 48px),var(--max)); align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; border-top: 1px solid var(--line); padding: 28px 0 35px; color: #71839a; font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .league-header { grid-template-columns: 1fr auto; }
  .league-header nav { display: none; }
  .league-hero { grid-template-columns: 1fr; padding-top: 145px; }
  .round-card, .crown-card { max-width: 680px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band article:nth-child(2) { border-right: 0; }
  .stats-band article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .prize-story, .privacy-board { grid-template-columns: 1fr; gap: 45px; }
  .board-row { grid-template-columns: 48px minmax(160px,1fr) 130px 115px; }
  .board-row > :nth-child(5) { display: none; }
  .leader-row { grid-template-columns: 48px minmax(160px,1fr) 140px 105px 70px; }
  .leader-row > :nth-child(6) { display: none; }
  .hall-grid { grid-template-columns: 1fr 1fr; }
  .final-league-cta { grid-template-columns: auto 1fr; }
  .final-league-cta .button { grid-column: 2; justify-self: start; }
  .league-strip { grid-template-columns: 1fr 1fr; }
  .league-strip span:nth-child(2) { border-right: 0; }
  .league-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .how-it-works { grid-template-columns: 1fr; gap: 40px; }
  .ranking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .league-header { top: 12px; width: calc(100% - 24px); padding: 11px 12px; }
  .brand small { letter-spacing: .08em; }
  .back-link { font-size: 12px; }
  .league-hero { min-height: auto; padding: 125px 20px 65px; }
  .league-hero h1 { font-size: 52px; }
  .button { width: 100%; min-height: 55px; padding: 10px 16px; text-align: center; }
  .telegram-login-form > div, .telegram-code-form > div { grid-template-columns: 1fr; }
  .telegram-login-form button, .telegram-code-form button { min-height: 48px; }
  .crown-card { padding: 20px; }
  .podium { gap: 5px; }
  .podium-avatar { width: 43px; height: 43px; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band article { min-height: 105px; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .stats-band article:last-child { border-bottom: 0; }
  .section-shell { width: calc(100% - 36px); padding: 76px 0; }
  .prize-grid article { grid-template-columns: 1fr; }
  .prize-grid strong { grid-row: auto; grid-column: auto; }
  .board-heading, .section-heading { align-items: flex-start; flex-direction: column; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .board-head { display: none; }
  .board-table, .ranking-table { display: grid; gap: 8px; }
  .board-row, .leader-row { min-height: 88px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: var(--panel); }
  .board-row { grid-template-columns: 35px minmax(0,1fr) auto; }
  .board-row > :nth-child(3) { display: none; }
  .board-row > :nth-child(4) { display: block; }
  .leader-row { grid-template-columns: 35px minmax(0,1fr) auto; }
  .leader-row > :nth-child(3) { display: block; }
  .leader-row > :nth-child(4), .leader-row > :nth-child(5), .leader-row > :nth-child(6) { display: none; }
  .ranking-foot { align-items: flex-start; flex-direction: column; }
  .hall-grid { grid-template-columns: 1fr; }
  .privacy-board dl div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .privacy-board dd { text-align: left; }
  .final-league-cta { grid-template-columns: 1fr; }
  .final-league-cta .button { grid-column: 1; }
  .round-card { padding: 20px; }
  .round-card dl { grid-template-columns: 1fr; }
  .league-strip { grid-template-columns: 1fr; }
  .league-strip span { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .rankings, .how-it-works, .hall, .legal-shell { width: calc(100% - 36px); padding: 76px 0; }
  .legal-shell { padding-top: 140px; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article, .privacy-shell section { padding: 22px; }
  footer { width: calc(100% - 36px); align-items: flex-start; flex-direction: column; }
}
