@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* Public ESF UI: design tokens in plain CSS (no Tailwind build). */
:root {
    --esf-primary: #114b2f;
    --esf-primary-deep: #0a2618;
    --esf-accent: #d7a126;
    --esf-accent-soft: #f5e2b0;
    --esf-surface: #f7f1e6;
    --esf-surface-alt: #fffaf1;
    --esf-card: rgba(255, 251, 242, 0.94);
    --esf-card-strong: rgba(255, 249, 238, 0.98);
    --esf-border: rgba(17, 75, 47, 0.14);
    --esf-ink: #16231b;
    --esf-muted: #516055;
    --esf-danger: #b8402d;
    --esf-success: #1e8750;
    --esf-shadow: 0 22px 60px rgba(8, 30, 19, 0.15);
    --esf-radius: 28px;
    --esf-text-h2: clamp(2.1rem, 5vw, 4rem);
    --esf-text-h3: clamp(1.45rem, 3.1vw, 2.15rem);
    --esf-text-h4: clamp(1.08rem, 2.2vw, 1.48rem);
    --esf-text-h2-registration: clamp(1.6rem, 3.4vw, 2.5rem);
    --esf-text-h3-entry: clamp(1.28rem, 2vw, 1.72rem);
    --esf-stack-gap: 24px;
    --esf-space-section: 24px;
    --esf-space-panels: 30px;
    --esf-shell-flow-gap: clamp(22px, 3vw, 36px);
    --esf-card-grid-row-gap: 28px;
    --esf-card-grid-column-gap: 22px;
}

.esf-shell,
.esf-modal-content {
    font-family: 'Manrope', sans-serif;
    color: var(--esf-ink);
}

.esf-shell * {
    box-sizing: border-box;
}

.esf-shell {
    --esf-shell-pad-y: clamp(16px, 2vw, 28px);
    --esf-shell-pad-top: var(--esf-shell-pad-y);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--esf-shell-flow-gap);
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--esf-shell-pad-top) 16px var(--esf-shell-pad-y) 16px;
}

/* First section is a full-bleed hero: no top padding (removes white strip; replaces negative margin trick) */
.esf-shell:has(> :is(.esf-hero-bleed, .esf-profile-hero.esf-hero-bleed):first-child) {
    --esf-shell-pad-top: 0;
    padding-top: 0;
}

.esf-shell.esf-registration-hub {
    --esf-shell-pad-top: 0;
    padding-top: 0;
}

/* WP entry wrapper often adds top margin; align ESF with header */
.post .entry-content > .esf-shell:first-child,
.page .entry-content > .esf-shell:first-child,
.post .entry-content .esf-shell.esf-registration-hub:first-of-type,
.page .entry-content .esf-shell.esf-registration-hub:first-of-type {
    margin-top: 0;
    margin-block-start: 0;
}

/* Kill theme padding above shortcode so full-bleed registration hero meets the site header */
.post .entry-content:has(> .esf-shell.esf-registration-hub:first-child),
.page .entry-content:has(> .esf-shell.esf-registration-hub:first-child),
.post .entry-content:has(> .esf-shell > .esf-hero-card.esf-hero-bleed:first-child),
.page .entry-content:has(> .esf-shell > .esf-hero-card.esf-hero-bleed:first-child) {
    padding-top: 0;
}

/* Front page: shortcode is often not the first node (blocks, empty p). Flush hero + main content. */
body.esf-front-landing:has(.esf-shell.esf-registration-hub) :where(#primary) .entry-content,
body.esf-front-landing:has(.esf-shell.esf-registration-hub) .entry-content {
    padding-top: 0;
    margin-top: 0;
}

body.esf-front-landing:has(.esf-shell.esf-registration-hub) .entry-content > *:first-child,
body.esf-front-landing:has(.esf-shell.esf-registration-hub) :where(.wp-block-group) > *:first-child:where(p:empty) {
    margin-top: 0;
    margin-block-start: 0;
}

/* Block wrapper around onboarding shell: remove top gap (common in block themes) */
.entry-content:has(> .wp-block-group .esf-shell.esf-registration-hub) {
    padding-top: 0;
    margin-top: 0;
}

.entry-content > .wp-block-group:first-child:has(.esf-shell.esf-registration-hub) {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
}

/* Slightly taller site header (Astra / block themes) */
#masthead .ast-primary-header,
#masthead .site-primary-header-wrap,
#masthead .main-header-bar,
.ast-mobile-header-content .ast-main-header {
    min-height: 68px;
}

.ast-header-break-point .ast-mobile-header-content .ast-main-header {
    min-height: 60px;
}

.esf-shell > .esf-hero-card {
    margin-bottom: 0;
}

.esf-shell--wide {
    max-width: 1240px;
}

.esf-shell--dashboard {
    max-width: none;
    width: calc(100vw - clamp(24px, 4vw, 48px));
    color: #fff;
    margin-left: calc(50% - 50vw + clamp(12px, 2vw, 24px));
    margin-right: calc(50% - 50vw + clamp(12px, 2vw, 24px));
    padding-left: clamp(18px, 2vw, 28px);
    padding-right: clamp(18px, 2vw, 28px);
}

.esf-shell a {
    color: inherit;
    text-decoration: none;
}

.esf-shell a.esf-btn {
    color: var(--esf-primary-deep);
}

.esf-shell a.esf-btn--ghost {
    color: var(--esf-primary);
}

.esf-shell a.esf-btn-sm {
    color: #fff;
}

.esf-shell a.esf-btn-sm--ghost {
    color: var(--esf-ink);
}

.esf-shell h2,
.esf-shell h3,
.esf-shell h4 {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
}

.esf-shell h2 {
    font-size: var(--esf-text-h2);
}

.esf-shell h3 {
    font-size: var(--esf-text-h3);
}

.esf-shell h4 {
    font-size: var(--esf-text-h4);
}

.esf-shell p {
    margin: 0;
    color: var(--esf-muted);
}

.esf-hero-card h2,
.esf-hero-card h3,
.esf-hero-card h4,
.esf-profile-hero h2,
.esf-profile-hero h3,
.esf-profile-hero h4,
.esf-card--accent h2,
.esf-card--accent h3,
.esf-card--accent h4,
.esf-sponsor-feature h2,
.esf-sponsor-feature h3,
.esf-sponsor-feature h4 {
    color: #fff;
    text-shadow: 0 10px 28px rgba(3, 10, 18, 0.24);
}

.esf-hero-card .esf-eyebrow,
.esf-profile-hero .esf-eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.esf-card,
.esf-registration-container,
.esf-dashboard,
.esf-referee-portal,
.esf-rankings-container,
.esf-vote-container,
.esf-modal-content {
    position: relative;
    border-radius: var(--esf-radius);
    border: 1px solid var(--esf-border);
    background:
        radial-gradient(circle at top right, rgba(215, 161, 38, 0.18), transparent 34%),
        linear-gradient(180deg, var(--esf-card-strong), var(--esf-card));
    box-shadow: var(--esf-shadow);
    color: var(--esf-ink);
}

.esf-card::before,
.esf-registration-container::before,
.esf-rankings-container::before,
.esf-vote-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 35%);
    pointer-events: none;
}

.esf-section-card,
.esf-registration-container,
.esf-rankings-container,
.esf-vote-container {
    padding: clamp(22px, 3.2vw, 38px);
}

.esf-hero-card,
.esf-profile-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: 24px;
    padding: clamp(24px, 3vw, 40px);
    margin-bottom: 20px;
    border-radius: 0;
    background:
        radial-gradient(ellipse 90% 60% at 8% 20%, rgba(215, 161, 38, 0.35), transparent 52%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(60, 180, 120, 0.14), transparent 45%),
        radial-gradient(circle at top right, rgba(247, 241, 230, 0.16), transparent 30%),
        linear-gradient(135deg, #0d3a28 0%, var(--esf-primary) 38%, #071a10 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(8, 30, 19, 0.28);
}

.esf-hero-card::before,
.esf-profile-hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% 40% -10%;
    background:
        conic-gradient(from 210deg at 50% 120%, rgba(255, 220, 140, 0.14), transparent 28%, rgba(255, 255, 255, 0.06) 40%, transparent 55%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    animation: esf-hero-aura-shift 16s ease-in-out infinite alternate;
}

.esf-hero-card::after,
.esf-profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1) 0, transparent 28%),
        radial-gradient(circle at 88% 70%, rgba(215, 161, 38, 0.12) 0, transparent 24%),
        repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 14px);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.esf-hero-card > *:not(.esf-hero-bleed),
.esf-profile-hero > *:not(.esf-hero-bleed) {
    position: relative;
    z-index: 1;
}

.esf-hero-bleed .esf-hero-inset,
.esf-hero-bleed .esf-hero-inset--single {
    position: relative;
    z-index: 1;
}

@keyframes esf-hero-aura-shift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    100% {
        transform: translate3d(2%, -1%, 0) rotate(1.2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .esf-hero-card::before,
    .esf-profile-hero::before {
        animation: none;
    }
}

.esf-hero-card:not(.esf-hero-bleed),
.esf-profile-hero:not(.esf-hero-bleed) {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
}

.esf-profile-hero:not(.esf-hero-bleed) {
    align-items: center;
}

/* Full-width header band; content capped to standard width inside .esf-hero-inset */
.esf-hero-bleed {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding: clamp(22px, 3vw, 40px) 0;
    border-radius: 0;
}

/* Registration / onboarding hero: extra vertical space + center content in the green band */
.esf-hero-card--registration.esf-hero-bleed {
    min-height: clamp(220px, 34vh, 400px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 4.5vw, 60px) 0;
}

.esf-hero-bleed .esf-hero-inset {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 2.5vw, 28px);
    padding-right: clamp(16px, 2.5vw, 28px);
    box-sizing: border-box;
}

.esf-hero-card.esf-hero-bleed .esf-hero-inset {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    gap: 24px;
    align-items: end;
    min-width: 0;
}

/* Hub hero (public + signed-in): give the meta column room so stacked pills do not overlap */
.esf-hero-card--registration.esf-hero-bleed.esf-hero--hub .esf-hero-inset {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.5fr);
    align-items: start;
    gap: 28px 36px;
}

/* Grid items default to min-width:auto, which blocks wrapping and clips against overflow:hidden on the hero. */
.esf-hero-card.esf-hero-bleed .esf-hero-inset > * {
    min-width: 0;
}

.esf-hero-inset--single {
    display: block;
}

.esf-profile-hero.esf-hero-bleed:not(.esf-profile-hero--team) .esf-hero-inset {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    gap: 24px;
    align-items: center;
}

.esf-profile-hero--team.esf-team-pitch-hero .esf-hero-inset {
    display: grid;
    grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
    grid-template-areas: 'masthead field';
    align-items: stretch;
    gap: clamp(18px, 3vw, 32px);
}

.esf-team-pitch-hero__masthead {
    grid-area: masthead;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(14px, 2vw, 20px);
    padding-bottom: 0;
    padding-right: clamp(12px, 2vw, 22px);
    margin: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.esf-team-pitch-hero__masthead .esf-team-pitch-hero__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.esf-team-pitch-hero__masthead .esf-profile-media--team {
    margin: 0;
}

.esf-team-pitch-hero__brand {
    flex-shrink: 0;
    width: clamp(76px, 11vw, 108px);
    height: clamp(76px, 11vw, 108px);
}

.esf-team-pitch-hero__brand img,
.esf-team-pitch-hero__brand .esf-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    border: 3px solid rgba(255, 255, 255, 0.22);
}

.esf-team-pitch-hero__copy {
    flex: 1;
    min-width: 0;
}

.esf-team-pitch-hero__copy h2 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
}

.esf-team-pitch-hero__sub {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    opacity: 0.88;
}

.esf-team-pitch-hero__copy .esf-chip-row {
    flex-wrap: wrap;
}

