:root {
    --ink: #132033;
    --marine: #0e3159;
    --accent: #c62839;
    --accent-deep: #9e1f2d;
    --blue-accent: #1d4f91;
    --paper: #f4f7fb;
    --line: #d7dfeb;
}

body {
    background:
        radial-gradient(circle at 10% 0%, rgba(18, 53, 93, 0.16), transparent 42%),
        radial-gradient(circle at 90% 10%, rgba(198, 40, 57, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(18, 53, 93, 0.05) 0%, transparent 26%),
        var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-family: 'PT Sans', sans-serif;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    margin-top: auto;
    padding-bottom: 1.15rem;
}

.site-footer-shell {
    position: relative;
    overflow: hidden;
    border-radius: 0.95rem;
    border: 1px solid rgba(17, 49, 89, 0.18);
    background:
        radial-gradient(circle at 88% 12%, rgba(198, 40, 57, 0.2), transparent 46%),
        linear-gradient(120deg, rgba(14, 49, 89, 0.96), rgba(29, 79, 145, 0.88));
    color: #edf4ff;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    box-shadow: 0 0.7rem 1.7rem rgba(10, 28, 51, 0.22);
}

.site-footer-shell::after {
    content: '';
    position: absolute;
    inset: auto -28% -140% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    pointer-events: none;
    animation: footer-glow 9s ease-in-out infinite;
}

.site-footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.site-footer-title a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.site-footer-title a:hover {
    color: #ffdce0;
}

.site-footer-meta {
    color: rgba(237, 244, 255, 0.86);
    font-size: 0.88rem;
}

.site-footer-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    color: #f7fbff;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.35rem 0.62rem;
    white-space: nowrap;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.02em;
}

.topbar {
    background: linear-gradient(100deg, var(--marine), #24579c);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 0.75rem 1.5rem rgba(9, 26, 50, 0.22);
    animation: nav-enter 480ms ease-out both;
}

.brand-mark {
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.brand-mark--easter {
    position: relative;
}

.brand-mark--easter::after {
    content: 'SQUASH LIGA';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.85rem;
    text-align: center;
    font-size: 0.54rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.38);
    opacity: 0;
    transform: translateY(-2px);
    transition: all 220ms ease;
    pointer-events: none;
}

.brand-mark--easter:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.brand-home-link {
    margin-right: 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.28rem 0.66rem;
    line-height: 1;
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.brand-home-link i {
    font-size: 0.76rem;
}

.brand-home-link:hover,
.brand-home-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.66);
    transform: translateY(-1px);
    box-shadow: 0 0.35rem 0.8rem rgba(8, 23, 44, 0.22);
}

.brand-home-link:active {
    transform: translateY(0);
}

.nav-link,
.navbar-brand {
    color: #eaf1fb;
}

.nav-ico {
    margin-right: 0.38rem;
    opacity: 0.9;
    font-size: 0.92rem;
}

.nav-link:hover,
.navbar-brand:hover {
    color: #fff;
}

@media (min-width: 1200px) {
    .topbar .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.96rem;
    }
}

.nav-animated .nav-link--fx {
    position: relative;
    padding-bottom: 0.35rem;
}

.nav-animated .nav-link--fx::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.1rem;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, var(--accent));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}

.nav-animated .nav-link--fx:hover::after,
.nav-animated .nav-link--fx.is-active::after {
    transform: scaleX(1);
}

.card {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    box-shadow: 0 0.5rem 1.5rem rgba(12, 28, 52, 0.07);
    animation: card-in 420ms ease-out both;
}

.hero-panel {
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    background:
        linear-gradient(130deg, rgba(14, 49, 89, 0.96), rgba(29, 79, 145, 0.88)),
        linear-gradient(35deg, rgba(198, 40, 57, 0.16), transparent 55%);
    color: #f1f5fb;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 1rem 2rem rgba(13, 30, 56, 0.26);
    overflow: hidden;
    position: relative;
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
}

