/* Pappaliiga Stats - Vue.js Frontend Styles */
/* Unified styles migrated from web_static/styles.css */

/* ---- Core Theme Tokens ---- */
:root {
    /* Surfaces */
    --bg-900: #050911;
    --bg-800: #0b1020;
    --bg-700: #121932;
    --bg: var(--bg-800);
    --card: #121932;
    --card-elevated: rgba(18, 29, 58, 0.78);
    --card-solid: #151f3b;

    /* Text & utility */
    --fg: #e7eefc;
    --muted: #9db1d1;
    --text: var(--fg);
    --text-dim: var(--muted);

    /* Borders & outlines */
    --border: #27324d;
    --border-strong: rgba(82, 132, 255, 0.35);

    /* Tables */
    --table-bg: #0e1730;
    --table-alt: #0f1a38;
    --head: #0f213f;
    --chip-bg: #121b36;
    --nav-bg: rgba(10, 15, 30, 0.78);

    /* Accents */
    --accent: #3aa3ff;
    --accent-2: #7dd3fc;
    --accent-strong: #5d6bff;
    --accent-soft: rgba(61, 107, 255, 0.16);

    /* Status */
    --ok: #39d98a;
    --warn: #f4bf4f;
    --err: #f97066;
    --success: var(--ok);
    --danger: var(--err);
    --warning: var(--warn);
    --state-active: #4f82ff;
    --state-finished: #37d499;

    /* Effects */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 35px rgba(5, 9, 25, 0.35);
    --glass-bg: rgba(14, 22, 46, 0.68);
    --glass-border: rgba(98, 138, 246, 0.22);
    --glass-blur: 28px;

    /* Typography */
    --font-size-base: clamp(16px, 1.6vw, 18px);
    --font-size-lg: clamp(20px, 2vw, 24px);
    --font-size-xl: clamp(28px, 3vw, 40px);
    --line-height-base: 1.45;
}

/* ---- Utility Color Classes ---- */
.text-ok { color: var(--ok) !important; }
.text-warn { color: var(--warn) !important; }
.text-err { color: var(--err) !important; }

/* Numeric stat coloring helpers */
.stat-positive { color: var(--ok); font-weight: 700; }
.stat-negative { color: var(--err); font-weight: 700; }
.stat-neutral { color: var(--muted); }
.stat-primary { color: #f5f7ff; }
.stat-secondary { color: #d9e2ff; }

/* ---- Base Styles ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.muted {
    color: var(--muted);
}

.subtitle {
    font-size: 0.85em;
    color: var(--muted);
    margin-top: 4px;
}

/* ---- Title Accent Utility ---- */
.title-accent {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-bottom: var(--title-accent-underline-gap, var(--title-underline-gap, 0.4rem));
    font-size: var(--title-accent-font-size, clamp(1.2rem, 2vw, 1.65rem));
    font-weight: var(--title-accent-font-weight, 600);
    letter-spacing: var(--title-accent-letter-spacing, 0.015em);
    line-height: var(--title-accent-line-height, 1.2);
    color: var(--title-accent-color, inherit);
    text-transform: var(--title-accent-transform, none);
    text-shadow: 0 8px 22px rgba(14, 32, 66, 0.45), 0 0 14px rgba(106, 186, 255, 0.25);
    text-wrap: balance;
    text-align: center;
}

/* ---- Animated Title Underlines ---- */
.title-accent {
    --title-underline-delay: 0s;
    --title-underline-duration: 6s;
    --title-underline-gap: 0.35rem;
    --title-underline-thickness: 2px;
    --title-underline-gradient: linear-gradient(90deg, rgba(106, 186, 255, 0.15), rgba(124, 215, 243, 0.9), rgba(106, 186, 255, 0.15));
    --title-underline-blur: 10px;
    --title-underline-amp: 0px;
    --title-underline-opacity: 0.85;
    --title-underline-min: 2.5rem;
    --title-underline-max: 18rem;
    --title-underline-absolute: var(--title-underline-min);
    --title-underline-animation-name: none;
}

.title-accent::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(var(--title-underline-gap, 0.35rem) * -1);
    width: clamp(
        var(--title-underline-min, 2.5rem),
        max(100%, var(--title-underline-absolute, 8rem)),
        var(--title-underline-max, 18rem)
    );
    height: var(--title-underline-thickness, 2px);
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--title-underline-gradient);
    background-size: 220% 100%;
    opacity: var(--title-underline-opacity, 0.85);
    pointer-events: none;
    box-shadow: 0 0 var(--title-underline-blur, 10px) rgba(120, 190, 255, 0.4);
    animation-name: var(--title-underline-animation-name, none);
    animation-duration: var(--title-underline-duration, 0s);
    animation-delay: var(--title-underline-delay, 0s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: both;
    transform-origin: center;
    will-change: transform;
}

.titleUnderlinePage,
.titleUnderlineSection,
.titleUnderlineCard,
.titleUnderlineMain {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    text-wrap: balance;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: 700;
    --title-underline-animation-name: titleUnderlineShimmer;
}

.titleUnderlinePage {
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    letter-spacing: 0.035em;
    padding-bottom: clamp(0.6rem, 1.6vw, 0.95rem);
    --title-underline-gap: clamp(0.65rem, 1vw, 0.8rem);
    --title-underline-thickness: 7px;
    --title-underline-min: 7rem;
    --title-underline-max: 72rem;
    --title-underline-gradient: linear-gradient(108deg, rgba(50, 130, 255, 0.18), rgba(177, 246, 255, 0.98), rgba(60, 150, 255, 0.82));
    --title-underline-blur: 16px;
    --title-underline-opacity: 0.98;
    --title-underline-amp: 11px;
}

.titleUnderlineSection,
.titleUnderlineMain {
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    letter-spacing: 0.028em;
    padding-bottom: clamp(0.45rem, 1.4vw, 0.75rem);
    --title-underline-gap: clamp(0.55rem, 1vw, 0.65rem);
    --title-underline-thickness: 5px;
    --title-underline-min: 5.5rem;
    --title-underline-max: 42rem;
    --title-underline-gradient: linear-gradient(112deg, rgba(70, 125, 240, 0.24), rgba(168, 215, 255, 0.9), rgba(76, 132, 255, 0.8));
    --title-underline-blur: 12px;
    --title-underline-opacity: 0.92;
    --title-underline-amp: 7px;
}

.titleUnderlineCard {
    font-size: clamp(1.18rem, 2vw, 1.62rem);
    letter-spacing: 0.02em;
    font-weight: 600;
    padding-bottom: clamp(0.35rem, 1vw, 0.6rem);
    --title-underline-gap: clamp(0.4rem, 0.9vw, 0.55rem);
    --title-underline-thickness: 2.4px;
    --title-underline-min: 3.4rem;
    --title-underline-max: 18rem;
    --title-underline-gradient: linear-gradient(120deg, rgba(70, 105, 200, 0.2), rgba(148, 202, 255, 0.7), rgba(62, 100, 190, 0.3));
    --title-underline-blur: 7px;
    --title-underline-opacity: 0.75;
    --title-underline-amp: 3.2px;
}

@media (max-width: 520px) {
    .titleUnderlineCard {
        --title-underline-gap: 0.35rem;
        --title-underline-thickness: 2px;
        --title-underline-amp: 1.6px;
        --title-underline-opacity: 0.68;
    }
}

@keyframes titleUnderlineShimmer {
    0% {
        transform: translateX(calc(-50% - var(--title-underline-amp, 0px)));
        background-position: 0% 50%;
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(-50% + var(--title-underline-amp, 0px)));
        background-position: 100% 50%;
        opacity: 0.92;
    }
}

.title-duration-slow { --title-underline-duration: 7.25s; }
.title-duration-fast { --title-underline-duration: 5s; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Buttons & links ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--accent-strong), #3aa3ff);
    color: #0b1020;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(59, 125, 255, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 34px rgba(59, 125, 255, 0.45), 0 0 18px rgba(91, 148, 255, 0.35);
    filter: brightness(1.08);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.btn-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.4rem;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn-chip--primary {
    border-color: var(--state-active);
    background: rgba(79, 130, 255, 0.12);
    color: var(--state-active);
}

.btn-chip:hover,
.btn-chip:focus-visible {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.btn-chip--primary:hover,
.btn-chip--primary:focus-visible {
    border-color: var(--state-active);
    background: rgba(79, 130, 255, 0.2);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-link:hover,
.btn-link:focus-visible {
    color: #b1e5ff;
    transform: translateY(-1px);
}

/* ---- Glass surfaces ---- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 10% 0%, rgba(90, 136, 255, 0.18), transparent 42%);
    pointer-events: none;
    opacity: 0.7;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(120, 160, 255, 0.35);
    box-shadow: 0 28px 42px rgba(5, 9, 25, 0.45), 0 0 22px rgba(90, 150, 255, 0.28);
}

/* ---- Layout ---- */
.home-view {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.25rem);
}

.home-summary,
.home-seasons,
.divisions-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.stats-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.stats-section--global {
    gap: clamp(0.5rem, 1.5vw, 1.1rem);
}

.stats-section--global .section-heading {
    margin-bottom: 0.2rem;
}

.stats-section--selector {
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.stats-section--season .season-skeleton {
    padding: 0;
}

.home-summary__header,
.divisions-section__header,
.season-overview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.8rem, 2vw, 1.5rem);
}

.home-summary__header h2,
.divisions-section__header h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
}

.home-partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

@property --glow-scale {
    syntax: '<number>';
    inherits: true;
    initial-value: 1;
}

@property --pulse-scale-min {
    syntax: '<number>';
    inherits: true;
    initial-value: 0.97;
}

@property --pulse-scale-max {
    syntax: '<number>';
    inherits: true;
    initial-value: 1.03;
}

@property --pulse-opacity-min {
    syntax: '<number>';
    inherits: true;
    initial-value: 0.35;
}

@property --pulse-opacity-max {
    syntax: '<number>';
    inherits: true;
    initial-value: 0.62;
}

@property --glow-blur {
    syntax: '<length>';
    inherits: true;
    initial-value: 40px;
}

@property --glow-brightness {
    syntax: '<number>';
    inherits: true;
    initial-value: 1;
}

.logo-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    isolation: isolate;
    --logo-width: 240px;
    --glow-multiplier: 1.45;
    --glow-base-size: clamp(calc(var(--logo-width, 240px) * 1.05), calc(var(--logo-width, 240px) * var(--glow-multiplier, 1.45)), 60vw);
}

.logo-card {
    --glow-scale: 1;
    --glow-blur: 40px;
    --glow-brightness: 1;
    --pulse-scale-min: 0.97;
    --pulse-scale-max: 1.03;
    --pulse-opacity-min: 0.35;
    --pulse-opacity-max: 0.62;
    --pulse-duration: var(--idle-duration, 9s);
}

.logo-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--glow-base-size);
    height: var(--glow-base-size);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(var(--glow-blur, 40px)) brightness(var(--glow-brightness, 1));
    opacity: var(--pulse-opacity-max, 0.62);
    animation: glowPulse var(--pulse-duration, 9s) ease-in-out infinite;
    animation-delay: var(--pulse-delay, 0s);
    transform: translate(-50%, -50%) scale(calc(var(--glow-scale, 1) * var(--scale-jitter, 1)));
    transition:
        --glow-scale 1680ms cubic-bezier(0.25, 1, 0.3, 1),
        --pulse-scale-min 1260ms ease,
        --pulse-scale-max 1260ms ease,
        --pulse-opacity-min 960ms ease,
        --pulse-opacity-max 960ms ease,
        --glow-blur 1080ms ease,
        --glow-brightness 1080ms ease,
        opacity 960ms ease;
}

.logo-card:is(:hover, :focus-within),
.partner-callout:is(:hover, :focus-within) .logo-card,
.brand-lockup:is(:hover, :focus-within) .logo-card {
    --glow-scale: 1.35;
    --pulse-scale-min: 0.92;
    --pulse-scale-max: 1.08;
    --pulse-opacity-min: 0.68;
    --pulse-opacity-max: 1;
    --pulse-duration: var(--hover-duration, 6.5s);
    --glow-blur: 48px;
    --glow-brightness: 1.05;
}

.logo-card--armafinland::before {
    background: radial-gradient(circle, rgba(58, 140, 255, 0.92) 0%, rgba(58, 140, 255, 0.7) 38%, rgba(58, 140, 255, 0.42) 62%, rgba(58, 140, 255, 0) 100%);
}

.logo-card--pappaliiga::before {
    background: radial-gradient(circle, rgba(255, 155, 64, 0.96) 0%, rgba(255, 155, 64, 0.68) 40%, rgba(255, 155, 64, 0.35) 66%, rgba(255, 155, 64, 0) 100%);
}

.logo-wrap img {
    position: relative;
    z-index: 1;
    display: block;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .logo-wrap {
        --glow-multiplier: 1.3;
    }
}

@media (max-width: 640px) {
    .logo-wrap {
        --glow-multiplier: 1.15;
    }
}

@keyframes glowPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(calc(var(--glow-scale, 1) * var(--scale-jitter, 1) * var(--pulse-scale-min, 0.97)));
        opacity: var(--pulse-opacity-min, 0.35);
    }
    50% {
        transform: translate(-50%, -50%) scale(calc(var(--glow-scale, 1) * var(--scale-jitter, 1) * var(--pulse-scale-max, 1.03)));
        opacity: var(--pulse-opacity-max, 0.62);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-card::before {
        animation: none;
        transform: translate(-50%, -50%) scale(calc(var(--glow-scale, 1) * var(--scale-jitter, 1)));
    }

    .logo-card:is(:hover, :focus-within)::before,
    .partner-callout:is(:hover, :focus-within) .logo-card::before,
    .brand-lockup:is(:hover, :focus-within) .logo-card::before {
        animation: none;
    }
}

.partner-callout {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(1.1rem, 2.5vw, 1.75rem);
    padding: clamp(1.85rem, 3vw, 2.4rem);
    border-radius: clamp(20px, 3vw, 28px);
    background: linear-gradient(160deg, rgba(16, 25, 52, 0.92), rgba(10, 17, 38, 0.88));
    border: 1px solid rgba(102, 142, 228, 0.28);
    box-shadow: 0 26px 48px rgba(5, 9, 20, 0.55);
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-callout__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 1.2rem);
    position: relative;
    z-index: 1;
}

.partner-callout__logo-wrap {
    width: clamp(144px, 24vw, 192px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: clamp(0.4rem, 2vw, 0.6rem);
    background: rgba(12, 18, 36, 0.68);
}

.partner-callout__logo {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: none;
    box-shadow: none;
}

.partner-callout__titles {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.partner-callout__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: rgba(190, 208, 255, 0.7);
}

.partner-callout__titles h2 {
    --title-accent-font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    --title-accent-font-weight: 700;
    --title-accent-letter-spacing: 0.01em;
    --title-accent-underline-scale: 0.55;
    --title-accent-underline-gap: 0.3rem;
    --title-accent-underline-thickness: 2.5px;
    color: #f5f8ff;
}

.partner-callout__body {
    position: relative;
    z-index: 1;
    color: rgba(205, 220, 255, 0.85);
    font-size: clamp(0.97rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    text-align: center;
}

.partner-callout__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
    justify-content: center;
    margin-top: auto;
    width: 100%;
}

.season-overview-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: clamp(1.75rem, 3vw, 2.25rem);
}

.season-overview__titles h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
}

.season-overview__metrics {
    margin-top: 0.5rem;
}