.esf-profile-hero--team .esf-tag--formation {
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.esf-team-pitch-hero__field {
    grid-area: field;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    align-self: stretch;
}

.esf-team-pitch-hero__field .esf-formation--hero {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.esf-team-pitch-hero__field .esf-formation--hero .esf-formation__pitch-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

@media (max-width: 900px) {
    .esf-profile-hero--team.esf-team-pitch-hero .esf-hero-inset {
        grid-template-columns: 1fr;
        grid-template-areas:
            'masthead'
            'field';
        gap: clamp(16px, 3vw, 24px);
    }

    .esf-team-pitch-hero__masthead {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding-right: 0;
        padding-bottom: clamp(14px, 2.2vw, 22px);
    }

    .esf-profile-hero--tournament:not(.esf-profile-hero--team).esf-hero-bleed .esf-hero-inset,
    .esf-profile-hero--tournament:not(.esf-profile-hero--team).esf-hero-bleed .esf-profile-hero__inset {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-profile-hero__kit-panel {
        justify-content: center;
        min-height: min(320px, 52vh);
        max-width: 420px;
        margin: 0 auto;
    }

    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-profile-hero__inset,
    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-hero-inset {
        min-height: 0;
    }

    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-profile-copy--hero-tournament,
    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-profile-copy {
        text-align: center;
        align-items: center;
    }

    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-chip-row--tournament-hero {
        justify-content: center;
    }

    .esf-profile-hero--tournament:not(.esf-hero-bleed):not(.esf-profile-hero--team) {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.esf-chip-row--compact {
    gap: 8px 10px;
}

.esf-chip-row--compact .esf-tag,
.esf-chip-row--compact .esf-status-pill {
    font-size: 0.72rem;
}

/* —— Team profile: analytics + context (public team page) —— */
.esf-eyebrow--on-card {
    color: var(--esf-primary);
    text-shadow: none;
    opacity: 0.92;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.esf-section-lead {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--esf-muted);
}

.esf-team-pro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: var(--esf-card-grid-column-gap);
    align-items: start;
}

.esf-team-analytics .esf-section-head h3 {
    color: var(--esf-ink);
    text-shadow: none;
}

.esf-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
    margin-bottom: clamp(18px, 2.5vw, 26px);
}

.esf-kpi-strip__item {
    padding: 12px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 75, 47, 0.06), rgba(17, 75, 47, 0.02));
    border: 1px solid var(--esf-border);
    text-align: center;
}

.esf-kpi-strip__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--esf-muted);
    margin-bottom: 4px;
}

.esf-kpi-strip__value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--esf-primary-deep);
    line-height: 1;
}

.esf-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.esf-analytics-panel {
    padding: clamp(14px, 2vw, 18px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--esf-border);
}

.esf-analytics-panel--wide {
    grid-column: 1 / -1;
}

.esf-analytics-panel__title {
    margin: 0 0 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--esf-ink);
}

.esf-analytics-panel__hint {
    margin: 0 0 12px;
    font-size: 0.78rem;
    color: var(--esf-muted);
}

.esf-analytics-panel__empty {
    font-size: 0.85rem;
    color: var(--esf-muted);
    font-style: italic;
}

.esf-bar-stack {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(17, 75, 47, 0.08);
    margin-bottom: 12px;
}

.esf-bar-stack__seg {
    display: block;
    height: 100%;
    min-width: 3px;
}

.esf-bar-stack__seg--win {
    background: linear-gradient(90deg, #1e8750, #2daa6a);
}

.esf-bar-stack__seg--draw {
    background: linear-gradient(90deg, #c9a227, #e3c15a);
}

.esf-bar-stack__seg--loss {
    background: linear-gradient(90deg, #9a4a3c, #c45c4a);
}

.esf-bar-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.8rem;
    color: var(--esf-muted);
}

.esf-bar-legend strong {
    color: var(--esf-ink);
    margin-left: 4px;
}

.esf-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.esf-dot--win {
    background: #1e8750;
}

.esf-dot--draw {
    background: #c9a227;
}

.esf-dot--loss {
    background: #9a4a3c;
}

.esf-compare-bars__row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 36px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.esf-compare-bars__row:last-child {
    margin-bottom: 0;
}

.esf-compare-bars__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--esf-muted);
}

.esf-compare-bars__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 75, 47, 0.08);
    overflow: hidden;
}

.esf-compare-bars__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.esf-compare-bars__fill--for {
    background: linear-gradient(90deg, #1e8750, #3cb878);
}

.esf-compare-bars__fill--against {
    background: linear-gradient(90deg, #b8402d, #e06452);
}

.esf-compare-bars__num {
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
    color: var(--esf-ink);
}

.esf-form-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.esf-form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.esf-form-pill--w {
    background: rgba(30, 135, 80, 0.18);
    color: #145a32;
    border: 1px solid rgba(30, 135, 80, 0.35);
}

.esf-form-pill--d {
    background: rgba(201, 162, 39, 0.2);
    color: #6b5610;
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.esf-form-pill--l {
    background: rgba(184, 64, 45, 0.16);
    color: #7a2e22;
    border: 1px solid rgba(184, 64, 45, 0.35);
}

.esf-player-barlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.esf-player-barlist__row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 32px;
    gap: 10px;
    align-items: center;
}

.esf-player-barlist__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--esf-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esf-player-barlist__name:hover {
    text-decoration: underline;
}

.esf-player-barlist__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(17, 75, 47, 0.08);
    overflow: hidden;
}

.esf-player-barlist__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--esf-primary), #2a8f5c);
}

.esf-player-barlist__goals {
    font-size: 0.85rem;
    font-weight: 800;
    text-align: right;
    color: var(--esf-ink);
}

.esf-team-context-card .esf-section-head h3 {
    color: var(--esf-ink);
    text-shadow: none;
    font-size: 1.15rem;
}

.esf-detail-list--tight li {
    padding: 10px 0;
}

.esf-judge-tools-card .esf-section-head h3 {
    color: var(--esf-ink);
    text-shadow: none;
}

.esf-judge-tools-card .esf-judge-vote-panel {
    margin-top: 8px;
}