.hero-panel::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -40px;
    top: -70px;
    background: radial-gradient(circle, rgba(198, 40, 57, 0.34), rgba(198, 40, 57, 0));
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    inset: auto auto -85px -70px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
    transition: transform 200ms ease;
}

.hero-panel .btn {
    position: relative;
    z-index: 1;
}

.hero-panel .text-uppercase {
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.08em;
}

.hero-intro-line {
    opacity: 0;
    transform: translateY(8px);
    animation: hero-copy-in 460ms ease-out forwards;
}

.hero-intro-line--1 {
    animation-delay: 90ms;
}

.hero-intro-line--2 {
    animation-delay: 170ms;
}

.hero-intro-line--3 {
    animation-delay: 250ms;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 rgba(198, 40, 57, 0);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 0 0.9rem rgba(198, 40, 57, 0.4), 0 0 1.5rem rgba(29, 79, 145, 0.2);
}

.btn-outline-primary {
    color: var(--blue-accent);
    border-color: var(--blue-accent);
}

.btn-outline-primary:hover {
    background: var(--blue-accent);
    border-color: var(--blue-accent);
}

.btn-success {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.btn-danger {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-danger:hover,
.btn-danger:focus {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.btn,
.nav-link,
.navbar-brand,
.card,
.list-group-item {
    transition: all 180ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 0.9rem rgba(16, 35, 63, 0.18);
}

.hero-panel .btn-primary {
    position: relative;
}

.hero-panel .btn-primary::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0;
    transform: scale(0.95);
    transition: all 220ms ease;
    pointer-events: none;
}

.hero-panel .btn-primary:hover::after {
    opacity: 1;
    transform: scale(1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 2rem rgba(12, 28, 52, 0.12);
}

.row .card {
    animation-delay: 80ms;
}

.row .col-md-6:nth-child(2) .card,
.row .col-lg-6:nth-child(2) .card,
.row .col-xl-4:nth-child(2) .card {
    animation-delay: 140ms;
}

.row .col-md-6:nth-child(3) .card,
.row .col-lg-6:nth-child(3) .card,
.row .col-xl-4:nth-child(3) .card {
    animation-delay: 200ms;
}

.section-card {
    overflow: hidden;
    position: relative;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    transform: translate(35%, -45%) rotate(35deg);
    opacity: 0.18;
    pointer-events: none;
}

.section-card--tournaments::before {
    background: linear-gradient(140deg, rgba(29, 79, 145, 0.6), rgba(29, 79, 145, 0));
}

.section-card--rating::before {
    background: linear-gradient(140deg, rgba(198, 40, 57, 0.58), rgba(198, 40, 57, 0));
}

.section-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(120deg, var(--blue-accent), var(--accent));
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.section-list {
    margin-bottom: 0;
}

.section-list-item {
    border-left: 3px solid transparent;
}

.section-list-item:hover {
    border-left-color: var(--accent);
}

.section-link {
    font-weight: 700;
    color: var(--marine);
    text-decoration: none;
}

.section-link:hover {
    color: var(--accent);
}

.season-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.season-highlight {
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 49, 89, 0.1);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.75rem 0.8rem;
}

.season-highlight-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6f8d;
    margin-bottom: 0.18rem;
}

.nearby-tip-note {
    border-left: 4px solid var(--accent);
    border-radius: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: rgba(244, 247, 251, 0.88);
}

.easter-egg-trigger {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1;
    border-radius: 999px;
    align-self: center;
    padding: 0;
}

.easter-egg-trigger:hover {
    color: rgba(198, 40, 57, 0.9);
    background: rgba(255, 255, 255, 0.24);
}

body.easter-egg-open {
    overflow: hidden;
}

.easter-egg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 24, 0.82);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.easter-egg-dialog {
    width: min(900px, 98vw);
    background: linear-gradient(180deg, #ffffff, #eef4fc);
    border: 1px solid rgba(17, 49, 89, 0.18);
    border-radius: 0.95rem;
    box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.28);
    padding: 1rem;
}

