@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap");

:root {
    --background: #17202b;
    --foreground: #f7faf6;
    --card: #202b38;
    --card-soft: rgba(32, 43, 56, 0.72);
    --primary: #55bf68;
    --primary-dark: #2c8f46;
    --primary-foreground: #101820;
    --secondary: #d8d846;
    --secondary-foreground: #111820;
    --muted: #344252;
    --muted-foreground: #aeb9c4;
    --border: #405064;
    --stadium: #111923;
    --shadow-sports: 0 20px 50px rgba(85, 191, 104, 0.28);
    --shadow-glow: 0 0 60px rgba(216, 216, 70, 0.25);
    --gradient-primary: linear-gradient(135deg, #55bf68, #74d77b);
    --gradient-victory: linear-gradient(135deg, #55bf68, #d8d846);
    --gradient-hero: linear-gradient(135deg, rgba(17, 25, 35, 0.98) 0%, rgba(17, 25, 35, 0.68) 56%, rgba(85, 191, 104, 0.42) 100%);
    --header-height: 5.125rem;
    --countdown-height: 4.75rem;
    --site-chrome-height: calc(var(--header-height) + var(--countdown-height));
    --scoreboard-amber: #ffb020;
    --scoreboard-amber-dim: #c47210;
    --scoreboard-led: #ffcc33;
}

html.countdown-hidden {
    --countdown-height: 0px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-chrome-height);
}

html,
body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--foreground);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body {
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
.font-display,
.site-nav,
.btn-primary,
.btn-outline,
.eyebrow {
    font-family: Oswald, Impact, sans-serif;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 0.98;
    text-transform: uppercase;
}

p {
    margin: 0;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-main:focus,
.site-main:focus-visible {
    outline: none;
}

.container-x {
    width: min(1280px, calc(100% - 2rem));
    margin-inline: auto;
}

.section-padding {
    padding-block: clamp(5rem, 9vw, 7rem);
}

.about-block.section-padding {
    padding-bottom: 50px;
}

/* Header + countdown sticky: gli anchor (#matches, #rankings, …) non devono finire sotto. */
#matches,
#rankings,
#team,
#about {
    scroll-margin-top: calc(var(--site-chrome-height) + 0.75rem);
}

.glass-navbar {
    background: rgba(17, 25, 35, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.site-chrome {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header {
    position: relative;
    z-index: 2;
    padding-block: 1rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    white-space: nowrap;
}

.site-logo {
    display: block;
    width: 189px;
    height: 50px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-transform: uppercase;
    font-size: 0.86rem;
    font-weight: 700;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.site-nav a {
    color: rgba(247, 250, 246, 0.78);
    padding: 0.65rem 0.95rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--secondary);
}

.lang-switcher {
    position: relative;
    z-index: 60;
}

.lang-switcher > summary {
    list-style: none;
}

.lang-switcher > summary::-webkit-details-marker {
    display: none;
}

.lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.4rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
    cursor: pointer;
}

.lang-switcher-toggle .lang-caret {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

.lang-flag {
    display: block;
    width: 1.45rem;
    height: 1rem;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 11.5rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(17, 25, 35, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lang-switcher-menu button,
.lang-switcher-menu a {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(247, 250, 246, 0.86);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.lang-switcher-menu button:hover,
.lang-switcher-menu button.active,
.lang-switcher-menu a:hover,
.lang-switcher-menu a.active {
    background: rgba(246, 206, 0, 0.12);
    color: var(--secondary);
}

.lang-switcher-menu .lang-name {
    font-size: 0.86rem;
    font-weight: 600;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    border: 0;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-sports);
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.hero-section {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-section > img,
.cta-section > img,
.inner-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--gradient-hero);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, var(--stadium), rgba(17, 25, 35, 0.45), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 3.5rem 13rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--secondary);
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow > span {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.hero-content h1 {
    border: 0;
    outline: none;
    box-shadow: none;
    /* max-width: 10ch; */
    max-width: 16ch;
    margin-top: 1rem;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 700;
}

.hero-content h1:focus,
.hero-content h1:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
}

.hero-content h1 strong,
.section-heading strong,
.two-column h2 strong,
.cta-content strong,
.inner-hero strong,
.newsletter-panel strong {
    background: var(--gradient-victory);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: inherit;
}

.hero-content p {
    max-width: 36rem;
    margin-top: 1.4rem;
    color: rgba(247, 250, 246, 0.78);
    font-size: 1.08rem;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.hero-store-badges {
    justify-content: flex-start;
}

.hero-actions.center .hero-store-badges {
    justify-content: center;
}

.hero-actions.center {
    justify-content: center;
}

.hero-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 2.8rem;
    color: rgba(247, 250, 246, 0.8);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.hero-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-bullets i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--secondary);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.stats-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: var(--border);
}

.stats-grid article {
    min-height: 8.5rem;
    padding: 1.45rem;
    text-align: center;
    background: rgba(32, 43, 56, 0.84);
    backdrop-filter: blur(10px);
}

.stat-icon {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    margin: 0 auto;
    color: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0;
}

.stat-icon::before,
.stat-icon svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
}

.stat-icon::before {
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.stats-grid article:nth-child(1) .stat-icon::before {
    background-image: url("../assets/stat-trophy.svg");
}

.stats-grid article:nth-child(2) .stat-icon::before {
    background-image: url("../assets/stat-players.svg");
}

.stats-grid article:nth-child(3) .stat-icon::before {
    background-image: url("../assets/stat-coaches.svg");
}

.stats-grid article:nth-child(4) .stat-icon::before {
    background-image: url("../assets/stat-star.svg");
}

.stat-icon:has(svg)::before {
    content: none;
}

.stats-grid strong {
    display: block;
    margin-top: 0.55rem;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.65rem;
}

.stats-grid small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ticker-band {
    overflow: hidden;
    padding-block: 1rem;
    border-block: 1px solid rgba(85, 191, 104, 0.42);
    background: var(--primary);
    color: var(--primary-foreground);
}

.ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    will-change: transform;
    animation: ticker 32s linear infinite;
    white-space: nowrap;
}

.ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2.25rem;
}

.ticker-separator {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--secondary-foreground);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}

.image-stage {
    position: relative;
}

.image-stage img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.experience-badge {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    min-width: 11rem;
    padding: 1.35rem;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    box-shadow: var(--shadow-glow);
}

.experience-badge strong {
    display: block;
    font-family: Oswald, Impact, sans-serif;
    font-size: 3.1rem;
    line-height: 1;
}

.experience-badge span {
    display: block;
    margin-top: 0.25rem;
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.two-column h2,
.section-heading h2,
.cta-content h2,
.inner-hero h1,
.newsletter-panel h2 {
    margin-top: 0.8rem;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
}

.two-column p,
.cta-content p,
.inner-hero p,
.blog-grid p {
    color: var(--muted-foreground);
    line-height: 1.75;
}

.two-column > div > p {
    margin-top: 1.25rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mission-grid article,
.program-grid article,
.testimonial-grid article,
.contact-form,
.contact-panel,
.blog-grid article {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.mission-grid article {
    padding: 1.25rem;
}

.mission-grid h3,
.program-grid h3,
.footer-grid h3,
.blog-grid h2 {
    color: var(--foreground);
    font-size: 1.25rem;
}

.mission-grid h3,
.program-grid h3,
.footer-grid h3 {
    text-transform: uppercase;
}

.mission-grid h3 {
    color: var(--secondary);
    font-size: 0.96rem;
}

.mission-grid p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.card-band {
    background: rgba(32, 43, 56, 0.38);
}

.stripe-bg {
    background-image: repeating-linear-gradient(135deg, rgba(85, 191, 104, 0.052) 0, rgba(85, 191, 104, 0.052) 2px, transparent 2px, transparent 14px);
}

.section-heading {
    margin-bottom: 3rem;
    text-align: center;
}

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

.matches-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
    background: #0a0d12;
}

.matches-section > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: none;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.matches-section-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(10, 13, 18, 0.12) 0%,
        rgba(10, 13, 18, 0.06) 40%,
        rgba(10, 13, 18, 0.55) 100%
    );
}

.matches-section .container-x {
    position: relative;
    z-index: 2;
}

.matches-section .match-league-filter {
    background: rgba(17, 25, 35, 0.42);
    backdrop-filter: blur(8px);
}

.matches-section .match-league-filter.is-active {
    background: rgba(85, 191, 104, 0.28);
}

.matches-section .matches-focus-box,
.matches-section .match-card {
    background: rgba(17, 25, 35, 0.38);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.matches-focus-box {
    max-width: none;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.matches-focus-box .eyebrow {
    margin-bottom: 0.85rem;
}

.matches-focus-box p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.02rem;
    line-height: 1.75;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.split-heading .eyebrow {
    justify-content: flex-start;
}

.split-heading a {
    color: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.split-heading > p {
    max-width: 28rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    text-align: right;
}

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

.team-card {
    position: relative;
    display: flex;
    min-height: 30rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(32, 43, 56, 0.98), rgba(17, 25, 35, 0.92));
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sports);
}

.team-photo {
    display: grid;
    width: 7.75rem;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(247, 250, 246, 0.18);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(64, 80, 100, 0.95), rgba(32, 43, 56, 0.95));
    box-shadow: inset 0 0 0 0.55rem rgba(17, 25, 35, 0.28);
}

.team-photo span {
    display: block;
    width: 3.25rem;
    aspect-ratio: 1;
    border: 2px dashed rgba(247, 250, 246, 0.42);
    border-radius: 50%;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 1.35rem;
}

.team-info span {
    color: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.team-info h3 {
    margin-top: 0.45rem;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.05;
}

.team-info p {
    margin-top: 0.95rem;
    color: var(--muted-foreground);
    font-size: 0.94rem;
    line-height: 1.65;
}

.linkedin-link {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--secondary);
    background: rgba(247, 250, 246, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.linkedin-link:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    color: var(--secondary-foreground);
    background: var(--secondary);
}

.match-league-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
}

.match-league-filter {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.match-league-filter:hover {
    border-color: var(--primary);
}

.match-league-filter.is-active {
    border-color: var(--primary);
    background: rgba(85, 191, 104, 0.14);
    color: var(--primary);
}

.match-list {
    display: grid;
    gap: 1rem;
}

.matches-status {
    color: var(--muted-foreground);
    font-size: 1.05rem;
}

.match-card {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr) 9.5rem;
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.match-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.match-when,
.match-teams,
.match-league {
    font-family: Oswald, Impact, sans-serif;
}

.match-when strong {
    display: block;
    font-size: 1.1rem;
}

.match-when span {
    color: var(--secondary);
}

.match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: center;
    font-size: 1.3rem;
    text-transform: uppercase;
    min-width: 0;
}

.match-team {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.match-team--home {
    text-align: right;
    justify-self: stretch;
}

.match-team--away {
    text-align: left;
    justify-self: stretch;
}

.match-vs {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 2.1rem;
    padding: 0;
    border-radius: 6px;
    background: rgba(85, 191, 104, 0.12);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    justify-self: center;
}

.match-league {
    justify-self: end;
    width: 100%;
    max-width: 9.5rem;
    box-sizing: border-box;
    text-align: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-league--empty {
    visibility: hidden;
}

.ranking-list {
    display: grid;
    gap: 0.75rem;
    animation: ranking-page-in 0.35s ease both;
}

@keyframes ranking-page-in {
    from {
        opacity: 0;
        transform: translateY(0.45rem);
    }

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

.ranking-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.ranking-panel-head--flop {
    flex-direction: row-reverse;
}

.ranking-panel-title {
    margin: 0;
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ranking-panel-title--flop {
    text-align: right;
}

.ranking-pager {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(17, 25, 35, 0.42);
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.ranking-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 2.1rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ranking-pager-btn--next {
    justify-self: end;
}

.ranking-pager-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
}

.ranking-pager-btn:hover:not(:disabled) {
    background: rgba(85, 191, 104, 0.18);
    border-color: rgba(85, 191, 104, 0.45);
    color: #dff8e4;
}

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

.ranking-pager-btn:disabled {
    opacity: 0.32;
    cursor: default;
}

.ranking-pager-meta {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    min-width: 4.5rem;
    text-align: center;
}

.ranking-pager-meta strong {
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ranking-pager-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ranking-pager-dots i {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(247, 250, 246, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.ranking-pager-dots i.is-active {
    width: 0.85rem;
    background: var(--primary);
    transform: scale(1.05);
}

.rankings-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    background: #0a0d12;
}

.rankings-section > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: unset;
    object-position: unset;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.rankings-section-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(10, 13, 18, 0.12) 0%,
        rgba(10, 13, 18, 0.06) 40%,
        rgba(10, 13, 18, 0.55) 100%
    );
}

.rankings-section .container-x {
    position: relative;
    z-index: 2;
}

.rankings-section .section-heading {
    margin-bottom: 2rem;
}

.rankings-section .match-league-filter {
    background: rgba(17, 25, 35, 0.42);
    backdrop-filter: blur(8px);
}

.rankings-section .match-league-filter.is-active {
    background: rgba(85, 191, 104, 0.28);
}

.rankings-section .ranking-row {
    background: rgba(17, 25, 35, 0.38);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.rankings-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.ranking-kind-switch {
    display: none;
}

.ranking-panel {
    min-width: 0;
}

.rankings-season-note {
    margin-top: 0.65rem;
    max-width: 40rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem 0.9rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.ranking-body {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.ranking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.ranking-league {
    flex: 0 1 auto;
    max-width: 9rem;
    margin: 0;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.ranking-rank {
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

.ranking-player {
    min-width: 0;
    flex: 1 1 auto;
}

.ranking-player strong {
    display: block;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.ranking-player span {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted-foreground);
    font-size: 0.88rem;
}

.ranking-avg {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.ranking-avg::before {
    content: attr(data-label);
    color: var(--muted-foreground);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.program-grid,
.testimonial-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.program-grid article {
    padding: 1.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.program-grid article:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.program-grid article > span {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 8px;
    background: rgba(85, 191, 104, 0.15);
    color: var(--primary);
    font-family: Oswald, Impact, sans-serif;
    font-weight: 700;
}

.program-grid article > span svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

.program-grid h3 {
    margin-top: 1.35rem;
}

.program-grid p {
    margin-top: 0.65rem;
    color: var(--muted-foreground);
    font-size: 0.92rem;
    line-height: 1.65;
}

.program-grid a {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 16rem;
    gap: 1rem;
}

.gallery-grid figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 8px;
    background: var(--card);
}

.gallery-grid .tall {
    grid-row: span 2;
}

.app-screens-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: start;
}

.app-screens-grid figure {
    aspect-ratio: 1206 / 2622;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.app-screens-grid img {
    object-fit: contain;
    object-position: center;
}

.gallery-grid figure:hover img {
    transform: scale(1.1);
}

.gallery-grid.app-screens-grid figure:hover img {
    transform: scale(1.08);
}

.gallery-grid figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(17, 25, 35, 0.92), transparent);
    color: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-grid figure:hover figcaption {
    opacity: 1;
}

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

.testimonial-grid article {
    position: relative;
    display: flex;
    min-height: 13rem;
    align-items: center;
    padding: 1.7rem;
}

.testimonial-grid article::before {
    content: "";
    position: absolute;
    top: -1rem;
    left: 1.25rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6ce01' stroke-width='0.936' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2.2rem 2.2rem;
    border-radius: 50%;
}

.testimonial-grid p {
    color: rgba(247, 250, 246, 0.86);
    font-size: 1.08rem;
    line-height: 1.72;
}

.cta-section,
.inner-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-section {
    min-height: 28rem;
    display: flex;
    align-items: center;
    text-align: center;
}

.cta-section > div:first-of-type,
.inner-hero > div:first-of-type {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(17, 25, 35, 0.88);
}

.cta-content {
    padding-block: 6rem;
}

.cta-content .eyebrow {
    justify-content: center;
}

.cta-content h2 {
    max-width: 54rem;
    margin-inline: auto;
}

.cta-content p {
    margin-top: 1.15rem;
}

.inner-hero {
    min-height: 30rem;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.inner-hero .container-x {
    padding-block: 7rem 5rem;
}

.inner-hero.contact-hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: 1.25rem;
}

.inner-hero.contact-hero .container-x {
    padding-block: 0.75rem 2.5rem;
}

.contact-body.section-padding {
    padding-top: 0;
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-body .legal-layout {
    gap: 1.25rem;
}

.contact-body .legal-sidebar {
    padding: 1.25rem;
}

.contact-body .legal-content {
    gap: 1rem;
}

.contact-body .legal-content section {
    padding: clamp(1rem, 2.2vw, 1.35rem);
}

.inner-hero h1 {
    max-width: 12ch;
}

.inner-hero p {
    max-width: 39rem;
    margin-top: 1.1rem;
    font-size: 1.08rem;
}

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

.blog-grid article {
    overflow: hidden;
}

.blog-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-grid article > div {
    padding: 1.5rem;
}

.blog-grid span {
    color: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-grid h2 {
    margin-top: 0.55rem;
    font-size: 1.8rem;
}

.blog-grid p {
    margin-top: 0.8rem;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.45fr);
    gap: 2rem;
    align-items: start;
}

.faq-panel,
.faq-list details {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.faq-panel {
    position: sticky;
    top: calc(var(--site-chrome-height) + 0.75rem);
    padding: 1.8rem;
}

.faq-panel h2 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.faq-panel p {
    margin-top: 1rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-list details {
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-list details[open],
.faq-list details:hover {
    border-color: var(--primary);
    box-shadow: 0 18px 42px rgba(85, 191, 104, 0.16);
}

.faq-list summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.4rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary > span {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 8px;
    background: rgba(85, 191, 104, 0.14);
    color: var(--primary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
}

.faq-list summary h3 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.15;
}

.faq-list summary::after {
    content: "+";
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    color: var(--secondary-foreground);
    background: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.3rem;
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "-";
    background: var(--primary);
    color: var(--primary-foreground);
}

.faq-list details > p {
    margin: 0;
    padding: 0 1.4rem 1.35rem 4.85rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.55fr);
    gap: 2rem;
    align-items: start;
}

.legal-sidebar,
.legal-content section {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.legal-sidebar {
    position: sticky;
    top: calc(var(--site-chrome-height) + 0.75rem);
    padding: 1.8rem;
}

.legal-sidebar h2 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.legal-sidebar p {
    margin-top: 1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.legal-content {
    display: grid;
    gap: 1.5rem;
}

.legal-content section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: clamp(1.25rem, 3vw, 1.8rem);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.legal-content section:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 18px 42px rgba(85, 191, 104, 0.16);
}

.legal-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 8px;
    background: rgba(85, 191, 104, 0.14);
    color: var(--primary);
}

.legal-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-content h2 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.legal-content p,
.legal-content li {
    color: var(--muted-foreground);
    line-height: 1.8;
}

.legal-content p,
.legal-content ul {
    margin-top: 0.85rem;
}

.legal-content ul {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.15rem;
}

.legal-content a {
    color: var(--secondary);
    font-weight: 700;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    gap: 2rem;
    align-items: start;
}

.contact-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.contact-aside > .eyebrow {
    margin-bottom: 0.15rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
}

.contact-form span {
    font-family: Oswald, Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.newsletter-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: var(--muted);
    color: var(--foreground);
    padding: 0.95rem 1rem;
}

.contact-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--secondary) 50%), linear-gradient(135deg, var(--secondary) 50%, transparent 50%);
    background-position: calc(100% - 1.05rem) 50%, calc(100% - 0.7rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    color: var(--foreground);
}

.contact-form textarea {
    resize: vertical;
}

.contact-panel {
    padding: 1.25rem 1.4rem;
}

.contact-panel--address .contact-address {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
}

.contact-panel--email a {
    color: var(--secondary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-break: break-word;
}

.contact-panel--email a:hover {
    color: var(--primary);
}

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: var(--stadium);
}

.footer-stripes {
    display: flex;
    height: 0.38rem;
}

.footer-stripes span {
    flex: 1;
}

.footer-stripes span:nth-child(odd) {
    background: var(--primary);
}

.footer-stripes span:nth-child(even) {
    background: var(--secondary);
}

.footer-bg {
    position: absolute;
    inset: 0;
    opacity: 0.72;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding-block: 4rem 0;
}

.footer-download {
    scroll-margin-top: 6rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(247, 250, 246, 0.12);
    text-align: center;
}

.footer-download h3 {
    margin: 0 0 1.1rem;
    color: rgba(247, 250, 246, 0.92);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem 1rem;
}

.store-badge {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* —— Stadium scoreboard countdown (sotto header, sticky insieme) —— */
.stadium-countdown {
    position: relative;
    z-index: 1;
    min-height: var(--countdown-height);
    padding: 0.35rem 0.75rem 0.55rem;
    background:
        linear-gradient(180deg, #1a222c 0%, #0d1218 100%);
    border-bottom: 1px solid rgba(255, 176, 32, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

.scoreboard-shell {
    position: relative;
    width: min(920px, 100%);
    margin-inline: auto;
}

.scoreboard-chassis {
    pointer-events: none;
}

.scoreboard-rivet {
    position: absolute;
    z-index: 3;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d7dde5, #6b7380 55%, #2a3038 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.scoreboard-rivet--tl { top: 0.35rem; left: 0.35rem; }
.scoreboard-rivet--tr { top: 0.35rem; right: 0.35rem; }
.scoreboard-rivet--bl { bottom: 0.35rem; left: 0.35rem; }
.scoreboard-rivet--br { bottom: 0.35rem; right: 0.35rem; }

.scoreboard-bezel {
    position: relative;
    overflow: hidden;
    padding: 0.4rem 1.1rem 0.55rem;
    border: 2px solid #3a424e;
    border-radius: 4px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 176, 32, 0.12), transparent 55%),
        linear-gradient(180deg, #151b22 0%, #070a0e 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 176, 32, 0.18),
        inset 0 0 28px rgba(0, 0, 0, 0.65),
        0 0 0 1px #0a0d11;
}

.scoreboard-scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.035) 0,
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    animation: scoreboard-scan 7s linear infinite;
}

.scoreboard-glow {
    position: absolute;
    inset: -20% 10% auto;
    height: 55%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 176, 32, 0.18), transparent 70%);
    animation: scoreboard-breathe 2.8s ease-in-out infinite;
}

.scoreboard-meta {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-family: Oswald, Impact, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scoreboard-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-self: start;
    color: #ff5a4a;
    font-size: 0.62rem;
    font-weight: 700;
}

.scoreboard-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: scoreboard-live-blink 1.1s steps(2, end) infinite;
}

.scoreboard-title {
    justify-self: center;
    color: var(--scoreboard-amber);
    font-size: clamp(0.68rem, 1.6vw, 0.82rem);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 176, 32, 0.45);
}

.scoreboard-kickoff {
    justify-self: end;
    color: rgba(255, 204, 51, 0.72);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.scoreboard-units {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(0.25rem, 1.5vw, 0.65rem);
}

.scoreboard-units.is-finished .score-digit-face--in {
    color: var(--primary);
    text-shadow:
        0 0 8px rgba(85, 191, 104, 0.8),
        0 0 18px rgba(85, 191, 104, 0.45);
}

.score-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}

.score-digits {
    display: flex;
    gap: 0.18rem;
}

.score-digit {
    position: relative;
    width: clamp(1.35rem, 3.6vw, 1.85rem);
    height: clamp(1.7rem, 4.4vw, 2.25rem);
    overflow: hidden;
    border: 1px solid rgba(255, 176, 32, 0.22);
    border-radius: 2px;
    background:
        linear-gradient(180deg, #1c1410 0%, #080605 48%, #120e0a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -8px 12px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(255, 176, 32, 0.08);
    perspective: 500px;
}

.score-digit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        transparent 35%,
        transparent 65%,
        rgba(0, 0, 0, 0.35)
    );
}

.score-digit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 4;
    height: 1px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.score-digit-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: "Courier New", "Lucida Console", monospace;
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    font-weight: 700;
    line-height: 1;
    color: var(--scoreboard-led);
    text-shadow:
        0 0 6px rgba(255, 176, 32, 0.85),
        0 0 16px rgba(255, 140, 0, 0.45);
    backface-visibility: hidden;
    transform-origin: center center;
}

.score-digit-face--out {
    opacity: 0;
}

.score-digit-face--in {
    opacity: 1;
}

.score-digit.is-flip .score-digit-face--out {
    animation: score-digit-out 0.42s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.score-digit.is-flip .score-digit-face--in {
    animation: score-digit-in 0.42s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.score-label {
    color: rgba(255, 204, 51, 0.7);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scoreboard-sep {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding-bottom: 1.05rem;
}

.scoreboard-sep span {
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: var(--scoreboard-amber);
    box-shadow: 0 0 8px rgba(255, 176, 32, 0.8);
}

.scoreboard-sep--pulse span {
    animation: scoreboard-colon 1s steps(1, end) infinite;
}

.scoreboard-sep--pulse span:last-child {
    animation-delay: 0.5s;
}

@keyframes score-digit-out {
    0% {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
        filter: brightness(1);
    }
    45% {
        opacity: 0.35;
        transform: rotateX(-88deg) translateY(12%);
        filter: brightness(1.6);
    }
    100% {
        opacity: 0;
        transform: rotateX(-110deg) translateY(20%);
    }
}

@keyframes score-digit-in {
    0% {
        opacity: 0;
        transform: rotateX(95deg) translateY(-18%);
        filter: brightness(2.2);
    }
    55% {
        opacity: 1;
        transform: rotateX(-8deg) translateY(2%);
        filter: brightness(1.35);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
        filter: brightness(1);
    }
}

@keyframes scoreboard-colon {
    0%,
    49% { opacity: 1; }
    50%,
    100% { opacity: 0.2; }
}

@keyframes scoreboard-live-blink {
    0%,
    49% { opacity: 1; }
    50%,
    100% { opacity: 0.25; }
}

@keyframes scoreboard-breathe {
    0%,
    100% { opacity: 0.55; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

@keyframes scoreboard-scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

@media (max-width: 720px) {
    :root {
        --countdown-height: 5.35rem;
        --header-height: 4.35rem;
    }

    html.countdown-hidden {
        --countdown-height: 0px;
    }

    .scoreboard-meta {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "live title"
            "kick kick";
        row-gap: 0.1rem;
    }

    .scoreboard-live { grid-area: live; }
    .scoreboard-title { grid-area: title; justify-self: start; }
    .scoreboard-kickoff {
        grid-area: kick;
        justify-self: start;
        font-size: 0.52rem;
    }

    .scoreboard-bezel {
        padding: 0.35rem 0.7rem 0.45rem;
    }

    .scoreboard-rivet {
        display: none;
    }

    .hero-content {
        padding-block: 2rem 5rem;
    }
}

.store-coming-soon-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(17, 25, 35, 0.72);
    backdrop-filter: blur(6px);
}

.store-coming-soon-backdrop.is-hidden,
.store-coming-soon-backdrop[hidden] {
    display: none;
}

.contact-feedback {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

.contact-feedback--ok {
    background: rgba(46, 160, 67, 0.15);
    border: 1px solid rgba(46, 160, 67, 0.35);
}

.contact-feedback--error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
}

a.match-league-filter,
a.ranking-kind-btn,
a.ranking-pager-btn {
    text-decoration: none;
}

.ranking-pager-btn[aria-disabled="true"],
.ranking-pager-btn:disabled {
    opacity: 0.32;
    cursor: default;
    pointer-events: none;
}

.ranking-list[data-ranking-list] > [data-ranking-item]:nth-child(n + 6) {
    display: none;
}

.ranking-list[data-ranking-list].is-ranking-js-ready > [data-ranking-item]:nth-child(n + 6) {
    display: revert;
}

.ranking-list[data-ranking-list].is-ranking-js-ready > [data-ranking-item].is-ranking-page-hidden,
.ranking-list[data-ranking-list].is-ranking-js-ready > [data-ranking-item][hidden] {
    display: none !important;
}

.ranking-row.is-ranking-page-hidden,
.ranking-row[hidden] {
    display: none !important;
}

.store-coming-soon-panel {
    width: min(100%, 26rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow-sports);
    text-align: center;
}

.store-coming-soon-message {
    margin: 0;
    color: var(--foreground);
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
}

.store-coming-soon-close {
    margin-top: 1.35rem;
}

.store-badge-apple img {
    display: block;
    height: 40px;
    width: auto;
}

/* Google Play badge includes extra transparent padding; taller height keeps visual parity with Apple. */
.store-badge-google img {
    display: block;
    height: 60px;
    width: auto;
    margin: -10px -8px;
}


.newsletter-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(32, 43, 56, 0.75);
    backdrop-filter: blur(10px);
}

.newsletter-panel h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 0.8fr) minmax(16rem, 1fr);
    gap: 2.5rem;
    padding-block: 4rem;
}

.footer-about p {
    max-width: 24rem;
    margin-top: 1.25rem;
    color: var(--muted-foreground);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.footer-socials a {
    display: inline-flex;
    width: 2.7rem;
    height: 2.7rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(85, 191, 104, 0.4);
    border-radius: 8px;
    color: var(--secondary);
    background: rgba(85, 191, 104, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary-foreground);
    background: var(--primary);
}

.footer-socials svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-socials a:first-child svg,
.footer-socials a:last-child svg {
    fill: currentColor;
    stroke: none;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.tag-row span {
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(85, 191, 104, 0.35);
    border-radius: 999px;
    background: rgba(85, 191, 104, 0.1);
    color: var(--primary);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.footer-grid h3 {
    color: var(--secondary);
    font-size: 0.95rem;
    margin: 0 0 1.2rem;
}

.footer-logo .site-logo {
    width: 189px;
    height: 50px;
}

.footer-links,
.contact-lines {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.contact-lines li {
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

.contact-lines li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    line-height: 1.65;
}

.contact-lines a {
    color: var(--muted-foreground);
}

.contact-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 6px;
    color: var(--secondary);
    background: rgba(85, 191, 104, 0.12);
}

.contact-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.next-match {
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(32, 43, 56, 0.6);
}

.match-meta,
.mini-score,
.match-venue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.match-meta {
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.match-meta span,
.match-venue {
    color: var(--muted-foreground);
}

.match-meta strong {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.mini-score {
    margin-top: 1rem;
    font-family: Oswald, Impact, sans-serif;
    text-transform: uppercase;
}

.mini-score b {
    color: var(--secondary);
}

.match-venue {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-family: Oswald, Impact, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.footer-bottom div {
    display: flex;
    gap: 1rem;
}

.back-to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 45;
    display: inline-flex;
    width: 3.15rem;
    height: 3.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 216, 70, 0.55);
    border-radius: 8px;
    color: var(--secondary-foreground);
    background: var(--secondary);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body.show-back-to-top .back-to-top {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.show-back-to-top .back-to-top:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    color: var(--primary-foreground);
    background: var(--primary);
    box-shadow: var(--shadow-sports);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--foreground);
    outline-offset: 3px;
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 1020px) {
    .site-nav {
        display: none;
    }

    .header-tools {
        margin-left: auto;
    }

    .header-action {
        display: none;
    }

    .hero-content {
        padding-bottom: 8rem;
    }

    .stats-overlay {
        position: relative;
        background: var(--stadium);
    }

    .stats-grid,
    .team-grid,
    .program-grid,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-explore {
        display: none;
    }

    .two-column,
    .contact-layout,
    .faq-layout,
    .legal-layout,
    .newsletter-panel {
        grid-template-columns: 1fr;
    }

    .faq-panel,
    .legal-sidebar {
        position: static;
    }

    .match-card {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "when league"
            "teams teams";
        gap: 0.85rem;
        align-items: center;
    }

    .match-when {
        grid-area: when;
        min-width: 0;
    }

    .match-teams {
        grid-area: teams;
        grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
    }

    .match-league {
        grid-area: league;
        justify-self: end;
        align-self: center;
        max-width: 9.5rem;
        width: auto;
    }
}

@media (max-width: 860px) {
    .ranking-kind-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
        margin: 0 0 1.25rem;
        padding: 0.35rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(17, 25, 35, 0.55);
        backdrop-filter: blur(10px);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .ranking-kind-btn {
        appearance: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.55rem 1rem;
        border: 1px solid transparent;
        border-radius: 999px;
        background: transparent;
        color: rgba(247, 250, 246, 0.62);
        cursor: pointer;
        font-family: Oswald, Impact, sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transition:
            background 0.22s ease,
            border-color 0.22s ease,
            color 0.22s ease,
            box-shadow 0.22s ease,
            transform 0.22s ease;
    }

    .ranking-kind-btn:hover:not(.is-active) {
        color: var(--foreground);
        background: rgba(255, 255, 255, 0.05);
    }

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

    .ranking-kind-btn.is-active {
        color: var(--primary-foreground);
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    }

    .ranking-kind-btn--top.is-active {
        background: linear-gradient(135deg, #55bf68, #74d77b);
        border-color: rgba(116, 215, 123, 0.55);
    }

    .ranking-kind-btn--flop.is-active {
        background: linear-gradient(135deg, #c43b3b, #e25555);
        border-color: rgba(226, 85, 85, 0.55);
        color: #fff7f7;
    }

    .rankings-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rankings-columns[data-active="top"] .ranking-panel--flop,
    .rankings-columns[data-active="flop"] .ranking-panel--top {
        display: none;
    }

    .ranking-panel-title {
        display: none;
    }

    .ranking-panel-head {
        margin-bottom: 0.85rem;
        justify-content: center;
    }

    .ranking-panel-head--flop {
        flex-direction: row;
    }

    .ranking-league {
        max-width: 8.5rem;
    }

    .ranking-pager {
        width: 100%;
        max-width: 22rem;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.4rem;
        padding: 0.35rem;
    }

    .ranking-pager-btn {
        min-height: 2.2rem;
        padding: 0.3rem 0.65rem;
        font-size: 0.72rem;
    }

    .ranking-pager-btn span {
        display: none;
    }

    .ranking-pager-meta strong {
        font-size: 0.84rem;
    }
}

@media (max-width: 720px) {
    .container-x {
        width: min(100% - 1.25rem, 1280px);
    }

    .site-header {
        padding-block: 0.75rem;
    }

    .site-brand {
        width: 100%;
    }

    .site-logo {
        width: min(189px, 70vw);
        height: calc(min(189px, 70vw) * 115 / 431);
    }

    .hero-section {
        min-height: 0;
    }

    .hero-content {
        padding-block: 2rem 5rem;
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: clamp(3.1rem, 17vw, 4.6rem);
    }

    .hero-actions,
    .newsletter-form {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .hero-bullets {
        gap: 0.9rem;
    }

    .stats-grid,
    .team-grid,
    .program-grid,
    .testimonial-grid,
    .blog-grid,
    .footer-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .split-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .split-heading > p {
        max-width: 100%;
        text-align: left;
    }

    .team-card {
        min-height: 0;
    }

    .faq-list summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .faq-list summary > span {
        display: none;
    }

    .faq-list details > p {
        padding-left: 1.4rem;
    }

    .legal-content section {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 12.5rem;
    }

    .app-screens-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .experience-badge {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