/* Registration / home hub polish */
.esf-registration-hub .esf-hero-card--registration {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.esf-shell.esf-tournament-overview {
    --esf-shell-pad-top: clamp(12px, 2.5vw, 28px);
    padding-top: var(--esf-shell-pad-top);
}

.esf-entry-grid .esf-entry-card {
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esf-entry-grid .esf-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 64px rgba(8, 30, 19, 0.22);
}

/* Captain workspace hero (dashboard) */
.esf-profile-hero--captain-workspace {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Role dashboards: hero refinement */
.esf-hero-card--judge,
.esf-hero-card--referee {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.esf-dashboard-topbar h2 {
    letter-spacing: 0.03em;
}

@media (max-width: 900px) {
    .esf-team-pro-layout {
        grid-template-columns: 1fr;
    }

    .esf-analytics-grid {
        grid-template-columns: 1fr;
    }

    .esf-analytics-panel--wide {
        grid-column: 1;
    }
}

@media (max-width: 520px) {
    .esf-kpi-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .esf-compare-bars__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .esf-compare-bars__num {
        text-align: left;
    }

    .esf-player-barlist__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .esf-player-barlist__goals {
        text-align: left;
    }
}

.esf-hero-card--registration h2 {
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    line-height: 1.05;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.esf-hero-card p,
.esf-profile-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.esf-hero-meta {
    display: grid;
    gap: 14px;
    align-content: end;
}

/* One row of chips on dark heroes (avoid stacked “bars” + fix contrast) */
.esf-hero-meta--chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 4px;
}

/* Registration hero: meta row base */
.esf-hero-card--registration .esf-hero-meta--chips {
    display: grid;
    align-items: stretch;
    width: 100%;
    max-width: min(100%, 520px);
    margin-top: 4px;
}

/* Stacked chips (public + signed-in): one pill per row, full width of column */
.esf-hero-card--registration .esf-hero-meta--chips--stack {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 12px 0;
    margin-top: 0;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
}

.esf-hero-card--registration .esf-hero-meta--chips .esf-pill-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: left;
}

/* Glass panel shared by hub pills */
.esf-hero-card--registration .esf-pill-card--identity {
    padding: 20px 22px;
    min-height: 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Public: dates — same shell as identity, larger type, one line on desktop */
.esf-hero-card--registration .esf-pill-card--identity.esf-pill-card--metric {
    min-height: 100px;
    padding: 20px 22px;
}

.esf-hero-card--registration .esf-pill-card--identity.esf-pill-card--metric strong {
    font-size: clamp(1.5rem, 1.1vw + 1rem, 2.1rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    max-width: 100%;
}

/* Signed-in: name / role (identity only) */
.esf-hero-card--registration .esf-pill-card--identity:not(.esf-pill-card--metric) strong {
    font-size: clamp(1.2rem, 1.2vw + 0.9rem, 1.6rem);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
}

@media (max-width: 720px) {
    .esf-hero-card--registration .esf-pill-card--identity.esf-pill-card--metric strong {
        white-space: normal;
    }
}

.esf-hero-card .esf-hero-pill.esf-tag,
.esf-hero-card .esf-tag.esf-hero-pill {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.esf-hero-card .esf-tag--frost {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.96) !important;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
}

.esf-hero-card .esf-hero-pill.esf-status-pill,
.esf-hero-card .esf-status-pill.esf-hero-pill {
    color: #0c1f14 !important;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.esf-hero-card .esf-status-pill--live.esf-hero-pill,
.esf-hero-card .esf-status-pill--active.esf-hero-pill,
.esf-hero-card .esf-status-pill--success.esf-hero-pill {
    background: linear-gradient(135deg, #f0c14d, #d7a126) !important;
    color: #152018 !important;
}

.esf-hero-card .esf-status-pill--upcoming.esf-hero-pill,
.esf-hero-card .esf-status-pill--pending.esf-hero-pill,
.esf-hero-card .esf-status-pill--scheduled.esf-hero-pill,
.esf-hero-card .esf-status-pill--finished.esf-hero-pill {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--esf-primary-deep) !important;
}

.esf-hero-card .esf-status-pill--completed.esf-hero-pill,
.esf-hero-card .esf-status-pill--approved.esf-hero-pill {
    background: linear-gradient(135deg, #2ecf7d, #1e8750) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.esf-dashboard-shell {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

.esf-dashboard-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 16px;
}

.esf-dashboard-main {
    min-width: 0;
    display: grid;
    gap: var(--esf-space-section);
    align-content: start;
}

.esf-dashboard-account,
.esf-dashboard-nav,
.esf-dashboard-sidebar__footer,
.esf-dashboard-topbar {
    padding: 20px;
    color: var(--esf-ink);
}

.esf-dashboard-account {
    display: grid;
    gap: 14px;
}

.esf-dashboard-account__avatar img,
.esf-dashboard-account__avatar .esf-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 26px;
}

.esf-dashboard-account__copy {
    display: grid;
    gap: 8px;
}

.esf-dashboard-nav {
    display: grid;
    gap: 10px;
}

.esf-dashboard-nav__link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 75, 47, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: var(--esf-ink);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.esf-dashboard-nav__link small {
    color: var(--esf-muted);
    font-size: 0.83rem;
}

.esf-dashboard-nav__link:hover,
.esf-dashboard-nav__link:focus {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 28px rgba(8, 30, 19, 0.08);
}

.esf-dashboard-nav__link.is-active {
    background: linear-gradient(135deg, var(--esf-primary), var(--esf-primary-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 32px rgba(8, 30, 19, 0.2);
}

.esf-dashboard-nav__link.is-active small {
    color: rgba(255, 255, 255, 0.78);
}

.esf-dashboard-sidebar__footer,
.esf-dashboard-workspaces,
.esf-dashboard-sidebar__actions {
    display: grid;
    gap: 12px;
}

.esf-dashboard-sidebar__actions,
.esf-dashboard-topbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.esf-dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.esf-dashboard-topbar__actions {
    justify-content: flex-end;
}

.esf-dashboard-panels {
    display: grid;
    gap: var(--esf-space-panels);
}

.esf-entry-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.esf-entry-grid {
    align-items: stretch;
}

.esf-entry-card {
    display: grid;
    gap: 16px;
    min-height: 100%;
    padding: 26px;
    border-radius: 30px;
}

.esf-entry-card h3 {
    max-width: 16ch;
    font-size: var(--esf-text-h3-entry);
    line-height: 0.95;
}

.esf-entry-card p:not(.esf-card-label) {
    font-size: 1.05rem;
    line-height: 1.65;
}

.esf-entry-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.esf-entry-card__meta .esf-tag {
    border: 1px solid rgba(17, 75, 47, 0.14);
}

.esf-entry-card__actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.esf-entry-card__portal {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: rgba(255, 255, 255, 0.68);
}

.esf-entry-card__portal-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-entry-card__portal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.esf-entry-card__portal-copy {
    display: grid;
    gap: 4px;
}

.esf-entry-card__portal-copy strong {
    font-size: 1rem;
    line-height: 1.2;
}

.esf-entry-card__portal-copy small {
    color: var(--esf-muted);
    font-size: 0.87rem;
    line-height: 1.45;
}

.esf-entry-card__portal-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(17, 75, 47, 0.1);
    color: var(--esf-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.18s ease, background 0.18s ease;
}

.esf-entry-card__portal-link:hover .esf-entry-card__portal-arrow,
.esf-entry-card__portal-link:focus-visible .esf-entry-card__portal-arrow {
    transform: translateX(2px);
    background: rgba(17, 75, 47, 0.16);
}

.esf-entry-card .esf-btn,
.esf-entry-card .esf-btn--ghost {
    width: 100%;
    justify-content: center;
    padding-inline: 20px;
    text-align: center;
    line-height: 1.25;
}

.esf-entry-card .esf-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    font-size: 0.95rem;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.22em;
}

.esf-entry-card--captain {
    background:
        radial-gradient(circle at top right, rgba(215, 161, 38, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(17, 75, 47, 0.98), rgba(10, 38, 24, 0.96));
}

.esf-entry-card--captain .esf-entry-card__meta .esf-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.esf-entry-card--captain .esf-entry-card__portal {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.esf-entry-card--captain .esf-entry-card__portal-label,
.esf-entry-card--captain .esf-entry-card__portal-copy small {
    color: rgba(255, 255, 255, 0.72);
}

.esf-entry-card--captain .esf-entry-card__portal-link,
.esf-entry-card--captain .esf-entry-card__portal-copy strong {
    color: #fff;
}

.esf-entry-card--captain .esf-entry-card__portal-arrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.esf-entry-card--captain .esf-entry-card__portal-link:hover .esf-entry-card__portal-arrow,
.esf-entry-card--captain .esf-entry-card__portal-link:focus-visible .esf-entry-card__portal-arrow {
    background: rgba(255, 255, 255, 0.2);
}

.esf-entry-card--captain .esf-btn {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2), 0 14px 30px rgba(215, 161, 38, 0.26);
}

.esf-entry-card--captain .esf-inline-link {
    color: rgba(255, 255, 255, 0.92);
}

.esf-entry-card--captain .esf-inline-link:hover,
.esf-entry-card--captain .esf-inline-link:focus-visible {
    color: var(--esf-accent-soft);
}

.esf-entry-card--player {
    background:
        radial-gradient(circle at top right, rgba(215, 161, 38, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255, 252, 246, 1), rgba(250, 244, 233, 0.96));
}

.esf-entry-card--judge {
    background:
        radial-gradient(circle at top right, rgba(17, 75, 47, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 250, 241, 1), rgba(247, 240, 226, 0.96));
}

.esf-entry-card--referee {
    background:
        radial-gradient(circle at top right, rgba(20, 60, 105, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 251, 244, 1), rgba(246, 239, 228, 0.96));
}

.esf-entry-card--link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esf-entry-card--link:hover,
.esf-entry-card--link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(8, 30, 19, 0.16);
    outline: none;
}

.esf-pending-banner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.esf-approval-list {
    display: grid;
    gap: 12px;
}

.esf-approval-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(17, 75, 47, 0.08);
}

.esf-approval-item strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
}

.esf-dashboard-panel > * + * {
    margin-top: 20px;
}

.js-esf-dashboard-shell.is-enhanced .esf-dashboard-panel {
    display: none;
}

.js-esf-dashboard-shell.is-enhanced .esf-dashboard-panel.is-active {
    display: block;
    animation: esf-panel-fade 0.22s ease;
}

.esf-tag--active {
    background: linear-gradient(135deg, var(--esf-primary), var(--esf-primary-deep));
    border-color: transparent;
    color: #fff;
}

@keyframes esf-panel-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.esf-pill-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.esf-pill-card span,
.esf-card-label,
.esf-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.esf-card-label,
.esf-eyebrow {
    color: var(--esf-accent);
}

.esf-pill-card strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.esf-hero-card .esf-pill-card span,
.esf-profile-hero .esf-pill-card span {
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.esf-hero-card .esf-pill-card strong,
.esf-profile-hero .esf-pill-card strong {
    font-size: clamp(2.1rem, 4vw, 2.65rem);
}

.esf-card-grid,
.esf-stat-grid,
.esf-match-grid,
.esf-live-grid,
.esf-sponsors-grid,
.esf-qr-grid {
    display: grid;
    row-gap: var(--esf-card-grid-row-gap);
    column-gap: var(--esf-card-grid-column-gap);
}

.esf-card-grid.esf-entry-grid {
    row-gap: calc(var(--esf-card-grid-row-gap) + 4px);
    column-gap: var(--esf-card-grid-column-gap);
}

.esf-card-grid,
.esf-stat-grid,
.esf-live-grid,
.esf-sponsors-grid,
.esf-qr-grid {
    margin-top: 24px;
}

.esf-card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esf-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esf-card-grid--four,
.esf-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Role cards on the registration landing: one column (stacked), equal visual weight */
@media (max-width: 1024px) {
    .esf-shell.esf-registration-hub .esf-card-grid--four.esf-entry-grid {
        grid-template-columns: 1fr;
    }
}

.esf-card,
.esf-match-card,
.esf-sponsor-card,
.esf-mini-card,
.esf-list-card,
.esf-stat-card,
.esf-live-card,
.esf-qr-card {
    padding: 20px;
}

/* Restore roomier padding when both .esf-card and .esf-section-card apply (otherwise .esf-card wins). */
.esf-card.esf-section-card {
    padding: clamp(22px, 3.2vw, 38px);
}

.esf-card,
.esf-mini-card,
.esf-list-card,
.esf-stat-card,
.esf-live-card,
.esf-qr-card,
.esf-match-card,
.esf-sponsor-card {
    border-radius: 24px;
    border: 1px solid rgba(17, 75, 47, 0.09);
    background: rgba(255, 253, 247, 0.88);
    color: var(--esf-ink);
}

.esf-card--accent,
.esf-sponsor-feature {
    background:
        radial-gradient(circle at top right, rgba(215, 161, 38, 0.24), transparent 35%),
        linear-gradient(145deg, rgba(17, 75, 47, 0.98), rgba(10, 38, 24, 0.96));
    color: #fff;
}

.esf-card--accent p,
.esf-sponsor-feature p {
    color: rgba(255, 255, 255, 0.8);
}

.esf-card--accent strong,
.esf-hero-card strong,
.esf-profile-hero strong,
.esf-sponsor-feature strong {
    color: #fffdf4;
}

.esf-card--accent .esf-card-label,
.esf-sponsor-feature .esf-eyebrow {
    color: var(--esf-accent-soft);
}

.esf-mini-card strong,
.esf-stat-card strong,
.esf-scoreline,
.esf-avatar-fallback {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    line-height: 1;
}

.esf-mini-card strong,
.esf-stat-card strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.esf-stat-card span,
.esf-mini-card span,
.esf-detail-list span {
    color: var(--esf-muted);
    font-size: 0.85rem;
}

.esf-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.esf-chip-row,
.esf-inline-copy,
.esf-inline-shortcode-wrap,
.esf-action-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.esf-chip-row,
.esf-inline-copy,
.esf-inline-shortcode-wrap {
    margin-top: 18px;
}

.esf-tag,
.esf-inline-badge,
.esf-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.esf-tag,
.esf-inline-badge {
    background: linear-gradient(180deg, rgba(17, 75, 47, 0.08), rgba(17, 75, 47, 0.05));
    color: var(--esf-primary);
    border: 1px solid rgba(17, 75, 47, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    line-height: 1.1;
}

.esf-inline-badge {
    margin-left: 8px;
}

.esf-status-pill--approved,
.esf-status-pill--active,
.esf-status-pill--live,
.esf-status-pill--success,
.esf-status-pill--completed,
.esf-status-pill--sent {
    background: rgba(30, 135, 80, 0.14);
    color: var(--esf-success);
}

.esf-status-pill--pending,
.esf-status-pill--scheduled,
.esf-status-pill--upcoming,
.esf-status-pill--finished {
    background: rgba(215, 161, 38, 0.16);
    color: #9b6b00;
}

.esf-status-pill--processing {
    background: rgba(56, 88, 233, 0.14);
    color: #3858e9;
}

.esf-status-pill--rejected,
.esf-status-pill--danger,
.esf-status-pill--failed,
.esf-status-pill--error {
    background: rgba(184, 64, 45, 0.14);
    color: var(--esf-danger);
}

.esf-btn,
.esf-btn-sm,
.esf-inline-link,
.esf-modal-close {
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.esf-btn,
.esf-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.esf-btn {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--esf-accent), #f0bf52);
    color: var(--esf-primary-deep);
    box-shadow: 0 14px 30px rgba(215, 161, 38, 0.26);
}

.esf-btn--ghost {
    background: transparent;
    color: var(--esf-primary);
    border: 1px solid rgba(17, 75, 47, 0.18);
    box-shadow: none;
}

.esf-hero-card .esf-btn--ghost {
    background: #fff;
    color: var(--esf-primary);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.esf-btn-sm {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--esf-primary);
    color: #fff;
}

.esf-btn-sm--ghost {
    background: transparent;
    color: var(--esf-ink);
    border: 1px solid rgba(17, 75, 47, 0.18);
}

.esf-btn-logout {
background: #fff !important;
color: var(--esf-primary) !important;
border: 1px solid var(--esf-border) !important;
}

.esf-inline-link {
    color: var(--esf-primary);
    font-weight: 800;
}

.esf-btn:hover,
.esf-btn-sm:hover,
.esf-inline-link:hover,
.esf-modal-close:hover {
    transform: translateY(-1px);
}

.esf-shell input[type='text'],
.esf-shell input[type='email'],
.esf-shell input[type='number'],
.esf-shell input[type='date'],
.esf-shell input[type='datetime-local'],
.esf-shell select,
.esf-shell textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 75, 47, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--esf-ink);
    font: inherit;
}

.esf-shell textarea {
    min-height: 120px;
    resize: vertical;
}

.esf-shell input:focus,
.esf-shell select:focus,
.esf-shell textarea:focus {
    outline: none;
    border-color: rgba(17, 75, 47, 0.36);
    box-shadow: 0 0 0 4px rgba(17, 75, 47, 0.08);
}

.esf-form-stack,
.esf-list-stack {
    display: grid;
    gap: 16px;
}

.esf-form-footnote {
    margin-top: 4px;
    font-size: 0.92rem;
}

.esf-hero-forgot-line {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.esf-inline-link--on-hero,
.esf-hero-card--registration .esf-hero-forgot-line .esf-inline-link {
    color: var(--esf-accent-soft) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.esf-inline-link--on-hero:hover,
.esf-hero-card--registration .esf-hero-forgot-line .esf-inline-link:hover {
    color: #fff !important;
}

.esf-auth-lost-password {
    margin-top: 2px;
    margin-bottom: 0;
}

.esf-auth-pwd-form .login-username,
.esf-auth-pwd-form .login-password,
.esf-auth-pwd-form .login-submit {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.esf-auth-pwd-form .login-submit {
    margin-bottom: 0;
}

.esf-auth-form-wrap .login-username,
.esf-auth-form-wrap .login-password,
.esf-auth-form-wrap .login-remember,
.esf-auth-form-wrap .login-submit {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.esf-auth-form-wrap .login-submit {
    margin-bottom: 0;
}

.esf-auth-form-wrap .button-primary {
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--esf-accent), #f0bf52);
    color: var(--esf-primary-deep);
    box-shadow: 0 14px 30px rgba(215, 161, 38, 0.26);
    font-size: 0.98rem;
    font-weight: 800;
}

.esf-auth-form-wrap .button-primary:hover {
    background: linear-gradient(135deg, #e3b03d, #f5cb72);
}

.esf-auth-form-wrap .input,
.esf-auth-form-wrap input[type='text'],
.esf-auth-form-wrap input[type='password'] {
    width: 100%;
}

.esf-auth-form-wrap .login-remember {
    display: flex;
    gap: 10px;
    align-items: center;
}

.esf-auth-form-wrap .login-remember label {
    font-weight: 600;
}

.esf-form-grid {
    display: grid;
    gap: 16px;
}

.esf-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esf-form-group {
    display: grid;
    gap: 8px;
}

.esf-form-group--full {
    grid-column: 1 / -1;
}

.esf-shell label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--esf-ink);
}

.esf-checkline {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--esf-muted);
}

.esf-checkline input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.esf-message-slot {
    min-height: 24px;
    margin-top: 16px;
}

.esf-captain-approval-queue {
    margin-top: 20px;
}

.esf-inline-alert {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 700;
}

.esf-inline-alert--success {
    background: rgba(30, 135, 80, 0.12);
    color: var(--esf-success);
}

.esf-inline-alert--info {
    background: rgba(17, 75, 47, 0.08);
    color: var(--esf-primary);
}

.esf-inline-alert--danger {
    background: rgba(184, 64, 45, 0.12);
    color: var(--esf-danger);
}

.esf-inline-copy {
    display: grid;
}

.esf-inline-copy input {
    font-family: 'Manrope', sans-serif;
}

.esf-invite-tools {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.esf-invite-tools__hint {
    font-size: 0.95rem;
}

.esf-invite-tools .esf-action-group {
    align-items: center;
}

.esf-profile-media {
    display: flex;
    align-items: center;
    gap: 18px;
}

.esf-profile-media img,
.esf-scan-avatar {
    width: 116px;
    height: 116px;
    border-radius: 28px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.24);
}

.esf-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    height: 116px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 2.4rem;
}

.esf-profile-copy {
    display: grid;
    gap: 12px;
}

.esf-profile-hero--tournament .esf-profile-hero__sub {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem;
    line-height: 1.45;
    margin-top: 6px;
}

/* Player profile hero: photo | jersey, equal column height, copy on the right */
.esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-hero-inset,
.esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-profile-hero__inset {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.1fr);
    align-items: stretch;
    min-height: clamp(260px, 38vh, 440px);
    gap: clamp(20px, 3vw, 40px);
}

.esf-profile-hero--tournament:not(.esf-profile-hero--team).esf-hero-bleed .esf-hero-inset,
.esf-profile-hero--tournament:not(.esf-profile-hero--team).esf-hero-bleed .esf-profile-hero__inset {
    align-items: center;
}

.esf-profile-hero--tournament:not(.esf-profile-hero--team):not(.esf-hero-bleed) {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.1fr);
    align-items: center;
    min-height: clamp(260px, 36vh, 400px);
    gap: clamp(20px, 3vw, 32px);
}

.esf-profile-hero__kit-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: clamp(220px, 36vh, 400px);
    padding: 8px 4px;
}

.esf-profile-hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(12px, 2.5vw, 28px);
    width: 100%;
}