.easter-egg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.easter-egg-stats {
    font-weight: 700;
    color: #153d6b;
    margin-bottom: 0.55rem;
}

.easter-egg-canvas {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 49, 89, 0.22);
    display: block;
}

.leaderboard {
    list-style: none;
    padding-left: 0;
    counter-reset: rank;
}

.leaderboard-item {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.4rem 0 0.4rem 2.1rem;
    border-bottom: 1px solid rgba(17, 49, 89, 0.08);
    position: relative;
}

.leaderboard-item::before {
    content: counter(rank);
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--blue-accent), var(--accent));
}

.leaderboard-item:last-child {
    border-bottom: 0;
}

.leaderboard-name {
    font-weight: 700;
}

.leaderboard-score {
    color: var(--accent);
    font-weight: 700;
}

.form-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--marine);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(17, 49, 89, 0.16);
}

form label {
    font-weight: 700;
    color: #1a3559;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    border-color: rgba(17, 49, 89, 0.2);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(198, 40, 57, 0.48);
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 57, 0.15);
}

.city-field-wrap {
    position: relative;
}

.city-suggest-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 20;
    border: 1px solid rgba(17, 49, 89, 0.16);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0.8rem 2rem rgba(12, 28, 52, 0.12);
    overflow: hidden;
}

.city-suggest-list {
    max-height: 240px;
    overflow-y: auto;
}

.city-suggest-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.7rem 0.85rem;
    color: var(--ink);
}

.city-suggest-item:hover,
.city-suggest-item.is-active {
    background: rgba(29, 79, 145, 0.08);
}

.city-suggest-empty {
    padding: 0.7rem 0.85rem;
    color: #5e7291;
    font-size: 0.9rem;
}

.list-group-item:hover {
    background: #f7faff;
}

.table thead th {
    white-space: nowrap;
    background: #eaf1fb;
    color: var(--marine);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(29, 79, 145, 0.04);
}

.rankings-table .rank-row {
    opacity: 0;
    transform: translateY(7px);
    animation: row-in 360ms ease-out forwards;
    animation-delay: calc(var(--row-index, 0) * 34ms + 60ms);
}

.rankings-table .rank-row:hover td {
    background: rgba(198, 40, 57, 0.06);
}

.rank-counter {
    min-width: 0.65rem;
    display: inline-block;
    text-align: center;
}

.rank-pill {
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 700;
    color: #0f2f55;
    background: rgba(29, 79, 145, 0.12);
    border: 1px solid rgba(29, 79, 145, 0.24);
}

.rank-row--top td {
    font-weight: 700;
}

.rank-pill-1 {
    color: #7f1622;
    background: linear-gradient(120deg, rgba(198, 40, 57, 0.2), rgba(29, 79, 145, 0.16));
    border-color: rgba(198, 40, 57, 0.42);
}

.rank-pill-2 {
    color: #10325c;
    background: linear-gradient(120deg, rgba(29, 79, 145, 0.18), rgba(198, 40, 57, 0.12));
    border-color: rgba(29, 79, 145, 0.36);
}

.rank-pill-3 {
    color: #7f1622;
    background: linear-gradient(120deg, rgba(198, 40, 57, 0.15), rgba(29, 79, 145, 0.1));
    border-color: rgba(198, 40, 57, 0.28);
}

.rank-row--top-1 td {
    background: rgba(198, 40, 57, 0.08);
}

.rank-row--top-2 td {
    background: rgba(29, 79, 145, 0.07);
}

.rank-row--top-3 td {
    background: rgba(198, 40, 57, 0.05);
}