.season-overview__progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.divisions-section__meta {
    color: rgba(200, 210, 240, 0.7);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.section-heading > div:last-child,
.section-heading > a,
.section-heading > button {
    align-self: flex-start;
}

.section-heading h2 {
    --title-accent-font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    --title-accent-font-weight: 700;
    --title-accent-letter-spacing: 0.02em;
    --title-accent-underline-scale: 0.6;
    --title-accent-underline-thickness: 3px;
    --title-accent-underline-gap: 0.35rem;
}

.section-heading .section-subtext {
    max-width: 640px;
}

.section-legend {
    font-size: 0.8rem;
    color: rgba(230, 235, 255, 0.8);
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(66, 135, 245, 0.08);
    border-left: 3px solid rgba(66, 135, 245, 0.4);
    border-radius: 4px;
    line-height: 1.5;
}

.section-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.submetric-toggle {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.btn-submetric {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(230, 235, 255, 0.85);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-submetric:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(240, 244, 255, 0.95);
}

.btn-submetric.active {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.8);
    color: rgba(240, 244, 255, 0.98);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.map-jump-controls {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.btn-jump {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(230, 235, 255, 0.75);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-jump:hover {
    color: rgba(240, 244, 255, 0.95);
    border-color: rgba(120, 150, 230, 0.55);
}

.btn-toggle-view {
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
    color: rgba(150, 160, 255, 0.9);
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-toggle-view:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.6);
    color: rgba(200, 210, 255, 0.98);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}


.section-heading--centered {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-heading--centered > * {
    text-align: center;
    align-self: center !important;
    width: 100%;
}

.section-heading--centered .titleUnderlineSection,
.section-heading--centered .titleUnderlineMain,
.section-heading--centered .titleUnderlinePage,
.section-heading--centered .titleUnderlineCard {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .section-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .section-heading--centered {
        justify-content: center;
    }
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-2);
    font-weight: 600;
}

.section-subtitle {
    color: var(--muted);
    max-width: 540px;
    font-size: 0.95rem;
}

.section-subtext {
    color: rgba(210, 225, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---- Hero Banner ---- */
.hero-banner-wrapper {
    position: relative;
    border-radius: clamp(24px, 2vw, 34px);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(21, 34, 70, 0.8), rgba(12, 20, 46, 0.92));
    border: 1px solid rgba(106, 140, 255, 0.18);
    box-shadow: 0 28px 50px rgba(5, 9, 30, 0.55);
    isolation: isolate;
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 140% at 15% -10%, rgba(90, 180, 255, 0.35), transparent 45%),
                radial-gradient(80% 80% at 85% 120%, rgba(80, 30, 255, 0.22), transparent 70%);
    opacity: 0.9;
    z-index: 0;
}

.hero-banner__content {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: min(90vw, 960px);
    text-align: center;
    align-items: center;
    margin: 0 auto;
}

.hero-banner__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.hero-banner__title {
    --title-accent-font-size: var(--font-size-xl);
    --title-accent-font-weight: 800;
    --title-accent-letter-spacing: 0.01em;
    --title-accent-line-height: 1.1;
    --title-accent-underline-scale: 0.55;
    --title-accent-underline-gap: 0.5rem;
    --title-accent-underline-thickness: 3px;
    --title-accent-color: #ffffff;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 10px 20px rgba(5, 14, 40, 0.65);
}

.hero-banner__subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: rgba(207, 219, 255, 0.88);
    max-width: min(90vw, 760px);
    margin: 0 auto;
}

.hero-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
}

.hero-banner__meta {
    margin-top: 0.75rem;
}

.hero-banner__aside {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-banner--align-center .hero-banner__content {
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

/* ---- Stat Panel ---- */
.stat-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-panel--dense {
    gap: 1rem;
}

.stat-panel__item {
    background: var(--glass-bg);
    border: 1px solid rgba(116, 152, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-panel__label {
    --title-accent-font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    --title-accent-font-weight: 600;
    --title-accent-letter-spacing: 0.12em;
    --title-accent-transform: uppercase;
    --title-accent-underline-scale: 0.5;
    --title-accent-underline-gap: 0.18rem;
    --title-accent-underline-thickness: 2px;
    --title-accent-underline-opacity: 0.5;
    --title-accent-underline-max: 6rem;
    color: rgba(210, 225, 255, 0.75);
}

.stat-panel__value {
    margin-top: 0.5rem;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
}

.stat-panel__caption {
    margin-top: 0.4rem;
    color: rgba(201, 215, 255, 0.7);
    font-size: 0.95rem;
}

/* ---- Season Selector ---- */
.season-selector {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.season-selector__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.season-selector__header h3 {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
}

.season-selector__all-link {
    appearance: none;
    border: 1px solid rgba(108, 148, 255, 0.4);
    background: rgba(18, 29, 58, 0.4);
    color: var(--accent-2);
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.season-selector__all-link:hover,
.season-selector__all-link:focus-visible {
    border-color: var(--accent-2);
    color: #0b1226;
    background: var(--accent-2);
}

.season-selector__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-selector__pill-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.season-selector__chevron {
    appearance: none;
    border: 1px solid rgba(108, 148, 255, 0.3);
    background: rgba(9, 15, 27, 0.85);
    color: rgba(213, 226, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.season-selector__chevron:hover {
    border-color: var(--accent);
    background: rgba(30, 46, 90, 0.9);
}

.season-selector__chevron:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.season-selector__pills {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(10, 16, 33, 0.9);
    border: 1px solid rgba(100, 136, 255, 0.25);
    scrollbar-width: none;
}

.season-selector__pills::-webkit-scrollbar {
    display: none;
}

.season-pill {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    min-width: 96px;
    background: transparent;
    color: rgba(212, 224, 255, 0.8);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    scroll-snap-align: center;
}

.season-pill:hover {
    border-color: rgba(110, 160, 255, 0.5);
    background: rgba(35, 57, 109, 0.6);
    color: #fff;
}

.season-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.season-pill--active {
    background: linear-gradient(135deg, rgba(74, 131, 255, 0.95), rgba(48, 197, 255, 0.85));
    border-color: transparent;
    color: #050911;
    box-shadow: 0 10px 25px rgba(40, 110, 255, 0.35);
    transform: translateY(-1px);
    font-weight: 700;
}

.season-pill--disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.season-pill__short {
    display: inline-block;
}

.season-pill__full {
    display: none;
    font-weight: 700;
}

.season-selector__dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.season-selector__select {
    background: rgba(9, 15, 27, 0.9);
    border: 1px solid rgba(108, 148, 255, 0.4);
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    color: #f0f4ff;
    font-weight: 600;
    appearance: none;
}

.season-selector__select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---- Progress Pills ---- */
.season-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.progress-pill {
    background: rgba(12, 22, 46, 0.78);
    border: 1px solid rgba(100, 142, 255, 0.22);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-pill__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: rgba(210, 220, 255, 0.85);
}

.progress-pill__label {
    font-weight: 600;
}

.progress-pill__bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(80, 110, 180, 0.25);
    overflow: hidden;
}

.progress-pill__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 154, 255, 0.95), rgba(69, 225, 255, 0.8));
    border-radius: 999px;
    transition: width 0.3s ease;
    overflow: hidden;
}

.progress-pill__fill::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -120%;
    width: 140%;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.08) 70%, transparent 95%);
    opacity: 0;
    animation: progress-glow var(--glow-duration, 6s) ease-in-out infinite;
    animation-delay: var(--glow-delay, 0s);
}

.progress-pill__percent {
    font-weight: 700;
    color: rgba(236, 242, 255, 0.9);
    font-size: 1.05rem;
}

.progress-wrapper {
    width: 100%;
}

.progress-bar {
    position: relative;
    width: 100%;
    background: rgba(50, 70, 120, 0.28);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(90, 130, 210, 0.22);
}

.progress-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(86, 148, 255, 0.95), rgba(69, 225, 255, 0.75));
    border-radius: 14px;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -120%;
    width: 140%;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.08) 70%, transparent 95%);
    opacity: 0;
}

.progress-fill.progress-glow::after {
    opacity: 1;
    animation: progress-glow var(--glow-duration, 6s) ease-in-out infinite;
    animation-delay: var(--glow-delay, 0s);
}

/* ---- Division Hub ---- */
.division-hub {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.division-hub__empty {
    color: rgba(205, 215, 245, 0.72);
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    border: 1px dashed rgba(90, 120, 190, 0.4);
    background: rgba(10, 14, 26, 0.7);
}

.offline-banner {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 184, 120, 0.45);
    background: rgba(80, 50, 20, 0.4);
    color: rgba(255, 220, 200, 0.92);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dev-data-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    background: rgba(126, 206, 255, 0.12);
    border-color: rgba(126, 206, 255, 0.35);
    color: rgba(204, 236, 255, 0.95);
    font-weight: 600;
}

.dev-data-badge::before {
    content: '•';
    color: rgba(126, 206, 255, 0.9);
}

.inline-toast {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 200, 120, 0.12);
    border: 1px solid rgba(255, 200, 120, 0.25);
    color: rgba(255, 234, 210, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.division-hub__skeletons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.division-card--skeleton {
    min-height: 320px;
    border-radius: 16px;
    background: linear-gradient(115deg, rgba(20, 24, 38, 0.9), rgba(12, 16, 30, 0.85));
    border: 1px solid rgba(60, 80, 120, 0.35);
    position: relative;
    overflow: hidden;
}

.division-card--skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 80%);
    animation: skeleton-shine 1.6s infinite;
}

@keyframes skeleton-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.division-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(18, 28, 60, 0.92), rgba(10, 14, 30, 0.9));
    border: 1px solid rgba(110, 150, 255, 0.2);
    box-shadow: 0 25px 60px rgba(3, 6, 14, 0.5);
}

.division-page-header__text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.division-page-header__text p {
    color: rgba(210, 225, 255, 0.78);
    margin: 0;
}

.division-page-header__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: rgba(150, 180, 250, 0.8);
    margin-bottom: 0.4rem;
}

.division-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.division-season-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    background: rgba(8, 12, 24, 0.92);
    border: 1px solid rgba(80, 110, 185, 0.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(2, 4, 12, 0.65);
}

.division-season-bar__section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.division-season-bar__label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(165, 185, 230, 0.75);
}

.division-season-bar__select,
.division-season-bar__input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(90, 120, 190, 0.35);
    background: rgba(15, 20, 38, 0.75);
    color: #e4ecff;
    font-size: 0.95rem;
}

.division-season-bar__select:focus-visible,
.division-season-bar__input:focus-visible {
    outline: 2px solid rgba(110, 150, 255, 0.6);
    outline-offset: 2px;
}

.division-season-bar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.season-filter-chip {
    --chip-bg: rgba(20, 30, 60, 0.8);
    --chip-border: rgba(70, 100, 160, 0.45);
    --chip-text: rgba(200, 215, 245, 0.85);
    --chip-active-bg: rgba(90, 150, 255, 0.25);
    --chip-shadow: rgba(85, 130, 210, 0.3);
    --chip-active-color: rgba(240, 248, 255, 0.95);
    appearance: none;
    border: 1px solid var(--chip-border);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--chip-text);
    background: var(--chip-bg);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.season-filter-chip--active {
    background: var(--chip-active-bg);
    color: var(--chip-active-color);
    border-color: transparent;
    box-shadow: 0 6px 18px var(--chip-shadow);
}

.season-filter-chip:not(.season-filter-chip--active):hover,
.season-filter-chip:not(.season-filter-chip--active):focus-visible {
    border-color: rgba(150, 190, 255, 0.55);
    transform: translateY(-1px);
}

.season-filter-chip__icon {
    display: inline-flex;
    width: 0.95rem;
    height: 0.95rem;
    line-height: 0;
}

.season-filter-chip__icon svg {
    width: 100%;
    height: 100%;
}

.season-filter-chip__label {
    line-height: 1.1;
}

.season-filter-chip[data-status="ei-alkanut"] {
    --chip-border: rgba(120, 130, 150, 0.55);
    --chip-bg: rgba(30, 38, 60, 0.85);
    --chip-text: rgba(190, 200, 220, 0.85);
    --chip-active-bg: rgba(150, 160, 185, 0.35);
    --chip-shadow: rgba(100, 120, 160, 0.35);
}

.season-filter-chip[data-status="runkosarja-kaynnissa"] {
    --chip-border: rgba(90, 140, 230, 0.45);
    --chip-bg: rgba(18, 34, 64, 0.85);
    --chip-text: rgba(185, 210, 255, 0.9);
    --chip-active-bg: rgba(70, 130, 255, 0.3);
    --chip-shadow: rgba(80, 140, 255, 0.45);
}

.season-filter-chip[data-status="playoffit-kaynnissa"] {
    --chip-border: rgba(170, 120, 255, 0.45);
    --chip-bg: rgba(26, 16, 48, 0.85);
    --chip-text: rgba(225, 200, 255, 0.9);
    --chip-active-bg: rgba(160, 120, 255, 0.35);
    --chip-shadow: rgba(165, 110, 255, 0.45);
    --chip-active-color: rgba(250, 240, 255, 0.95);
}

.season-filter-chip[data-status="taputeltu-loppuun"] {
    --chip-border: rgba(100, 200, 165, 0.45);
    --chip-bg: rgba(10, 40, 34, 0.85);
    --chip-text: rgba(190, 238, 210, 0.9);
    --chip-active-bg: rgba(90, 210, 170, 0.3);
    --chip-shadow: rgba(90, 210, 170, 0.45);
    --chip-active-color: rgba(225, 255, 240, 0.95);
}

.division-season-bar__reset {
    align-self: flex-end;
}

.season-filter-reset {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 140, 200, 0.45);
    background: rgba(12, 18, 36, 0.7);
    color: rgba(215, 228, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.season-filter-reset:hover,
.season-filter-reset:focus-visible {
    background: rgba(70, 110, 190, 0.3);
    border-color: rgba(140, 170, 230, 0.6);
}

.tier-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.tier-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(70, 100, 160, 0.45);
    background: rgba(8, 12, 24, 0.85);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tier-section__toggle:hover,
.tier-section__toggle:focus-visible {
    border-color: rgba(120, 160, 255, 0.6);
    transform: translateY(-2px);
}

.tier-section__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tier-section__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.tier-section__subtitle {
    color: rgba(190, 205, 240, 0.7);
    font-size: 0.9rem;
}

.tier-section__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.tier-section__pill {
    position: relative;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 22, 38, 0.85);
    border: 1px solid rgba(80, 110, 170, 0.4);
    font-size: 0.85rem;
    color: rgba(205, 218, 245, 0.85);
    overflow: hidden;
}

.tier-section__pill-track {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(100, 150, 255, 0.2);
    transform-origin: left;
    transform: scaleX(calc(var(--progress, 0) / 100));
}

.tier-section__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(12, 18, 36, 0.8);
    border: 1px solid rgba(80, 120, 190, 0.35);
    transition: transform 0.2s ease;
}

.tier-section__chevron svg {
    width: 20px;
    height: 20px;
    fill: rgba(200, 215, 245, 0.85);
}

.tier-section__chevron.is-open {
    transform: rotate(180deg);
}

.tier-section__body {
    border-radius: 20px;
    border: 1px solid rgba(70, 100, 160, 0.35);
    padding: 1.25rem;
    background: rgba(5, 8, 16, 0.8);
}

.tier-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.division-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
    padding: 0;
    overflow: hidden;
}

.division-list__sentinel {
    width: 100%;
    height: 1px;
}

.tier-section__empty {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(16, 22, 38, 0.8);
    border: 1px dashed rgba(90, 120, 180, 0.4);
    color: rgba(195, 208, 238, 0.8);
    text-align: center;
}

.division-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(10, 16, 34, 0.94);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    height: auto;
    min-height: 320px;
    max-width: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.division-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(120, 170, 255, 0.65);
    box-shadow: 0 26px 60px rgba(18, 32, 76, 0.55);
}

.division-card--runkosarja-kaynnissa {
    border-color: rgba(90, 150, 255, 0.7);
    box-shadow: 0 22px 50px rgba(48, 96, 196, 0.35);
}

.division-card--runkosarja-kaynnissa:hover,
.division-card--playoffit-kaynnissa:hover {
    box-shadow: 0 30px 65px rgba(80, 140, 255, 0.4);
}

.division-card--playoffit-kaynnissa {
    border-color: rgba(176, 132, 255, 0.6);
    box-shadow: 0 22px 55px rgba(82, 56, 148, 0.5);
}

.division-card--taputeltu-loppuun {
    border-color: rgba(70, 200, 160, 0.6);
    box-shadow: 0 22px 45px rgba(30, 90, 70, 0.4);
}

.division-card--ei-alkanut {
    border-color: rgba(110, 120, 150, 0.45);
    box-shadow: 0 16px 35px rgba(5, 10, 25, 0.6);
}

.division-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.division-card__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.division-card__title {
    margin: 0;
    --title-accent-font-size: clamp(1.4rem, 2.1vw, 1.68rem);
    --title-accent-font-weight: 800;
    --title-accent-letter-spacing: 0.02em;
    --title-accent-line-height: 1.25;
    --title-accent-underline-scale: 0.55;
    --title-accent-underline-gap: 0.2rem;
    --title-accent-underline-thickness: 2px;
    --title-accent-underline-opacity: 0.75;
    --title-accent-underline-max: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(238, 244, 255, 0.95);
    text-shadow: 0 6px 20px rgba(70, 140, 255, 0.25);
}

.division-card__title--hero {
    --title-accent-font-size: clamp(1.47rem, 2.3vw, 1.85rem);
}

.division-card__header--centered {
    align-items: center;
    text-align: center;
}

.division-card__status-row--centered {
    justify-content: center;
}

.division-card__status-row {
    display: flex;
    justify-content: center;
}

.division-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: rgba(150, 170, 215, 0.75);
    margin-bottom: 0.15rem;
}

.division-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.1;
}

.status-pill__icon {
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    line-height: 0;
}

.status-pill__icon svg {
    width: 100%;
    height: 100%;
}

.status-pill__label {
    white-space: nowrap;
}

.division-card__badge--runkosarja-kaynnissa {
    color: rgba(160, 214, 255, 0.95);
    border-color: rgba(80, 160, 255, 0.6);
    background: rgba(50, 110, 190, 0.2);
}

.division-card__badge--playoffit-kaynnissa {
    color: rgba(222, 201, 255, 0.95);
    border-color: rgba(176, 132, 255, 0.7);
    background: rgba(120, 70, 190, 0.25);
}

.division-card__badge--taputeltu-loppuun {
    color: rgba(120, 220, 180, 0.95);
    border-color: rgba(90, 210, 160, 0.6);
    background: rgba(20, 90, 60, 0.25);
}

.division-card__badge--ei-alkanut {
    color: rgba(190, 200, 220, 0.85);
    border-color: rgba(120, 130, 150, 0.5);
    background: rgba(30, 38, 60, 0.4);
}

.division-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    width: 100%;
}

.division-card__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
}

.division-card__block .division-progress {
    width: 100%;
}

.division-card__block-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.division-card__block-label {
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: rgba(200, 208, 240, 0.85);
}

.division-card__stat-lines {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.division-card__stat-line {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(215, 228, 255, 0.9);
}

.division-card__stat-line--muted {
    color: rgba(160, 175, 210, 0.75);
}

.division-card__metric-meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(170, 188, 220, 0.85);
    text-align: center;
}

.division-card__metric-meta--centered {
    text-align: center;
}