.esf-profile-hero__text {
    flex: 1 1 220px;
    min-width: 0;
}

.esf-profile-hero__head .esf-profile-hero__jersey {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.4));
}

.esf-profile-hero__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    height: 100%;
}

.esf-profile-media--hero-tall {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    min-height: 200px;
}

.esf-profile-media--hero-tall img,
.esf-avatar-fallback--hero-tall {
    width: 100%;
    max-width: 240px;
    height: 100%;
    min-height: 220px;
    max-height: min(400px, 48vh);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: clamp(24px, 3vw, 32px);
    border: 3px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.esf-avatar-fallback--hero-tall {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(6, 22, 16, 0.55) 0%, rgba(17, 75, 47, 0.35) 100%);
    color: #fff;
}

.esf-avatar-fallback--hero-tall .esf-avatar-fallback__player {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 10% 8%;
    box-sizing: border-box;
}

.esf-profile-hero--tournament .esf-profile-hero__jersey .esf-jersey-icon:not(.esf-jersey-icon--tinted) {
    color: #fff;
}

.esf-profile-copy--hero-tournament {
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.esf-profile-hero--tournament .esf-profile-hero__title {
    font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
    line-height: 1.02;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}

.esf-profile-hero--tournament .esf-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.esf-chip-row--tournament-hero {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-top: 8px;
    gap: 10px 12px;
    width: 100%;
}

.esf-chip-row--tournament-hero .esf-hero-metric-pill {
    flex: 1 1 110px;
    min-width: 96px;
    align-items: center;
    box-sizing: border-box;
}

.esf-hero-metric-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 52px;
    padding: 8px 14px 10px;
    border-radius: 16px;
    background: rgba(8, 22, 16, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.esf-hero-metric-pill__label {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.esf-hero-metric-pill__val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-top: 2px;
}

/* Formation jersey (SVG + number) */
.esf-jersey-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 3rem;
    color: #fff;
    flex-shrink: 0;
    vertical-align: middle;
}

.esf-jersey-icon--sm {
    width: 2rem;
    height: 2.45rem;
}

.esf-jersey-icon--md {
    width: 2.5rem;
    height: 3rem;
}

.esf-jersey-icon--lg {
    width: 3.1rem;
    height: 3.75rem;
}

.esf-jersey-icon--xl {
    width: clamp(4.25rem, 12vw, 5.75rem);
    height: clamp(5rem, 14vw, 6.5rem);
}

.esf-jersey-icon__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.esf-jersey-icon__num {
    position: relative;
    z-index: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(0.95rem, 2.6vw, 1.15rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    margin-top: 0.15em;
}

.esf-jersey-icon--tinted .esf-jersey-icon__num {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.esf-jersey-icon--lg .esf-jersey-icon__num {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

.esf-jersey-icon--xl .esf-jersey-icon__num {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    margin-top: 0.12em;
}

/* Approved squad: organic cards, not heavy “boxed” alternation */
.esf-member-card--squad {
    padding: clamp(16px, 2.2vw, 20px) clamp(16px, 2.2vw, 22px) 18px;
    border-radius: 22px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, transparent 46%),
        linear-gradient(180deg, rgba(255, 252, 244, 0.97) 0%, rgba(248, 242, 230, 0.94) 100%);
    border: 1px solid rgba(17, 75, 47, 0.1);
    box-shadow: 0 14px 36px rgba(8, 30, 19, 0.08);
    gap: 12px;
}

.esf-member-card--squad::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -40px;
    top: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 161, 38, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.esf-card-template--night.esf-member-card--squad {
    background:
        linear-gradient(165deg, rgba(90, 40, 120, 0.35) 0%, rgba(20, 24, 48, 0.92) 45%, rgba(12, 16, 36, 0.96) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.esf-card-template--pulse.esf-member-card--squad {
    background: linear-gradient(150deg, rgba(180, 40, 100, 0.25) 0%, rgba(32, 16, 48, 0.92) 55%, rgba(18, 10, 32, 0.95) 100%);
    border-color: rgba(255, 150, 200, 0.15);
    color: #fff6fb;
}

.esf-member-card--squad .esf-member-card__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
}

.esf-member-card--squad .esf-member-card__row--top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px 12px;
}

.esf-member-card--squad .esf-member-card__face {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(17, 75, 47, 0.12);
    box-shadow: 0 4px 14px rgba(8, 30, 19, 0.1);
}

.esf-card-template--night .esf-member-card--squad .esf-member-card__face,
.esf-card-template--pulse .esf-member-card--squad .esf-member-card__face {
    border-color: rgba(255, 255, 255, 0.2);
}

.esf-member-card__face--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(17, 75, 47, 0.2), rgba(17, 75, 47, 0.08));
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--esf-primary-deep);
}

.esf-card-template--night .esf-member-card__face--fallback,
.esf-card-template--pulse .esf-member-card__face--fallback {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    color: #fff;
}

.esf-member-card--squad .esf-member-card__who {
    min-width: 0;
}

.esf-member-card--squad .esf-member-card__name {
    font-size: clamp(0.82rem, 1.3vw, 0.95rem);
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.esf-member-card--squad .esf-member-card__club {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--esf-muted);
    opacity: 0.95;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.esf-card-template--night .esf-member-card--squad .esf-member-card__club,
.esf-card-template--pulse .esf-member-card--squad .esf-member-card__club {
    color: rgba(255, 255, 255, 0.7);
}

.esf-member-card--squad .esf-member-card__kit {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esf-card-template--classic .esf-member-card--squad .esf-jersey-icon:not(.esf-jersey-icon--tinted) {
    color: var(--esf-primary);
}

.esf-card-template--night .esf-member-card--squad .esf-jersey-icon:not(.esf-jersey-icon--tinted),
.esf-card-template--pulse .esf-member-card--squad .esf-jersey-icon:not(.esf-jersey-icon--tinted) {
    color: rgba(255, 255, 255, 0.95);
}

.esf-member-card--squad .esf-member-card__row--status {
    margin-top: 0;
    justify-content: flex-start;
}

.esf-member-card--squad .esf-member-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 2px;
    border-top: 1px solid rgba(17, 75, 47, 0.08);
    margin-top: 2px;
}

.esf-card-template--night .esf-member-card--squad .esf-member-card__stats,
.esf-card-template--pulse .esf-member-card--squad .esf-member-card__stats {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.esf-member-card__stat {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.esf-member-card__stat strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--esf-primary);
}

.esf-card-template--night .esf-member-card__stat strong,
.esf-card-template--pulse .esf-member-card__stat strong {
    color: #fff;
}

.esf-member-card__stat small {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-card-template--night .esf-member-card__stat small,
.esf-card-template--pulse .esf-member-card__stat small {
    color: rgba(255, 255, 255, 0.55);
}

/* Player profile stats v2: gold rail, athletic numbers, soft glass (columns follow .esf-stat-grid breakpoints) */
.esf-stat-grid--player-profile.esf-stat-grid--v2,
.esf-stat-grid--player-profile {
    gap: 16px;
}

.esf-stat-card--pro {
    position: relative;
    padding: 18px 16px 20px;
    border-radius: 18px 22px 20px 18px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 246, 0.94) 55%, rgba(255, 251, 242, 0.98) 100%);
    border: 1px solid rgba(17, 75, 47, 0.09);
    box-shadow:
        0 1px 0 rgba(215, 161, 38, 0.45),
        0 14px 36px rgba(8, 30, 19, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esf-stat-card--pro::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--esf-accent), var(--esf-primary));
    opacity: 0.88;
}

.esf-stat-card--pro::after {
    content: '';
    position: absolute;
    right: -20%;
    top: -40%;
    width: 70%;
    height: 120%;
    background: radial-gradient(circle at 80% 30%, rgba(215, 161, 38, 0.1), transparent 55%);
    pointer-events: none;
}

.esf-stat-card--pro:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(215, 161, 38, 0.55),
        0 18px 42px rgba(8, 30, 19, 0.1);
}