.alert {
    border: 0;
    border-left: 4px solid var(--accent);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-pending {
    color: #113159;
    background: rgba(29, 79, 145, 0.16);
    border: 1px solid rgba(29, 79, 145, 0.3);
    animation: pending-pulse 1.65s ease-in-out infinite;
}

.status-approved,
.status-confirmed {
    color: #7f1622;
    background: rgba(198, 40, 57, 0.14);
    border: 1px solid rgba(198, 40, 57, 0.32);
}

.status-rejected {
    color: #fff;
    background: linear-gradient(120deg, #8f1e2b, #c62839);
    border: 1px solid rgba(143, 30, 43, 0.58);
}

.countdown-panel {
    border: 1px solid rgba(17, 49, 89, 0.14);
    background:
        radial-gradient(circle at 82% 15%, rgba(198, 40, 57, 0.14), transparent 42%),
        linear-gradient(110deg, rgba(14, 49, 89, 0.96), rgba(29, 79, 145, 0.92));
    color: #eef5ff;
}

.countdown-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.countdown-sub {
    color: rgba(238, 245, 255, 0.82);
}

.countdown-cells {
    display: grid;
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    gap: 0.55rem;
}

.countdown-cell {
    border-radius: 0.78rem;
    padding: 0.7rem 0.55rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.countdown-value {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.countdown-label {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(238, 245, 255, 0.84);
}

.countdown-state {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 0.85rem;
    color: rgba(238, 245, 255, 0.88);
}

.countdown-state--participants {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.participants-label {
    color: rgba(238, 245, 255, 0.9);
}

.participants-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    padding: 0.12rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.28rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    animation: participant-pulse 2.3s ease-in-out infinite;
}

.home-nearby-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 79, 145, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.9));
}

.news-panel {
    background:
        radial-gradient(circle at 8% 0%, rgba(29, 79, 145, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.news-card {
    border: 1px solid rgba(17, 49, 89, 0.12);
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-link:hover {
    border-color: rgba(198, 40, 57, 0.3);
    background: rgba(255, 255, 255, 0.96);
}

.news-toggle-label {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: #5c7190;
    font-weight: 700;
}

.news-card[open] .news-toggle-label {
    color: var(--accent);
}

.news-card-content {
    border-top: 1px solid rgba(17, 49, 89, 0.12);
    padding: 0.75rem 0.8rem 0.85rem;
    background: rgba(244, 247, 251, 0.7);
}

.news-full-content {
    white-space: normal;
    line-height: 1.65;
    color: #1d3558;
}

.news-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: #5c7190;
    font-weight: 700;
}

.rules-confirm-box {
    border: 1px solid rgba(17, 49, 89, 0.14);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.74);
    padding: 0.85rem;
}

.rules-confirm-box .form-check-label {
    color: #1a3559;
    font-weight: 700;
}

.rules-page {
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 40, 57, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
}

.rules-page-head {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(17, 49, 89, 0.14);
}

.rules-block {
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 49, 89, 0.12);
    background: rgba(255, 255, 255, 0.88);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.home-nearby-hint {
    color: #4c6281;
    font-size: 0.92rem;
    font-weight: 700;
}

.home-nearby-filter {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(17, 49, 89, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
}

.recommended-stack {
    display: grid;
    gap: 0.7rem;
}

.recommended-player-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(17, 49, 89, 0.1);
    background: rgba(255, 255, 255, 0.74);
}

.conversation-list {
    display: grid;
    gap: 0.65rem;
}

.conversation-link {
    display: block;
    padding: 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(17, 49, 89, 0.1);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    text-decoration: none;
}

.conversation-link:hover,
.conversation-link.is-active {
    border-color: rgba(198, 40, 57, 0.32);
    background: rgba(255, 255, 255, 0.95);
}

.conversation-badge {
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.chat-thread {
    display: grid;
    gap: 0.75rem;
    max-height: 520px;
    overflow-y: auto;
}

.chat-bubble {
    max-width: 84%;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(17, 49, 89, 0.1);
}

.chat-bubble.is-own {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(29, 79, 145, 0.12), rgba(198, 40, 57, 0.08));
}

.chat-bubble.is-other {
    background: rgba(255, 255, 255, 0.9);
}

.chat-bubble-author {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.chat-bubble-time {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #667a98;
}

.chat-refresh-note {
    font-size: 0.86rem;
    color: #5a6f8d;
}

.player-card {
    border: 1px solid rgba(17, 49, 89, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 255, 0.9)),
        radial-gradient(circle at 0% 0%, rgba(29, 79, 145, 0.1), transparent 56%);
}

.player-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
}

.player-rank-row {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.player-rank-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.player-rank-badge--gold {
    color: #7c2d12;
    background: linear-gradient(120deg, rgba(250, 204, 21, 0.35), rgba(251, 191, 36, 0.18));
}

.player-rank-badge--silver {
    color: #334155;
    background: linear-gradient(120deg, rgba(226, 232, 240, 0.8), rgba(203, 213, 225, 0.6));
}

.player-rank-badge--bronze {
    color: #7c2d12;
    background: linear-gradient(120deg, rgba(251, 146, 60, 0.28), rgba(253, 186, 116, 0.2));
}

.player-rank-badge--blue {
    color: #10325c;
    background: rgba(29, 79, 145, 0.12);
}

.player-streak {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(17, 49, 89, 0.08);
    color: #24496f;
}

.player-streak.is-positive {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.player-streak.is-negative {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

.player-card-link {
    color: var(--ink);
    text-decoration: none;
}

.player-card-link:hover {
    color: var(--accent);
}

.player-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(29, 79, 145, 0.26);
    background: linear-gradient(145deg, rgba(29, 79, 145, 0.2), rgba(198, 40, 57, 0.16));
    color: #123359;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-bio {
    color: #415c80;
    font-size: 0.93rem;
}

.player-rating-pill {
    min-width: 88px;
    border-radius: 0.7rem;
    padding: 0.38rem 0.5rem;
    text-align: center;
    background: linear-gradient(140deg, rgba(29, 79, 145, 0.18), rgba(198, 40, 57, 0.18));
    border: 1px solid rgba(17, 49, 89, 0.2);
}

.player-rating-value {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.18rem;
    line-height: 1;
    color: #102f56;
}

.player-rating-label {
    display: block;
    margin-top: 0.16rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #284f7d;
}

.player-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.player-metric {
    border-radius: 0.65rem;
    border: 1px solid rgba(17, 49, 89, 0.14);
    background: rgba(255, 255, 255, 0.74);
    padding: 0.42rem 0.5rem;
}

.metric-label {
    display: block;
    color: #4d6281;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-weight: 700;
    color: #13345c;
}

.metric-up {
    color: #15803d;
}

.metric-down {
    color: #b91c1c;
}

.rating-chart-wrap {
    border-radius: 0.7rem;
    border: 1px solid rgba(17, 49, 89, 0.14);
    padding: 0.55rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 245, 254, 0.58));
}

.rating-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #13355d;
    font-size: 0.84rem;
    margin-bottom: 0.4rem;
}

.rating-chart {
    width: 100%;
    height: 98px;
    display: block;
}

.mini-head-to-head {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 0.7rem;
    border: 1px solid rgba(17, 49, 89, 0.12);
    background: rgba(245, 248, 253, 0.9);
    padding: 0.45rem 0.6rem;
}

.mini-head-to-head-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5b6f8e;
}