.division-card__note {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: rgba(170, 188, 220, 0.9);
    text-align: center;
}

.division-card__note--muted {
    color: rgba(160, 175, 210, 0.7);
}

.division-card__facts {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    justify-content: center;
}

.division-card__facts--centered {
    justify-content: center;
    text-align: center;
}

.division-card__facts li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.division-card__fact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(160, 175, 210, 0.7);
}

.division-card__fact-value {
    font-size: 1rem;
    font-weight: 600;
}

.division-card__winner-banner {
    margin-top: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(20, 80, 40, 0.4);
    border: 1px solid rgba(80, 200, 140, 0.4);
    color: rgba(185, 235, 205, 0.95);
    font-weight: 600;
    text-align: center;
}

.division-card__action-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.division-card__action {
    flex: 1 1 220px;
    max-width: 260px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(90, 130, 210, 0.4);
    background: rgba(12, 18, 36, 0.8);
    color: rgba(215, 228, 255, 0.9);
    font-weight: 600;
    text-decoration: none;
    appearance: none;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.division-card__action--primary {
    background: linear-gradient(120deg, rgba(90, 150, 255, 0.95), rgba(110, 200, 255, 0.9));
    color: #061127;
    border: none;
}

.division-card__action--ghost {
    background: rgba(6, 12, 26, 0.85);
    border: 1px solid rgba(120, 150, 220, 0.35);
}

.division-card__action:hover,
.division-card__action:focus-visible {
    border-color: rgba(130, 170, 255, 0.6);
    transform: translateY(-1px);
}

.division-card__action--primary:hover,
.division-card__action--primary:focus-visible {
    box-shadow: 0 12px 26px rgba(48, 96, 196, 0.35);
}

.division-card__action--ghost:hover,
.division-card__action--ghost:focus-visible {
    box-shadow: 0 8px 18px rgba(16, 24, 46, 0.5);
}

.division-card__action--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-style: dashed;
    transform: none;
}

.division-card__action--disabled:hover,
.division-card__action--disabled:focus-visible {
    box-shadow: none;
    border-color: rgba(120, 130, 155, 0.5);
}

.division-progress {
    position: relative;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(70, 100, 160, 0.4);
    background: rgba(8, 14, 28, 0.8);
    overflow: visible;
}

.division-progress[data-tooltip]:not([data-tooltip=""])::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -0.35rem;
    left: 50%;
    transform: translate(-50%, -120%);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(4, 8, 18, 0.94);
    border: 1px solid rgba(120, 160, 255, 0.25);
    color: rgba(230, 236, 255, 0.95);
    font-size: 0.78rem;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(3, 6, 16, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.division-progress[data-tooltip]:hover::after {
    opacity: 1;
    transform: translate(-50%, -150%);
}

.division-progress__track {
    position: relative;
    height: 24px;
    border-radius: 999px;
    background: rgba(20, 26, 44, 0.9);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.division-progress__fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(90, 150, 255, 0.95), rgba(120, 210, 255, 0.9));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 18px rgba(86, 168, 255, 0.22);
    overflow: hidden;
}

/* Animated shimmer effect */
.division-progress__fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3) 50%,
        transparent
    );
    animation: shimmer 2.5s infinite;
    animation-delay: var(--shimmer-delay, 0s);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.division-progress__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

.division-progress--finished .division-progress__fill {
    background: linear-gradient(120deg, rgba(60, 180, 140, 0.95), rgba(100, 220, 170, 0.85));
    box-shadow: 0 0 18px rgba(80, 210, 170, 0.22);
}

.division-progress--not-started .division-progress__fill {
    background: linear-gradient(120deg, rgba(120, 130, 155, 0.6), rgba(160, 170, 190, 0.6));
    box-shadow: 0 0 16px rgba(140, 150, 175, 0.18);
}

.division-progress--active .division-progress__fill {
    background: linear-gradient(120deg, rgba(90, 150, 255, 0.95), rgba(120, 210, 255, 0.9));
}

@media (max-width: 768px) {
    .division-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .division-season-bar {
        position: static;
    }
    .division-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .division-season-bar {
        grid-template-columns: 1fr;
    }
    .tier-section__body {
        padding: 1rem;
    }
    .division-card {
        padding: 1.25rem;
    }
}
/* ---- Division view ---- */
.division-view {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.2vw, 2.6rem);
}

.division-hero {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.35rem);
    padding: clamp(1.15rem, 2.4vw, 2rem);
    border-radius: clamp(20px, 2.5vw, 28px);
}

.division-hero__grid {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.25rem);
}

.division-hero__identity {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.division-hero__badge {
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(58, 163, 255, 0.2), rgba(62, 255, 210, 0.18));
    border: 1px solid rgba(96, 148, 255, 0.35);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.division-hero__subtitle,
.division-hero__season {
    color: rgba(235, 242, 255, 0.9);
    font-size: 1rem;
}

.division-hero__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.division-hero__nav-link {
    appearance: none;
    border: 1px solid rgba(120, 150, 220, 0.35);
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    background: rgba(10, 16, 32, 0.82);
    color: rgba(215, 225, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.division-hero__nav-link:hover,
.division-hero__nav-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(140, 190, 255, 0.65);
    background: rgba(52, 92, 180, 0.9);
    color: #05090f;
}

.division-hero__nav-link--subtle {
    background: rgba(12, 18, 32, 0.6);
    color: rgba(200, 210, 240, 0.74);
}

.division-hero__nav-link--primary {
    border-color: rgba(120, 180, 255, 0.5);
    background: linear-gradient(135deg, rgba(58, 163, 255, 0.95), rgba(62, 255, 210, 0.85));
    color: #041023;
    box-shadow: 0 12px 26px rgba(40, 110, 255, 0.35);
}

.division-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: clamp(1.8rem, 3vw, 2.35rem);
}

.division-section:first-of-type {
    margin-top: 0;
}

.division-section__heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}

.division-section__heading--tight {
    text-align: left;
    align-items: flex-start;
}

.division-team-heading {
    text-align: center;
    align-items: center;
}

.division-team-heading .title-accent,
.division-team-heading .division-section__lede {
    max-width: 720px;
}

.division-team-heading .division-section__lede {
    margin-top: 0.25rem;
}

.division-section__lede {
    max-width: 640px;
    color: rgba(200, 210, 240, 0.78);
    text-wrap: balance;
}

.division-section__lede--balanced {
    max-width: 720px;
}

.division-section__lede--compact {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
}

.division-section__empty {
    color: rgba(210, 220, 248, 0.7);
    font-size: 1rem;
    text-align: center;
}

.division-section--stacked {
    gap: clamp(1.25rem, 2vw, 1.65rem);
}

.division-surface {
    border-radius: clamp(18px, 2vw, 24px);
    background: linear-gradient(160deg, rgba(10, 16, 32, 0.88), rgba(6, 12, 28, 0.9));
    border: 1px solid rgba(98, 138, 246, 0.2);
    box-shadow: 0 26px 45px rgba(5, 9, 20, 0.45);
}

.division-team-module {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.division-team-tabs {
    display: flex;
    gap: clamp(0.55rem, 1.2vw, 0.85rem);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    position: relative;
}

.division-team-tabs::after {
    content: '';
    position: absolute;
    left: clamp(-1.5rem, -2vw, -1rem);
    right: clamp(-1.5rem, -2vw, -1rem);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(80, 120, 200, 0), rgba(88, 140, 255, 0.5), rgba(80, 120, 200, 0));
    pointer-events: none;
}

.division-team-tab {
    min-width: clamp(120px, 18vw, 150px);
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 0.65rem 1.55rem;
}

.division-team-tabs .season-pill--active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 18px 35px rgba(44, 128, 255, 0.35), 0 0 22px rgba(60, 255, 210, 0.25);
    padding-bottom: 0.85rem;
}

.division-team-panels {
    position: relative;
}

.division-team-panel {
    width: 100%;
    padding: clamp(1.2rem, 2vw, 1.6rem);
}

.division-team-panel--table .table-container {
    margin-top: 0.35rem;
}

#season-selector .season-selector--flat {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

#season-selector .season-selector__pills {
    justify-content: center;
}

@media (max-width: 640px) {
    .division-team-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .division-team-tab {
        width: 100%;
    }
}

.division-team-chips {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.55rem, 1.2vw, 0.85rem);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(120, 160, 255, 0.2);
    border-bottom: 1px solid rgba(120, 160, 255, 0.18);
    box-shadow:
        0 -10px 25px rgba(5, 8, 20, 0.45),
        0 12px 28px rgba(5, 8, 20, 0.4);
}

.division-tab-fade-enter-active,
.division-tab-fade-leave-active {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.division-tab-fade-enter-from,
.division-tab-fade-leave-to {
    opacity: 0;
    transform: translateY(8px);
}

.division-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.75rem 1.2rem;
    border-radius: 16px;
    background: rgba(8, 14, 28, 0.85);
    border: 1px solid rgba(100, 150, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.division-chip__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(90, 145, 255, 0.18);
    color: rgba(185, 210, 255, 0.92);
    font-weight: 700;
    font-size: 0.85rem;
}

.division-chip__logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(120, 160, 255, 0.35);
}

.division-chip__label {
    font-weight: 600;
}

.division-chip__meta {
    font-size: 0.85rem;
    color: rgba(210, 220, 250, 0.75);
}

.division-chip__delta {
    font-weight: 700;
}

.division-chip__delta.positive { color: var(--ok); }
.division-chip__delta.negative { color: var(--err); }

.division-chip--active {
    background: linear-gradient(135deg, rgba(95, 155, 255, 0.35), rgba(60, 255, 210, 0.32));
    border-color: rgba(120, 175, 255, 0.75);
    box-shadow: 0 24px 40px rgba(32, 82, 210, 0.5), 0 0 34px rgba(60, 255, 210, 0.4);
}

.division-chip:hover,
.division-chip:focus-visible {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 12px 28px rgba(32, 82, 210, 0.3);
}

.division-summary-grid {
    width: 100%;
    margin-top: 0;
}

.division-hero-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1200px) {
    .division-hero-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.division-hero-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(1.25rem, 2vw, 1.6rem);
}

.division-hero-card__head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.division-hero-card__subtitle {
    color: rgba(200, 210, 240, 0.78);
    font-size: 0.95rem;
}

.division-hero-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.division-hero-card__list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.division-hero-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.division-hero-card__list img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(120, 160, 255, 0.35);
}

.division-hero-card__name {
    font-weight: 600;
}

.division-hero-card__team {
    font-size: 0.85rem;
    color: rgba(200, 210, 240, 0.7);
}

.division-hero-card__value {
    font-weight: 700;
    font-size: 1rem;
    color: rgba(233, 246, 255, 0.95);
}

.division-section--heroes {
    margin-top: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: clamp(2.4rem, 4vw, 3.2rem);
    padding: clamp(2.4rem, 4vw, 3.2rem) 0 clamp(2.8rem, 4vw, 3.6rem);
    background: radial-gradient(120% 180% at 50% 30%, rgba(25, 36, 74, 0.45), rgba(10, 15, 34, 0.9));
}

.division-section--heroes .division-section__heading {
    text-align: center;
    margin-bottom: clamp(2rem, 3vw, 2.4rem);
}

.division-section--heroes .division-section__heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.division-section__lede--heroes {
    min-height: 1.4em;
    margin-top: 0.35rem;
    margin-bottom: clamp(0.9rem, 2vw, 1.2rem);
    color: rgba(200, 210, 240, 0.72);
    font-size: 0.94rem;
}

.sankari-groups {
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 2.5vw, 2.2rem);
}

.sankari-group {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.2vw, 1rem);
    align-items: stretch;
    padding-top: 0.4rem;
    padding-bottom: clamp(1rem, 2vw, 1.4rem);
}

.sankari-group__label {
    text-align: center;
    padding-top: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sankari-group__title {
    margin: 0;
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(195, 210, 240, 0.86);
}

.sankari-group__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.8vw, 1.25rem);
    align-items: stretch;
}

@media (max-width: 1400px) {
    .sankari-group__cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1024px) {
    .sankari-group {
        align-items: stretch;
    }
    .sankari-group__label {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .sankari-group__cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}


.sankari-card {
    padding: clamp(1.1rem, 2vw, 1.45rem);
    border: 1px solid rgba(130, 165, 255, 0.2);
    background: linear-gradient(180deg, rgba(28, 38, 78, 0.82) 0%, rgba(12, 18, 42, 0.95) 100%);
    box-shadow: 0 18px 40px rgba(18, 32, 72, 0.5);
    transition: transform 160ms ease, box-shadow 180ms ease, border-color 160ms ease;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sankari-card:hover,
.sankari-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(160, 200, 255, 0.35);
    box-shadow: 0 22px 48px rgba(24, 50, 100, 0.6);
}

.sankari-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.sankari-card__head {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    text-align: center;
}

.sankari-card__head .titleUnderlineCard {
    font-size: 1.12rem;
    line-height: 1.35;
}

.sankari-card__desc {
    color: rgba(200, 210, 240, 0.78);
    font-size: 0.96rem;
    line-height: 1.4;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.2rem;
}

.sankari-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(140, 170, 255, 0.12);
    padding-top: 0.65rem;
}

.sankari-card__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(140, 170, 255, 0.08);
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.sankari-card__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.sankari-card__row:hover,
.sankari-card__row:focus-visible {
    background: rgba(130, 180, 255, 0.06);
    border-color: rgba(130, 180, 255, 0.2);
    transform: translateY(-1px);
}

.sankari-card__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(130, 160, 255, 0.15);
    font-weight: 800;
    color: #dfe7ff;
    font-size: 0.95rem;
}

.sankari-card__row:nth-child(1) .sankari-card__rank { background: linear-gradient(135deg, #f7d16f, #d0a431); color: #0b1020; }
.sankari-card__row:nth-child(2) .sankari-card__rank { background: linear-gradient(135deg, #d9e3f8, #b8c8e8); color: #0b1020; }
.sankari-card__row:nth-child(3) .sankari-card__rank { background: linear-gradient(135deg, #f2c59c, #d59b63); color: #0b1020; }

.sankari-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sankari-card__player {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.sankari-card__player > div {
    min-width: 0;
}

.sankari-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(120, 160, 255, 0.35);
}

.sankari-card__name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sankari-card__team {
    font-size: 0.9rem;
    color: rgba(200, 210, 240, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sankari-card__hint {
    font-size: 0.86rem;
    color: rgba(190, 205, 240, 0.8);
}

.sankari-card__value {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent-strong, #7fd0ff);
    text-align: right;
    min-width: 64px;
}

/* ---- Team comparison chart ---- */

.team-comparison-chart {
    display: flex;
    flex-direction: column;
}

.team-comparison-chart__label {
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(195, 208, 240, 0.72);
}

.team-comparison-chart__body {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding-top: 0.25rem;
}

.team-comparison-chart__rows {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.team-comparison-chart__row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 12, 26, 0.7);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.team-comparison-chart__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.team-comparison-chart__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(90, 145, 255, 0.22), rgba(60, 110, 255, 0.12));
    border: 1px solid rgba(120, 170, 255, 0.45);
    color: rgba(215, 230, 255, 0.95);
    font-weight: 700;
    font-size: 0.9rem;
}

.team-comparison-chart__logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(120, 158, 255, 0.35);
    background: rgba(12, 18, 32, 0.9);
    box-shadow: 0 4px 12px rgba(5, 9, 20, 0.35);
}

.team-comparison-chart__name {
    font-weight: 700;
    color: #fff;
    display: block;
}

.team-comparison-chart__meta-text {
    font-size: 0.85rem;
    color: rgba(195, 205, 240, 0.7);
}

.team-comparison-chart__bar {
    position: relative;
    height: 18px;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.9);
    overflow: hidden;
    border: 1px solid rgba(90, 145, 255, 0.25);
}

.team-comparison-chart__segment {
    position: absolute;
    top: 0;
    height: 100%;
    transition: width 0.25s ease;
}

.team-comparison-chart__segment--wins {
    left: 0;
    background: linear-gradient(135deg, rgba(88, 180, 255, 0.95), rgba(62, 255, 210, 0.9));
}

.team-comparison-chart__segment--losses {
    right: 0;
    background: linear-gradient(135deg, rgba(249, 112, 102, 0.8), rgba(255, 174, 145, 0.7));
}

.team-comparison-chart__round-indicator {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(150, 210, 255, 0.85));
    border: 2px solid rgba(75, 110, 255, 0.6);
}

.team-comparison-chart__round-indicator--negative {
    background: linear-gradient(135deg, rgba(255, 140, 140, 0.92), rgba(255, 190, 140, 0.88));
    border-color: rgba(255, 160, 160, 0.7);
}

.team-comparison-chart__stats {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.team-comparison-chart__record {
    font-weight: 700;
    color: rgba(240, 245, 255, 0.95);
}

.team-comparison-chart__round {
    font-weight: 600;
    font-size: 0.95rem;
}

.team-comparison-chart__row:hover {
    background: rgba(20, 30, 58, 0.85);
    box-shadow: inset 0 0 0 1px rgba(90, 145, 255, 0.35);
}

.team-comparison-chart__row--active {
    box-shadow: inset 0 0 0 1px rgba(90, 145, 255, 0.5);
    background: rgba(22, 36, 74, 0.9);
}

.team-comparison-chart__row--flash {
    animation: rowPulse 1.1s ease;
}

.team-comparison-chart__empty {
    color: rgba(200, 210, 240, 0.75);
    font-size: 0.95rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: clamp(12px, 1.5vw, 18px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(12, 18, 32, 0.6);
    border-radius: 999px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(58, 163, 255, 0.45), rgba(62, 255, 210, 0.4));
    border-radius: 999px;
}

.table-sortable {
    width: 100%;
    border-collapse: collapse;
    background: rgba(6, 10, 24, 0.8);
    font-size: 0.95rem;
}

.table-sortable thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 18, 36, 0.92);
}

.table-sortable.sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 6px 12px rgba(5, 9, 20, 0.45);
    background: linear-gradient(180deg, rgba(12, 18, 36, 0.95), rgba(10, 16, 30, 0.88));
}

.table-sortable tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-sortable tbody tr:nth-child(odd) {
    background: rgba(12, 18, 34, 0.65);
}

.table-sortable tbody tr:nth-child(even) {
    background: rgba(8, 12, 26, 0.75);
}

.col-stat {
    min-width: 88px;
    text-align: right;
}

.col-group-b {
    min-width: 110px;
}

.col-group-c {
    min-width: 100px;
}

.col-bar {
    min-width: 170px;
}

.table-row--highlighted {
    box-shadow: inset 0 0 0 1px rgba(90, 145, 255, 0.4);
    background: rgba(28, 42, 80, 0.85) !important;
}

.table-row--flash {
    animation: rowPulse 1.2s ease;
}

@keyframes rowPulse {
    0% { box-shadow: inset 0 0 0 0 rgba(90, 145, 255, 0.0); }
    30% { box-shadow: inset 0 0 0 2px rgba(90, 145, 255, 0.6); }
    100% { box-shadow: inset 0 0 0 0 rgba(90, 145, 255, 0.0); }
}

/* ---- Player view ---- */
.player-view {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.player-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
}

.player-hero__identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.player-hero__avatar {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: rgba(16, 24, 46, 0.8);
    border: 1px solid rgba(125, 160, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(215, 225, 255, 0.9);
    overflow: hidden;
}

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

.player-hero__meta h1 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.player-hero__team {
    color: rgba(180, 198, 255, 0.85);
    margin-top: 0.35rem;
}

.player-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.player-mode-toggle {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(12, 18, 32, 0.7);
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 140, 200, 0.3);
}

.player-mode-toggle__btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    color: rgba(205, 215, 240, 0.8);
    font-weight: 600;
    cursor: pointer;
}