.esf-stat-card--pro span {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--esf-muted);
    margin-bottom: 8px;
}

.esf-stat-card--pro strong {
    position: relative;
    z-index: 1;
    font-size: clamp(1.75rem, 2.9vw, 2.35rem) !important;
    line-height: 0.95;
    color: var(--esf-primary-deep);
    font-variant-numeric: tabular-nums;
}

.esf-section-card--pro {
    border-radius: 24px;
    border: 1px solid rgba(17, 75, 47, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 244, 0.92) 100%);
    box-shadow: 0 16px 40px rgba(8, 30, 19, 0.07);
}

.esf-tournament-slider {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.esf-tournament-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.esf-tournament-slider__header h3 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.esf-tournament-slider__header p {
    max-width: 60ch;
}

.esf-tournament-slider__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.esf-tournament-slider__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--esf-primary);
    font-size: 1rem;
    box-shadow: 0 12px 26px rgba(8, 30, 19, 0.08);
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.esf-tournament-slider__button:hover:not([disabled]),
.esf-tournament-slider__button:focus-visible:not([disabled]) {
    transform: translateY(-1px);
    background: #ffffff;
    color: var(--esf-primary);
    box-shadow: 0 16px 30px rgba(8, 30, 19, 0.12);
}

.esf-tournament-slider__button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.esf-tournament-slider__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.esf-tournament-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(17, 75, 47, 0.16);
}

.esf-tournament-slider__dot.is-active {
    width: 28px;
    background: linear-gradient(90deg, var(--esf-primary), #2d7f56);
}

.esf-tournament-slider__viewport {
    overflow: hidden;
}

.esf-tournament-slider__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.esf-tournament-slider__track::-webkit-scrollbar {
    display: none;
}

.esf-tournament-slider__item {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.esf-tournament-slider.is-animating .esf-tournament-slider__button,
.esf-tournament-slider.is-animating .esf-tournament-slider__dot {
    pointer-events: none;
}

.esf-tournament-slide {
    display: grid;
    gap: 18px;
    min-height: 100%;
}

.esf-tournament-slide h3 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 0.94;
}

.esf-tournament-slide__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

.esf-tournament-slide__stack {
    margin-top: 0;
}

.esf-tournament-slide__panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.esf-tournament-slide__panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(17, 75, 47, 0.08);
    background: rgba(17, 75, 47, 0.04);
}

.esf-tournament-slide__panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.esf-tournament-slide__panel h4 {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1;
}

.esf-tournament-slide__empty {
    display: grid;
    gap: 8px;
    align-content: start;
}

.esf-tournament-slide__empty strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1;
    color: var(--esf-primary);
}

.esf-judge-vote-panel {
    margin: 0 0 20px;
}

.esf-section-card--stack {
    display: grid;
    gap: var(--esf-stack-gap);
}

.esf-section-card--stack--tight {
    --esf-stack-gap: 14px;
}

.esf-section-card--stack--relaxed {
    --esf-stack-gap: 34px;
}

.esf-disclosure {
    display: grid;
    gap: 18px;
}

.esf-disclosure__summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    padding: 22px 24px;
    border-radius: 26px;
    border: 1px solid rgba(17, 75, 47, 0.08);
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(250, 245, 233, 0.92));
    box-shadow: 0 14px 28px rgba(8, 30, 19, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.esf-disclosure__summary::-webkit-details-marker {
    display: none;
}

.esf-disclosure__summary:hover,
.esf-disclosure__summary:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 75, 47, 0.16);
    box-shadow: 0 18px 34px rgba(8, 30, 19, 0.08);
}

.esf-disclosure__summary h3 {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.esf-disclosure__summary p {
    max-width: 58ch;
    line-height: 1.55;
}

.esf-disclosure__summary > div {
    min-width: 0;
}

.esf-disclosure__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.esf-disclosure__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 75, 47, 0.08);
    color: var(--esf-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.esf-disclosure__toggle::before {
    content: attr(data-closed-label);
}

.esf-disclosure__toggle::after {
    content: '▾';
    font-size: 0.84rem;
    transition: transform 0.2s ease;
}

.esf-disclosure[open] .esf-disclosure__toggle::before {
    content: attr(data-open-label);
}

.esf-disclosure[open] .esf-disclosure__toggle::after {
    transform: rotate(180deg);
}

.esf-disclosure__content {
    display: grid;
    gap: 18px;
}

.esf-showcase-grid {
    display: grid;
    gap: 18px;
}

.esf-showcase-grid--teams {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.esf-showcase-grid--players {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esf-roster-directory {
    display: grid;
    gap: 12px;
}

.esf-squad-hub__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.esf-roster-directory__head {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(108px, 1fr)) auto;
    gap: 14px;
    align-items: center;
    padding: 0 20px;
    color: var(--esf-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.esf-roster-directory__list {
    display: grid;
    gap: 12px;
}

.esf-roster-row {
    border-radius: 24px;
    border: 1px solid rgba(17, 75, 47, 0.1);
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(248, 242, 227, 0.94));
    box-shadow: 0 16px 34px rgba(8, 30, 19, 0.08);
    overflow: hidden;
}

.esf-roster-row[open] {
    border-color: rgba(17, 75, 47, 0.18);
    box-shadow: 0 22px 42px rgba(8, 30, 19, 0.12);
}

.esf-roster-row__summary {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(108px, 1fr)) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
}

.esf-roster-row__summary::-webkit-details-marker {
    display: none;
}

.esf-roster-row__identity {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.esf-roster-row__identity .esf-brand-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    flex-shrink: 0;
}

.esf-roster-row__identity-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.esf-roster-row__identity-copy h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1;
}

.esf-roster-row__identity-copy p {
    color: var(--esf-muted);
}

.esf-roster-row__cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.esf-roster-row__cell strong {
    color: var(--esf-ink);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1;
}

.esf-roster-row__label {
    display: none;
    color: var(--esf-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.esf-roster-row__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 75, 47, 0.08);
    color: var(--esf-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.esf-roster-row__toggle-text::before {
    content: attr(data-closed-label);
}

.esf-roster-row__toggle::after {
    content: '▾';
    font-size: 0.84rem;
    transition: transform 0.2s ease;
}

.esf-roster-row[open] .esf-roster-row__toggle-text::before {
    content: attr(data-open-label);
}

.esf-roster-row[open] .esf-roster-row__toggle::after {
    transform: rotate(180deg);
}

.esf-roster-row__details {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
    border-top: 1px solid rgba(17, 75, 47, 0.08);
}

.esf-roster-row__details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 16px;
    align-items: start;
}

.esf-roster-row__detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 16px;
}

.esf-roster-row__detail {
    display: grid;
    gap: 6px;
    min-width: 0;
    align-content: start;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 75, 47, 0.08);
    background: rgba(17, 75, 47, 0.04);
}

.esf-roster-row__detail span,
.esf-roster-row__detail small {
    color: var(--esf-muted);
}

.esf-roster-row__detail span {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.esf-roster-row__detail strong {
    color: var(--esf-ink);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.esf-roster-row__detail small {
    font-size: 0.86rem;
    line-height: 1.4;
}

.esf-roster-row__detail--meta {
    gap: 8px;
}

.esf-roster-row__detail--meta strong {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 1.55vw, 1.16rem);
    font-weight: 700;
    line-height: 1.28;
}

.esf-roster-row__detail--meta small {
    font-size: 0.83rem;
    line-height: 1.5;
}

.esf-roster-row__manager {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(17, 75, 47, 0.10);
    background: linear-gradient(180deg, rgba(17, 75, 47, 0.05), rgba(17, 75, 47, 0.03));
}

.esf-roster-row__manager-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.esf-roster-row__manager-copy {
    display: grid;
    gap: 6px;
}

.esf-roster-row__manager-copy h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.esf-roster-row__manager-copy p {
    font-size: 0.92rem;
    line-height: 1.6;
}

.esf-roster-row__manager-field {
    display: grid;
    gap: 8px;
}

.esf-roster-row__manager-field label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-roster-row__manager-field .esf-jersey-input {
    width: 100%;
    max-width: none;
}

.esf-roster-row__manager-actions {
    display: grid;
    gap: 10px;
}

.esf-roster-row__manager-actions .esf-btn-sm {
    width: 100%;
    justify-content: center;
}

.esf-roster-row__actions {
    display: flex;
    justify-content: flex-end;
}

.esf-showcase-card__topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
}

.esf-showcase-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.esf-performance-panel__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 20px;
	align-items: start;
}

.esf-performance-panel__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.esf-performance-panel__stat {
    display: grid;
    gap: 6px;
    padding: 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(17, 75, 47, 0.08);
    background: rgba(17, 75, 47, 0.04);
}

.esf-performance-panel__stat span {
    color: var(--esf-muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 800;
}

.esf-performance-panel__stat strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1;
    color: var(--esf-primary);
}

.esf-performance-panel__qr {
    min-width: 0;
}

.esf-performance-panel__qr .esf-inline-shortcode-wrap {
    margin-top: 0;
}

.esf-performance-panel__qr .esf-qr-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.esf-performance-panel__qr .esf-qr-card {
    height: 100%;
    justify-items: center;
    align-content: start;
    text-align: center;
}

.esf-roster-grid,
.esf-payment-grid {
    display: grid;
    gap: 18px;
}

.esf-roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Squad roster: 4 columns (e.g. 8 players = 2 rows) → 2 → 1 */
.esf-roster-grid--squad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

@media (max-width: 1100px) {
    .esf-roster-grid--squad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .esf-roster-grid--squad {
        grid-template-columns: 1fr;
    }
}

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

.esf-showcase-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 247, 231, 0.94));
    box-shadow: 0 18px 36px rgba(8, 30, 19, 0.12);
}

.esf-showcase-card--link,
.esf-member-card--link,
.esf-mini-card--link {
    display: grid;
    gap: 10px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.esf-match-card--link,
.esf-live-card--link,
.esf-list-card--link,
.esf-match-card__link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.esf-match-card--link,
.esf-live-card--link,
.esf-match-card__link {
    display: grid;
    gap: 18px;
}

.esf-list-card--link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.esf-showcase-card--link,
.esf-member-card--link {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.esf-showcase-card--link:hover,
.esf-showcase-card--link:focus-visible,
.esf-member-card--link:hover,
.esf-member-card--link:focus-visible,
.esf-mini-card--link:hover,
.esf-mini-card--link:focus-visible,
.esf-match-card--link:hover,
.esf-match-card--link:focus-visible,
.esf-live-card--link:hover,
.esf-live-card--link:focus-visible,
.esf-list-card--link:hover,
.esf-list-card--link:focus-visible,
.esf-match-card__link:hover,
.esf-match-card__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(8, 30, 19, 0.16);
}

.esf-showcase-card--link:focus-visible,
.esf-member-card--link:focus-visible,
.esf-mini-card--link:focus-visible,
.esf-match-card--link:focus-visible,
.esf-live-card--link:focus-visible,
.esf-list-card--link:focus-visible,
.esf-match-card__link:focus-visible {
    outline: 2px solid rgba(17, 75, 47, 0.45);
    outline-offset: 3px;
}

.esf-member-card,
.esf-payment-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 247, 231, 0.94));
    box-shadow: 0 18px 36px rgba(8, 30, 19, 0.12);
    color: var(--esf-ink);
}

.esf-member-card::before,
.esf-payment-card::before {
    content: '';
    position: absolute;
    top: -38px;
    right: -28px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.esf-member-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.esf-payment-card__amount {
    position: relative;
    z-index: 1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1;
    color: var(--esf-primary);
}

.esf-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.esf-showcase-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    pointer-events: none;
}

.esf-showcase-card--team {
    border-top-left-radius: 34px;
}

.esf-showcase-card--team::after,
.esf-showcase-card--player::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.esf-showcase-card--team::after {
    left: 22px;
    right: 22px;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.12));
}