.mini-head-to-head-opponent {
    color: var(--marine);
    text-decoration: none;
    font-weight: 700;
}

.mini-head-to-head-score {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
}

.player-profile-shell,
.player-chart-shell {
    overflow: hidden;
}

.player-profile-hero {
    display: grid;
    grid-template-columns: 1.35fr auto;
    gap: 1rem;
    align-items: start;
}

.player-profile-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.player-avatar--large {
    width: 88px;
    height: 88px;
    font-size: 2rem;
}

.player-rating-pill--large {
    min-width: 140px;
    padding: 0.7rem 0.9rem;
}

.player-chart-stage {
    position: relative;
}

.player-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.player-chart-dot {
    fill: #fff;
    stroke: #c62839;
    stroke-width: 3;
    cursor: pointer;
}

.player-chart-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    border-radius: 0.6rem;
    padding: 0.4rem 0.55rem;
    background: rgba(17, 49, 89, 0.94);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 0.7rem 1.6rem rgba(12, 28, 52, 0.18);
}

.match-history {
    list-style: none;
    padding-left: 0;
}

.match-row {
    display: grid;
    grid-template-columns: 1.45fr auto auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.38rem 0.48rem;
    border-radius: 0.58rem;
    border: 1px solid rgba(17, 49, 89, 0.1);
    margin-bottom: 0.38rem;
    background: rgba(255, 255, 255, 0.76);
}