.player-mode-toggle__btn--active {
    background: linear-gradient(135deg, rgba(95, 155, 255, 0.85), rgba(80, 205, 255, 0.8));
    color: #050911;
    box-shadow: 0 10px 20px rgba(70, 110, 255, 0.2);
}

.player-season-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.player-season-pill {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 148, 255, 0.3);
    background: rgba(16, 26, 46, 0.65);
    color: rgba(210, 220, 250, 0.85);
    font-weight: 600;
    cursor: pointer;
}

.player-season-pill--active {
    background: linear-gradient(135deg, rgba(90, 145, 255, 0.9), rgba(59, 198, 255, 0.85));
    color: #050911;
    border-color: rgba(120, 170, 255, 0.6);
    box-shadow: 0 12px 24px rgba(60, 110, 255, 0.25);
}

.player-kpis {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.player-charts {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.player-chart {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-maps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-empty {
    color: rgba(200, 212, 240, 0.7);
    font-size: 0.95rem;
}

.sparkline-chart {
    width: 100%;
    height: 80px;
}

.radar-chart__wrap {
    width: min(480px, 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart {
    width: 100%;
    height: 100%;
}

.radar-chart__label {
    fill: rgba(220, 230, 250, 0.9);
    font-size: 0.7rem;
}


.compare-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.compare-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.7);
}

.compare-modal__content {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.compare-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-modal__close {
    border: none;
    background: rgba(16, 24, 36, 0.7);
    color: rgba(215, 225, 255, 0.85);
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.compare-modal__form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.compare-modal__label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    color: rgba(205, 215, 240, 0.8);
}

.compare-modal__label input {
    background: rgba(12, 20, 38, 0.75);
    border: 1px solid rgba(106, 140, 220, 0.35);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    color: #fff;
}

.compare-modal__table {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.compare-modal__row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.compare-modal__row--header {
    font-weight: 700;
    color: rgba(225, 235, 255, 0.9);
    border-bottom: 1px solid rgba(120, 150, 220, 0.3);
    padding-bottom: 0.4rem;
}

.compare-modal__metric {
    color: rgba(205, 215, 240, 0.78);
}

.compare-modal__empty {
    color: rgba(200, 210, 240, 0.75);
    text-align: center;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 1024px) {
    .hero-banner__content {
        padding: clamp(1.75rem, 4vw, 3rem);
    }
    .glass-card {
        padding: 1.5rem;
    }
    .division-header {
        top: 88px;
        padding: 1.5rem;
    }
    .season-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-view {
        gap: 2.75rem;
    }
    .home-section {
        gap: 1.5rem;
    }
    .stat-panel {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .season-selector__pills {
        gap: 0.5rem;
        padding: 0.25rem;
    }
    .season-pill {
        min-width: 80px;
        padding: 0.55rem 1rem;
    }
    .division-card-list {
        grid-template-columns: 1fr;
    }
    .division-header {
        position: static;
        padding: 1.35rem;
    }
    .division-header__meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .division-header__nav {
        gap: 0.5rem;
    }
    .team-comparison-chart__row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .team-comparison-chart__stats {
        justify-content: flex-start;
    }
    .team-header__identity {
        flex-direction: column;
        align-items: flex-start;
    }
    .team-header__crest {
        width: 72px;
        height: 72px;
    }
    .team-header__actions {
        justify-content: flex-start;
    }
    .team-overview {
        grid-template-columns: 1fr;
    }
    .team-overview__maps {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .stats-section {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary,
    .btn-link {
        width: 100%;
        justify-content: center;
    }
    .glass-card {
        padding: 1.25rem;
    }
    .division-header__title {
        font-size: 1.75rem;
    }
    .division-header__nav-link {
        width: 100%;
        justify-content: center;
    }
    .team-header__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .team-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    .team-tab {
        width: 100%;
    }
    .team-season-pills {
        flex-direction: column;
    }
}

@media (min-width: 900px) {
    .season-pill__short {
        display: none;
    }
    .season-pill__full {
        display: inline;
    }
}

/* Navigation */
.main-nav {
    background: rgba(10, 16, 34, 0.92);
    border-bottom: 1px solid rgba(52, 76, 128, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 28px rgba(5, 9, 20, 0.45);
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 4vw, 2.5rem);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    min-width: 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(20, 32, 64, 0.65);
    border: 1px solid rgba(82, 128, 220, 0.25);
}

.nav-logo {
    height: clamp(36px, 5vw, 48px);
    width: auto;
    display: block;
}

.brand-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, rgba(122, 140, 220, 0) 0%, rgba(122, 140, 220, 0.65) 45%, rgba(255, 140, 64, 0.65) 55%, rgba(255, 140, 64, 0) 100%);
}

.nav-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-title {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e5ecff;
}

.nav-subtitle {
    font-size: clamp(0.75rem, 1.4vw, 0.9rem);
    color: rgba(185, 205, 240, 0.7);
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(14, 22, 46, 0.7);
    border: 1px solid rgba(82, 128, 220, 0.18);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(220, 232, 255, 0.82);
    transition: color 0.2s ease;
}

.nav-link.router-link-active,
.nav-link:hover,
.nav-link:focus-visible {
    color: #0b1020;
    background: linear-gradient(135deg, rgba(91, 140, 255, 0.95), rgba(255, 156, 64, 0.95));
    box-shadow: 0 12px 24px rgba(56, 104, 210, 0.25);
}

.layout-boundary {
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
}

@media (min-width: 992px) {
    .layout-boundary {
        max-width: 90vw;
    }
}

.main-content {
    min-height: calc(100vh - 240px);
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-footer {
    background: rgba(10, 16, 34, 0.94);
    border-top: 1px solid rgba(52, 76, 128, 0.4);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    color: rgba(185, 205, 240, 0.7);
}

/* Defensive global layout cap to prevent site overflow on very wide elements
   - the app root and layout-boundary are capped at 90vw on desktop
   - page-level horizontal overflow is hidden; wide children should scroll internally
*/
html, body {
    box-sizing: border-box;
}

#app {
    max-width: 90vw;
    margin: 0 auto;
}

.layout-boundary {
    max-width: 90vw;
}

/* Keep tables and other wide components scrollable inside their containers */
.table-container, .wide-scroll, .teams-grid, .season-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    #app, .layout-boundary { max-width: 100vw; }
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .nav-brand {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Loading & Error States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes progress-glow {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        transform: translateX(15%);
        opacity: 0.35;
    }
    50% {
        transform: translateX(85%);
        opacity: 0.55;
    }
    100% {
        transform: translateX(140%);
        opacity: 0;
    }
}

.error-message {
    background: var(--card);
    border: 1px solid var(--danger);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-retry {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-retry:hover {
    opacity: 0.9;
}

/* Cards */
.stat-cards,
.top-players-grid,
.seasons-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.top-players-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.seasons-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stat-card,
.top-players-card,
.season-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.stat-card:hover,
.season-card:hover {
    border-color: var(--accent);
}

.stat-card h3,
.top-players-card h3,
.season-card h2 {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-value.positive {
    color: var(--success);
}

.stat-value.negative {
    color: var(--danger);
}

/* Top Players */
.top-players-list {
    list-style-position: inside;
    padding: 0;
}

.top-players-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.top-players-list li:last-child {
    border-bottom: none;
}

.top-players-list a {
    color: var(--text);
    text-decoration: none;
}

.top-players-list a:hover {
    color: var(--accent);
}

.player-stat {
    color: var(--accent);
    font-weight: bold;
}

/* Divisions */
.divisions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.division-link {
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

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

@media (max-width: 640px) {
    .division-team-list .teams-navigation {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Team/Player Headers */
.team-header,
.player-header,
.division-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--card);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.team-avatar,
.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.team-header-info h1,
.player-header-info h1,
.division-header h1 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.faceit-link {
    color: var(--text-dim);
    text-decoration: none;
}

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

/* Season Selector */
.season-selector {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--card);
    border-radius: 8px;
}

.season-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.season-selector select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 1rem;
}

/* Map Stats Table */
.map-stats-table {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.map-sortable .table-sortable {
    min-width: 780px;
}

.map-name {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    color: #e4edff;
}

.map-logo {
    width: 42px;
    height: 42px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 11px;
    object-fit: cover;
    background: var(--table-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(5, 9, 20, 0.35);
}

@media (max-width: 720px) {
    .map-logo {
        width: 34px;
        height: 34px;
    }
    .map-name {
        gap: 0.45rem;
        align-items: flex-start;
    }
}

/* Delta Indicators */
.delta-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.delta-positive {
    color: var(--success);
}

.delta-negative {
    color: var(--danger);
}

.delta-arrow {
    font-size: 0.8rem;
}

/* Transitions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-header,
    .player-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---- Utility color classes ---- */
.text-ok { color: var(--ok) !important; }
.text-warn { color: var(--warn) !important; }
.text-err { color: var(--err) !important; }

.chip { display:inline-flex; align-items:center; gap:8px; padding:4px 8px; border-radius:999px; font-size:0.9rem; font-weight:600; }
.chip--accent { background: linear-gradient(90deg, rgba(58,163,255,0.12), rgba(125,211,252,0.08)); color: var(--accent-2); border:1px solid rgba(58,163,255,0.12); }
.chip--ok { background: linear-gradient(90deg, rgba(57,217,138,0.07), rgba(57,217,138,0.03)); color: var(--ok); border:1px solid rgba(57,217,138,0.12); }
.chip--warn { background: linear-gradient(90deg, rgba(244,191,79,0.07), rgba(244,191,79,0.03)); color: var(--warn); border:1px solid rgba(244,191,79,0.12); }
.chip--err { background: linear-gradient(90deg, rgba(249,112,102,0.07), rgba(249,112,102,0.03)); color: var(--err); border:1px solid rgba(249,112,102,0.12); }
.chip--link { background: rgba(125, 211, 252, 0.14); border: 1px solid rgba(125, 211, 252, 0.4); color: #d5f3ff; }
.chip--muted { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* numeric stat coloring helpers */
.stat-positive { color: var(--ok); font-weight:700; }
.stat-negative { color: var(--err); font-weight:700; }
.stat-neutral { color: var(--muted); }

/* small badge used near headers */
.badge-small { display:inline-block; padding:4px 8px; border-radius:8px; font-size:0.8rem; background: rgba(255,255,255,0.03); color:var(--muted); border:1px solid rgba(255,255,255,0.03); }


.subtitle {
	font-size: 0.85em;
	color: var(--muted);
	margin-top: 4px;
}

/* Team logos: different size for index vs division */
img.logo.nav-logo {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	border: 2px solid rgba(58, 163, 255, 0.2);
	transition: all 0.3s ease;
	flex-shrink: 0;
}

/* Bigger logos in team section headings */
img.logo.team-logo {
	max-height: 100px;
	max-width: 100px;
	vertical-align: middle;
	margin-right: 10px;
	border-radius: 6px;
}
img.logo.promo-logo {
	max-height: 200px;
	max-width: 200px;
	vertical-align: middle;
	margin-right: 6px;
	border-radius: 3px;
}

*{box-sizing:border-box;}
body{
	margin:0;
	background: radial-gradient(1800px 600px at 20% -10%, #152046 0%, #0b1020 55%) fixed;
	color:var(--fg);
	font:18px/1.45 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
	min-width: 1200px;
	min-height: 100vh;
	background-size: cover;
}
a{ color:var(--accent); text-decoration:none; }
.muted{ color:var(--muted); }

/* ---- Containers ---- */
.container{ max-width:1800px; margin:0 auto; padding:24px; }
.page{ max-width:1800px; margin:0 auto; padding:1.25rem 1.25rem 3rem; }

/* ---- Navigation / brand ---- */
.nav:not(:empty){ 
	display: grid; 
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
	gap: 16px; 
	margin: 24px 0 32px; 
	padding: 24px;
	background: linear-gradient(135deg, rgba(18, 25, 50, 0.95), rgba(15, 20, 40, 0.85));
	border: 1px solid rgba(58, 163, 255, 0.2);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: linear-gradient(135deg, rgba(25, 35, 65, 0.8), rgba(20, 28, 55, 0.9));
	border: 1px solid rgba(58, 163, 255, 0.15);
	border-radius: 12px;
	color: var(--fg);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.nav a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent, rgba(58, 163, 255, 0.05));
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.nav a:hover {
	background: linear-gradient(135deg, rgba(30, 42, 75, 1), rgba(25, 35, 65, 0.95));
	border-color: rgba(58, 163, 255, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(58, 163, 255, 0.1);
	color: #ffffff;
}

.nav a:hover::before {
	opacity: 1;
}

.nav a:hover .nav-logo {
        transform: scale(1.05);
        filter: brightness(1.1);
}

.nav a .nav-name {
        flex: 1;
}



.nav a.is-banned {
        border-color: rgba(249, 112, 102, 0.35);
        background: linear-gradient(135deg, rgba(60, 20, 28, 0.75), rgba(32, 12, 18, 0.85));
}
.nav a.is-banned .nav-name {
        color: var(--err);
        font-weight: 700;
}

.team-section.is-banned .card-head .title {
        color: var(--err);
}



.nav a.is-banned:hover {
        border-color: rgba(249, 112, 102, 0.55);
        box-shadow: 0 12px 28px rgba(249, 112, 102, 0.2), 0 0 12px rgba(249, 112, 102, 0.25);
}

/* Quit team styles - grayed out appearance */
.nav a.team-quit {
        border-color: rgba(128, 128, 128, 0.25);
        background: linear-gradient(135deg, rgba(40, 40, 40, 0.5), rgba(30, 30, 30, 0.6));
        opacity: 0.6;
}

.nav a.team-quit .nav-name {
        color: #888;
        font-weight: 400;
}

.team-section.team-quit .card-head .title {
        color: #888;
        opacity: 0.7;
}

.nav a.team-quit:hover {
        border-color: rgba(128, 128, 128, 0.4);
        box-shadow: 0 8px 16px rgba(128, 128, 128, 0.15);
        opacity: 0.75;
}

/* Responsive team navigation */
@media (max-width: 768px) {
	.nav {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px;
	}
	
	.nav a {
		padding: 12px 16px;
		font-size: 0.9rem;
	}
	
	img.logo.nav-logo {
		width: 40px;
		height: 40px;
	}
}
.topbar{ display:flex; align-items:center; justify-content:center; gap:16px; margin: 0 0 20px 0; position:relative; }
.topbar .nav {
	position: absolute;
	right: 0;
	top: 0;
	display: flex;
	align-items: center;
	height: 100%;
}
.brand{ display:flex; flex-direction:row; align-items:center; gap:12px; font-weight:700; letter-spacing:.3px; color:var(--fg); }
.brand .dot{ width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---- Buttons ---- */
.btn{
	display:inline-flex; align-items:center; gap:8px;
	border:1px solid rgba(255,255,255,0.12);
	background:linear-gradient(180deg, rgba(58,163,255,0.12), rgba(125,211,252,0.08));
	color:var(--fg); padding:10px 14px; border-radius:10px;
	transition:.25s transform, .25s background, .25s border-color, .25s box-shadow;
}
.btn:hover{
	transform: translateY(-1px) scale(1.02);
	border-color: rgba(255,255,255,0.35);
	box-shadow: 0 12px 26px rgba(45, 120, 255, 0.25);
}
.btn-primary{ background:linear-gradient(180deg, #3aa3ff, #2a7cd6); border:none; color:#fff; }
.btn-ghost{ background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.btn-floating{
        position:fixed; right:18px; bottom:18px; z-index:50;
        box-shadow: var(--shadow);
}

.info-banner {
        margin: 24px 0;
        padding: 18px 22px;
        border-radius: 14px;
        border: 1px solid rgba(58, 163, 255, 0.25);
        background: linear-gradient(135deg, rgba(18, 25, 50, 0.75), rgba(12, 18, 36, 0.85));
        color: var(--fg);
        font-weight: 500;
        display: flex;
        gap: 12px;
        align-items: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.info-banner strong {
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
}

.info-banner--banned {
        border-color: rgba(249, 112, 102, 0.45);
        background: linear-gradient(135deg, rgba(60, 20, 28, 0.8), rgba(32, 12, 18, 0.85));
        color: var(--fg);
}

.info-banner--banned strong {
        color: var(--err);
}

/* ---- Enhanced Index Page Typography & Spacing ---- */

/* Improved body and container spacing for index */
.is-index .container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 32px 24px;
}

.is-index .topbar {
	margin-bottom: 24px;
	padding: 20px 0;
}

.is-index .brand {
	font-size: 1.1rem;
	letter-spacing: 0.5px;
}

.is-index .brand span {
	background: linear-gradient(135deg, var(--fg), var(--accent-2));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 600;
}

/* Enhanced footer for index */
.is-index .footer {
	margin-top: 64px;
	padding: 32px;
	text-align: center;
	background: linear-gradient(135deg, rgba(15,25,45,0.4), rgba(8,15,30,0.6));
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 16px;
	color: var(--muted);
	font-size: 0.95rem;
	backdrop-filter: blur(10px);
}

/* ---- Enhanced Index Page Styles ---- */

/* Enhanced Hero Section */
/* Statistics Overview */
.stats-overview {
	margin: 48px 0;
	padding: 32px;
	background: linear-gradient(135deg, rgba(15,25,45,0.6), rgba(8,15,30,0.8));
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 20px;
	backdrop-filter: blur(10px);
}

/* Flex container for equal height sections */
.div-summary {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.stats-sections-container {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.stats-sections-container .stats-overview {
	flex: 1; /* Both sections take equal space (50/50) */
	margin: 0;
	display: flex;
	flex-direction: column;
}

.stats-sections-container .stats-overview .stats-grid,
.stats-sections-container .stats-overview .map-stats-grid {
	flex: 1;
}

/* Ensure section titles have consistent baseline alignment */
.section-title {
	text-align: center;
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0 0 32px 0;
	background: linear-gradient(135deg, var(--fg), var(--accent-2));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1.2;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.stat-card {
	background: linear-gradient(135deg, rgba(18,25,50,0.8), rgba(12,18,36,0.9));
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent, rgba(58,163,255,0.1));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.stat-card:hover::before {
	opacity: 1;
}

.stat-card:hover {
	transform: translateY(-4px);
	border-color: rgba(58,163,255,0.3);
	box-shadow: 0 15px 30px rgba(58,163,255,0.2);
}

.stat-icon {
	font-size: 2rem;
	margin-bottom: 12px;
	display: block;
}

.stat-value {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--fg);
	margin-bottom: 8px;
	line-height: 1;
}

.stat-label {
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Season Selector */
.season-selector {
	margin: 48px 0;
	padding: 24px;
	background: linear-gradient(135deg, rgba(15,25,45,0.6), rgba(8,15,30,0.8));
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 20px;
	backdrop-filter: blur(10px);
}

.season-tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
	gap: 8px;
	flex-wrap: wrap;
}

.season-tab {
	background: rgba(18,25,50,0.6);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 12px 24px;
	color: var(--muted);
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	font-weight: 500;
	min-width: 120px;
	text-align: center;
}

.season-tab:hover {
	background: rgba(58,163,255,0.1);
	border-color: rgba(58,163,255,0.3);
	color: var(--fg);
	transform: translateY(-2px);
}

.season-tab.active {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: var(--accent);
	color: white;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(58,163,255,0.3);
}

.season-tab.completed::after {
	content: '✓';
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--ok);
	color: white;
	font-size: 0.7rem;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.season-content {
	display: none;
}

.season-content.active {
	display: block;
	animation: fadeIn 0.3s ease-in-out;
}

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

.season-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.season-stat-card {
	background: rgba(18,25,50,0.7);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	transition: all 0.3s ease;
}

.season-stat-card:hover {
	border-color: rgba(255,255,255,0.2);
	transform: translateY(-2px);
}

.season-stat-value {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--accent-2);
	margin: 8px 0 4px 0;
}

.season-stat-label {
	font-size: 0.9rem;
	color: var(--muted);
	font-weight: 500;
}

.season-progress {
	margin-top: 16px;
}

.season-progress-section {
	margin-bottom: 12px;
}

.season-progress-section:last-child {
	margin-bottom: 0;
}

.season-progress-label {
	font-size: 0.85rem;
	color: var(--accent-2);
	font-weight: 600;
	margin-bottom: 4px;
	text-align: center;
}

.season-progress-bar {
	background: rgba(255,255,255,0.1);
	border-radius: 8px;
	height: 8px;
	overflow: hidden;
	margin-top: 8px;
}

.season-progress-fill {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	height: 100%;
	border-radius: 8px;
	transition: width 0.6s ease;
}

.season-progress-text {
	font-size: 0.8rem;
	color: var(--muted);
	margin-top: 4px;
	text-align: center;
}

/* Enhanced animations and interactions */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.division-card {
	animation: fadeInUp 0.6s ease-out;
	animation-fill-mode: both;
}

.division-card:nth-child(1) { animation-delay: 0.1s; }
.division-card:nth-child(2) { animation-delay: 0.2s; }
.division-card:nth-child(3) { animation-delay: 0.3s; }
.division-card:nth-child(4) { animation-delay: 0.4s; }
.division-card:nth-child(5) { animation-delay: 0.5s; }
.division-card:nth-child(6) { animation-delay: 0.6s; }

.stat-card {
	animation: fadeInUp 0.6s ease-out;
	animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.5s; }

/* Enhanced button styles for index */
.is-index .btn {
	font-weight: 600;
	letter-spacing: 0.3px;
	border-radius: 12px;
	padding: 12px 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.is-index .btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s ease;
}

.is-index .btn:hover::before {
	left: 100%;
}

.is-index .btn-primary {
	background: linear-gradient(135deg, #3aa3ff, #2a7cd6);
	box-shadow: 0 8px 24px rgba(58,163,255,0.3);
}

.is-index .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(58,163,255,0.4);
}

/* ---- Grid & cards ---- */
.grid{ display:grid; gap:16px; grid-template-columns: repeat(12,1fr); }
.card {
	grid-column: span 2; /* 6 cards per row on 12-col grid */
	min-height: 100px;
	background: linear-gradient(180deg, rgba(18,25,50,0.85), rgba(12,18,36,0.85));
	border:1px solid rgba(255,255,255,0.08);
	border-radius: var(--radius);
	padding:14px;
	box-shadow: var(--shadow);
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	transition: transform .15s;
	text-align:center; 
}
.card h3{ margin:0 0 4px 0; font-size:16px; }
.card small{ color: var(--muted); font-size:13px; }

.card:hover{ transform: none; }
.footer{ margin-top:24px; padding:16px; color:var(--muted); font-size:13px; text-align:center; opacity:.8; }

/* ---- Tables & utilities ---- */
table{ 
	width:100%; 
	border-collapse:collapse; 
	margin:.5rem 0 1rem; 
	background:var(--table-bg);
}
thead th{ background:var(--head); border-bottom:1px solid var(--border); font-weight:600; color:var(--fg); }
th,td{ padding:.55rem .7rem; border-bottom:1px solid var(--border); text-align:center; }
th[data-sortable] { cursor: pointer; user-select: none; position: relative; }
th[data-sortable]:hover { background: rgba(58,163,255,0.1); }
th[data-sortable]::after { 
	content: '⇅'; 
	position: absolute; 
	right: 0.3rem; 
	font-size: 0.8rem; 
	color: var(--muted); 
	opacity: 0.5; 
}
th[data-sort-dir="asc"]::after { content: '↑'; color: var(--accent); opacity: 1; }
th[data-sort-dir="desc"]::after { content: '↓'; color: var(--accent); opacity: 1; }
tbody tr:nth-child(even){ background:var(--table-alt); }
th:first-child,td:first-child{ text-align:left; background:var(--table-bg); }
tbody tr:hover{ outline:1px solid #1e2b4a; background:#152247; }
.chips{ display:flex; gap:.5rem; flex-wrap:wrap; margin:.4rem 0 .8rem; }

/* Unified chip system */
.chip{ 
	font-size:.95rem; 
	padding:.35rem .65rem; 
	border-radius:999px; 
	background:var(--chip-bg); 
	border:1px solid var(--border); 
	color:var(--fg);
	white-space:nowrap;
	line-height:1.2;
	letter-spacing:.2px;
}

.bar{ position:relative; background:#1b2a4a; height:20px; border-radius:8px; overflow:hidden; }
.bar>span{ position:absolute; left:0; top:0; bottom:0; width:0%; background:var(--accent); }
.bar .val{ position:relative; z-index:1; font-size:.9rem; padding-left:.5rem; color:#fff; }
.bar-split {
    position: relative;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(12, 18, 34, 0.9);
    border: 1px solid rgba(90, 145, 255, 0.25);
}

.bar-split .win,
.bar-split .loss {
    position: absolute;
    top: 0;
    bottom: 0;
    transition: width 0.25s ease;
}

.bar-split .win {
    left: 0;
    background: linear-gradient(135deg, rgba(90, 200, 255, 0.95), rgba(60, 255, 210, 0.9));
}

.bar-split .loss {
    right: 0;
    background: linear-gradient(135deg, rgba(249, 112, 102, 0.8), rgba(255, 174, 145, 0.7));
}

.bar-split--animating .win,
.bar-split--animating .loss {
    transition: width 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-split .val {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 20px;
    font-size: 0.85rem;
    color: #fff;
}

.cell-grad.good{ background:linear-gradient(90deg, rgba(34,197,94,0.16), transparent); }
.cell-grad.bad{  background:linear-gradient(90deg, rgba(239,68,68,0.16), transparent); }
.cell-muted{ color:var(--muted); }
th[title]{ text-decoration: underline dotted #777; text-underline-offset:3px; cursor:help; }

/* ---- Legacy Division summary grid (unused) ---- */
.div-summary-legacy{
	display:grid;
	grid-template-columns: 1fr 1fr; /* left/right columns */
	gap:1rem;
	margin:.75rem 0 1rem;
	align-items: start;
}
.div-summary-legacy .card{ grid-column: auto !important; }
.div-summary-legacy .card:hover{ transform: none; }
.summary-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem; }
.summary-item{ background:var(--table-alt); border:1px solid var(--border); border-radius:6px; padding:.5rem .6rem; text-align:center; }
.summary-item .label{ color:var(--muted); font-size:.9rem; }
.summary-item .val{ font-size:1.15rem; font-weight:600; }

/* Responsiveness removed - desktop layout maintained on all screen sizes */

/* Season Selector Responsive Design */
@media (max-width: 768px) {
	.season-tabs {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}
	
	.season-tab {
		width: 100%;
		max-width: 300px;
		padding: 16px 24px;
		font-size: 1rem;
	}
	
	.season-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.season-stat-card {
		padding: 16px;
	}
	
	.season-stat-value {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.season-selector {
		margin: 24px 0;
		padding: 16px;
	}
	
	.season-tabs {
		gap: 8px;
	}
	
	.season-tab {
		padding: 12px 16px;
		font-size: 0.9rem;
		min-width: 100px;
	}
	
	.season-stats {
		grid-template-columns: 1fr;
	}
	
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

/* Enhanced Season Indicators */
.season-meta {
	font-size: 0.8em;
	color: var(--muted);
	font-weight: 400;
}

/* Division Grid per Season */
.season-divisions {
	display: none;
}

.season-divisions.active {
	display: block;
	animation: fadeIn 0.3s ease-in-out;
}

/* --- Responsive mobile improvements --- */
@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 0 2px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
  }
  .hero img, .hero .logo {
    max-width: 90vw;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .card, .card.team-section, .card.matches-mirror {
    padding: 6px 2px !important;
    margin: 4px 0 !important;
    border-radius: 8px !important;
  }
  .teams-grid, .season-grid, .wide-scroll {
    overflow-x: auto !important;
    max-width: 100vw !important;
    padding-bottom: 2px !important;
  }
  .season-grid {
    display: block;
    white-space: nowrap;
  }
  .season-grid > * {
    display: inline-block;
    min-width: 90px !important;
    font-size: 12px !important;
    vertical-align: top;
    margin-right: 2px;
  }
  table {
    font-size: 11px !important;
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
  }
  th, td {
    padding: 2px 2px !important;
    min-width: 40px !important;
    font-size: 11px !important;
  }
  .footer {
    font-size: 10px !important;
    padding: 4px 0 !important;
  }
  h1, h2, h3 {
    font-size: 1em !important;
    margin: 6px 0 2px 0 !important;
  }
  .btn, .btn-primary, .btn-ghost {
    font-size: 13px !important;
    padding: 5px 8px !important;
  }
}

/* --- Extra mobile tweaks for usability and background --- */
@media (max-width: 600px) {
  html, body {
    font-size: 13px !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
    background-size: cover !important;
    background-attachment: fixed !important;
  }
  .hero {
    padding: 0 !important;
    margin-bottom: 4px !important;
  }
  .card, .card.team-section, .card.matches-mirror {
    padding: 6px 2px !important;
    margin: 4px 0 !important;
    border-radius: 8px !important;
  }
  .teams-grid, .season-grid, .wide-scroll {
    overflow-x: auto !important;
    max-width: 100vw !important;
    padding-bottom: 2px !important;
  }
  .season-grid > * {
    min-width: 90px !important;
    font-size: 12px !important;
  }
  table {
    font-size: 11px !important;
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
  }
  th, td {
    padding: 2px 2px !important;
    min-width: 40px !important;
    font-size: 11px !important;
  }
  h1, h2, h3 {
    font-size: 1em !important;
    margin: 6px 0 2px 0 !important;
  }
  .btn, .btn-primary, .btn-ghost {
    font-size: 13px !important;
    padding: 5px 8px !important;
  }
}

body {
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
}

/* ---- Tabs ---- */
.tabs { margin-top: 1rem; }
.tab-nav { 
	display: flex; 
	gap: .5rem; 
	margin-bottom: .5rem; 
	justify-content: center; /* Added to center the buttons */ 
}
.tab-btn {
	padding: 6px 12px; border-radius: 8px;
	background: var(--chip-bg); border:1px solid var(--border);
	color: var(--fg); cursor:pointer;
}
.tab-btn.active {
	background: var(--accent); color:#fff; border-color: var(--accent);
}
.tab-panel { 
	display: none; 
}
.tab-panel.active { 
	display: block;
	animation: fadeIn 0.3s ease-out;
}

/* ---- Matches mirror layout (scoped, cleaned) ---- */
.matches-mirror .matches-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem;}
.matches-mirror .title{font-weight:700;}
.matches-mirror .matches-list{display:flex;flex-direction:column;gap:.6rem;}

/* Card + row */
.match-row{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--card);}
.match-row[open] .match-summary{border-bottom:1px solid var(--border);}
.card.matches-mirror:hover{transform:none;}
.match-row:hover{border-color:rgba(255,255,255,.12);box-shadow:none;}

.match-summary{
	list-style:none;
	display:grid;
	grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); /* vasen | keskiblokki | oikea */
	align-items:center;
	gap:.65rem;
	padding:.6rem 1rem;
	cursor:pointer;
	transition: background 0.15s;
}

/* Vasen ja oikea asettuvat reunoihin, keskiblokki on aina keskellä */
.match-summary .side-left{
	text-align:left;
	justify-self:start;
}
/* oikea tiimipalsta: logo ihan kortin reunaan */
.match-summary .side-right{
	margin-left:auto;
	text-align:right;
	justify-content:flex-end;
}
/* järjestys: nimi ennen logoa, jotta logo päätyy ihan oikeaan reunaan */
.match-summary .side-right .logo{
	order: 2;
	margin-left:.55rem;
}

.match-summary .center{
	justify-self:center;
	text-align:center;
	display:flex; flex-direction:column; align-items:center; gap:.25rem;
	min-width:160px;
}

.match-summary::-webkit-details-marker{display:none;}
.match-summary .team{display:flex;align-items:center;gap:.55rem;min-width:0;}
.match-summary .team .logo{width:100px;height:100px;border-radius:8px;object-fit:contain;box-shadow:0 0 0 1px rgba(255,255,255,0.06) inset;}
.match-summary .team .name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.match-summary .team .name a{color:inherit;text-decoration:none;transition:color 0.2s;}
.match-summary .team .name a:hover{color:var(--accent);}

.match-summary .meta{font-size:.9rem;color:var(--muted);display:flex;align-items:center;gap:.35rem;}
.match-summary .scoreline{display:flex;align-items:center;gap:.5rem;font-size:1.1rem;}
.match-summary .maps-score{font-weight:800;letter-spacing:.5px;min-width:2.6ch;text-align:center;}
.result-row{display:flex;gap:.5rem;justify-content:center;margin:2px 0;}

/* Summary-row chips ONLY (kept small) */
.match-summary .chip{
	padding:.12rem .5rem;
	border:1px solid transparent;
	border-radius:999px;
	font-size:.82rem;
	line-height:1.2;
	letter-spacing:.2px;
	white-space:nowrap;
}

.match-summary::after {
	content: "\25b8"; /* oikealle osoittava kolmio */
	font-size: 1.1em;
	color: var(--muted);
	margin-left: .5rem;
	transition: transform .2s;
}
.match-row[open] .match-summary::after {
	transform: rotate(90deg); /* kääntyy alas */
}

.match-summary:hover {
	background: rgba(58,163,255,0.08);
}

.result-win{background:rgba(40,160,90,.16);border-color:rgba(40,160,90,.42);color:#64e09f;}
.result-loss{background:rgba(210,60,60,.14);border-color:rgba(210,60,60,.38);color:#ff8b8b;}
.result-draw{background:rgba(160,160,160,.14);border-color:rgba(160,160,160,.35);color:#dadada;}
.result-upcoming{background:rgba(130,130,130,.12);border-color:rgba(130,130,130,.32);color:#cfcfcf;}
.stage-chip{padding:.05rem .45rem;border:1px solid rgba(255,255,255,.12);border-radius:999px;font-size:.78rem;color:var(--muted);}

/* Details area */
.match-details{
	padding:.65rem .85rem;
	display:flex;
	flex-direction:column;
	gap:.35rem;
}

/* Map-side chip stacks (yksi yhtenäinen määrittely) */
.matches-mirror .map-side{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:flex-start;
	gap:.35rem;
	min-width:0;
}
/* Kaikki karttarivin chipit samalla koolla */
.matches-mirror .map-side .chip{
	padding:.44rem 1.0rem !important;
	font-size:1.06rem !important;
	line-height:1.16 !important;
	border:1px solid var(--border);
	border-radius:999px;
	background:var(--chip-bg);
	color:var(--fg);
}
/* Kierroschippi suuremmaksi + värit */
.matches-mirror .map-side .chip.round{
	padding:.56rem 1.05rem !important;
	font-size:1.18rem !important;
	font-weight:800;
	line-height:1.05;
	border:1px solid transparent;
	border-radius:999px;
}
.matches-mirror .map-side .chip.round.win  { background:rgba(34,197,94,.18);  border-color:rgba(34,197,94,.45);  color:#66e0a3; }
.matches-mirror .map-side .chip.round.loss { background:rgba(239,68,68,.18);  border-color:rgba(239,68,68,.45);  color:#ff8a8a; }
.matches-mirror .map-side .chip.round.draw { background:rgba(160,160,160,.14); border-color:rgba(160,160,160,.35); color:#dadada; }
/* Pick aina pinon alas */
.matches-mirror .map-side .chip.pick{
	margin-top:auto;
	color:var(--accent-2);
	border-color:rgba(125,211,252,.45);
	background:rgba(58,163,255,.12);
}

/* Map row: left stack | image | right stack */
.matches-mirror .map-row{
	display:grid;
	grid-template-columns:minmax(10rem,1fr) auto minmax(10rem,1fr);
	align-items:stretch; text-align:center; gap:.8rem; padding:.5rem 0;
}
/* Viiva karttarivien väliin (ei ensimmäisen yläpuolelle) */
.matches-mirror .match-details .map-row + .map-row{
	border-top:1px dashed var(--border);
	margin-top:.5rem;
	padding-top:.75rem;
}

.matches-mirror .map-name{text-align:center;font-weight:700;}
.matches-mirror .map-img{
	display:block;margin:.35rem auto 0;width:100%;max-width:600px;height:auto;
	border-radius:8px;border:1px solid var(--border);opacity:.95;
}

/* Totals centered */
.aggregate{border-top:1px dashed var(--border);padding-top:.45rem;margin-top:.25rem;}
.aggregate .totals{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:center;}
.aggregate .label{color:var(--muted);}

/* Fixed inner width: summary + details same width */
.matches-mirror{--mirror-max:1080px;}
.matches-mirror .match-summary,
.matches-mirror .match-details{max-width:var(--mirror-max);margin:0 auto;width:100%;}



/* Collapsible Matches box */
.card.matches-mirror { padding: 0; overflow: hidden; }
.card.matches-mirror summary { list-style: none; }
.card.matches-mirror summary::-webkit-details-marker { display: none; }

.matches-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: var(--head);
	border-bottom: 1px solid transparent;
	cursor: pointer; /* whole bar clickable */
	user-select: none;
}

.card.matches-mirror[open] .matches-head {
	border-bottom: 1px solid var(--border);
}

.matches-head .head-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.matches-head .title {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.matches-head .chev {
	display: inline-block;
	transform: rotate(0deg);
	transition: transform .18s ease;
}

.card.matches-mirror.custom-expanded .matches-head .chev {
	transform: rotate(90deg);
}

/* Keep the checkbox clickable without toggling the <details> accidentally */
.matches-head .toggle-played {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: default; /* label itself not a toggle for the box */
}
.matches-head .hint {
	font-size: 12px;
	color: var(--muted);
	margin-left: 8px;
		opacity: 0.8;
}

/* Unified Card System */
/* Index page uses small grid cards; division pages should be full-width cards */
.is-index .card {
	grid-column: span 2;
}
/* Default card styles; width will be controlled per-page. */
.card {
	width: 100%;
	max-width: 100%;
	margin: 0 auto 32px auto;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow);
	padding: 0;
	overflow: hidden;
	transition: box-shadow .15s;
	box-sizing: border-box;
}

.card summary {
	list-style: none;
}

.card summary::-webkit-details-marker {
	display: none;
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--head);
	border-bottom: 1px solid transparent;
	cursor: pointer;
	user-select: none;
	font-size: 1.1em;
	text-align: center;
	position: relative;
	/* Smooth background transition */
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.card[open] .card-head {
	border-bottom: 1px solid var(--border);
}

.card-head:hover {
	background: rgba(15, 33, 63, 0.8);
}

.card-head .chev {
	position: absolute;
	left: 18px;
	display: inline-block;
	transform: rotate(0deg);
	transition: transform .18s ease;
}

.card.custom-expanded > summary > .card-head .chev {
	transform: rotate(90deg);
}

.card-head .title {
	font-weight: 600;
	letter-spacing: 0.2px;
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
}

.card-head .hint {
	position: absolute;
	right: 18px;
	font-size: 12px;
	color: var(--muted);
	opacity: 0.8;
}

.card-content {
	padding: 20px 18px 18px 18px;
	width: 100%;
	box-sizing: border-box;
}

/* Keyframe animations for collapsible content */
@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
		max-height: 0;
	}
	to {
		opacity: 1;
		transform: translateY(0);
		max-height: 2000px;
	}
}

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

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 18px 0;
	justify-content: center;
}

/* Chip variants */
.chip.small { padding: .25rem .5rem; font-size: .85rem; }
.chip.large { padding: .5rem 1rem; font-size: 1.1rem; }

.card:hover {
	transform: none;
}

/* Team sections grid */
.teams-grid {
	display: block;
	width: 100%;
	margin: 1rem 0;
	padding: 0;
}
.teams-grid .card {
	margin: 0 0 16px 0;
}
details.card {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* Division pages: force cards to span full available width */
body.is-division .teams-grid,
body.is-division .teams-grid .card,
body.is-division details.card,
body.is-division .card.team-section,
body.is-division .card.players-section,
body.is-division .card.maps-section {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.card.team-section {
	width: 100%;
	max-width: 100%; /* override global .card max-width */
	min-height: 100px;
}
.card.players-section,
.card.maps-section {
        width: 100%;
        max-width: 100%; /* override global .card max-width */
        min-height: 100px;
}



.tag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 2px 12px;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        background: rgba(58, 163, 255, 0.18);
        color: var(--fg);
        border: 1px solid rgba(58, 163, 255, 0.35);
}

.tag--banned {
        background: rgba(249, 112, 102, 0.22);
        color: var(--err);
        border-color: rgba(249, 112, 102, 0.5);
        box-shadow: inset 0 0 12px rgba(249, 112, 102, 0.15);
}





.stat-card--warning {
        border-color: rgba(249, 112, 102, 0.45);
        background: linear-gradient(135deg, rgba(60, 20, 28, 0.8), rgba(32, 12, 18, 0.9));
}

.stat-card--warning .stat-icon,
.stat-card--warning .stat-value {
        color: var(--err);
}

/* --- Home View Enhancements --- */
.home-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.home-toolbar .toolbar-label {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.home-toolbar .toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.season-progress-grid {
    display: grid;
    gap: 16px;
}

.progress-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

.progress-card .progress-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.progress-sub-bars {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.progress-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-comparison .card-content {
    padding-top: 24px;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.stat-pill--ok {
    color: var(--ok);
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.15);
}

.stat-pill--err {
    color: var(--err);
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.team-comparison-team {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-comparison-team .team-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(90, 145, 255, 0.22), rgba(60, 110, 255, 0.12));
    border: 1px solid rgba(120, 170, 255, 0.45);
    color: rgba(215, 230, 255, 0.95);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(50, 120, 255, 0.25);
}

.team-comparison-team .team-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--table-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(5, 9, 20, 0.35);
}

.team-comparison-team .team-name {
    font-weight: 600;
    color: var(--fg);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 320px;
}

.split-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.split-labels .wins {
    color: var(--ok);
}

.split-labels .losses {
    color: var(--err);
}

.team-comparison-table .table-sortable {
    min-width: 720px;
}

.team-comparison-table col.col-bar {
    width: auto !important;
}

.team-comparison-table td.col-bar,
.team-comparison-table th.col-bar {
    width: auto;
}

.team-comparison-table .col-bar {
    min-width: 220px;
}

.team-comparison-table .table-sortable tbody tr {
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.team-comparison-table .table-sortable tbody tr:nth-child(odd) {
    background: rgba(6, 10, 24, 0.35);
}

.team-comparison-table .table-sortable tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.team-comparison-table .table-sortable tbody tr:hover {
    background: rgba(26, 45, 86, 0.75);
    box-shadow: inset 0 0 0 1px rgba(90, 145, 255, 0.35);
}

.team-comparison-table .table-sortable tbody td {
    vertical-align: middle;
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-comparison-table .table-sortable thead th {
    padding: 0.9rem;
}

.team-comparison-table .split-labels {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.team-ticker {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(90deg, rgba(18,25,50,0.9), rgba(12,18,38,0.9));
    padding: 12px 0;
    position: relative;
}

.team-ticker-track {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.team-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    color: var(--muted);
    opacity: 0.8;
}

.team-ticker-item img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--table-bg);
    border: 1px solid rgba(255,255,255,0.05);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Division view --- */
.division-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.division-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.division-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.header-text h1 {
    font-size: 2.1rem;
    margin-bottom: 6px;
}

.header-text .subtitle {
    font-size: 0.95rem;
}

.header-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.progress-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(58,163,255,0.12);
    border: 1px solid rgba(58,163,255,0.3);
    color: var(--accent-2);
    font-size: 0.9rem;
}

.matches-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.match-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.match-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    min-width: 140px;
}

.match-scoreline {
    display: flex;
    align-items: center;
    gap: 18px;
}

.match-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.match-team .team-name {
    font-weight: 600;
}

.match-team .team-score {
    font-size: 1.1rem;
}

.match-versus {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge.win {
    background: rgba(57, 217, 138, 0.18);
    color: var(--ok);
    border-color: rgba(57, 217, 138, 0.45);
}

.badge.loss {
    background: rgba(249, 112, 102, 0.16);
    color: var(--err);
    border-color: rgba(249, 112, 102, 0.45);
}

.badge.draw {
    background: rgba(125, 211, 252, 0.16);
    color: var(--accent-2);
    border-color: rgba(125, 211, 252, 0.45);
}

/* --- Team detail --- */
.team-detail {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.team-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.team-card-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.team-logo-large {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--table-bg);
    border: 1px solid rgba(255,255,255,0.06);
}

.team-meta h1 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.team-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.team-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(58,163,255,0.14);
    border: 1px solid rgba(58,163,255,0.3);
    color: var(--accent-2);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-season-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-season-select label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.team-season-select select {
    background: var(--table-bg);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--fg);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.team-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-summary .card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.team-stat-item {
    background: var(--table-bg);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}

.team-stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.team-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.team-players .table-container {
    overflow-x: auto;
}

.team-maps .table-container {
    margin-top: 12px;
}

.matches-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.match-item .match-score {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.match-item .score {
    font-size: 1.05rem;
}

.match-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.team-detail-page .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.team-detail-page .page-header h1 {
    font-size: 1.6rem;
}

@media (max-width: 960px) {
    .team-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .match-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .match-scoreline {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .player-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .player-hero__identity {
        flex-direction: column;
        align-items: flex-start;
    }
    .player-hero__actions {
        justify-content: flex-start;
    }
    .player-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .player-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .player-mode-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .player-season-pills {
        flex-direction: column;
        align-items: stretch;
    }
}
.partner-callout:hover {
    border-color: rgba(140, 180, 255, 0.5);
    box-shadow: 0 32px 56px rgba(8, 14, 32, 0.55), 0 0 24px rgba(98, 148, 255, 0.35);
}

/* ---- Season Explorer ---- */
.season-explorer {
    width: 100%;
}

.season-explorer.glass-card {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(1rem, 2.5vw, 2rem);
}

.season-explorer__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.season-explorer__section {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.25vw, 1rem);
    padding-top: clamp(0.75rem, 1.5vw, 1.1rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.season-explorer__section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.season-explorer__selection {
    gap: clamp(0.5rem, 1vw, 0.85rem);
}

.season-selector--flat {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.season-selector--flat::after {
    display: none;
}

.season-selector--flat .season-selector__header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}

.season-selector--flat .season-selector__pill-bar {
    padding: 0.25rem 0;
}

.season-selector--flat .season-selector__pills {
    border-color: rgba(120, 170, 255, 0.35);
    background: rgba(6, 10, 24, 0.92);
    padding: 0.4rem 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.season-selector--flat .season-pill {
    min-width: 110px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.season-selector--flat .season-pill--active {
    box-shadow: 0 18px 32px rgba(32, 92, 210, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.season-explorer__summary {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.season-explorer__summary-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.season-explorer__summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.season-explorer__summary-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

/* New Kausikooste Card Layout */
.season-kausikooste,
.summary-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.kausikooste-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(116, 152, 255, 0.2);
    background: rgba(8, 14, 32, 0.95);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 20px rgba(5, 9, 25, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
}

.kausikooste-card:hover {
    border-color: rgba(116, 152, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 28px rgba(5, 9, 25, 0.5),
        0 0 20px rgba(90, 150, 255, 0.15);
}

.kausikooste-card__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.kausikooste-card__value {
    font-size: 2.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.kausikooste-card__label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(200, 214, 242, 0.75);
    text-align: center;
}

.kausikooste-card__subtitle {
    font-size: 0.75rem;
    color: rgba(185, 200, 235, 0.75);
    text-align: center;
}

/* Old metrics styles (kept for backwards compatibility) */
.season-explorer__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.season-explorer__metric {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(116, 152, 255, 0.18);
    background: rgba(8, 14, 32, 0.85);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 80px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.season-explorer__metric-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(190, 205, 240, 0.7);
}

.season-explorer__metric-value {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 700;
    color: #fff;
}

.season-explorer__progress {
    width: 100%;
    min-width: 0;
}

/* Unified Control Bar - 2 Column Layout */
.season-explorer__control-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: stretch;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(120, 160, 255, 0.12);
    box-shadow: 0 18px 45px rgba(5, 12, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 0.85rem;
    position: relative;
}

.season-explorer__control-bar--disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* LEFT SECTION: Filters + Reset + Search */
.control-bar__left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.control-bar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.control-bar__search {
    width: 100%;
    max-width: 300px;
}

.control-bar__input {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(90, 130, 205, 0.35);
    background: rgba(12, 18, 36, 0.85);
    color: #f1f4ff;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.control-bar__input:focus {
    outline: none;
    border-color: rgba(120, 170, 255, 0.85);
    box-shadow: 0 0 0 2px rgba(90, 140, 255, 0.25);
}

.control-bar__input::placeholder {
    color: rgba(180, 195, 230, 0.5);
}

/* RIGHT SECTION: Three Circular Progress Indicators */
.control-bar__right {
    display: flex;
    gap: 0.85rem;
    align-items: stretch;
    justify-content: flex-end;
}

/* Progress Circle Cards */
.progress-circle-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(6, 10, 22, 0.95);
    border: 1px solid rgba(116, 152, 255, 0.22);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 28px rgba(4, 8, 18, 0.65);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-circle-card:hover {
    border-color: rgba(116, 152, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 34px rgba(6, 10, 22, 0.55),
        0 0 24px rgba(90, 150, 255, 0.18);
}

/* Compact circular progress for control bar */
.control-bar__right .circular-progress {
    --circle-size: 160px;
}

.control-bar__right .circular-progress__title {
    font-size: 0.85rem;
    font-weight: 600;
}

.control-bar__right .circular-progress__subtitle {
    font-size: 0.72rem;
}

.control-bar__right .circular-progress__percent {
    font-size: 1.6rem;
    font-weight: 700;
}

.control-bar__right .circular-progress__played {
    font-size: 0.72rem;
}

.control-bar__right .circular-progress__label .circular-progress__remaining {
    font-size: 0.65rem;
}

/* Legacy filters styles (kept for compatibility) */
.season-explorer__filters {
    gap: 1.25rem;
}

.season-explorer__filters-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.season-explorer__label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(175, 195, 230, 0.75);
}

.season-explorer__toolbar-meta {
    margin-top: 0.35rem;
    color: rgba(205, 215, 245, 0.85);
}

.season-explorer__toolbar-hint {
    color: rgba(205, 215, 245, 0.6);
    font-size: 0.9rem;
}

.season-explorer__filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr) minmax(110px, auto);
    gap: 1.25rem;
    align-items: end;
}

.season-explorer__filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    grid-column: span 2;
}

.season-explorer__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.season-explorer__search {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
}

.season-explorer__search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(90, 120, 190, 0.45);
    background: rgba(12, 18, 36, 0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.season-explorer__search-field:focus-within {
    border-color: rgba(120, 170, 255, 0.85);
    box-shadow: 0 0 0 2px rgba(90, 140, 255, 0.25);
}

.season-explorer__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f1f4ff;
    font-size: 0.95rem;
}

.season-explorer__input:focus-visible {
    outline: none;
}

.season-explorer__filters--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.season-explorer__filters .season-filter-reset {
    align-self: stretch;
    justify-self: flex-end;
    min-height: 48px;
    padding: 0.65rem 1.5rem;
}

.season-explorer__divisions {
    padding-top: clamp(0.5rem, 1.25vw, 1rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.season-explorer__divisions-list .division-hub {
    margin-top: 0.75rem;
}

.season-filter-reset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .season-explorer.glass-card {
        padding: 1.25rem;
    }

    .season-explorer__summary-header {
        flex-direction: column;
    }

    .season-explorer__summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .season-kausikooste,
    .summary-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .kausikooste-card {
        padding: 1.25rem 0.75rem;
    }
    
    .kausikooste-card__icon {
        font-size: 1.75rem;
    }
    
    .kausikooste-card__value {
        font-size: 1.85rem;
    }

    .season-explorer__metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .season-explorer__filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .season-explorer__filter-group {
        grid-column: span 1;
    }

    .season-explorer__filters .season-filter-reset {
        width: 100%;
        justify-self: stretch;
    }
    
    /* Control bar responsive - stack on mobile */
    .season-explorer__control-bar {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.5rem;
    }
    
    .control-bar__left {
        align-items: stretch;
    }
    
    .control-bar__search {
        max-width: 100%;
    }
    
    .control-bar__right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }
    
    .progress-circle-card {
        padding: 1rem;
    }
    
    .control-bar__right .circular-progress {
        --circle-size: 130px;
    }
    
    .control-bar__right .circular-progress__percent {
        font-size: 1.4rem;
    }

    .control-bar__right .circular-progress__played {
        font-size: 0.68rem;
    }

    .control-bar__right .circular-progress__label .circular-progress__remaining {
        font-size: 0.6rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .season-explorer__control-bar {
        padding: 1.25rem 1.5rem;
        gap: 1.5rem;
    }
    
    .control-bar__right {
        gap: 0.75rem;
    }
    
    .progress-circle-card {
        padding: 1rem;
    }
    
    .control-bar__right .circular-progress {
        --circle-size: 130px;
    }
    
    .control-bar__right .circular-progress__percent {
        font-size: 1.4rem;
    }
    
    .control-bar__right .circular-progress__title {
        font-size: 0.72rem;
    }
    
    .control-bar__right .circular-progress__subtitle {
        font-size: 0.62rem;
    }

    .control-bar__right .circular-progress__played {
        font-size: 0.68rem;
    }

    .control-bar__right .circular-progress__label .circular-progress__remaining {
        font-size: 0.6rem;
    }
    
    .control-bar__search {
        max-width: 280px;
    }
}

/* ---- Season dashboard ---- */
.season-dashboard {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.season-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
}

.season-progress-card {
    border-radius: var(--radius);
    border: 1px solid rgba(116, 152, 255, 0.18);
    background: rgba(8, 14, 32, 0.9);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 35px rgba(5, 9, 25, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-progress-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.season-progress-card__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: rgba(180, 198, 235, 0.8);
}

.season-progress-card__value {
    font-weight: 700;
    font-size: 1.05rem;
}

.season-progress-card__hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(200, 214, 242, 0.7);
}

/* Circular Progress Indicators */
.circular-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: var(--animation-delay, 0s);
}

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

@keyframes breathingGlow {
    0%, 100% {
        filter: drop-shadow(0 0 12px var(--glow-color)) 
                drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px var(--glow-color)) 
                drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
        transform: scale(1.02);
    }
}

.circular-progress__circle-container {
    position: relative;
    width: var(--circle-size, 120px);
    height: var(--circle-size, 120px);
}

.circular-progress__svg {
    transform: rotate(-90deg);
    animation: breathingGlow 3s ease-in-out infinite;
}

.circular-progress__ring {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.circular-progress__ring--bg {
    stroke: rgba(30, 40, 70, 0.6);
}

.circular-progress__ring--progress {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Color variants */
.circular-progress--regular .circular-progress__ring--progress {
    stroke: url(#gradient-regular);
}

.circular-progress--playoff .circular-progress__ring--progress {
    stroke: url(#gradient-playoff);
}

.circular-progress--overall .circular-progress__ring--progress {
    stroke: url(#gradient-overall);
}

/* Fallback solid colors if gradients not defined */
.circular-progress--regular .circular-progress__ring--progress {
    stroke: rgba(90, 150, 255, 0.9);
}

.circular-progress--playoff .circular-progress__ring--progress {
    stroke: rgba(150, 100, 255, 0.9);
}

.circular-progress--overall .circular-progress__ring--progress {
    stroke: rgba(100, 220, 170, 0.9);
}

/* Glow effect */
.circular-progress--regular .circular-progress__svg {
    --glow-color: rgba(90, 150, 255, 0.5);
}

.circular-progress--playoff .circular-progress__svg {
    --glow-color: rgba(150, 100, 255, 0.5);
}

.circular-progress--overall .circular-progress__svg {
    --glow-color: rgba(100, 220, 170, 0.5);
}

.circular-progress__label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    pointer-events: none;
    text-align: center;
}

.circular-progress__percent {
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.circular-progress__played {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(248, 251, 255, 0.95);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.circular-progress__label .circular-progress__remaining {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    color: rgba(235, 244, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.circular-progress__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.circular-progress__title {
    --title-accent-font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    --title-accent-font-weight: 600;
    --title-accent-letter-spacing: 0.08em;
    --title-accent-underline-scale: 0.45;
    --title-accent-underline-gap: 0.2rem;
    --title-accent-underline-thickness: 2px;
    --title-accent-underline-opacity: 0.45;
    --title-accent-underline-max: 8rem;
    color: rgba(238, 244, 255, 0.95);
}

.circular-progress__subtitle {
    font-size: 0.8rem;
    color: rgba(180, 195, 230, 0.7);
}

.circular-progress__remaining {
    font-size: 0.72rem;
    color: rgba(200, 215, 255, 0.85);
}

/* Container for circular progress indicators */
.circular-progress-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(116, 152, 255, 0.18);
    background: rgba(8, 14, 32, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 35px rgba(5, 9, 25, 0.45);
    justify-items: center;
}

@media (max-width: 992px) {
    .circular-progress-group {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }
}

.season-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-skeleton__header {
    height: 140px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 20, 35, 0.8), rgba(12, 16, 28, 0.7));
    position: relative;
    overflow: hidden;
}

.season-skeleton__header::after,
.season-skeleton__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: skeleton-shine 1.6s infinite;
}

.season-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.season-skeleton__card {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(12, 16, 28, 0.85), rgba(10, 14, 24, 0.75));
    position: relative;
    overflow: hidden;
}

.season-empty-state {
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-empty-state p {
    margin: 0;
    color: rgba(205, 215, 245, 0.85);
}

.season-control-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.25rem);
    border-radius: var(--radius);
    background: rgba(12, 16, 32, 0.9);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur));
}

.season-control-bar__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.season-control-bar__select,
.season-control-bar__input {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 9, 20, 0.8);
    color: var(--fg);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}

.season-control-bar__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.season-control-bar__select:focus-visible,
.season-control-bar__input:focus-visible {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.season-control-bar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.season-control-bar__search {
    display: flex;
    flex-direction: column;
}

.season-summary-row {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.season-summary-row__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.season-summary-row__chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.kpi-chip {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    background: rgba(8, 12, 26, 0.85);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kpi-chip__label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.kpi-chip__value {
    font-size: 1.35rem;
    font-weight: 700;
}

.season-summary-row__progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.season-summary-row__progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.season-summary-row__progress-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}

.season-summary-row__progress-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.season-summary-row__progress-bar span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    color: var(--fg);
}

.season-summary-row__progress-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--state-active), #7bc5ff);
    transform-origin: left center;
    transform: scaleX(calc(var(--progress, 0) / 100));
}

.divisions-section__hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.division-hub {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.division-tier {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(10, 15, 32, 0.8);
}

.division-tier__toggle {
    width: 100%;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: 2fr 2fr auto;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--fg);
    text-align: left;
    cursor: pointer;
}

.division-tier__title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.division-tier__label {
    font-weight: 700;
    font-size: 1.05rem;
}

.division-tier__range {
    color: var(--muted);
    font-size: 0.85rem;
}

.division-tier__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.division-tier__progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.division-tier__progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--state-finished), #8cf1cf);
}

.division-tier__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.division-tier__chevron svg {
    width: 20px;
    height: 20px;
    fill: var(--muted);
}

.division-tier__chevron.is-open {
    transform: rotate(180deg);
}

.division-tier__content {
    padding: 0 1.25rem 1.25rem;
}

.division-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.division-hub-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 1.2rem;
    background: rgba(12, 16, 32, 0.85);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.division-hub__empty {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: var(--muted);
}

.accordion-enter-active,
.accordion-leave-active {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-enter-from,
.accordion-leave-to {
    max-height: 0;
    opacity: 0;
}

@media (max-width: 768px) {
    .season-control-bar {
        grid-template-columns: 1fr;
    }

    .division-tier__toggle {
        grid-template-columns: 1fr;
    }

    .division-hub__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PAPPALIIGA STATS - UI IMPROVEMENTS
   Enhanced styles for better readability, hierarchy, and UX
   ============================================================ */

/* ============================================================
   1. ENHANCED COLOR PALETTE & CONTRAST
   ============================================================ */
:root {
    /* Refined dark theme */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #1C2128;
    
    /* Softer white for better legibility */
    --text-primary: #E6E6E6;
    --text-secondary: #B3B3B3;
    --text-muted: #8B949E;
    
    /* Refined accent colors with less neon intensity */
    --accent-blue: #4A9EFF;
    --accent-blue-soft: rgba(74, 158, 255, 0.15);
    --accent-cyan: #58D5E0;
    
    /* Status colors - controlled intensity */
    --color-positive: #3FB950;
    --color-negative: #F85149;
    --color-neutral: #D29922;
    --color-info: #58A6FF;
    
    /* Progress bar colors - softer palette */
    --progress-win: rgba(63, 185, 80, 0.75);
    --progress-loss: rgba(248, 81, 73, 0.65);
    --progress-bg: rgba(48, 54, 61, 0.4);
    
    /* Enhanced shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Focus states */
    --focus-ring: 0 0 0 3px rgba(74, 158, 255, 0.3);
}

/* ---- Stat Card Consistency ---- */
.stat-card {
    background: linear-gradient(135deg, #1C2128, #161B22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(74, 158, 255, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 158, 255, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-positive,
.stat-value.positive {
    color: var(--color-positive) !important;
}

.stat-negative,
.stat-value.negative {
    color: var(--color-negative) !important;
}

.stat-neutral,
.stat-value.neutral {
    color: var(--color-neutral) !important;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Team Comparison Table Enhancements ---- */
.team-comparison-chart__row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(28, 32, 40, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.team-comparison-chart__row:hover {
    background: rgba(74, 158, 255, 0.12);
    border-color: rgba(74, 158, 255, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.team-comparison-chart__row:nth-child(odd) {
    background: rgba(28, 32, 40, 0.5);
}

.team-comparison-chart__row:nth-child(even) {
    background: rgba(22, 27, 34, 0.5);
}

.team-comparison-chart__row:nth-child(odd):hover {
    background: rgba(74, 158, 255, 0.14);
}

.team-comparison-chart__row:nth-child(even):hover {
    background: rgba(74, 158, 255, 0.12);
}

.team-comparison-chart__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #161B22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.team-comparison-chart__bar {
    position: relative;
    height: 20px;
    border-radius: 10px;
    background: rgba(48, 54, 61, 0.4);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-comparison-chart__segment {
    position: absolute;
    top: 0;
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-comparison-chart__segment--wins {
    left: 0;
    background: linear-gradient(90deg, var(--progress-win), rgba(63, 185, 80, 0.85));
}

.team-comparison-chart__segment--losses {
    right: 0;
    background: linear-gradient(90deg, rgba(248, 81, 73, 0.85), var(--progress-loss));
}

/* ---- Table Improvements ---- */
.table-sortable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(13, 17, 23, 0.9);
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
}

.table-sortable thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 16px 14px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(28, 32, 40, 0.95));
    color: var(--text-secondary);
    font-weight: 700;
}

.table-sortable thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 16px 14px;
}

.table-sortable thead th.sortable:hover {
    color: var(--accent-blue);
    background: rgba(74, 158, 255, 0.08);
}

.table-sortable thead th.is-default {
    box-shadow: inset 0 -2px 0 rgba(120, 150, 230, 0.25);
}

.table-sortable thead th.sorted {
    color: var(--accent-cyan);
    background: rgba(74, 158, 255, 0.12);
    font-weight: 700;
}

.table-sortable thead th .sort-indicator {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.85em;
    color: var(--accent-cyan);
    font-weight: bold;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.table-sortable thead th.sortable .th-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
}

.table-sortable thead th.sortable:hover .sort-indicator {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.table-sortable tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.table-sortable tbody tr:nth-child(odd) {
    background: rgba(22, 27, 34, 0.6);
}

.table-sortable tbody tr:nth-child(even) {
    background: rgba(28, 32, 40, 0.6);
}

.table-sortable tbody tr:hover {
    background: rgba(74, 158, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(74, 158, 255, 0.3);
    cursor: pointer;
}

.scout-table .table-sortable tbody tr:hover {
    background: inherit;
    box-shadow: none;
    cursor: default;
}

.scout-table .table-sortable th:first-child,
.scout-table .table-sortable td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(13, 17, 23, 0.98);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.scout-table .table-sortable th:first-child {
    z-index: 3;
}

.scout-table .table-sortable th:nth-child(4),
.scout-table .table-sortable td:nth-child(4),
.scout-table .table-sortable th:nth-child(7),
.scout-table .table-sortable td:nth-child(7),
.scout-table .table-sortable th:nth-child(10),
.scout-table .table-sortable td:nth-child(10),
.scout-table .table-sortable th:nth-child(14),
.scout-table .table-sortable td:nth-child(14) {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.scout-table .table-sortable th:nth-child(11),
.scout-table .table-sortable th:nth-child(12),
.scout-table .table-sortable th:nth-child(13),
.scout-table .table-sortable th:nth-child(14),
.scout-table .table-sortable td:nth-child(11),
.scout-table .table-sortable td:nth-child(12),
.scout-table .table-sortable td:nth-child(13),
.scout-table .table-sortable td:nth-child(14) {
    background: rgba(12, 16, 26, 0.9);
}

.table-sortable .col-winrate,
.table-sortable .col-kd,
.table-sortable .col-adr,
.table-sortable [data-key="wr"],
.table-sortable [data-key="kd"],
.table-sortable [data-key="adr"] {
    font-weight: 700;
    color: var(--accent-blue);
}

.table-sortable .col-pick,
.table-sortable .col-ban,
.table-sortable .col-played,
.table-sortable .col-picks,
.table-sortable .col-opp-picks,
.table-sortable .col-matches,
.table-sortable .col-wl,
.table-sortable .col-winrate,
.table-sortable .col-winrate-own,
.table-sortable .col-winrate-opp,
.table-sortable .col-adr,
.table-sortable .col-kd,
.table-sortable .col-rd,
.table-sortable .col-ban1,
.table-sortable .col-ban2,
.table-sortable .col-opp-ban,
.table-sortable .col-ban-total,
.table-sortable .col-decov {
    text-align: right;
}

.col-map-name {
    font-weight: 600;
    color: var(--text-primary);
}

.scout-table .col-map-name {
    font-weight: 700;
}

.btn-reset-sort {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(12, 18, 32, 0.4);
    color: var(--muted);
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-reset-sort:hover {
    color: #e2e8ff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(18, 24, 40, 0.6);
}

/* ---- Hero Card Enhancements ---- */
.sankari-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(28, 32, 40, 0.9), rgba(22, 27, 34, 0.95));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sankari-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.sankari-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 24px rgba(74, 158, 255, 0.25);
}

.sankari-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sankari-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    letter-spacing: -0.02em;
}

.sankari-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sankari-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sankari-card__category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(74, 158, 255, 0.15);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.sankari-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes barFill {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.team-comparison-chart__segment--wins {
    animation: barFill 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.team-comparison-chart__segment--losses {
    animation: barFill 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
    transform-origin: right;
}

.progress-fill {
    animation: barFill 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* ---- Heading Hierarchy ---- */
.division-section__heading h2,
.section-title,
.panel-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.division-section__heading {
    margin-bottom: 24px;
}

.division-section__heading h2.title-accent.titleUnderlineSection {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

.division-section__heading h3,
.subsection-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 32px;
}

.division-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.division-section:last-child {
    border-bottom: none;
}

.division-section + .division-section {
    margin-top: 48px;
}

/* ---- Focus States & Accessibility ---- */
.stat-card:focus,
.sankari-card:focus,
.team-comparison-chart__row:focus,
.table-sortable tbody tr:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.3);
}

button:focus,
a:focus,
.sortable:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.3);
}

/* ---- Team Page Styles ---- */
.team-page-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-900) 0%, var(--bg-800) 50%, var(--bg-900) 100%);
}

.team-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.team-hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    margin-bottom: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur));
    animation: fadeIn 0.4s ease-out;
}

.team-hero__logo {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.team-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-hero__content {
    flex: 1;
    min-width: 0;
}

.team-hero__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #E6E6E6;
}

.team-hero__season {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.team-season-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.season-pill {
    padding: 0.5rem 1rem;
    background: rgba(58, 163, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: #E6E6E6;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.season-pill:hover {
    background: rgba(58, 163, 255, 0.2);
    transform: translateY(-2px);
}

.season-pill--active {
    background: var(--accent);
    color: var(--bg-900);
    box-shadow: 0 4px 12px rgba(58, 163, 255, 0.3);
}

.team-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    padding: 0 0 1rem 0;
}

.team-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.team-tab:hover {
    color: #E6E6E6;
}

.team-tab--active {
    color: var(--accent);
}

.team-tab--active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.team-section {
    animation: fadeIn 0.3s ease-out;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #E6E6E6;
    display: inline-block;
}

.titleUnderline {
    --title-underline-gradient: linear-gradient(90deg, rgba(50, 130, 255, 0.15), rgba(125, 211, 252, 0.8), rgba(50, 130, 255, 0.15));
    --title-underline-min: 4rem;
    --title-underline-max: 32rem;
    --title-underline-thickness: 4px;
}

.stat-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(var(--glass-blur));
    text-align: center;
    transition: all 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(58, 163, 255, 0.15);
}

.stat-box__label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-box__value {
    font-size: 2rem;
    font-weight: 700;
    color: #E6E6E6;
}

.stat-box__caption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.maps-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.map-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.2s ease;
}

.map-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.map-card h3 {
    color: #E6E6E6;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.map-card__stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.map-card__stats > div:first-child {
    color: #E6E6E6;
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.table-wrapper--scroll {
    position: relative;
}

.table-wrapper--scroll.scroll-shadow::before,
.table-wrapper--scroll.scroll-shadow::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 4;
}

.table-wrapper--scroll.scroll-shadow::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 16, 30, 0.9), rgba(10, 16, 30, 0));
}

.table-wrapper--scroll.scroll-shadow::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10, 16, 30, 0.9), rgba(10, 16, 30, 0));
}

.table-wrapper--scroll.scroll-shadow-left::before {
    opacity: 1;
}

.table-wrapper--scroll.scroll-shadow-right::after {
    opacity: 1;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--table-bg);
}

.table-header {
    background: var(--head);
    padding: 1rem 0.75rem;
    text-align: left;
    color: #E6E6E6;
    font-weight: 700;
    border-bottom: 2px solid var(--border-strong);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.table-header:hover {
    background: rgba(58, 163, 255, 0.1);
}

.table-row {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s ease;
}

.table-row:hover {
    background: rgba(58, 163, 255, 0.05);
}

.table-cell {
    padding: 0.75rem;
    color: #E6E6E6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-cell.numeric {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.match-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(var(--glass-blur));
    transition: all 0.2s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.match-card--win {
    border-color: rgba(57, 217, 138, 0.5);
}

.match-card--loss {
    border-color: rgba(249, 112, 102, 0.5);
}

.match-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.match-date {
    font-weight: 600;
}

.match-result {
    font-weight: 700;
    color: #E6E6E6;
}

.match-card__teams {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #E6E6E6;
}

.vs {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.team-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.team-avatar--xs {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    color: #E6E6E6;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--bg-900);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 163, 255, 0.3);
}

.btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

@keyframes titleUnderlineShimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ---- Empty State Styling ---- */
.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 2rem;
}

.empty-state-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(var(--glass-blur));
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    animation: fadeIn 0.3s ease;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #E6E6E6;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.empty-state-container.compact {
    min-height: 160px;
    padding: 1rem;
}

/* ---- Team page enhancements ---- */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.section-title {
    display: block;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.scout-view {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.scout-panel {
    background: linear-gradient(145deg, rgba(10, 16, 30, 0.95), rgba(12, 20, 38, 0.85));
    border: 1px solid rgba(80, 120, 190, 0.18);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.scout-performance-radar {
    max-width: 500px;
}

.radar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    min-height: 280px;
}

.mono-num {
    font-family: "IBM Plex Mono", "JetBrains Mono", "Fira Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    color: #e8eefc;
}

.mono-muted {
    color: rgba(232, 238, 252, 0.55);
}

.scout-snapshot-tier {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.scout-snapshot-tier--secondary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scout-snapshot-item {
    flex: 1;
    min-width: 170px;
    padding-right: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.scout-snapshot-item:last-child {
    border-right: none;
    padding-right: 0;
}

.scout-snapshot-item--secondary {
    min-width: 150px;
}

.snapshot-label {
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
    font-weight: 600;
}

.table-group-header th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 10px 12px;
    background: rgba(16, 20, 30, 0.85);
    color: var(--muted);
    font-weight: 700;
}

.table-group-header--collapsible {
    cursor: pointer;
    user-select: none;
}

.table-group-header--collapsible:hover {
    background: rgba(30, 40, 60, 0.9);
}

.table-group-header--collapsed {
    opacity: 0.7;
}

.group-collapse-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    width: 0.6em;
}

.group-label-content {
    display: flex;
    align-items: center;
}

.table-group-header .group-divider {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.table-group-header .group-veto {
    background: rgba(12, 16, 26, 0.9);
}

.table-group-header .group-results,
.table-group-header .group-performance,
.table-group-header .group-usage,
.table-group-header .group-combat,
.table-group-header .group-utility,
.table-group-header .group-multikill,
.table-group-header .group-weapons {
    background: rgba(20, 26, 38, 0.6);
}

.table-sortable thead th .default-sort-label {
    margin-left: 6px;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(120, 150, 230, 0.15);
    color: rgba(205, 220, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.snapshot-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f5f7ff;
    margin: 0.25rem 0;
    text-shadow: 0 0 10px rgba(80, 120, 200, 0.18);
}

.scout-snapshot-item--secondary .snapshot-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e6ecff;
    text-shadow: none;
}

.performance-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.performance-badge--positive {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.performance-badge--negative {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.snapshot-sub {
    color: var(--muted);
    font-size: 0.85rem;
}

.scout-snapshot-extra {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.snapshot-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.snapshot-mini__label {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.snapshot-mini__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #eef3ff;
}

.snapshot-mini__sub {
    color: var(--muted);
    font-size: 0.8rem;
}


.veto-heatmap-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.veto-heatmap-legend--detailed {
    align-items: center;
}

.veto-heatmap-legend--inline {
    margin-bottom: 0;
    gap: 0.4rem;
    max-width: 520px;
}

.veto-heatmap-legend--inline .veto-legend-item {
    font-size: 0.72rem;
}

.veto-heatmap-legend--section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(80, 120, 190, 0.18);
}

.veto-legend-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.veto-legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.veto-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.veto-legend-label {
    color: var(--muted);
    font-weight: 600;
}

.veto-heatmap {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.veto-heatmap__header,
.veto-heatmap__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.veto-heatmap__corner {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.veto-heatmap__cols,
.veto-heatmap__cells {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 40px;
    gap: 10px;
    align-items: center;
}

.veto-heatmap__col {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: left;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
}

.veto-heatmap__col-label {
    display: inline-block;
}

.veto-heatmap__col--divider {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.veto-heatmap__row-label {
    font-weight: 600;
    color: #e2e8ff;
    font-size: 0.9rem;
}

.veto-heatmap__cell {
    width: 40px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1120;
}

.veto-heatmap__cell--divider {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.veto-legend-cell {
    width: 36px;
    height: 32px;
}

.veto-heatmap__cell--team-pick {
    background: rgba(70, 210, 130, 0.75);
    border-color: rgba(70, 210, 130, 0.9);
}

.veto-heatmap__cell--opp-pick {
    background: rgba(32, 120, 70, 0.75);
    border-color: rgba(32, 120, 70, 0.85);
}

.veto-heatmap__cell--team-ban1 {
    background: rgba(255, 85, 76, 0.78);
    border-color: rgba(255, 85, 76, 0.9);
}

.veto-heatmap__cell--team-ban2 {
    background: rgba(240, 130, 120, 0.7);
    border-color: rgba(240, 130, 120, 0.9);
}

.veto-heatmap__cell--opp-ban {
    background: rgba(140, 30, 25, 0.8);
    border-color: rgba(140, 30, 25, 0.9);
}

.veto-heatmap__cell--none {
    background: rgba(18, 24, 40, 0.95);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
}

.veto-heatmap__cell:hover {
    transform: scale(1.05);
}

.scout-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 6px;
    border-radius: 8px;
    color: #eef2ff;
    text-align: center;
}

.scout-cell--stacked {
    display: block;
    padding: 3px 6px;
}

.scout-cell--stacked > div:first-child {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

.scout-cell--stacked .sub-metric-line {
    opacity: 0.65;
    font-size: 0.75rem;
    margin-top: 2px;
    line-height: 1.2;
    color: #b4bfd4;
    letter-spacing: 0.02em;
}

.rounds-breakdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.2;
    opacity: 0.85;
}

.rounds-won {
    color: #76e39a;
}

.rounds-lost {
    color: #ff8a8a;
}

.rounds-sep {
    color: rgba(230, 235, 255, 0.45);
}

.rounds-diff {
    font-weight: 600;
}

.rounds-diff--pos {
    color: #7ee787;
}

.rounds-diff--neg {
    color: #ff7b72;
}


.scout-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.scout-tag--empty {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}


.stat-boxes-grid--dense {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.glass-subcard {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.performance-card .bar-chart {
    margin-top: 0.5rem;
}

.bar-chart {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.bar-chart--vertical .bar-chart__item {
    flex: 1;
    text-align: center;
}

.bar-chart__bar {
    position: relative;
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bar-chart__fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(58, 163, 255, 0.18), rgba(58, 163, 255, 0.4));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #e6e6e6;
    font-weight: 700;
}

.bar-chart__value {
    padding: 6px 4px;
    font-size: 0.9rem;
}

.bar-chart__label {
    margin-top: 0.5rem;
    font-weight: 700;
}

.bar-chart__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.map-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.map-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.map-card__statline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.map-card__footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.micro-bar {
    flex: 1;
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.micro-bar__fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(58, 163, 255, 0.5), rgba(125, 211, 252, 0.6));
}

.micro-label {
    color: var(--muted);
    font-size: 0.85rem;
    min-width: 90px;
    text-align: right;
}

.micro-stack {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.micro-stack--row {
    flex-direction: row;
}

.micro-chip {
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.inline-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-bar--thin {
    height: 8px;
}

.inline-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(58, 163, 255, 0.35), rgba(125, 211, 252, 0.55));
}

.inline-bar__fill--accent {
    background: linear-gradient(90deg, rgba(57, 217, 138, 0.35), rgba(125, 255, 210, 0.5));
}

.inline-bar__fill--danger {
    background: linear-gradient(90deg, rgba(249, 112, 102, 0.4), rgba(249, 112, 102, 0.7));
}

.stat-strong {
    font-weight: 700;
    color: #e6e6e6;
}

.cell-with-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(58, 163, 255, 0.1);
    border: 1px solid rgba(58, 163, 255, 0.25);
    color: #e6e6e6;
    font-weight: 600;
    font-size: 0.9rem;
}

.pill--accent {
    background: rgba(57, 217, 138, 0.12);
    border-color: rgba(57, 217, 138, 0.4);
    color: #7bebba;
}

.pill--link {
    background: rgba(125, 211, 252, 0.14);
    border-color: rgba(125, 211, 252, 0.4);
}

.pill--active {
    box-shadow: 0 0 0 1px rgba(58, 163, 255, 0.4);
}

.hero-inline-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.hero-inline-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-inline-stat .label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.hero-inline-stat .value {
    font-weight: 700;
    font-size: 1.1rem;
}

.toggle-group {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.match-maps {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-map-row {
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-map-row__main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.match-map-row__meta {
    display: flex;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.trend-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trend-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.trend-pill {
    padding: 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.trend-pill--win { border-color: rgba(57, 217, 138, 0.3); }
.trend-pill--loss { border-color: rgba(249, 112, 102, 0.3); }
.trend-pill--draw { border-color: rgba(255, 255, 255, 0.1); }

.trend-pill .pill-label { display: block; font-weight: 700; }
.trend-pill .pill-value { color: #e6e6e6; }
.trend-pill .pill-meta { color: var(--muted); font-size: 0.85rem; }

.result-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
}
.result-dot--win { background: rgba(57, 217, 138, 0.9); }
.result-dot--loss { background: rgba(249, 112, 102, 0.9); }
.result-dot--draw { background: rgba(255, 255, 255, 0.6); }

.player-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(58, 163, 255, 0.25), rgba(125, 211, 252, 0.35));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.player-sub {
    color: var(--muted);
    font-size: 0.85rem;
}

.players-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bar-chart--horizontal .bar-chart__row {
    display: grid;
    grid-template-columns: 1fr auto 60px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.bar-chart__track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.bar-chart__track-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(58, 163, 255, 0.4), rgba(125, 211, 252, 0.6));
}

.stacked-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stacked-bars__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.stacked-bars__label {
    color: var(--muted);
    font-weight: 600;
}

.stacked-bars__bar {
    display: flex;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.stacked-seg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    font-size: 0.85rem;
    color: #e6e6e6;
    white-space: nowrap;
}

.stacked-seg--kills { background: rgba(58, 163, 255, 0.35); }
.stacked-seg--deaths { background: rgba(249, 112, 102, 0.35); }
.stacked-seg--assists { background: rgba(125, 211, 252, 0.25); color: #cdefff; }

.stacked-seg--picks { background: rgba(58, 163, 255, 0.25); }
.stacked-seg--picks-opp { background: rgba(125, 211, 252, 0.2); }
.stacked-seg--bans { background: rgba(249, 112, 102, 0.25); }
.stacked-seg--highlight { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }

.veto-timeline {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.veto-timeline__header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.veto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.veto-step {
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.veto-step--ban { border-color: rgba(249, 112, 102, 0.35); }
.veto-step--pick { border-color: rgba(57, 217, 138, 0.35); }
.veto-step--decider { border-color: rgba(58, 163, 255, 0.35); }
.veto-step--overflow { border-color: rgba(255, 206, 86, 0.35); }

.veto-step__order {
    font-weight: 700;
}

.veto-step__title {
    color: var(--muted);
}

.veto-step__map {
    font-weight: 700;
}

.veto-step__actor {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .stacked-bars__row {
        grid-template-columns: 1fr;
    }
    .hero-inline-stats {
        gap: 0.5rem;
    }
    .scout-snapshot-row {
        flex-direction: column;
    }
    .scout-snapshot-item {
        border-right: none;
        padding-right: 0;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .scout-snapshot-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .veto-heatmap__header,
    .veto-heatmap__row {
        grid-template-columns: 120px 1fr;
    }
    .veto-heatmap__cols,
    .veto-heatmap__cells {
        grid-auto-columns: 32px;
        gap: 8px;
    }
    .veto-heatmap__cell {
        width: 32px;
        height: 28px;
    }
}

.empty-state-submessage {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* ---- Responsive Improvements ---- */
@media (max-width: 1024px) {
    .team-page {
        padding: 1.5rem 1rem;
    }
    
    .team-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .stat-boxes-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .empty-state-container {
        min-height: 250px;
    }

    .empty-state-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .team-page {
        padding: 1rem 0.75rem;
    }
    
    .team-hero {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .team-hero__logo {
        width: 100px;
        height: 100px;
    }
    
    .team-hero__title {
        font-size: 1.8rem;
    }
    
    .team-tabs {
        gap: 0.25rem;
        padding: 0 0 0.75rem 0;
    }
    
    .team-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .stat-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maps-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .matches-list {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .table-header,
    .table-cell {
        padding: 0.5rem 0.4rem;
    }

    .scout-panel {
        padding: 1rem;
    }

    .snapshot-value {
        font-size: 1.9rem;
    }

    .empty-state-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .empty-state-title {
        font-size: 1.1rem;
    }

    .empty-state-description {
        font-size: 0.9rem;
    }
}

@media print {
    .team-page,
    .stat-box,
    .map-card,
    .match-card {
        break-inside: avoid;
    }
}


/* ================================================
   Phase 1: Team Page Enhancements
   ================================================ */

/* Player Role Badges */
.role-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    margin-left: 0.4rem;
    border-radius: 4px;
    background: rgba(82, 132, 255, 0.15);
    color: var(--accent-2);
    border: 1px solid rgba(82, 132, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.role-badge--primary {
    background: rgba(61, 107, 255, 0.25);
    color: var(--accent);
    border-color: rgba(61, 107, 255, 0.4);
    font-weight: 700;
}