.esf-showcase-card--player::after {
    right: 18px;
    bottom: 18px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.esf-showcase-card__brand {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
	align-items: flex-start;
}

.esf-showcase-card__brand > div {
	min-width: 0;
	flex: 1 1 auto;
}

.esf-showcase-card h3,
.esf-member-card h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1;
}

.esf-showcase-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.esf-showcase-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 700;
    color: inherit;
}

.esf-showcase-stats strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    line-height: 1;
}

.esf-showcase-card--team .esf-showcase-stats {
	justify-content: flex-start;
}

.esf-showcase-card--team .esf-showcase-card__brand p {
    overflow-wrap: anywhere;
}

.esf-showcase-card--player .esf-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esf-showcase-card--player h3 {
    font-size: clamp(1.15rem, 1.9vw, 1.7rem);
    line-height: 1.04;
    text-transform: none;
    letter-spacing: 0.01em;
}

.esf-showcase-card--player p:not(.esf-card-label) {
    font-size: 0.95rem;
    line-height: 1.45;
}

.esf-showcase-card--player .esf-showcase-stats span {
    justify-content: center;
    text-align: center;
    border-radius: 18px;
    padding: 12px 10px;
}

.esf-brand-mark,
.esf-brand-avatar,
.esf-brand-badge {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    flex: 0 0 auto;
}

.esf-brand-mark,
.esf-brand-avatar {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.35);
}

.esf-brand-badge,
.esf-brand-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: inherit;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.esf-showcase-card--player .esf-brand-avatar,
.esf-showcase-card--player .esf-brand-avatar--fallback {
    border-radius: 26px;
}

.esf-shell input[type='file'] {
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed rgba(17, 75, 47, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--esf-muted);
}

.esf-profile-hero.esf-card-template--classic,
.esf-showcase-card.esf-card-template--classic,
.esf-member-card.esf-card-template--classic {
    background:
        radial-gradient(circle at top right, rgba(245, 226, 176, 0.2), transparent 32%),
        linear-gradient(145deg, #15492f, #0d2618 70%, #d7a126 140%);
    color: #fff;
}

.esf-profile-hero.esf-card-template--night,
.esf-showcase-card.esf-card-template--night,
.esf-member-card.esf-card-template--night {
    background:
        radial-gradient(circle at top right, rgba(86, 141, 222, 0.28), transparent 34%),
        linear-gradient(145deg, #102137, #132d4a 62%, #08131d 100%);
    color: #f4f7fb;
}

.esf-profile-hero.esf-card-template--pulse,
.esf-showcase-card.esf-card-template--pulse,
.esf-member-card.esf-card-template--pulse {
    background:
        radial-gradient(circle at top right, rgba(255, 193, 120, 0.32), transparent 30%),
        linear-gradient(145deg, #35123a, #6b1e53 58%, #e07c33 145%);
    color: #fff6ef;
}

.esf-showcase-card.esf-card-template--classic p,
.esf-showcase-card.esf-card-template--night p,
.esf-showcase-card.esf-card-template--pulse p,
.esf-member-card.esf-card-template--classic p,
.esf-member-card.esf-card-template--night p,
.esf-member-card.esf-card-template--pulse p,
.esf-profile-hero.esf-card-template--classic p,
.esf-profile-hero.esf-card-template--night p,
.esf-profile-hero.esf-card-template--pulse p {
    color: rgba(255, 255, 255, 0.82);
}

.esf-showcase-card.esf-card-template--classic h2,
.esf-showcase-card.esf-card-template--classic h3,
.esf-showcase-card.esf-card-template--classic h4,
.esf-showcase-card.esf-card-template--night h2,
.esf-showcase-card.esf-card-template--night h3,
.esf-showcase-card.esf-card-template--night h4,
.esf-showcase-card.esf-card-template--pulse h2,
.esf-showcase-card.esf-card-template--pulse h3,
.esf-showcase-card.esf-card-template--pulse h4,
.esf-member-card.esf-card-template--classic h2,
.esf-member-card.esf-card-template--classic h3,
.esf-member-card.esf-card-template--classic h4,
.esf-member-card.esf-card-template--night h2,
.esf-member-card.esf-card-template--night h3,
.esf-member-card.esf-card-template--night h4,
.esf-member-card.esf-card-template--pulse h2,
.esf-member-card.esf-card-template--pulse h3,
.esf-member-card.esf-card-template--pulse h4,
.esf-profile-hero.esf-card-template--classic h2,
.esf-profile-hero.esf-card-template--classic h3,
.esf-profile-hero.esf-card-template--classic h4,
.esf-profile-hero.esf-card-template--night h2,
.esf-profile-hero.esf-card-template--night h3,
.esf-profile-hero.esf-card-template--night h4,
.esf-profile-hero.esf-card-template--pulse h2,
.esf-profile-hero.esf-card-template--pulse h3,
.esf-profile-hero.esf-card-template--pulse h4 {
    color: #fffdf5;
    text-shadow: 0 3px 12px rgba(3, 10, 18, 0.28);
}

.esf-showcase-card.esf-card-template--classic .esf-card-label,
.esf-showcase-card.esf-card-template--night .esf-card-label,
.esf-showcase-card.esf-card-template--pulse .esf-card-label,
.esf-member-card.esf-card-template--classic .esf-card-label,
.esf-member-card.esf-card-template--night .esf-card-label,
.esf-member-card.esf-card-template--pulse .esf-card-label,
.esf-profile-hero.esf-card-template--classic .esf-eyebrow,
.esf-profile-hero.esf-card-template--night .esf-eyebrow,
.esf-profile-hero.esf-card-template--pulse .esf-eyebrow {
    color: rgba(255, 244, 208, 0.92);
}

.esf-showcase-card.esf-card-template--classic .esf-showcase-stats span,
.esf-showcase-card.esf-card-template--night .esf-showcase-stats span,
.esf-showcase-card.esf-card-template--pulse .esf-showcase-stats span,
.esf-member-card.esf-card-template--classic .esf-showcase-stats span,
.esf-member-card.esf-card-template--night .esf-showcase-stats span,
.esf-member-card.esf-card-template--pulse .esf-showcase-stats span {
    background: rgba(255, 255, 255, 0.12);
}

.esf-profile-hero.esf-card-template--classic .esf-tag,
.esf-profile-hero.esf-card-template--night .esf-tag,
.esf-profile-hero.esf-card-template--pulse .esf-tag,
.esf-showcase-card.esf-card-template--classic .esf-tag,
.esf-showcase-card.esf-card-template--night .esf-tag,
.esf-showcase-card.esf-card-template--pulse .esf-tag,
.esf-member-card.esf-card-template--classic .esf-tag,
.esf-member-card.esf-card-template--night .esf-tag,
.esf-member-card.esf-card-template--pulse .esf-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.esf-profile-media--team .esf-avatar-fallback {
    background: rgba(255, 255, 255, 0.12);
}

.esf-list-card,
.esf-live-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.esf-match-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    justify-content: initial;
    align-items: stretch;
    border-radius: 30px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(250, 244, 231, 0.94));
    box-shadow: 0 18px 36px rgba(8, 30, 19, 0.12);
}

.esf-match-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 88px;
    background: linear-gradient(135deg, rgba(17, 75, 47, 0.1), rgba(215, 161, 38, 0));
    pointer-events: none;
}

.esf-list-card p,
.esf-match-card p,
.esf-live-card p {
    font-size: 0.95rem;
}

.esf-list-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
}

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

.esf-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(17, 75, 47, 0.08);
}

.esf-detail-list strong {
    color: var(--esf-ink);
}

.esf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.esf-table th,
.esf-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(17, 75, 47, 0.08);
    text-align: left;
    vertical-align: middle;
}

.esf-table td {
    color: var(--esf-ink);
}

.esf-table td strong,
.esf-table td a:not(.esf-btn-sm),
.esf-table td button:not(.esf-btn-sm) {
    color: var(--esf-ink);
}

.esf-table th {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-match-grid,
.esf-live-grid,
.esf-sponsors-grid,
.esf-qr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esf-sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.esf-live-card {
    flex-direction: column;
    align-items: stretch;
}

.esf-live-card--selected {
    border-color: rgba(17, 75, 47, 0.26);
    box-shadow: 0 24px 44px rgba(8, 30, 19, 0.16);
}

.esf-live-results__detail {
    display: grid;
    gap: 20px;
    margin-top: 26px;
    scroll-margin-top: 120px;
}

.esf-live-results__detail.is-loading {
    opacity: 0.68;
    transition: opacity 0.2s ease;
}

.esf-live-results__detail[hidden] {
    display: none;
}

.esf-match-card--featured {
    gap: 18px;
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.99), rgba(246, 238, 218, 0.96));
}

.esf-detail-hero {
    gap: 20px;
}

/* Embedded match details (live results panel): dense professional layout */
.esf-match-details--embedded {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.esf-section-head--match-hero {
    align-items: flex-start;
    gap: 14px;
}

.esf-section-head--compact {
    margin-bottom: 12px;
}

.esf-section-head--compact h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.esf-detail-hero--embedded .esf-section-head h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important;
    line-height: 1.15;
    margin: 0 0 2px;
}

.esf-match-details__summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px 22px;
    padding-top: 4px;
    border-top: 1px solid rgba(17, 75, 47, 0.08);
}

.esf-match-details__summary-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.esf-match-details__line--team-a,
.esf-match-details__line--team-b {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.esf-match-details__line--team-b a {
    text-align: right;
    margin-left: auto;
}

.esf-match-details__line--team-a a {
    margin-right: auto;
}

.esf-match-details__sub {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--esf-muted);
}

.esf-match-details__line--score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 0.9;
    padding: 6px 0 10px;
}

.esf-match-details__scorenum {
    font-size: clamp(2.4rem, 6.5vw, 3.2rem);
    color: var(--esf-primary);
    font-weight: 800;
}

.esf-match-details__scoresep {
    font-size: 1.8rem;
    color: var(--esf-muted);
    font-weight: 800;
    opacity: 0.75;
    padding: 0 2px;
}

.esf-match-details__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(17, 75, 47, 0.06) 0%, rgba(255, 251, 244, 0.85) 100%);
    border: 1px solid rgba(17, 75, 47, 0.08);
    font-size: 0.85rem;
}

.esf-match-details__facts > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.esf-match-details__facts dt {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-match-details__facts dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--esf-ink);
    word-wrap: break-word;
}

.esf-match-details__inline-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
}

.esf-match-details__inline-facts > div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(17, 75, 47, 0.04);
    border: 1px solid rgba(17, 75, 47, 0.07);
}

.esf-match-details__inline-k {
    display: block;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--esf-muted);
    margin-bottom: 4px;
}