.match-row:last-child {
    margin-bottom: 0;
}

.match-row.is-win {
    border-left: 3px solid #15803d;
}

.match-row.is-loss {
    border-left: 3px solid #b91c1c;
}

.match-opponent {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.match-opponent:hover {
    color: var(--accent);
}

.match-score {
    font-family: 'Oswald', sans-serif;
    color: #12345d;
}

.match-result {
    font-size: 0.8rem;
    color: #3c577a;
}

.match-date {
    font-size: 0.74rem;
    color: #5e7291;
}

.nearby-opponents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.nearby-opponent-card {
    display: block;
    border: 1px solid rgba(17, 49, 89, 0.16);
    border-radius: 0.7rem;
    padding: 0.65rem 0.72rem;
    text-decoration: none;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.8));
}

.nearby-opponent-card:hover {
    border-color: rgba(198, 40, 57, 0.38);
    box-shadow: 0 0.65rem 1.4rem rgba(12, 28, 52, 0.12);
}

.nearby-opponent-name {
    font-weight: 700;
}

.nearby-opponent-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: #4f6584;
    margin-top: 0.24rem;
}

.nearby-opponent-tag {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
}

.nearby-opponent-tag.is-same-city {
    color: #fff;
    background: linear-gradient(120deg, #15803d, #16a34a);
}

.nearby-opponent-tag.is-nearest-city {
    color: #0f2f55;
    background: rgba(29, 79, 145, 0.16);
    border: 1px solid rgba(29, 79, 145, 0.26);
}

.nearby-empty-state {
    border: 1px dashed rgba(17, 49, 89, 0.18);
    border-radius: 0.7rem;
    padding: 0.9rem 1rem;
    background: rgba(244, 247, 251, 0.88);
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-copy-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nav-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pending-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(29, 79, 145, 0.2);
    }
    50% {
        box-shadow: 0 0 0 0.35rem rgba(29, 79, 145, 0.06);
    }
}

@keyframes footer-glow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translate(-8%, -4%) scale(1.05);
        opacity: 0.85;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.55;
    }
}

@keyframes participant-pulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 0.9rem rgba(255, 255, 255, 0.28);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .nav-link,
    .navbar-brand,
    .card,
    .list-group-item {
        transition: none;
    }

    .card {
        animation: none;
    }

    .hero-panel::after {
        display: none;
    }

    .hero-panel {
        transform: none;
    }

    .rankings-table .rank-row {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-intro-line {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .topbar,
    .status-pending {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .countdown-grid {
        grid-template-columns: 1fr;
    }

    .player-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .season-highlights {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .site-footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .countdown-cells {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-card-head {
        grid-template-columns: auto 1fr;
    }

    .player-rating-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .match-row {
        grid-template-columns: 1fr 0.6fr;
    }

    .nearby-opponents-grid {
        grid-template-columns: 1fr;
    }
}
