:root {
    --bg: #0d0d0f;
    --surface: #171719;
    --surface-2: #202024;
    --line: #313136;
    --line-soft: rgba(255,255,255,0.08);
    --orange: #ff5500;
    --orange-soft: rgba(255,85,0,0.14);
    --green: #4caf50;
    --red: #ef5350;
    --gold: #ffd166;
    --text: #ffffff;
    --muted: #a0a0a7;
    --shadow: 0 18px 60px rgba(0,0,0,0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: radial-gradient(circle at top left, #242022 0, var(--bg) 34%), linear-gradient(180deg, rgba(255,85,0,0.04), transparent 420px); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(120deg, transparent, rgba(255,85,0,0.055), transparent); background-size: 74px 74px, 74px 74px, 220% 220%; opacity: 0.45; animation: ambientSweep 18s ease-in-out infinite alternate; }
body[data-theme="moon"] {
    --bg: #030303;
    --surface: #0f1219;
    --surface-2: #151923;
    --line: #273142;
    --line-soft: rgba(252,227,0,0.12);
    --orange: #fce300;
    --orange-soft: rgba(252,227,0,0.14);
    --gold: #fce300;
    --muted: #9ca3af;
    --shadow: 0 22px 62px rgba(0,0,0,0.48);
    background:
        radial-gradient(circle at 15% 0%, rgba(252,227,0,0.12), transparent 31%),
        radial-gradient(circle at 90% 10%, rgba(59,130,246,0.12), transparent 34%),
        #030303;
}
body[data-theme="moon"]::before {
    background-image:
        linear-gradient(rgba(252,227,0,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(252,227,0,0.025) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(252,227,0,0.09), transparent 34%);
    opacity: 0.65;
}
body.modal-open { overflow: hidden; touch-action: none; }
button, input { font: inherit; }

.hidden { display: none !important; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #000; }
.brand-kicker { color: var(--orange); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.brand-title { font-size: 28px; line-height: 1; font-weight: 900; }
.brand-subtitle { color: var(--muted); font-size: 13px; margin-top: 5px; }

.auth-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 74px); width: 100%; padding: 24px; }
.auth-brand { margin-bottom: 22px; }
.auth-card { background: rgba(23, 23, 25, 0.96); border: 1px solid var(--line); padding: 32px; border-radius: 8px; width: 100%; max-width: 420px; box-shadow: 0 18px 60px rgba(0,0,0,0.45); }
.auth-card h2 { text-align: center; margin-bottom: 22px; font-size: 22px; }
.input-group { margin-bottom: 14px; }
.input-group input { width: 100%; padding: 14px; background: #242428; border: 1px solid #35353b; color: white; border-radius: 6px; font-size: 16px; transition: 0.2s; }
.input-group input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,85,0,0.12); }
.btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--orange), #ff7a1a); color: white; border: none; border-radius: 6px; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; box-shadow: 0 10px 24px rgba(255,85,0,0.14); }
.btn:hover { background: linear-gradient(135deg, #ff6720, #e04a00); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255,85,0,0.22); }
.btn:disabled { background: #555; cursor: not-allowed; }
.btn-secondary { background: #303036; }
.btn-secondary:hover { background: #3a3a42; }
.toggle-link { display: block; text-align: center; margin-top: 18px; color: var(--muted); cursor: pointer; font-size: 14px; }
.toggle-link:hover { color: var(--orange); }
#auth-status { text-align: center; margin-bottom: 15px; font-weight: bold; min-height: 20px; }

.dashboard { display: none; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px; flex-direction: column; }
.header { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; gap: 18px; }
.logout { color: var(--muted); cursor: pointer; font-weight: 800; }
.logout:hover { color: white; }
.main-content { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 30px; align-items: stretch; }
.panel { position: relative; background: linear-gradient(180deg, rgba(25,25,28,0.98), rgba(18,18,20,0.98)); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); animation: panelIn 420ms ease both; overflow: hidden; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.panel:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 20px 58px rgba(0,0,0,0.42); }
body[data-theme="moon"] .panel,
body[data-theme="moon"] .auth-card {
    background: linear-gradient(180deg, rgba(15,18,25,0.98), rgba(7,8,12,0.98));
    border-color: rgba(252,227,0,0.16);
}
body[data-theme="moon"] .season-banner {
    border-color: rgba(252,227,0,0.28);
    background:
        linear-gradient(135deg, rgba(252,227,0,0.14), rgba(16,44,80,0.34) 46%, rgba(7,10,16,0.96)),
        linear-gradient(90deg, rgba(252,227,0,0.08), rgba(59,130,246,0.08));
    box-shadow: 0 20px 58px rgba(0,0,0,0.46), inset 0 0 0 1px rgba(59,130,246,0.08);
}
body[data-theme="moon"] .season-banner::before {
    background: linear-gradient(115deg, transparent 0%, rgba(252,227,0,0.12) 35%, rgba(59,130,246,0.16) 52%, transparent 72%);
    opacity: 0.5;
}
body[data-theme="moon"] .season-kicker::before {
    background: var(--gold);
    box-shadow: 0 0 18px rgba(252,227,0,0.78);
}
body[data-theme="moon"] .season-date,
body[data-theme="moon"] .countdown-cell {
    background: rgba(6,9,15,0.66);
    border-color: rgba(59,130,246,0.16);
}
body[data-theme="moon"] .countdown-panel {
    background: rgba(9,23,42,0.46);
    border-color: rgba(252,227,0,0.28);
}
body[data-theme="moon"] .season-select {
    background: rgba(6,9,15,0.84);
    border-color: rgba(252,227,0,0.26);
}
body[data-theme="moon"] .season-banner-closed {
    border-color: rgba(252,227,0,0.36);
    background:
        radial-gradient(circle at 73% 12%, rgba(252,227,0,0.18), transparent 31%),
        linear-gradient(135deg, rgba(252,227,0,0.12), rgba(16,44,80,0.38) 44%, rgba(3,5,10,0.98));
}
body[data-theme="moon"] .season-podium {
    background: rgba(5,10,18,0.54);
    border-color: rgba(252,227,0,0.24);
}
body[data-theme="moon"] .podium-player {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.18);
}
body[data-theme="moon"] .podium-block {
    background: linear-gradient(180deg, rgba(252,227,0,0.18), rgba(59,130,246,0.08));
    border-color: rgba(252,227,0,0.34);
}
body[data-theme="moon"] .podium-rank-1 .podium-block {
    background: linear-gradient(180deg, rgba(252,227,0,0.28), rgba(59,130,246,0.1));
    border-color: rgba(252,227,0,0.58);
}
body[data-theme="moon"] .brand-kicker,
body[data-theme="moon"] .logout:hover,
body[data-theme="moon"] .text-link:hover { color: var(--gold); }
body[data-theme="moon"] .btn {
    color: #111;
    background: linear-gradient(135deg, #fce300, #c7b300);
    box-shadow: 0 12px 26px rgba(252,227,0,0.16);
}
body[data-theme="moon"] .btn:hover { background: linear-gradient(135deg, #fff04f, #fce300); }

.season-banner { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 14px; padding: 22px; border: 1px solid rgba(255,85,0,0.36); border-radius: 8px; background: linear-gradient(135deg, rgba(255,85,0,0.18), rgba(255,209,102,0.08) 44%, rgba(23,23,25,0.96)); box-shadow: var(--shadow); overflow: hidden; animation: panelIn 460ms ease both; }
.season-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 0%, rgba(255,209,102,0.08) 35%, rgba(255,85,0,0.12) 48%, transparent 66%); background-size: 220% 100%; opacity: 0.55; animation: seasonGlow 8s ease-in-out infinite; }
.season-banner > * { position: relative; z-index: 1; }
.season-banner-closed { grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr); align-items: stretch; border-color: rgba(255,209,102,0.45); background: radial-gradient(circle at 70% 20%, rgba(255,209,102,0.16), transparent 34%), linear-gradient(135deg, rgba(255,85,0,0.16), rgba(255,209,102,0.1) 38%, rgba(16,16,20,0.98)); }
.season-banner-closed::before { opacity: 0.8; background: linear-gradient(115deg, transparent 0%, rgba(255,209,102,0.16) 36%, rgba(255,255,255,0.08) 50%, transparent 68%); }
.season-banner-closed .season-side { display: none; }
.season-banner-closed .season-podium { grid-column: 2; grid-row: 1; }
.season-banner-upcoming { border-color: rgba(76,175,80,0.28); background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(255,209,102,0.06), rgba(23,23,25,0.96)); }
.season-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.season-insight { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(23,23,25,0.72); }
.season-insight span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.season-insight strong { display: block; color: var(--text); font-size: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.auth-season-banner { max-width: 720px; }
.auth-season-banner.season-banner-closed { max-width: min(1100px, 100%); }
.season-banner-main { min-width: 0; }
.season-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.season-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 18px rgba(255,85,0,0.85); flex: 0 0 auto; }
.season-title { font-size: 22px; font-weight: 900; line-height: 1.15; }
.season-subtitle { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 7px; }
.season-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.season-select { max-width: 240px; background: rgba(13,13,15,0.82); color: var(--text); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 10px 12px; font-size: 13px; font-weight: 800; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.season-select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,85,0,0.18); }
.season-lock { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 10px; border: 1px solid rgba(255,209,102,0.32); border-radius: 6px; color: var(--gold); background: rgba(255,209,102,0.08); font-size: 12px; font-weight: 900; }
.season-lock[data-reason="not_started"] { color: #8ecbff; background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.34); }
.season-lock[data-reason="finished"] { color: var(--muted); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.season-state-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 10px; border: 1px solid rgba(76,175,80,0.3); border-radius: 6px; color: #8de68d; background: rgba(76,175,80,0.1); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.season-state-pill[data-state="closed"] { color: var(--gold); background: rgba(255,209,102,0.12); border-color: rgba(255,209,102,0.42); }
.season-state-pill[data-state="upcoming"] { color: #8ecbff; background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.36); }
.season-side { display: grid; gap: 10px; min-width: 322px; }
.season-dates { display: grid; grid-template-columns: repeat(2, minmax(118px, 1fr)); gap: 10px; }
.season-date { padding: 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(13,13,15,0.45); }
.season-date span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.season-date strong { display: block; color: var(--text); font-size: 16px; line-height: 1.2; white-space: nowrap; }
.countdown-panel { padding: 12px; border: 1px solid rgba(255,85,0,0.28); border-radius: 8px; background: rgba(255,85,0,0.08); }
.countdown-label { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.countdown-cell { min-width: 0; text-align: center; padding: 8px 5px; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; background: rgba(13,13,15,0.5); }
.countdown-cell strong { display: block; font-size: 20px; line-height: 1; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.countdown-cell span { display: block; color: var(--muted); font-size: 10px; line-height: 1; margin-top: 6px; text-transform: uppercase; }
.season-podium { align-self: stretch; min-width: 0; padding: 14px; border: 1px solid rgba(255,209,102,0.24); border-radius: 8px; background: rgba(10,10,12,0.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035); }
.podium-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.podium-header span { display: block; color: var(--gold); font-size: 11px; font-weight: 950; text-transform: uppercase; margin-bottom: 4px; }
.podium-header strong { display: block; font-size: 22px; line-height: 1.05; }
.podium-header p { max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.35; text-align: right; }
.podium-stage { min-height: 210px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.podium-place { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; height: 100%; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.podium-place:hover .podium-block { transform: translateY(-3px); border-color: rgba(255,209,102,0.62); box-shadow: 0 16px 34px rgba(0,0,0,0.28); }
.podium-player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; padding: 9px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.04); }
.podium-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,209,102,0.42); background: #111; }
.podium-player span { display: block; color: var(--muted); font-size: 10px; font-weight: 950; text-transform: uppercase; }
.podium-player strong { display: block; color: var(--text); font-size: 15px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-block { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 112px; padding: 13px 10px; border: 1px solid rgba(255,209,102,0.34); border-radius: 8px 8px 6px 6px; background: linear-gradient(180deg, rgba(255,209,102,0.17), rgba(255,85,0,0.12)); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.podium-block span { display: block; color: var(--gold); font-size: 32px; line-height: 1; font-weight: 950; }
.podium-block strong { display: block; color: var(--text); font-size: 18px; line-height: 1; margin-top: 8px; }
.podium-block small { display: block; color: var(--muted); font-size: 10px; line-height: 1.3; margin-top: 9px; text-align: center; }
.podium-rank-1 { order: 2; }
.podium-rank-2 { order: 1; }
.podium-rank-3 { order: 3; }
.podium-rank-1 .podium-player { transform: translateY(-8px); border-color: rgba(255,209,102,0.34); }
.podium-rank-1 .podium-avatar { width: 54px; height: 54px; border-color: rgba(255,209,102,0.72); box-shadow: 0 0 24px rgba(255,209,102,0.18); }
.podium-rank-1 .podium-block { min-height: 154px; background: linear-gradient(180deg, rgba(255,209,102,0.26), rgba(255,85,0,0.14)); border-color: rgba(255,209,102,0.58); }
.podium-rank-2 .podium-block { min-height: 126px; border-color: rgba(201,209,217,0.34); background: linear-gradient(180deg, rgba(201,209,217,0.14), rgba(255,255,255,0.04)); }
.podium-rank-3 .podium-block { min-height: 104px; border-color: rgba(212,147,93,0.38); background: linear-gradient(180deg, rgba(212,147,93,0.14), rgba(255,255,255,0.035)); }

.profile-card { min-height: 100%; padding: 34px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; align-self: stretch; }
.avatar { display: block; width: 116px; height: 116px; flex: 0 0 116px; border-radius: 50%; border: 3px solid var(--orange); object-fit: cover; object-position: center; margin: 10px auto 14px; background: #2a2a2a; }
.profile-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.profile-points { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: rgba(255,85,0,0.12); border: 1px solid rgba(255,85,0,0.35); color: var(--text); font-weight: 900; }
.profile-rank { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.32); color: var(--text); font-weight: 900; }
.profile-medals-slot { width: 100%; min-height: 82px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 2px; padding: 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 800; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)); overflow: visible; }
.profile-medals-slot.hidden { display: none; }
.muted { color: var(--muted); }
.stats-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 18px; }
.modal-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-item { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #222227; border: 1px solid #303038; border-radius: 8px; padding: 13px; }
.stat-item span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; font-weight: 800; }
.stat-item h3 { font-size: 30px; line-height: 1; }
.modal-stats-grid .stat-item:nth-child(3) { grid-column: 1; grid-row: 2; }
.modal-stats-grid .stat-item:nth-child(6) { grid-column: 2; grid-row: 2; }
.modal-stats-grid .stat-item:nth-child(4) { grid-column: 1; grid-row: 3; }
.modal-stats-grid .stat-item:nth-child(5) { grid-column: 2; grid-row: 3; }
.session-status { margin-top: 14px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.client-hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 12px 0 0; }
.form-strip { width: 100%; display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.035); }
.form-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 950; }
.form-win { color: var(--green); background: rgba(76,175,80,0.14); border: 1px solid rgba(76,175,80,0.28); }
.form-loss { color: var(--red); background: rgba(239,83,80,0.14); border: 1px solid rgba(239,83,80,0.28); }
.goal-card { width: 100%; margin: 0 0 14px; padding: 12px; border: 1px solid rgba(255,85,0,0.24); border-radius: 8px; background: linear-gradient(135deg, rgba(255,85,0,0.1), rgba(255,255,255,0.025)); text-align: left; }
.goal-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.goal-card strong { display: block; color: var(--text); font-size: 15px; line-height: 1.25; }

.ladder-card { padding: 34px; align-self: stretch; }
.ladder-scroll { max-height: 620px; overflow: auto; border: 1px solid #28282e; border-radius: 8px; }
.ladder-scroll .ladder-table th { position: sticky; top: 0; background: #171719; z-index: 1; padding-top: 14px; }
.ladder-note { margin-bottom: 14px; padding: 11px 12px; background: #202024; border: 1px solid #303038; border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.info-card { padding: 22px; }
.prize-list, .rules-list { display: grid; gap: 10px; margin-top: 14px; }
.prize-row, .rule-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; background: #202024; border: 1px solid #303038; border-radius: 8px; }
.prize-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; overflow: hidden; }
.prize-row:nth-child(1) { border-color: rgba(255,209,102,0.42); background: linear-gradient(90deg, rgba(255,209,102,0.12), #202024 58%); }
.prize-row:nth-child(2) { border-color: rgba(201,209,217,0.34); }
.prize-row:nth-child(3) { border-color: rgba(212,147,93,0.36); }
.prize-place { min-width: 42px; color: var(--gold); font-weight: 900; }
.prize-main { min-width: 0; }
.prize-main strong { display: block; color: var(--text); font-size: 15px; line-height: 1.2; }
.prize-main span { display: block; color: var(--muted); font-size: 12px; line-height: 1.25; margin-top: 3px; }
.prize-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding: 9px 12px; border-radius: 999px; background: rgba(255,209,102,0.12); border: 1px solid rgba(255,209,102,0.44); color: var(--gold); font-weight: 900; text-align: center; line-height: 1; white-space: nowrap; }
.prize-badge small { color: var(--muted); font-size: 10px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.rule-row strong { color: var(--text); }

/* Блок «Как считаются PTS»: две вкладки со стрелками. Цвета через var(--orange),
   иначе лунная тема (там акцент жёлтый) осталась бы с оранжевыми вкладками. */
.rules-switch { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.rules-arrow { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.14s; }
.rules-arrow span { display: block; margin-top: -3px; }
.rules-arrow:hover { color: var(--text); border-color: var(--orange); background: var(--orange-soft); }
.rules-arrow:active { transform: scale(0.93); }
.rules-arrow:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.rules-tabs { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rules-tab { min-width: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.18s, background 0.18s, border-color 0.18s; }
.rules-tab:hover { color: var(--text); }
.rules-tab.is-active { color: var(--orange); background: var(--orange-soft); border-color: var(--orange); }
.rules-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.rules-viewport { overflow: hidden; transition: height 0.3s ease; }
.rules-track { display: flex; align-items: flex-start; transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1); }
.rules-slide { flex: 0 0 100%; min-width: 0; padding-top: 14px; }
.rules-slide-hint { color: var(--muted); font-size: 13px; line-height: 1.35; }
.rules-slide .rules-list { margin-top: 12px; }
/* Жёсткий тариф отличается акцентными числами и лёгкой подсветкой строк */
.rules-slide.is-tier .rule-row { background: var(--orange-soft); }
.rules-slide.is-tier .rule-row strong { color: var(--orange); }
.rules-tier-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-title h2 { font-size: 21px; }
.section-title p { color: var(--muted); font-size: 13px; }
.ladder-table { width: 100%; border-collapse: collapse; text-align: left; }
.ladder-table th { color: var(--muted); padding: 0 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; }
.ladder-table td { padding: 15px 10px; border-bottom: 1px solid #28282e; font-weight: 600; }
.ladder-table tr.clickable { transition: background 0.18s, transform 0.18s, box-shadow 0.18s; }
.ladder-table tr.clickable:hover { background: #232328; cursor: pointer; }
.ladder-table tr.current-player-row { background: linear-gradient(90deg, rgba(255,85,0,0.2), rgba(32,32,36,0.98) 52%, rgba(255,85,0,0.08)); outline: 1px solid rgba(255,85,0,0.82); outline-offset: -1px; box-shadow: inset 0 0 0 1px rgba(255,85,0,0.22), 0 0 24px rgba(255,85,0,0.1); }
.ladder-table tr.current-player-row:hover { background: linear-gradient(90deg, rgba(255,85,0,0.28), rgba(38,38,43,1) 52%, rgba(255,85,0,0.12)); }
.ladder-table tr.current-player-row td:first-child { border-left: 3px solid var(--orange); }
.ladder-table tr.top-one-row {
    background: linear-gradient(90deg, rgba(255,209,102,0.13), rgba(32,32,36,0.98) 44%, rgba(255,209,102,0.05));
    box-shadow: inset 0 0 0 1px rgba(255,209,102,0.26), 0 0 28px rgba(255,209,102,0.08);
}
.ladder-table tr.top-one-row td:first-child { border-left: 3px solid var(--gold); }
body[data-theme="moon"] .ladder-table tr.top-one-row {
    background: linear-gradient(90deg, rgba(252,227,0,0.16), rgba(15,18,25,0.98) 48%, rgba(252,227,0,0.04));
    box-shadow: inset 0 0 0 1px rgba(252,227,0,0.34), 0 0 30px rgba(252,227,0,0.12);
}
.ladder-mobile-cards { display: none; }
.mobile-player-card { padding: 13px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(23,23,25,0.92); }
.mobile-player-card.current-player-row { border-color: rgba(255,85,0,0.72); background: linear-gradient(135deg, rgba(255,85,0,0.18), rgba(23,23,25,0.94)); }
.mobile-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mobile-card-name { min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 950; overflow-wrap: anywhere; }
.mobile-card-points { color: var(--text); font-size: 20px; font-weight: 950; white-space: nowrap; }
.mobile-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.mobile-player-card.top-one-row { border-color: rgba(255,209,102,0.42); box-shadow: 0 0 24px rgba(255,209,102,0.1); }
.event-feed { display: grid; gap: 8px; margin-top: 14px; }
.event-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; background: rgba(255,255,255,0.03); color: var(--muted); font-size: 12px; }
.event-row strong { color: var(--text); }
.event-pill { min-width: 40px; color: var(--gold); font-weight: 950; }
.table-prize-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; max-width: 220px; padding: 6px 10px; border-radius: 999px; background: rgba(255,209,102,0.11); border: 1px solid rgba(255,209,102,0.38); color: var(--gold); font-size: 13px; font-weight: 900; white-space: nowrap; }
.table-prize-badge .table-prize-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-prize-img { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 5px; object-fit: cover; background: rgba(0,0,0,0.2); }
.table-prize-empty { color: var(--muted); opacity: 0.32; }
/* Настраиваемые призы: картинка в карточке призов и на подиуме */
.prize-main strong { overflow-wrap: anywhere; }
.prize-media { flex: 0 0 auto; }
.prize-media img { display: block; width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,209,102,0.42); background: rgba(0,0,0,0.25); }
.prize-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; border: 1px dashed #303038; border-radius: 8px; background: #202024; }
.podium-prize-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; margin-top: 8px; border: 1px solid rgba(255,209,102,0.5); background: rgba(0,0,0,0.25); }
.mobile-card-prize-row { margin-top: 8px; }
.mobile-card-prize { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: rgba(255,209,102,0.12); border: 1px solid rgba(255,209,102,0.4); color: var(--gold); font-size: 12px; font-weight: 900; }
.mobile-card-prize img { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 4px; object-fit: cover; }
.mobile-card-prize span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-name-cell { display: inline-flex; align-items: center; gap: 9px; flex-wrap: nowrap; min-width: 0; max-width: 100%; }
.ladder-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; object-position: center; border: 1px solid rgba(255,255,255,0.16); background: #111; }
.player-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-medal { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; font-weight: 900; cursor: help; border: 1px solid rgba(255,255,255,0.16); }
.season-medal-gold, .season-medal-crown { background: rgba(255,209,102,0.16); color: var(--gold); border-color: rgba(255,209,102,0.52); }
.season-medal-silver { background: rgba(201,209,217,0.14); color: #c9d1d9; border-color: rgba(201,209,217,0.42); }
.season-medal-bronze { background: rgba(212,147,93,0.14); color: #d4935d; border-color: rgba(212,147,93,0.42); }
.season-medal-img { width: 22px; height: 22px; display: block; object-fit: contain; border-radius: 50%; }
.season-medal-season1_first_png,
.season-medal-season1_second_png,
.season-medal-season1_third_png,
.season-medal-beta_png { background: rgba(255,255,255,0.06); border-color: rgba(255,209,102,0.34); }
.modal-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 2px; }
.medal-item { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 0; background: transparent; color: var(--text); cursor: help; }
.medal-item-editable { cursor: pointer; }
.medal-orb { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; font-weight: 950; border: 2px solid rgba(255,255,255,0.12); box-shadow: inset 0 0 18px rgba(0,0,0,0.55), 0 8px 22px rgba(0,0,0,0.28); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.medal-item:hover .medal-orb, .medal-item:focus-within .medal-orb { transform: translateY(-2px) scale(1.04); }
.medal-item.pinned-badge .medal-orb::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 2px solid #111113; box-shadow: 0 0 12px rgba(255,85,0,0.72); }
.medal-item-gold .medal-orb, .medal-item-crown .medal-orb { color: #2b1800; border-color: rgba(255,209,102,0.72); background: radial-gradient(circle at 30% 25%, #fff1a3, #ffd166 36%, #a96f00 76%); }
.medal-item-silver .medal-orb { color: #171719; border-color: rgba(220,226,232,0.7); background: radial-gradient(circle at 30% 25%, #ffffff, #c9d1d9 40%, #737b84 78%); }
.medal-item-bronze .medal-orb { color: #1d0d05; border-color: rgba(212,147,93,0.7); background: radial-gradient(circle at 30% 25%, #ffd4ad, #d4935d 42%, #7a3f18 80%); }
.medal-orb-img { width: 42px; height: 42px; display: block; object-fit: contain; border-radius: 50%; }
.medal-item-season1_first_png .medal-orb,
.medal-item-season1_second_png .medal-orb,
.medal-item-season1_third_png .medal-orb,
.medal-item-beta_png .medal-orb { background: rgba(255,255,255,0.04); border-color: rgba(255,209,102,0.34); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.medal-tooltip { pointer-events: none; position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 8; min-width: 190px; max-width: 240px; padding: 12px 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(20,20,22,0.98); color: var(--text); text-align: left; box-shadow: 0 18px 42px rgba(0,0,0,0.55); opacity: 0; transform: translate(-50%, 6px); transition: opacity 0.16s, transform 0.16s; }
.medal-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: rgba(20,20,22,0.98); border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); transform: translateX(-50%) rotate(45deg); }
.medal-item:hover .medal-tooltip, .medal-item:focus-within .medal-tooltip { opacity: 1; transform: translate(-50%, 0); }
.medal-tooltip strong { display: block; font-size: 15px; line-height: 1.2; }
.medal-tooltip span { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 5px; }
.medal-tooltip small { display: block; color: var(--gold); font-size: 11px; line-height: 1.3; margin-top: 8px; text-transform: uppercase; font-weight: 900; }
.profile-medal-action { display: inline-flex; margin-top: 10px; border: 1px solid rgba(255,85,0,0.42); border-radius: 999px; background: rgba(255,85,0,0.12); color: var(--text); padding: 6px 9px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.pinned-badge .profile-medal-action { border-color: rgba(255,209,102,0.46); background: rgba(255,209,102,0.12); color: var(--gold); }
.rank-1 { color: var(--gold); font-weight: 900; }
.rank-2 { color: #c9d1d9; font-weight: 900; }
.rank-3 { color: #d4935d; font-weight: 900; }
.points-positive { color: var(--green); }
.points-negative { color: var(--red); }

.modal-overlay { display: flex; position: fixed; inset: 0; background: rgba(0,0,0,0.82); justify-content: center; align-items: center; z-index: 1000; padding: 18px; overflow: hidden; overscroll-behavior: contain; }
.modal-content { background: linear-gradient(180deg, #19191d, var(--surface)); border: 1px solid var(--line); border-radius: 8px; width: 100%; max-width: 920px; max-height: calc(100dvh - 36px); box-shadow: 0 22px 70px rgba(0,0,0,0.75); position: relative; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.close-btn { position: absolute; top: 14px; right: 18px; font-size: 28px; cursor: pointer; color: var(--muted); z-index: 2; }
.close-btn:hover { color: white; }
.player-modal-grid { display: grid; grid-template-columns: 300px 1fr; min-height: 430px; }
.player-side { padding: 30px 24px; text-align: center; background: linear-gradient(180deg, #121214, #0f0f11); border-right: 1px solid var(--line); overflow: visible; }
.player-main { padding: 30px 28px; }
.player-side .modal-badges { min-height: 76px; padding: 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.035); overflow: visible; }
.season-context { display: inline-flex; align-items: center; min-height: 30px; margin-top: 9px; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,85,0,0.28); background: rgba(255,85,0,0.08); color: var(--gold); font-size: 12px; font-weight: 900; }
.season-context:empty { display: none; }
.profile-extra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.profile-extra { padding: 11px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.035); }
.profile-extra span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.profile-extra strong { display: block; color: var(--text); font-size: 18px; line-height: 1.1; }
.points-chart { min-height: 92px; margin-bottom: 12px; padding: 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.03); }
.points-chart svg { display: block; width: 100%; height: 70px; overflow: visible; }
.points-chart path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.points-chart circle { fill: var(--gold); stroke: #151518; stroke-width: 2; }
.points-chart:empty { display: none; }
.faceit-link { display: block; text-decoration: none; margin-top: 15px; }
.match-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; max-height: 430px; overflow: auto; padding-right: 4px; }
.match-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px; background: #202024; border: 1px solid #303038; border-radius: 8px; }
a.match-row { color: inherit; text-decoration: none; }
a.match-row:hover { border-color: rgba(255,85,0,0.55); background: #26262b; }
.match-title { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.result-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 24px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.result-win { background: rgba(76,175,80,0.14); color: var(--green); }
.result-loss { background: rgba(239,83,80,0.14); color: var(--red); }
.match-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.match-points { font-size: 20px; font-weight: 900; text-align: right; }
/* Подвал истории матчей: кнопка догрузки живет под скроллом списка, а не внутри него */
.history-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.history-more-btn { width: auto; min-width: 180px; padding-left: 22px; padding-right: 22px; }
.history-more-btn[disabled] { opacity: 0.6; cursor: default; }
.history-count { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; text-align: center; }
.empty-state { color: var(--muted); padding: 24px; border: 1px dashed #3a3a42; border-radius: 8px; text-align: center; }
.top-tools { position: relative; z-index: 20; width: min(1480px, calc(100% - 32px)); margin: 16px auto 22px; display: flex; justify-content: flex-end; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(13,13,15,0.84); backdrop-filter: blur(14px); box-shadow: 0 12px 28px rgba(0,0,0,0.24); }
.theme-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 7px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); }
.theme-tab { min-height: 30px; border: 0; border-radius: 5px; padding: 0 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 950; cursor: pointer; text-transform: uppercase; }
.theme-tab.active { color: #111; background: var(--gold); }
body[data-theme="moon"] .theme-tab.active { color: #020202; box-shadow: 0 10px 28px rgba(252,227,0,0.18); }
.lang-select { width: 52px; height: 34px; min-height: 0; background: #202024; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 14px; line-height: 1; font-weight: 900; cursor: pointer; text-align: center; text-align-last: center; }
.promo-page-link { color: var(--text); text-decoration: none; background: rgba(255,85,0,0.14); border: 1px solid rgba(255,85,0,0.42); border-radius: 6px; padding: 8px 11px; font-size: 13px; font-weight: 900; }
.promo-page-link:hover { background: rgba(255,85,0,0.24); border-color: rgba(255,85,0,0.72); }
body[data-theme="moon"] .promo-page-link { background: rgba(252,227,0,0.12); border-color: rgba(252,227,0,0.42); }
.text-link { color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 900; border: none; background: transparent; padding: 8px 9px; border-radius: 6px; width: auto; transition: color 0.18s, background 0.18s; }
.text-link:hover { color: var(--orange); background: rgba(255,85,0,0.08); }
.terms-check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.35; margin: 4px 0 14px; }
.terms-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); flex: 0 0 auto; }
.terms-body { max-height: 60vh; overflow: auto; padding-right: 6px; color: var(--muted); line-height: 1.55; }
.terms-body h3 { color: var(--text); margin: 0 0 12px; }
.terms-body p { margin: 0 0 10px; }
.terms-body ol { padding-left: 22px; }
.terms-body li { margin-bottom: 9px; }

@media (max-width: 820px) {
    .top-tools { width: calc(100% - 20px); margin: 10px auto 16px; justify-content: flex-start; }
    .promo-page-link { padding: 8px 10px; font-size: 12px; }
    .text-link { font-size: 12px; }
    .dashboard { padding: 16px; }
    .auth-wrapper { justify-content: flex-start; min-height: calc(100dvh - 64px); padding: 18px 24px 24px; }
    .header { align-items: flex-start; }
    .main-content, .player-modal-grid { grid-template-columns: 1fr; }
    .main-content { align-items: start; gap: 18px; }
    .info-grid { grid-template-columns: 1fr; }
    .season-banner { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; padding: 16px; }
    .season-banner-closed { grid-template-columns: 1fr; }
    .season-banner-closed .season-podium { grid-column: auto; grid-row: auto; }
    .season-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .season-title { font-size: 19px; }
    .season-side { min-width: 0; width: 100%; }
    .season-select { max-width: none; width: 100%; }
    .player-side { border-right: none; border-bottom: 1px solid var(--line); }
    .brand-title { font-size: 23px; }
    .ladder-card, .profile-card { padding: 18px; }
    .modal-overlay { align-items: stretch; padding: 10px; }
    .modal-content { max-height: calc(100dvh - 20px); }
    .player-modal-grid { min-height: 0; }
    .player-side { padding: 24px 18px; }
    .player-main { padding: 24px 18px; }
    .match-list { max-height: 48dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .ladder-scroll { display: none; }
    .ladder-mobile-cards { display: grid; gap: 10px; }
    .event-row { grid-template-columns: auto 1fr; }
    .event-row span:last-child { grid-column: 2; }
    .profile-extra-grid { grid-template-columns: 1fr; }
    .ladder-table th:nth-child(3), .ladder-table th:nth-child(4),
    .ladder-table th:nth-child(5),
    .ladder-table td:nth-child(3), .ladder-table td:nth-child(4),
    .ladder-table td:nth-child(5) { display: none; }
    .podium-header { align-items: start; flex-direction: column; gap: 8px; }
    .podium-header p { max-width: none; text-align: left; }
    .podium-stage { min-height: 0; grid-template-columns: 1fr; align-items: stretch; }
    .podium-place { height: auto; }
    .podium-rank-1, .podium-rank-2, .podium-rank-3 { order: initial; }
    .podium-rank-1 { order: 1; }
    .podium-rank-2 { order: 2; }
    .podium-rank-3 { order: 3; }
    .podium-rank-1 .podium-player { transform: none; }
    .podium-rank-1 .podium-block,
    .podium-rank-2 .podium-block,
    .podium-rank-3 .podium-block { min-height: 92px; }
    .podium-block span { font-size: 26px; }
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ambientSweep {
    from { background-position: 0 0, 0 0, 0% 50%; }
    to { background-position: 22px 16px, -18px 12px, 100% 50%; }
}

@keyframes seasonGlow {
    0%, 100% { background-position: 0% 50%; opacity: 0.35; }
    50% { background-position: 100% 50%; opacity: 0.68; }
}

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

@media (max-width: 460px) {
    .season-dates { grid-template-columns: 1fr; }
    .countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .season-date strong { white-space: normal; }
    .promo-page-link { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .season-insights { grid-template-columns: 1fr; }
    /* Стрелки и подписи вкладок PTS сжимаем, чтобы строка не переносилась */
    .rules-switch { gap: 8px; }
    .rules-arrow { width: 30px; height: 30px; font-size: 19px; }
    .rules-tab { padding: 8px 6px; font-size: 12px; }
}