.esf-match-details__inline-v {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Compact stat table (embedded) */
.esf-stat-compare--embedded .esf-stat-compare__table {
    display: block;
    border: 1px solid rgba(17, 75, 47, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
}

.esf-stat-compare__th,
.esf-stat-compare__tr {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(4rem, 0.5fr) minmax(4rem, 0.5fr);
    align-items: center;
    gap: 8px 12px;
    padding: 8px 12px;
}

.esf-stat-compare__th {
    background: linear-gradient(180deg, rgba(17, 75, 47, 0.1), rgba(17, 75, 47, 0.04));
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-stat-compare__tr:nth-child(odd) {
    background: rgba(17, 75, 47, 0.03);
}

.esf-stat-compare__metric {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--esf-ink);
}

.esf-stat-compare__th .esf-stat-compare__team {
    text-align: center;
    color: var(--esf-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esf-stat-compare__num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.esf-stat-compare__num--a {
    color: var(--esf-ink);
}

.esf-stat-compare__num--b {
    color: var(--esf-ink);
}

/* Event log rows (embedded) */
.esf-event-feed__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.esf-event-feed--embedded .esf-event-feed__row {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(17, 75, 47, 0.07);
    background: rgba(255, 255, 255, 0.55);
}

.esf-event-feed--embedded .esf-event-feed__time {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--esf-muted);
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.esf-event-feed--embedded .esf-event-feed__line1 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.esf-event-feed--embedded .esf-event-feed__type {
    color: var(--esf-primary-deep);
    text-transform: capitalize;
}

.esf-event-feed--embedded .esf-event-feed__line2 {
    font-size: 0.8rem;
    color: var(--esf-muted);
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.esf-event-feed--embedded .esf-event-feed__val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--esf-primary);
    padding-top: 2px;
    justify-self: end;
}

@media (max-width: 640px) {
    .esf-match-details__summary {
        grid-template-columns: 1fr;
    }

    .esf-match-details__facts {
        grid-template-columns: 1fr;
    }

    .esf-match-details__inline-facts {
        grid-template-columns: 1fr;
    }

    .esf-profile-hero__head {
        flex-direction: column;
        align-items: center;
    }

    .esf-profile-hero__head .esf-profile-hero__jersey {
        align-self: center;
    }

    .esf-profile-hero__text {
        text-align: center;
    }
}

.esf-scoreboard--detail {
    margin-top: 8px;
}

.esf-match-comparison {
    display: grid;
    gap: 12px;
}

.esf-match-comparison__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(17, 75, 47, 0.05);
    border: 1px solid rgba(17, 75, 47, 0.08);
}

.esf-match-comparison__row label {
    justify-self: center;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-match-comparison__row strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.esf-match-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.esf-scoreboard {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(17, 75, 47, 0.05);
    border: 1px solid rgba(17, 75, 47, 0.08);
}

.esf-scoreboard__team {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.esf-scoreboard__team:last-child {
    text-align: right;
}

.esf-scoreline {
    font-size: clamp(2rem, 6vw, 3.4rem);
    color: var(--esf-primary);
}

.esf-vote-lead {
    margin: 0 0 14px;
    line-height: 1.55;
    color: var(--esf-muted);
}

.esf-vote-container--embedded {
    border-radius: 22px;
}

.esf-vote-fieldset {
    border: none;
    margin: 0 0 18px;
    padding: 0;
}

.esf-vote-legend {
    padding: 0;
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-vote-role-hint {
    margin: 0 0 14px !important;
}

.esf-player-vote-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.esf-vote-by-team {
    gap: 14px;
}

.esf-vote-team {
    border-radius: 20px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: rgba(255, 255, 255, 0.45);
    overflow: hidden;
}

.esf-vote-team[hidden] {
    display: none;
}

.esf-vote-team__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 14px 16px;
    list-style: none;
    font-weight: 800;
    cursor: pointer;
    color: var(--esf-ink);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: none;
    background: linear-gradient(180deg, rgba(17, 75, 47, 0.05), rgba(17, 75, 47, 0.02));
}

.esf-vote-team__summary::-webkit-details-marker,
.esf-vote-team__summary::marker {
    display: none;
}

.esf-vote-team[open] .esf-vote-team__summary {
    border-bottom: 1px solid rgba(17, 75, 47, 0.1);
    background: rgba(255, 255, 255, 0.7);
}

.esf-vote-team__name {
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}

.esf-vote-team__list {
    display: grid;
    gap: 8px;
    padding: 10px 12px 14px;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

.esf-vote-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 75, 47, 0.1);
    background: rgba(17, 75, 47, 0.03);
}

.esf-vote-page-status {
    margin: 0;
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--esf-muted);
    font-weight: 700;
}

.esf-vote-item[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .esf-stat-grid--player-profile {
        grid-template-columns: 1fr;
    }

    .esf-vote-team__summary {
        padding: 12px 14px;
    }

    .esf-vote-pagination {
        flex-direction: column;
        text-align: center;
    }
}

.esf-vote-item__label {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(17, 75, 47, 0.04);
    border: 1px solid rgba(17, 75, 47, 0.1);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.esf-vote-item__label:hover,
.esf-vote-item__label:focus-within {
    border-color: rgba(215, 161, 38, 0.45);
    box-shadow: 0 8px 22px rgba(8, 30, 19, 0.08);
    background: rgba(255, 255, 255, 0.65);
}

.esf-vote-item__label:has(input:checked) {
    border-color: rgba(17, 75, 47, 0.32) !important;
    background: linear-gradient(135deg, rgba(215, 161, 38, 0.15), rgba(17, 75, 47, 0.06)) !important;
    box-shadow: 0 6px 18px rgba(8, 30, 19, 0.08);
}

.esf-vote-item__name {
    font-weight: 800;
    grid-column: 2;
    grid-row: 1;
}

.esf-vote-item__meta {
    grid-column: 2;
    grid-row: 2;
    color: var(--esf-muted);
    font-size: 0.86rem;
}

.esf-vote-item input[type='radio'] {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 20px;
    min-height: 20px;
    margin: 0;
    align-self: center;
}

.esf-vote-rating-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.esf-vote-rating-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.2rem;
    padding: 10px 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(17, 75, 47, 0.14);
    background: linear-gradient(180deg, #fff, #f4f0e6);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.esf-vote-rating-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8, 30, 19, 0.1);
    border-color: rgba(215, 161, 38, 0.45);
}

.esf-vote-rating-pill:has(input:checked) {
    border-color: var(--esf-primary);
    box-shadow: 0 0 0 2px rgba(17, 75, 47, 0.2);
    background: linear-gradient(180deg, rgba(215, 161, 38, 0.18), rgba(17, 75, 47, 0.05));
}

.esf-vote-rating-pill input[type='radio'] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.esf-vote-rating-pill__num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--esf-primary);
}

.esf-vote-rating-pill__txt {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--esf-muted);
    text-align: center;
    margin-top: 4px;
}

.esf-vote-submit {
    width: 100%;
    max-width: 360px;
}

.esf-vote-message-slot:empty {
    display: none;
}

.esf-club-directory__content {
    gap: 22px;
}

.esf-club-directory__judge {
    padding: 18px 20px 20px;
    border-radius: 20px;
    border: 1px solid rgba(17, 75, 47, 0.1);
    background: linear-gradient(165deg, rgba(17, 75, 47, 0.04), rgba(255, 255, 255, 0.4));
}

.esf-club-directory__judge-head {
    margin-bottom: 14px;
}

.esf-club-directory__judge-title {
    margin: 4px 0 8px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--esf-ink);
}

.esf-club-directory__judge-hint {
    margin: 0;
    color: var(--esf-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.esf-club-directory__judge .esf-vote-container {
    box-shadow: none;
    border: 1px dashed rgba(17, 75, 47, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.esf-mini-card--stadium {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background:
        linear-gradient(165deg, rgba(30, 60, 35, 0.06) 0%, rgba(255, 252, 244, 0.98) 100%),
        radial-gradient(80% 60% at 50% 0%, rgba(45, 95, 48, 0.15), transparent 60%);
    border: 1px solid rgba(17, 75, 47, 0.12);
}

.esf-mini-card__sub {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--esf-muted);
    letter-spacing: 0.04em;
}

/* Registration: use same “tournament” hero layers as .esf-hero-card; add warm spotlight only (no flat override) */
.esf-hero-card--registration {
    background:
        radial-gradient(ellipse 80% 55% at 12% 18%, rgba(215, 161, 38, 0.42), transparent 48%),
        radial-gradient(ellipse 90% 60% at 8% 20%, rgba(215, 161, 38, 0.35), transparent 52%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(60, 180, 120, 0.14), transparent 45%),
        radial-gradient(circle at top right, rgba(247, 241, 230, 0.16), transparent 30%),
        linear-gradient(135deg, #0d3a28 0%, var(--esf-primary) 38%, #071a10 100%);
    box-shadow: 0 28px 70px rgba(8, 30, 19, 0.32);
}

.esf-hero-card--registration .esf-hero-inset {
    align-items: center;
}

.esf-hero-card--registration p {
    font-size: 1.02rem;
    line-height: 1.5;
    max-width: 52ch;
    overflow-wrap: break-word;
}

.esf-jersey-input {
    max-width: 86px;
}

.esf-empty-state,
.esf-empty-inline {
    padding: 24px;
    border-radius: 24px;
    background: rgba(17, 75, 47, 0.05);
    border: 1px dashed rgba(17, 75, 47, 0.16);
}

.esf-empty-state--split {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.esf-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.esf-empty-state h3,
.esf-empty-inline h3 {
    margin-bottom: 8px;
}

.esf-qr-card {
    text-align: center;
    display: grid;
    gap: 12px;
    align-content: start;
}

.esf-qr-card img,
.esf-sponsor-feature__brand img,
.esf-sponsor-card img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

.esf-qr-card .esf-scan-avatar {
    width: 116px;
    height: 116px;
    max-width: none;
    margin: 0 auto;
}

.esf-sponsor-feature {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 40px);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 214, 125, 0.24), transparent 30%),
        linear-gradient(145deg, #102e1e, #183726 60%, #0d2618 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(8, 30, 19, 0.28);
}

.esf-sponsor-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 45%);
    pointer-events: none;
}

.esf-sponsor-feature__layout,
.esf-sponsor-card__surface {
    position: relative;
    z-index: 1;
}

.esf-sponsor-feature__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
    gap: 26px;
    align-items: center;
}

.esf-sponsor-feature__copy {
    display: grid;
    gap: 14px;
}

.esf-sponsor-feature__copy p {
    color: rgba(255, 255, 255, 0.82);
}

.esf-sponsor-feature .esf-eyebrow {
    color: rgba(255, 244, 208, 0.96);
}

.esf-sponsor-feature .esf-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.esf-sponsor-feature__brand {
    justify-self: end;
    width: min(100%, 280px);
    min-height: 220px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
}

.esf-sponsor-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    aspect-ratio: 1;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.esf-sponsor-mark--compact {
    width: 86px;
    height: 86px;
    font-size: 2rem;
    border-radius: 24px;
    color: var(--esf-primary);
    background: rgba(17, 75, 47, 0.08);
    border-color: rgba(17, 75, 47, 0.12);
}

.esf-sponsor-card {
    text-align: left;
}

.esf-sponsor-card__surface {
    height: 100%;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(17, 75, 47, 0.12);
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(247, 240, 224, 0.94));
    box-shadow: 0 18px 36px rgba(8, 30, 19, 0.12);
}

.esf-sponsor-card__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.esf-sponsor-card img {
    width: 88px;
    height: 88px;
    margin: 0;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(17, 75, 47, 0.06);
    border: 1px solid rgba(17, 75, 47, 0.1);
    padding: 14px;
}

.esf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 19, 13, 0.62);
    padding: 20px;
    overflow-y: auto;
}

.esf-modal-content {
    max-width: 580px;
    margin: 8vh auto 0;
    padding: 28px;
}

.esf-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(17, 75, 47, 0.08);
    color: var(--esf-ink);
    font-size: 1.4rem;
}

@media (max-width: 1024px) {
    .esf-card-grid--four,
    .esf-card-grid--three,
    .esf-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esf-venue-grid.esf-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    .esf-hero-card:not(.esf-hero-bleed),
    .esf-profile-hero:not(.esf-profile-hero--team):not(.esf-hero-bleed) {
        grid-template-columns: 1fr;
    }

    .esf-hero-card.esf-hero-bleed .esf-hero-inset {
        grid-template-columns: 1fr;
    }

    .esf-hero-card--registration.esf-hero-bleed.esf-hero--hub .esf-hero-inset {
        grid-template-columns: 1fr;
    }

    .esf-profile-hero.esf-hero-bleed:not(.esf-profile-hero--team) .esf-hero-inset {
        grid-template-columns: 1fr;
    }

    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-hero-inset,
    .esf-profile-hero--tournament:not(.esf-profile-hero--team) .esf-profile-hero__inset {
        min-height: 0;
    }

    .esf-sponsor-feature__layout {
        grid-template-columns: 1fr;
    }

    .esf-sponsor-feature__brand {
        justify-self: start;
    }

    .esf-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .esf-dashboard-sidebar {
        position: static;
    }

    .esf-performance-panel__layout {
        grid-template-columns: 1fr;
    }

    .esf-performance-panel__stats,
    .esf-showcase-grid--players,
    .esf-roster-grid,
    .esf-match-grid,
    .esf-live-grid,
    .esf-qr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esf-showcase-grid--teams {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    }

    .esf-pending-banner,
    .esf-empty-state--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .esf-dashboard-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esf-shell--dashboard {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .esf-tournament-slider__header,
    .esf-tournament-slide__panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .esf-tournament-slide__panels {
        grid-template-columns: 1fr;
    }

    .esf-roster-row__summary,
    .esf-roster-directory__head {
        grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) auto;
    }

    .esf-roster-row__details-layout {
        grid-template-columns: 1fr;
    }

    .esf-roster-row__detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .esf-team-pitch-hero__masthead {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .esf-team-pitch-hero__copy .esf-chip-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .esf-hero-card--registration h2 {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }
}

@media (max-width: 720px) {
    .esf-venue-card__specs {
        grid-template-columns: 1fr;
    }

    .esf-vote-rating-scale {
        flex-direction: column;
    }

    .esf-vote-rating-pill {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        min-width: 0;
        width: 100%;
    }

    .esf-card-grid--two,
    .esf-card-grid--three,
    .esf-card-grid--four,
    .esf-stat-grid,
    .esf-form-grid--two,
    .esf-roster-grid,
    .esf-payment-grid {
        grid-template-columns: 1fr;
    }

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

    .esf-venue-grid.esf-card-grid {
        grid-template-columns: 1fr;
    }

    .esf-performance-panel__stats,
    .esf-showcase-grid--players,
    .esf-match-grid,
    .esf-live-grid,
    .esf-qr-grid {
        grid-template-columns: 1fr;
    }

    .esf-showcase-grid--teams {
        grid-template-columns: minmax(0, 1fr);
    }

    .esf-section-head,
	.esf-disclosure__summary,
    .esf-tournament-slider__header,
    .esf-tournament-slide__panel-head,
    .esf-list-card,
    .esf-detail-list li,
    .esf-match-card__head,
    .esf-member-card__head,
    .esf-approval-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .esf-showcase-card--player .esf-showcase-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esf-showcase-card--team .esf-showcase-card__brand {
        flex-direction: column;
        gap: 10px;
    }

    .esf-sponsor-card__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .esf-entry-hero-actions,
    .esf-empty-state__actions {
        width: 100%;
    }

    .esf-sponsor-feature__brand {
        width: 100%;
        justify-self: stretch;
    }

    .esf-list-meta {
        justify-items: start;
    }

    .esf-squad-hub__meta {
        width: 100%;
        justify-content: flex-start;
    }

    .esf-disclosure__meta {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .esf-roster-directory__head {
        display: none;
    }

    .esf-roster-row__summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .esf-roster-row__cell,
    .esf-roster-row__toggle,
    .esf-roster-row__actions {
        width: 100%;
    }

    .esf-roster-row__label {
        display: inline-flex;
    }

    .esf-roster-row__detail-grid {
        grid-template-columns: 1fr;
    }

    .esf-roster-row__manager-actions .esf-btn-sm,
    .esf-roster-row__actions .esf-btn-sm {
        width: 100%;
        justify-content: center;
    }

    .esf-tournament-slider__controls {
        width: 100%;
        justify-content: space-between;
    }

    .esf-tournament-slide__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .esf-tournament-slide__metrics .esf-mini-card:last-child {
        grid-column: 1 / -1;
    }

    .esf-scoreboard {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    .esf-scoreboard__team:last-child {
        text-align: left;
    }

    .esf-match-comparison__row {
        grid-template-columns: 1fr;
    }

    .esf-table {
        white-space: nowrap;
    }

    .esf-dashboard-nav {
        grid-template-columns: 1fr;
    }

    .esf-dashboard-topbar,
    .esf-dashboard-sidebar__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .esf-dashboard-topbar__actions,
    .esf-dashboard-sidebar__actions,
    .esf-dashboard-workspaces .esf-chip-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
}

@media (max-width: 560px) {
    .esf-profile-media--hero-tall {
        flex-direction: row;
        align-items: center;
    }

    .esf-shell {
        --esf-shell-pad-y: 12px;
        --esf-shell-pad-top: 12px;
        padding: var(--esf-shell-pad-top) 12px var(--esf-shell-pad-y) 12px;
    }

    /* Do not reintroduce top padding over full-bleed heroes (see base .esf-shell rules) */
    .esf-shell:has(> :is(.esf-hero-bleed, .esf-profile-hero.esf-hero-bleed):first-child),
    .esf-shell.esf-registration-hub {
        --esf-shell-pad-top: 0;
        padding-top: 0;
    }

    .esf-section-card,
    .esf-registration-container,
    .esf-rankings-container,
    .esf-vote-container,
    .esf-modal-content {
        padding: 18px;
        border-radius: 22px;
    }

    .esf-btn,
    .esf-btn-sm {
        width: 100%;
    }

    .esf-showcase-card--player .esf-showcase-stats {
        grid-template-columns: 1fr;
    }

    .esf-sponsor-mark--compact {
        width: 72px;
        height: 72px;
    }

    .esf-profile-media {
        flex-direction: column;
        align-items: flex-start;
    }

    .esf-tournament-hero-cta {
        flex-direction: column;
    }

    .esf-tournament-hero-cta .esf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* —— Premium shell: tournament hero, venues, section heads, live filters, player cards —— */
.esf-hero-card--tournament,
.esf-hero-card--standings,
.esf-hero-card--live-matches {
    background:
        radial-gradient(ellipse 80% 55% at 100% 0%, rgba(215, 161, 38, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(30, 135, 80, 0.2), transparent 50%),
        linear-gradient(135deg, var(--esf-primary), var(--esf-primary-deep));
    position: relative;
    overflow: hidden;
}

.esf-hero-card--tournament::after,
.esf-hero-card--standings::after,
.esf-hero-card--live-matches::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    pointer-events: none;
}

.esf-hero-card--tournament .esf-hero-inset,
.esf-hero-card--standings .esf-hero-inset,
.esf-hero-card--live-matches .esf-hero-inset {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
}

.esf-tournament-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: min(200px, 100%);
}

@media (min-width: 720px) {
    .esf-tournament-hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.esf-hero-card--tournament .esf-tag--ghost,
.esf-hero-card--standings .esf-tag--ghost,
.esf-hero-card--live-matches .esf-tag--ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

.esf-section-card > .esf-section-head,
.esf-rankings-container > .esf-section-head,
.esf-live-results__toolbar > .esf-section-head {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(17, 75, 47, 0.09);
}

.esf-section-head--after-hero {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
}

.esf-section-head--after-hero + .esf-chip-row--filter {
    margin-top: 0;
}

.esf-venue-grid.esf-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.esf-venue-grid {
    gap: 22px;
}

.esf-venue-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 260px;
    border: 1px solid rgba(17, 75, 47, 0.14);
    background: linear-gradient(180deg, #f4f0e4 0%, #faf6ec 100%);
    box-shadow: 0 20px 48px rgba(8, 30, 19, 0.11);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.esf-venue-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.esf-venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 64px rgba(8, 30, 19, 0.16);
    border-color: rgba(215, 161, 38, 0.4);
}

.esf-venue-card__visual {
    position: relative;
    z-index: 1;
    height: 96px;
    background:
        radial-gradient(ellipse 120% 80% at 50% 12%, rgba(60, 90, 50, 0.35) 0%, transparent 45%),
        linear-gradient(180deg, #0a1522 0%, #0d1a0d 45%, #0a120a 100%);
    border-bottom: 3px solid rgba(215, 161, 38, 0.55);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.esf-venue-card:hover .esf-venue-card__visual {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.04);
}

.esf-venue-card__sky {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 28px;
    background: linear-gradient(180deg, #050a12 0%, rgba(8, 18, 28, 0.95) 100%);
    opacity: 0.95;
}

.esf-venue-card__lights {
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 18px,
        rgba(255, 230, 180, 0.35) 18px 20px,
        transparent 20px 40px
    );
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.6;
}

.esf-venue-card__stands {
    position: absolute;
    left: 0;
    right: 0;
    top: 24px;
    height: 34px;
    background: repeating-linear-gradient(
        90deg,
        rgba(12, 22, 16, 0.98) 0px,
        rgba(12, 22, 16, 0.98) 7px,
        rgba(32, 48, 36, 0.98) 7px,
        rgba(32, 48, 36, 0.98) 11px
    );
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.esf-venue-card__pitch-wrap {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 6px;
    top: 58px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.esf-venue-card__svg {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 18px rgba(0, 0, 0, 0.45);
    background: linear-gradient(180deg, #2f8a42 0%, #1b5a28 100%);
}

.esf-venue-card__svg .esf-venue-svg-grass {
    fill: #247233;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 0.4;
}

.esf-venue-card__svg .esf-venue-svg-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 0.5;
    opacity: 0.9;
}

.esf-venue-card__svg circle {
    fill: none;
}

.esf-venue-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 12px 18px 10px;
    background: linear-gradient(90deg, rgba(17, 75, 47, 0.95), rgba(8, 36, 22, 0.92));
    color: #fff;
}

.esf-venue-card__badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.95;
}

.esf-venue-card__host {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
}

.esf-venue-card__body {
    position: relative;
    z-index: 1;
    padding: 16px 20px 20px;
    display: grid;
    gap: 10px;
    flex: 1;
}

.esf-venue-card__stadium-name {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-venue-card__body h3 {
    margin: 0;
    font-size: clamp(1.28rem, 2.2vw, 1.65rem);
    line-height: 1.05;
    color: var(--esf-primary-deep);
}

.esf-venue-card__specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.esf-venue-card__specs li {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(17, 75, 47, 0.05);
    border: 1px solid rgba(17, 75, 47, 0.08);
    display: grid;
    gap: 4px;
}

.esf-venue-spec__label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--esf-muted);
}

.esf-venue-spec__val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--esf-primary);
}

.esf-venue-card__tagline {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--esf-muted);
}

.esf-venue-card__notes {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--esf-muted);
}

.esf-tag--filter {
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a.esf-tag--filter:hover,
a.esf-tag--filter:focus-visible {
    background: linear-gradient(180deg, rgba(17, 75, 47, 0.14), rgba(17, 75, 47, 0.08));
    color: var(--esf-primary-deep);
    box-shadow: 0 4px 14px rgba(8, 30, 19, 0.1);
    transform: translateY(-1px);
}

.esf-showcase-card--player {
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(8, 30, 19, 0.12);
    border: 1px solid rgba(17, 75, 47, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.esf-showcase-card--player:hover,
.esf-showcase-card--player:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(8, 30, 19, 0.18);
    border-color: rgba(215, 161, 38, 0.35);
}

.esf-showcase-card--player .esf-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 4px;
}

.esf-showcase-card--player .esf-showcase-stats strong {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.esf-showcase-card--player .esf-showcase-rank {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.esf-live-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(255, 251, 242, 0.98) 0%, rgba(255, 245, 228, 0.95) 100%),
        radial-gradient(100% 80% at 100% 0%, rgba(215, 161, 38, 0.12), transparent 45%);
    border: 1px solid rgba(17, 75, 47, 0.1);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.esf-live-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--esf-accent));
    opacity: 0.65;
    pointer-events: none;
}

.esf-live-card--selected {
    border-color: rgba(17, 75, 47, 0.28);
    box-shadow: 0 20px 48px rgba(8, 30, 19, 0.14);
}

.esf-live-card .esf-match-card__head {
    margin-bottom: 10px;
}

.esf-rankings-shell--hero .esf-rankings-container,
.esf-live-results-shell--hero .esf-live-results__toolbar {
    margin-top: 0;
}

.esf-tournament-slider__header {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17, 75, 47, 0.08);
}
