:root {
    /* Colores extraídos del branding oficial FIFA 2026 / Grumexsa */
    --wc-dark-blue: #0a1a3b;
    --wc-gold: #c6ff00; /* Oro/Lima Vibrante */
    --wc-white: #ffffff;
    --wc-light-gray: rgba(246, 245, 243, 0.4);
    --wc-green: #13cc48;
    --wc-red: #f6200d;
    --wc-eagle-blue: #3250f2;
    --wc-purple: #6d09f9;
    --wc-indigo: #252e93; /* Azul Corporativo Grumexsa */
    --wc-teal: #07675e;
    --wc-orange: #ff5415;
    --wc-pink: #e81d73;
    --wc-aqua: #5ee0c6;
    --text-primary: #0a1a3b;
    --shadow-premium: 0 20px 40px rgba(10, 26, 59, 0.12);
    --shadow-soft: 0 12px 28px rgba(10, 26, 59, 0.1);
    --border-glass: rgba(37, 46, 147, 0.1);
    --surface-glass: rgba(255, 255, 255, 0.74);
    --surface-glass-strong: rgba(255, 255, 255, 0.86);
    --surface-glass-soft: rgba(255, 255, 255, 0.58);
    --surface-glass-dark: rgba(10, 26, 59, 0.68);
    --glass-stroke: rgba(255, 255, 255, 0.62);
    --glass-stroke-dark: rgba(10, 26, 59, 0.12);
    --shadow-glass: 0 18px 44px rgba(10, 26, 59, 0.16);
    --blur-glass: blur(18px) saturate(1.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif; /* FIFA Standard Clean Look */
    background: radial-gradient(circle at top right, #f8fafc, #ffffff);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--wc-gold) 82%, white);
    outline-offset: 4px;
    border-radius: 10px;
}

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

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

main {
    flex: 1; /* Evita scroll innecesario y empuja el footer al fondo */
    min-width: 0;
}

h1,
h2,
h3,
h4,
p,
li,
a,
span,
strong,
small,
td,
th,
button,
label {
    overflow-wrap: anywhere;
}

.section {
    padding: 4rem 0;
}

.section.compact {
    padding: 1.75rem 0 0;
}

.section.alt {
    background: rgba(37, 46, 147, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2,
.hero-copy h1,
.banner-card h1 {
    margin: 0.5rem 0 0;
    line-height: 1.1;
    font-size: 2.2rem;
}

.section-heading h2 {
    font-size: 1.95rem;
}

.section-heading h1 {
    font-size: 2.4rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow.dark {
    color: var(--wc-dark-blue);
}

.card {
    background: var(--wc-white);
    border-radius: 22px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(37, 46, 147, 0.08);
}

.site-footer {
    background: var(--wc-dark-blue);
    color: var(--wc-white);
    padding: 1.5rem 0;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-shell strong,
.footer-shell span {
    display: block;
}

.footer-shell span {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-shell nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 700;
}

.topbar {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: var(--text-primary);
    border-bottom: 1px solid #eee;
}

.landing-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    padding: 0;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(10, 26, 59, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.header-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 2rem;
    border-top: 1px solid #f0f0f0;
}

.countdown {
    display: grid;
    gap: 0.55rem;
}

.countdown-timer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.countdown-timer > span {
    min-width: 4.25rem;
    padding: 0.55rem 0.7rem;
    border-radius: 16px;
    background: rgba(10, 26, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 26px rgba(10, 26, 59, 0.16);
    color: var(--wc-white);
    text-align: center;
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.countdown-timer strong {
    display: block;
    color: var(--wc-gold);
    font-size: 1.2rem;
    line-height: 1;
}

.countdown-timer small,
.countdown-note {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-header .brand {
    background: rgba(255, 255, 255, 0.98);
    color: var(--wc-dark-blue);
    padding: 0.95rem 1.35rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 22px 40px rgba(10, 26, 59, 0.16);
    border-radius: 999px;
    border: 1px solid rgba(10, 26, 59, 0.08);
}

.landing-header .brand img {
    height: 58px;
    width: auto;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 1);
    padding: 0.35rem;
}

.main-nav a {
    color: #000;
    font-weight: 600;
    margin: 0 0.5rem;
    font-size: 1.1rem;
}

.main-nav .nav-cta {
    white-space: nowrap;
    padding: 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--wc-dark-blue);
    border-color: rgba(10, 26, 59, 0.12);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
    background: rgba(255, 255, 255, 1);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

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

.nav-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand,
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.brand {
    gap: 0.95rem;
}

.brand img,
.brand-pill img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-official-logo {
    height: 64px;
    width: auto;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.35rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.brand strong,
.brand span {
    display: block;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28);
}

.brand strong {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.brand span {
    font-size: 0.95rem;
    opacity: 0.92;
    color: rgba(255, 255, 255, 0.92);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links a {
    font-weight: 700;
    color: var(--wc-indigo);
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a:hover {
    color: #000000;
    transform: translateY(-1px);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        var(--wc-indigo) 0%,
        var(--wc-dark-blue) 100%
    );
    color: var(--wc-white) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    box-shadow: 0 12px 24px rgba(37, 46, 147, 0.2);
}

.nav-login:hover {
    background: var(--wc-dark-blue);
    transform: translateY(-2px);
}

.header-progress {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 0.9fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0 0 1rem;
}

.progress-mascot,
.progress-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--wc-dark-blue);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.progress-mascot {
    font-size: 1.25rem;
}

.progress-copy strong,
.progress-copy span {
    display: block;
}

.progress-copy strong {
    font-size: 0.98rem;
}

.progress-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.progress-track {
    position: relative;
    height: 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.38);
}

.progress-track span {
    display: block;
    height: 100%;
    min-width: 0.9rem;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--wc-gold),
        var(--wc-green),
        var(--wc-aqua),
        var(--wc-red)
    );
    box-shadow: 0 0 22px rgba(198, 255, 0, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

button {
    font: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--wc-gold);
}

.btn-primary {
    background: linear-gradient(135deg, var(--wc-indigo), var(--wc-purple));
    color: var(--wc-white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--wc-red), var(--wc-orange));
    color: var(--wc-white);
}

.btn-ghost,
.btn-outline-light {
    background: transparent;
    color: var(--wc-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-danger {
    background: var(--wc-red);
    color: var(--wc-white);
}

.full-width {
    width: 100%;
}

.hero {
    background: #ffffff;
    color: #000000;
    padding: 5rem 0 4rem;
    position: relative;
}

.section-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: min(720px, calc(100vh - 7rem));
    display: flex;
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) 0;
    color: var(--wc-white);
    background:
        radial-gradient(
            ellipse 90% 140% at 68% -18%,
            rgba(198, 255, 0, 0.92) 0 8%,
            transparent 8.5%
        ),
        radial-gradient(
            ellipse 92% 150% at 72% -12%,
            rgba(94, 224, 198, 0.9) 0 13%,
            transparent 13.5%
        ),
        radial-gradient(
            ellipse 94% 160% at 76% -6%,
            rgba(109, 9, 249, 0.88) 0 18%,
            transparent 18.5%
        ),
        radial-gradient(
            ellipse 96% 170% at 80% 0%,
            rgba(255, 84, 21, 0.84) 0 23%,
            transparent 23.5%
        ),
        linear-gradient(
            115deg,
            rgba(10, 26, 59, 0.98) 0 34%,
            rgba(37, 46, 147, 0.92) 55%,
            rgba(246, 32, 13, 0.76) 100%
        ),
        var(--wc-dark-blue);
}

.section-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            transparent 0 5%,
            rgba(198, 255, 0, 0.22) 5% 9%,
            transparent 9% 13%,
            rgba(94, 224, 198, 0.18) 13% 17%,
            transparent 17% 21%,
            rgba(109, 9, 249, 0.18) 21% 25%,
            transparent 25%
        ),
        radial-gradient(
            circle at 14% 18%,
            rgba(198, 255, 0, 0.34),
            transparent 24%
        ),
        radial-gradient(
            circle at 82% 22%,
            rgba(94, 224, 198, 0.26),
            transparent 28%
        ),
        radial-gradient(
            circle at 72% 78%,
            rgba(255, 84, 21, 0.32),
            transparent 30%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0 1px,
            transparent 1px 18px
        );
    mix-blend-mode: screen;
    pointer-events: none;
}

.section-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(
        90deg,
        var(--wc-gold),
        var(--wc-green),
        var(--wc-aqua),
        var(--wc-purple),
        var(--wc-red),
        var(--wc-orange)
    );
}

.hero-copy {
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    min-width: 0;
    width: 100%;
}

.section-hero .hero-grid {
    position: relative;
    z-index: 1;
}

.section-hero .hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(198, 255, 0, 0.16);
    border: 1px solid rgba(198, 255, 0, 0.36);
    color: var(--wc-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.section-hero .hero-copy h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.92;
    color: var(--wc-white);
}

.section-hero h1 {
    color: var(--wc-white);
}

.section-hero .hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
}

.section-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.section-hero .hero-brand-lockup {
    justify-self: end;
    align-self: end;
    margin: 0;
    padding: 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.section-hero .hero-brand-lockup img {
    max-width: 210px;
}

.section-hero .hero-brand-lockup .brand-official-logo {
    max-width: 110px;
}

.prizes-hero {
    background:
        linear-gradient(
            115deg,
            rgba(12, 12, 15, 0.92) 0 34%,
            transparent 34% 100%
        ),
        linear-gradient(
            145deg,
            var(--wc-purple),
            var(--wc-pink) 28%,
            var(--wc-red) 47%,
            var(--wc-orange) 66%,
            var(--wc-gold)
        );
    color: var(--wc-white);
    padding: 5rem 0 4rem;
}

.prizes-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.prizes-hero h1 {
    margin: 0.5rem 0 0;
    max-width: 760px;
    line-height: 1;
}

.prizes-hero p {
    max-width: 620px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
}

.prize-trophy-card {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.prize-trophy-card strong {
    font-size: 5rem;
    line-height: 1;
}

.prize-trophy-card span {
    font-size: 1.4rem;
    font-weight: 800;
}

.prize-trophy-card small {
    color: rgba(255, 255, 255, 0.76);
}

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

.prize-card {
    display: grid;
    gap: 0.75rem;
    min-height: 250px;
    padding: 1.35rem;
    border-radius: 24px;
    background:
        linear-gradient(
            150deg,
            color-mix(in srgb, var(--prize-accent) 24%, white),
            white 58%
        ),
        white;
    border: 1px solid color-mix(in srgb, var(--prize-accent) 32%, white);
    box-shadow: 0 14px 34px
        color-mix(in srgb, var(--prize-accent) 12%, transparent);
}

.prize-card > span,
.prize-card > strong {
    width: fit-content;
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.prize-card > span {
    background: var(--prize-accent);
    color: var(--wc-dark-blue);
}

.prize-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.prize-card p {
    margin: 0;
    color: rgba(18, 18, 22, 0.72);
}

.prize-card > strong {
    align-self: end;
    background: var(--wc-dark-blue);
    color: var(--wc-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy p {
    max-width: 38rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
}

.hero-brand-lockup img {
    width: auto;
    height: 62px;
    object-fit: contain;
}

.hero-brand-lockup span {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.company-chip {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.company-chip img {
    width: 42px;
    background: #fff;
    border-radius: 10px;
    padding: 0.2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-mascots,
.banner-mascots img {
    width: min(460px, 100%);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18));
}

.banner-mascots img {
    width: min(240px, 42vw);
}

.react-image-shell,
.lazy-image-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
}

.react-image-shell img,
.lazy-image-host img,
.team-row img,
.team-col img,
.match-teams img,
.standings-mini-table img,
.bracket-team-button img {
    width: 40px;
    height: 28px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(10, 26, 59, 0.14);
}

.match-teams .dashboard-team-flag {
    width: 54px;
    height: 38px;
    padding: 0.12rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(10, 26, 59, 0.1);
    box-shadow: 0 8px 18px rgba(10, 26, 59, 0.16);
}

.mascot-emoji-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    min-height: 180px;
}

.mascot-emoji-inline {
    display: flex;
}

.rules-grid,
.groups-grid,
.matches-grid,
.stats-grid {
    display: grid;
    gap: 1.2rem;
}

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

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

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

.rule-card,
.group-card,
.stat-card,
.banner-card,
.empty-state,
.admin-panel,
.table-wrap,
.match-card,
.bracket-match {
    padding: 1.25rem;
}

.rule-card {
    background: var(--wc-white);
    border-left: 4px solid var(--wc-gold);
    border: 1px solid rgba(37, 46, 147, 0.08);
    border-left: 4px solid var(--wc-gold);
    box-shadow: var(--shadow-soft);
}

.rule-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem 0;
}

.rule-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(18, 18, 22, 0.72);
}

.group-card {
    border-top: 4px solid var(--group-accent);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.group-badge {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--group-accent);
    color: var(--wc-white);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-stack,
.admin-list {
    display: grid;
    gap: 0.9rem;
}

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

.team-row span:last-child,
.continent-team-chip span,
.team-display-row span,
.team-col strong,
.bracket-team-button span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.flag-fallback {
    display: none;
}

.bracket-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.round-preview {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(10, 26, 59, 0.04),
        rgba(26, 86, 160, 0.08)
    );
}

.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(520px, calc(100% - 2rem));
    padding: 2rem 0;
    flex: 1;
    display: grid;
    place-items: center;
}

.auth-card {
    padding: 2rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    width: 92px;
    margin: 0 auto 1rem;
    padding: 0.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

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

.form-grid label,
.inline-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.form-grid input,
.form-grid select,
.inline-form input,
.inline-form select,
.prediction-form input[type="number"] {
    width: 100%;
    border: 1px solid rgba(10, 26, 59, 0.16);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.92);
}

.auth-links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.alert {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.alert p {
    margin: 0.3rem 0;
}

.alert-error {
    background: rgba(246, 32, 13, 0.08);
    border: 1px solid rgba(246, 32, 13, 0.18);
    color: #8e1308;
}

.alert-success {
    background: rgba(19, 204, 72, 0.08);
    border: 1px solid rgba(19, 204, 72, 0.18);
    color: #11642a;
}

.hero-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08),
            transparent 28%,
            rgba(255, 255, 255, 0.1) 58%,
            transparent
        ),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0 12px,
            transparent 12px 26px
        );
    pointer-events: none;
}

.hero-stats,
.facts-grid,
.venues-grid,
.curiosity-grid,
.continents-grid,
.dashboard-filters,
.dashboard-meta-grid {
    display: grid;
    gap: 1rem;
}

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

.hero-stat {
    padding: 1.2rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-stat strong,
.fact-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-glow {
    display: none;
}

.hero-glow-a {
    width: 140px;
    height: 140px;
    background: rgba(198, 255, 0, 0.35);
    top: 12%;
    left: 10%;
}

.hero-glow-b {
    width: 180px;
    height: 180px;
    background: rgba(94, 224, 198, 0.28);
    right: 6%;
    bottom: 8%;
    animation-delay: 1.2s;
}

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

.mini-heading {
    margin-top: 2rem;
}

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

.venue-pill {
    display: grid;
    gap: 0.35rem;
    min-height: 128px;
    padding: 1rem;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--venue-accent) 28%, white),
            white 62%
        ),
        white;
    border: 1px solid color-mix(in srgb, var(--venue-accent) 34%, white);
    box-shadow: 0 12px 28px
        color-mix(in srgb, var(--venue-accent) 13%, transparent);
}

.venue-pill span {
    width: fit-content;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    background: var(--venue-accent);
    color: var(--wc-dark-blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.venue-pill strong {
    font-size: 1.05rem;
    color: var(--wc-dark-blue);
}

.venue-pill small {
    color: rgba(18, 18, 22, 0.72);
    font-size: 0.9rem;
}

.facts-band {
    background: linear-gradient(
        90deg,
        rgba(19, 204, 72, 0.12),
        rgba(198, 255, 0, 0.14),
        rgba(246, 32, 13, 0.1),
        rgba(109, 9, 249, 0.1)
    );
}

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

.curiosity-pill {
    --pill-color: var(--wc-dark-blue);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    min-height: 112px;
    padding: 1.25rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(37, 46, 147, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.curiosity-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--pill-color);
    color: var(--wc-white);
    font-size: 0.75rem;
    font-weight: 800;
}

.curiosity-pill p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.35;
}

.fact-card {
    padding: 2rem;
    border-top: 5px solid var(--fact-accent);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.fact-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -30px;
    bottom: -35px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fact-accent) 16%, transparent);
}

.fact-card span,
.auth-kicker {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.8;
}

.fact-card p,
.continent-head p {
    margin-bottom: 0;
}

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

.continent-card {
    padding: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--continent-accent) 22%, white);
    box-shadow: 0 14px 34px
        color-mix(in srgb, var(--continent-accent) 12%, transparent);
}

.continent-head {
    margin-bottom: 1rem;
}

.continent-head strong {
    font-size: 1.1rem;
}

.continent-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.continent-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid color-mix(in srgb, var(--continent-accent) 25%, white);
}

.continent-team-chip img {
    height: 24px;
    width: 24px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 50%;
}

.continent-team-chip small {
    color: #666;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3.25rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%) scale(1.14);
    border: 0;
    background: rgba(37, 46, 147, 0.08);
    border-radius: 12px;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500 !important;
}

.checkbox-row input {
    width: 18px !important;
    height: 18px;
    margin: 0;
}

.auth-actions-stack {
    margin-top: 1rem;
    display: grid;
    gap: 0.65rem;
    text-align: center;
}

.auth-actions-stack a {
    color: var(--wc-indigo);
    font-weight: 600;
}

.profile-shell {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}

/* ══ Hero card del perfil ══ */
.profile-hero-card {
    width: min(780px, 100%);
    position: relative;
    overflow: hidden;
    padding: 2.5rem 2.25rem;
    border-radius: 24px;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0a1a3b 0%,
        #252e93 40%,
        #6d09f9 72%,
        #c8102e 100%
    );
    opacity: 0.94;
}

.profile-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0 1px,
        transparent 1px 18px
    );
}

.profile-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.profile-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-lg {
    width: 148px;
    height: 148px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.78);
    box-shadow:
        0 0 0 7px rgba(255, 215, 0, 0.18),
        0 22px 44px rgba(0, 0, 0, 0.44);
    background: #1a1a2e;
    display: block;
}

.profile-hero-info {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.profile-hero-info h1 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
    line-height: 1.1;
}

.profile-hero-email {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.92rem;
}

.profile-hero-username {
    display: inline-block;
    background: rgba(255, 215, 0, 0.16);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-stats-row {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.profile-stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.32rem 0.88rem;
    font-size: 0.86rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    backdrop-filter: blur(6px);
}

.profile-stat-pill strong {
    color: #ffd700;
    font-weight: 800;
}

/* ══ Tarjeta de edición ══ */
.profile-card {
    width: min(780px, 100%);
    padding: 2rem;
}

.profile-section-title {
    margin: 0 0 1.4rem;
    font-size: 1.15rem;
    font-weight: 800;
}

/* Legacy — kept for compat */
.profile-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    background: #f2f2f2;
    border: 1px solid rgba(10, 26, 59, 0.14);
}

@media (max-width: 600px) {
    .profile-hero-card,
    .profile-card {
        border-radius: 18px;
    }

    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-stats-row {
        justify-content: center;
    }

    .profile-avatar-lg {
        width: 118px;
        height: 118px;
    }
}

.matchday-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.filter-pill {
    border: 1px solid rgba(37, 46, 147, 0.12);
    background: white;
    color: var(--text-primary);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--wc-indigo), var(--wc-purple));
    color: white;
}

.dashboard-meta-grid {
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: 1rem;
}

.group-standings-card {
    padding: 1rem;
}

.standings-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.standings-mini-table th,
.standings-mini-table td {
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid rgba(37, 46, 147, 0.08);
    text-align: left;
}

.standings-mini-table th:last-child,
.standings-mini-table td:last-child {
    text-align: right;
}

.standings-mini-team {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.flag-fallback-inline {
    display: inline-flex;
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.04);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .prizes-hero-grid,
    .ranking-detail-layout,
    .dashboard-meta-grid,
    .facts-grid,
    .venues-grid,
    .curiosity-grid,
    .continents-grid,
    .rules-grid,
    .groups-grid,
    .stats-grid,
    .prizes-grid,
    .ranking-cards,
    .bracket-preview {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-shell,
    .footer-shell,
    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-grid,
    .prizes-hero-grid,
    .ranking-detail-layout,
    .facts-grid,
    .venues-grid,
    .curiosity-grid,
    .continents-grid,
    .rules-grid,
    .groups-grid,
    .stats-grid,
    .prizes-grid,
    .ranking-cards,
    .bracket-preview,
    .dashboard-meta-grid,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .player-detail {
        position: static;
    }

    .header-progress {
        grid-template-columns: auto 1fr auto;
    }

    .progress-track {
        grid-column: 1 / -1;
    }

    .brand img {
        width: 54px;
    }

    .brand-pill img {
        height: 50px;
    }

    .hero-brand-lockup img {
        height: 44px;
    }

    .section-hero {
        min-height: auto;
        padding: 3rem 0 3.5rem;
    }

    .section-hero .hero-brand-lockup {
        justify-self: start;
        width: 100%;
        flex-wrap: wrap;
        border-radius: 22px;
    }

    .section-hero .hero-brand-lockup img,
    .section-hero .hero-brand-lockup .brand-official-logo {
        max-width: 168px;
        height: auto;
    }

    .landing-header .header-top {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.9rem;
    }

    .landing-header .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-header .main-nav a {
        margin: 0.35rem 0.5rem;
    }

    .landing-header .header-sub {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0 1rem;
    }

    .topbar .nav-links {
        width: 100%;
    }
}

/* Dead code removed: duplicate .alert-error and .alert-success definitions */

.banner-shell {
    padding: 1.5rem 0 0;
}

.banner-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at right top,
            rgba(198, 255, 0, 0.16),
            transparent 20%
        ),
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.98),
            rgba(240, 238, 255, 0.96),
            rgba(255, 242, 239, 0.96)
        );
}

.banner-mascots {
    display: flex;
    justify-content: flex-end;
}

.stat-card span {
    display: block;
    color: rgba(28, 28, 30, 0.7);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 2rem;
    color: var(--wc-dark-blue);
}

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

.group-accordion {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 0.3rem 0.3rem 1rem;
    border: 1px solid rgba(109, 9, 249, 0.08);
}

.group-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.matches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 0.7rem;
}

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

.prediction-form {
    display: grid;
    gap: 0.85rem;
}

.match-topline,
.match-teams,
.score-inputs,
.panel-heading,
.admin-row,
.admin-match-row,
.bracket-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.match-topline,
.bracket-meta {
    align-items: center;
}

.match-venue {
    color: rgba(28, 28, 30, 0.72);
}

.team-col {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    flex: 1;
    text-align: center;
}

.vs {
    align-self: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wc-purple);
}

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

.prediction-choices {
    display: grid;
    gap: 0.7rem;
}

.choice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.choice-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(10, 26, 59, 0.14);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-pill input,
.bracket-team input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-pill-button,
.bracket-team-button {
    border: 1px solid rgba(37, 46, 147, 0.14);
    background: #fff;
    color: inherit;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bracket-team-button {
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
    width: 100%;
}

.placeholder-seed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(37, 46, 147, 0.12);
    color: var(--wc-indigo);
    font-weight: 900;
}

.choice-pill.active,
.choice-pill:has(input:checked),
.choice-pill-button.active,
.bracket-team.selected,
.bracket-team:has(input:checked),
.bracket-team-button.selected {
    background: linear-gradient(
        135deg,
        var(--wc-indigo),
        var(--wc-purple),
        var(--wc-red)
    );
    color: var(--wc-white);
    border-color: var(--wc-gold);
}

.choice-pill-button:disabled,
.bracket-team-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.readonly-box,
.result-box {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(10, 26, 59, 0.05);
    display: grid;
    gap: 0.35rem;
}

.locked-box {
    background: rgba(246, 32, 13, 0.1);
    border: 1px solid rgba(246, 32, 13, 0.18);
    color: #7b241c;
}

.prediction-audit {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: rgba(198, 255, 0, 0.12);
    border: 1px solid rgba(198, 255, 0, 0.28);
}

.prediction-audit strong {
    color: var(--wc-dark-blue);
}

.prediction-audit span {
    color: rgba(18, 18, 22, 0.72);
    font-size: 0.9rem;
}

.autosave-status {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(10, 26, 59, 0.06);
    border: 1px solid rgba(10, 26, 59, 0.1);
}

.autosave-status strong {
    color: var(--wc-dark-blue);
    font-size: 0.95rem;
}

.autosave-status span {
    color: rgba(18, 18, 22, 0.72);
    font-size: 0.86rem;
    line-height: 1.35;
}

.autosave-saved {
    background: rgba(19, 204, 72, 0.12);
    border-color: rgba(19, 204, 72, 0.28);
}

.autosave-saving,
.autosave-draft {
    background: rgba(255, 215, 0, 0.13);
    border-color: rgba(255, 215, 0, 0.34);
}

.autosave-queued,
.autosave-error {
    background: rgba(246, 32, 13, 0.1);
    border-color: rgba(246, 32, 13, 0.24);
}

.result-box.correct {
    background: rgba(45, 122, 58, 0.1);
}

.result-box.incorrect {
    background: rgba(192, 57, 43, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.badge-finished {
    background: #dedee6;
    color: #52526a;
}

.badge-live {
    background: rgba(246, 32, 13, 0.16);
    color: var(--wc-red);
}

.badge-today {
    background: rgba(198, 255, 0, 0.18);
    color: #5e6b00;
}

.table-wrap {
    overflow-x: auto;
}

.standings-layout {
    display: grid;
    gap: 1.25rem;
}

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

.ranking-card {
    display: grid;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem;
    border: 1px solid rgba(37, 46, 147, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(198, 255, 0, 0.16),
            rgba(255, 255, 255, 0.96) 46%,
            rgba(232, 29, 115, 0.12)
        ),
        white;
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

.ranking-card.active {
    border-color: var(--wc-gold);
    box-shadow: 0 16px 38px rgba(109, 9, 249, 0.18);
}

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

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--wc-dark-blue);
    color: white;
    font-weight: 900;
}

.ranking-card-top strong,
.player-detail-head h3 {
    display: block;
    margin: 0;
}

.ranking-card-top small,
.player-detail-head p {
    color: rgba(18, 18, 22, 0.68);
}

.accuracy-ring {
    --accuracy: 0%;
    display: grid;
    place-items: center;
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 999px;
    background:
        radial-gradient(circle, white 0 58%, transparent 59%),
        conic-gradient(
            var(--wc-green) var(--accuracy),
            rgba(37, 46, 147, 0.12) 0
        );
}

.accuracy-ring span {
    font-weight: 900;
    color: var(--wc-dark-blue);
}

.ranking-card-progress {
    overflow: hidden;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(37, 46, 147, 0.1);
}

.ranking-card-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--wc-green),
        var(--wc-gold),
        var(--wc-orange),
        var(--wc-red)
    );
}

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

.ranking-mini-stats span,
.player-detail-grid div {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(37, 46, 147, 0.08);
    font-size: 0.82rem;
}

.ranking-mini-stats strong,
.player-detail-grid strong {
    font-size: 1.25rem;
    color: var(--wc-dark-blue);
}

.ranking-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: var(--wc-dark-blue);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
}

.trend-dots {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1rem;
}

.trend-dots span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
}

.trend-dots .hit {
    background: var(--wc-green);
}

.trend-dots .miss {
    background: var(--wc-red);
}

.trend-dots small {
    color: rgba(18, 18, 22, 0.62);
}

.ranking-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.ranking-table-card {
    padding: 0;
    overflow-x: auto;
    border-radius: 20px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.ranking-table th,
.ranking-table td {
    padding: 0.92rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(10, 26, 59, 0.08);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.ranking-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(10, 26, 59, 0.72);
}

.ranking-table td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.ranking-table tbody tr:nth-child(odd) td {
    background: rgba(10, 26, 59, 0.025);
}

.ranking-table tbody tr:hover td {
    background: rgba(198, 255, 0, 0.1);
}

.ranking-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(10, 26, 59, 0.08);
    color: var(--wc-dark-blue);
    font-weight: 900;
}

.ranking-player-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 220px;
}

.ranking-player-cell strong {
    color: var(--wc-indigo);
    font-weight: 900;
}

.player-detail {
    position: static;
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.player-detail-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

@media (max-width: 720px) {
    .player-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.player-detail-grid span {
    color: rgba(18, 18, 22, 0.68);
    font-size: 0.82rem;
}

.prediction-history {
    display: grid;
    gap: 0.65rem;
    max-height: 560px;
    overflow: auto;
    padding-right: 0.2rem;
}

.prediction-history h4 {
    margin: 0;
}

.prediction-history-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(10, 26, 59, 0.04);
    border: 1px solid rgba(37, 46, 147, 0.08);
}

.prediction-match,
.prediction-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.prediction-match img {
    width: 28px;
    height: 20px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 5px;
    flex: 0 0 auto;
}

.prediction-match span {
    flex: 1;
    font-weight: 800;
    text-align: center;
}

.prediction-result span {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--wc-gold);
    color: var(--wc-dark-blue);
    font-size: 0.8rem;
    font-weight: 900;
}

.bracket-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
}

.bracket-board {
    min-width: 1100px;
    display: grid;
    grid-template-columns: repeat(6, minmax(240px, 1fr));
    gap: 1rem;
    align-items: start;
}

.bracket-round {
    display: grid;
    gap: 1rem;
}

.bracket-team {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(10, 26, 59, 0.12);
    cursor: pointer;
}

.bracket-form {
    display: grid;
    gap: 0.8rem;
}

.loading-card {
    padding: 1.4rem;
    text-align: center;
}

.standings-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(28, 28, 30, 0.72);
}

.flag-fallback-inline {
    display: inline-flex;
    min-width: 40px;
    justify-content: center;
}

.admin-grid {
    display: grid;
    gap: 1rem;
}

.admin-panel.full-span {
    grid-column: 1 / -1;
}

.admin-row,
.admin-match-row {
    align-items: center;
    flex-wrap: wrap;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(10, 26, 59, 0.08);
}

.inline-form {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-note {
    margin: 0;
    color: rgba(28, 28, 30, 0.7);
}

@media (max-width: 980px) {
    .rules-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-grid,
    .prizes-hero-grid,
    .banner-card,
    .ranking-detail-layout,
    .rules-grid,
    .groups-grid,
    .venues-grid,
    .curiosity-grid,
    .stats-grid,
    .prizes-grid,
    .ranking-cards,
    .matches-grid {
        grid-template-columns: 1fr;
    }

    .nav-shell,
    .match-topline,
    .admin-row,
    .admin-match-row,
    .panel-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .bracket-preview {
        grid-template-columns: 1fr;
    }
}

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

    .section {
        padding: 2rem 0;
    }

    .section-heading h1,
    .section-heading h2,
    .hero-copy h1,
    .banner-card h1 {
        font-size: 1.65rem !important;
        line-height: 1.15;
    }

    .brand img {
        width: auto;
        height: 48px;
        max-width: 180px;
    }

    .score-inputs,
    .choice-pills {
        grid-template-columns: 1fr;
    }

    .choice-pills {
        display: grid;
    }

    .standings-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-top,
    .header-sub {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .main-nav,
    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 0.55rem;
        width: 100%;
        max-width: 300px;
        margin-inline: auto;
    }

    .main-nav a,
    .nav-links a {
        margin: 0;
        font-size: 0.8rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .section-hero .hero-copy,
    .section-hero .hero-copy p,
    .hero-copy p {
        max-width: 100%;
    }

    .section-hero .hero-copy p,
    .hero-copy p {
        font-size: 1rem;
        width: min(100%, 340px);
    }

    .hero-actions,
    .auth-actions-stack,
    .inline-form,
    .match-topline,
    .admin-row,
    .admin-match-row {
        width: 100%;
    }

    .btn,
    .choice-pill-button,
    .bracket-team-button {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
    }

    .match-phase-wrap {
        text-align: left;
    }

    .team-display-row,
    .team-display-row-home {
        justify-content: center;
    }

    .progress-area {
        width: 100%;
    }

    .calendar-card {
        padding: 1rem !important;
    }
}

.auth-compact {
    overflow: hidden;
}

.auth-body {
    width: 100%;
    overflow-x: hidden;
}

.auth-compact .topbar,
.auth-compact .site-footer {
    display: none !important;
}

.auth-compact .auth-shell {
    min-height: 100vh;
    width: min(460px, calc(100% - 1.25rem)) !important;
    padding: 1rem 0 !important;
}

.auth-compact .auth-card {
    padding: 1.25rem !important;
}

.auth-compact .auth-brand {
    margin-bottom: 1rem !important;
}

.auth-compact .auth-brand img {
    width: min(150px, 48vw) !important;
    height: auto;
    object-fit: contain;
}

.auth-compact .auth-brand p {
    margin: 0.35rem 0 !important;
}

.auth-compact .auth-card .form-grid {
    gap: 0.75rem !important;
}

.auth-compact .auth-card .auth-actions-stack {
    gap: 0.45rem !important;
}

@media (max-height: 700px) {
    .auth-compact .auth-brand img,
    .auth-compact .auth-kicker {
        display: none !important;
    }

    .auth-compact .auth-card {
        padding: 1rem !important;
    }

    .form-grid input,
    .form-grid select,
    .inline-form input,
    .inline-form select,
    .prediction-form input[type="number"] {
        padding: 0.65rem 0.8rem !important;
    }
}

@media (max-width: 720px) {
    .auth-body.auth-compact {
        display: block;
        min-width: 0;
    }

    .auth-compact .landing-header {
        position: static;
    }

    .auth-compact .auth-shell {
        width: min(100% - 1rem, 420px) !important;
        min-height: auto;
        margin: 0 auto;
        padding: 0.9rem 0 1.25rem !important;
        place-items: start center;
    }

    .auth-compact .auth-card {
        width: 100%;
        min-width: 0;
        padding: 1rem !important;
        border-radius: 18px !important;
    }

    .auth-compact .auth-brand {
        margin-bottom: 0.75rem !important;
    }

    .auth-compact .auth-brand h1 {
        margin: 0.2rem 0;
        font-size: clamp(1.45rem, 8vw, 2rem);
        line-height: 1.05;
    }

    .auth-compact .auth-brand p {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .auth-compact .form-grid,
    .auth-compact .password-field,
    .auth-compact .form-grid label {
        min-width: 0;
        width: 100%;
    }

    .auth-compact .form-grid input {
        min-width: 0;
    }

    .auth-compact .btn.full-width {
        width: 100%;
        min-width: 0;
        padding-inline: 0.85rem;
        white-space: normal;
        text-align: center;
    }

    .auth-compact .checkbox-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .auth-compact .checkbox-row span {
        line-height: 1.3;
    }
}

/* Sistema glass: superficies translúcidas con contraste sobre fondos FIFA. */
.card,
.auth-card,
.profile-card,
.ranking-card,
.prize-card,
.plain-prize-item,
.rule-card,
.group-card,
.fact-card,
.continent-card,
.calendar-card,
.match-card,
.bracket-match,
.round-preview,
.banner-card,
.table-wrap,
.admin-panel,
.empty-state,
.readonly-box,
.result-box,
.prediction-audit,
.venue-pill,
.curiosity-pill,
.continent-team-chip,
.group-accordion,
.choice-pill,
.choice-pill-button,
.bracket-team-button,
.placeholder-seed,
.alert {
    background: linear-gradient(
        145deg,
        var(--surface-glass-strong),
        var(--surface-glass-soft)
    ) !important;
    border: 1px solid var(--glass-stroke) !important;
    box-shadow: var(--shadow-glass) !important;
    backdrop-filter: blur(8px) saturate(1.12);
    -webkit-backdrop-filter: blur(8px) saturate(1.12);
    color: var(--text-primary);
}

.fact-card,
.continent-card,
.venue-pill,
.curiosity-pill,
.prize-card,
.group-card,
.match-card,
.calendar-card,
.round-preview {
    position: relative;
    overflow: hidden;
}

.fact-card::before,
.continent-card::before,
.venue-pill::before,
.curiosity-pill::before,
.prize-card::before,
.group-card::before,
.match-card::before,
.calendar-card::before,
.round-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(198, 255, 0, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 18%,
            rgba(94, 224, 198, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(109, 9, 249, 0.08),
            rgba(246, 32, 13, 0.07)
        );
    pointer-events: none;
}

.fact-card > *,
.continent-card > *,
.venue-pill > *,
.curiosity-pill > *,
.prize-card > *,
.group-card > *,
.match-card > *,
.calendar-card > *,
.round-preview > * {
    position: relative;
    z-index: 1;
}

.fact-card[style*="--fact-accent"] {
    border-top-color: var(--fact-accent) !important;
}

.continent-card[style*="--continent-accent"] {
    border-color: color-mix(
        in srgb,
        var(--continent-accent) 34%,
        white
    ) !important;
}

.venue-pill[style*="--venue-accent"] {
    border-color: color-mix(in srgb, var(--venue-accent) 38%, white) !important;
}

.hero-stat,
.section-hero .hero-brand-lockup,
.company-chip,
.hero-brand-lockup {
    background: rgba(10, 26, 59, 0.44) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    color: var(--wc-white);
}

.section-hero .hero-stat span,
.section-hero .hero-stat strong {
    color: var(--wc-white);
}

.choice-pill.active,
.choice-pill:has(input:checked),
.choice-pill-button.active,
.bracket-team.selected,
.bracket-team:has(input:checked),
.bracket-team-button.selected,
.btn-primary,
.btn-secondary,
.btn-danger {
    background: linear-gradient(
        135deg,
        rgba(37, 46, 147, 0.96),
        rgba(109, 9, 249, 0.94),
        rgba(246, 32, 13, 0.92)
    ) !important;
    color: var(--wc-white) !important;
    border-color: rgba(198, 255, 0, 0.68) !important;
}

.venue-pill span,
.curiosity-pill span,
.group-badge,
.rank-medal,
.ranking-badge,
.status-badge,
.prize-card > span,
.prize-card > strong,
.badge {
    box-shadow: 0 10px 24px rgba(10, 26, 59, 0.16);
}

.prize-summary-grid {
    margin-top: 2rem;
}

.surface-tag {
    display: inline-flex !important;
    width: fit-content;
    margin-bottom: 0.7rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 26, 59, 0.72);
    color: var(--wc-white);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.surface-status {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(10, 26, 59, 0.12);
}

.calendar-title {
    font-size: clamp(2.1rem, 6vw, 3rem);
}

/* Calendario: hero limpio, sin emoji descuadrado ni texto cortado */
.calendar-page-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: min(820px, 100%);
    padding: 1.5rem 1.65rem;
}

.calendar-page-title .section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, var(--wc-dark-blue), var(--wc-indigo));
    color: #ffffff;
    font-size: 1.45rem;
    box-shadow: 0 12px 26px rgba(10, 26, 59, 0.24);
}

.calendar-page-title p {
    display: block;
    width: auto;
    max-width: 100%;
    padding: 0;
    margin: 0.65rem 0 0;
    border-radius: 0;
    background: transparent;
    color: rgba(10, 26, 59, 0.72) !important;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
}

.calendar-day-group {
    margin-bottom: 3rem;
}

.calendar-date-heading {
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--wc-dark-blue);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.match-venue-inline {
    margin-top: 0.25rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.team-display-row-home {
    justify-content: flex-end;
}

.team-flag-img {
    width: 36px;
    height: 26px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(10, 26, 59, 0.14);
    flex: 0 0 auto;
}

.match-vs-inline {
    padding: 0.5rem;
    color: var(--wc-indigo);
    font-size: 0.9rem;
    font-weight: 900;
    opacity: 0.68;
}

.match-phase-wrap {
    text-align: right;
}

.match-phase-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--wc-indigo), var(--wc-purple));
    color: var(--wc-white);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.readonly-box,
.result-box,
.prediction-audit,
.locked-box,
.alert-error,
.alert-success {
    border-color: var(--glass-stroke-dark) !important;
}

/* Branding FIFA global para todas las pantallas PHP. */
body {
    position: relative;
    background:
        linear-gradient(135deg, rgba(198, 255, 0, 0.3), transparent 18%),
        radial-gradient(
            circle at 12% 10%,
            rgba(94, 224, 198, 0.45),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 8%,
            rgba(109, 9, 249, 0.3),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 72%,
            rgba(246, 32, 13, 0.28),
            transparent 26%
        ),
        radial-gradient(
            circle at 18% 92%,
            rgba(255, 84, 21, 0.28),
            transparent 24%
        ),
        linear-gradient(180deg, #f8fbff 0%, #f4f7ff 44%, #fff7f1 100%) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(
            ellipse 88% 130% at -12% 10%,
            rgba(8, 78, 67, 0.38) 0 6%,
            transparent 6.4%
        ),
        radial-gradient(
            ellipse 88% 130% at -5% 16%,
            rgba(94, 224, 198, 0.42) 0 9%,
            transparent 9.4%
        ),
        radial-gradient(
            ellipse 88% 130% at 2% 22%,
            rgba(109, 9, 249, 0.34) 0 12%,
            transparent 12.4%
        ),
        radial-gradient(
            ellipse 88% 130% at 9% 28%,
            rgba(198, 255, 0, 0.34) 0 15%,
            transparent 15.4%
        ),
        radial-gradient(
            ellipse 88% 130% at 16% 34%,
            rgba(255, 84, 21, 0.3) 0 18%,
            transparent 18.4%
        ),
        radial-gradient(
            ellipse 88% 130% at 23% 40%,
            rgba(50, 80, 242, 0.28) 0 21%,
            transparent 21.4%
        ),
        radial-gradient(
            ellipse 82% 120% at 112% 82%,
            rgba(246, 32, 13, 0.3) 0 8%,
            transparent 8.4%
        ),
        radial-gradient(
            ellipse 82% 120% at 105% 76%,
            rgba(109, 9, 249, 0.28) 0 12%,
            transparent 12.4%
        ),
        radial-gradient(
            ellipse 82% 120% at 98% 70%,
            rgba(94, 224, 198, 0.3) 0 16%,
            transparent 16.4%
        );
    opacity: 1;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.14) 0 1px,
            transparent 1px 22px
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.68),
            rgba(255, 255, 255, 0.34)
        );
    pointer-events: none;
}

.landing-header,
.topbar {
    background: linear-gradient(
        120deg,
        rgba(10, 26, 59, 0.88),
        rgba(37, 46, 147, 0.82),
        rgba(109, 9, 249, 0.74),
        rgba(246, 32, 13, 0.64)
    ) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow: 0 18px 42px rgba(10, 26, 59, 0.24) !important;
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.landing-header::after,
.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--wc-gold),
        var(--wc-green),
        var(--wc-aqua),
        var(--wc-purple),
        var(--wc-red),
        var(--wc-orange)
    );
}

.brand,
.brand-pill {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
}

.landing-header .brand {
    background: rgba(255, 255, 255, 0.96) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 22px 44px rgba(10, 26, 59, 0.14) !important;
    backdrop-filter: blur(22px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
    border-radius: 1.5rem !important;
    padding: 0.95rem 1rem !important;
}

.landing-header .brand img {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 0.55rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.main-nav a,
.nav-links a {
    color: var(--wc-white) !important;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.24);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--wc-gold) !important;
}

.landing-header .main-nav .nav-cta {
    background: transparent !important;
    color: var(--wc-white) !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.landing-header .main-nav .nav-cta:hover,
.landing-header .main-nav .nav-cta:focus-visible {
    background: var(--wc-white) !important;
    color: var(--wc-dark-blue) !important;
    border-color: var(--wc-white) !important;
    text-decoration: none;
}

.landing-page .brand img {
    height: 68px !important;
    max-width: 190px;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-showcase {
    position: relative;
    width: min(560px, 100%);
    min-height: 460px;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 1.5rem 0 0;
}

.hero-showcase::before {
    content: "";
    position: absolute;
    inset: 8% 5% 18%;
    border-radius: 999px;
    background:
        radial-gradient(
            circle at 28% 42%,
            rgba(198, 255, 0, 0.34),
            transparent 34%
        ),
        radial-gradient(
            circle at 72% 38%,
            rgba(94, 224, 198, 0.3),
            transparent 36%
        ),
        rgba(10, 26, 59, 0.22);
    filter: blur(1px);
}

.hero-quiniela-logo {
    position: relative;
    z-index: 4;
    width: min(390px, 82%);
    margin: 0 0 -1rem;
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.34));
}

.home-mascot {
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    user-select: none;
}

.hero-mascot-lineup {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 0.68fr 1.32fr 0.68fr 0.68fr;
    align-items: end;
    width: min(580px, 100%);
    margin-top: -0.6rem;
}

/* Mascota Grumexsa — protagonista del hero */
.home-mascot-grume {
    width: min(305px, 48vw);
    z-index: 5;
    justify-self: center;
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.56))
        drop-shadow(0 0 36px rgba(255, 215, 0, 0.48));
    animation: grumePop 3.8s ease-in-out infinite;
}

@keyframes grumePop {
    0%,
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.56))
            drop-shadow(0 0 36px rgba(255, 215, 0, 0.48));
    }
    50% {
        transform: translateY(-9px);
        filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 50px rgba(255, 215, 0, 0.64));
    }
}

.home-mascot-canada {
    width: min(218px, 34vw);
    justify-self: end;
    transform: translate(1.4rem, 0.8rem) rotate(-6deg);
}

.home-mascot-mexico {
    z-index: 2;
    width: min(235px, 37vw);
    justify-self: center;
    transform: translateY(1rem);
}

.home-mascot-eua {
    width: min(218px, 34vw);
    justify-self: start;
    transform: translate(-1.4rem, 0.6rem) rotate(6deg);
}

.section-title-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
    padding: 1.25rem 1.5rem;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.86),
            rgba(255, 255, 255, 0.58)
        ),
        radial-gradient(
            circle at 10% 15%,
            rgba(255, 215, 0, 0.28),
            transparent 32%
        ),
        radial-gradient(
            circle at 92% 20%,
            rgba(94, 224, 198, 0.24),
            transparent 34%
        );
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    width: fit-content;
    max-width: 100%;
}

.section-title-row.compact-title {
    margin-top: 1.4rem;
}

.section-title-row h1,
.section-title-row h3 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-hero .section-title-row h1,
.section-hero .section-title-row h3 {
    color: var(--wc-dark-blue) !important;
}

.secondary-hero {
    min-height: auto;
    align-items: end;
    padding: clamp(2.6rem, 5vw, 4rem) 0 2.4rem;
}

.section-title-row p {
    display: inline-flex;
    width: fit-content;
    margin: 0.55rem 0 0;
    max-width: 720px;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(10, 26, 59, 0.88);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.2;
    box-shadow: 0 10px 22px rgba(10, 26, 59, 0.14);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1.05rem;
    background: linear-gradient(135deg, #0a1a3b, #4d0ddc 58%, #009b3a);
    color: var(--wc-white);
    font-size: 1.45rem;
    box-shadow:
        0 14px 32px rgba(10, 26, 59, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.section-mascot {
    width: min(190px, 22vw);
    height: auto;
    justify-self: end;
}

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

.rule-impact-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 0.85rem;
    min-height: 250px;
    padding: 1.2rem;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 18% 10%,
            color-mix(in srgb, var(--rule-accent) 28%, transparent),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.98),
            color-mix(in srgb, var(--rule-accent) 10%, white)
        );
    border: 1px solid
        color-mix(in srgb, var(--rule-accent) 34%, rgba(255, 255, 255, 0.9));
    border-top: 5px solid var(--rule-accent);
    box-shadow: 0 18px 38px
        color-mix(in srgb, var(--rule-accent) 14%, rgba(10, 26, 59, 0.1));
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.rule-impact-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -54px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rule-accent) 18%, transparent);
    pointer-events: none;
}

.rule-impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px
        color-mix(in srgb, var(--rule-accent) 18%, rgba(10, 26, 59, 0.14));
}

.rule-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.icon-circle {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rule-accent), var(--wc-purple));
    color: var(--wc-white);
    box-shadow: 0 14px 28px
        color-mix(in srgb, var(--rule-accent) 28%, rgba(10, 26, 59, 0.2));
    font-size: 1.5rem;
}

.rule-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    background: var(--wc-dark-blue);
    color: var(--wc-white);
    font-size: 0.74rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(10, 26, 59, 0.16);
}

.rule-impact-card h4 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--wc-dark-blue);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.05;
}

.rule-impact-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(18, 18, 22, 0.76);
    font-size: 0.96rem;
    line-height: 1.45;
}

.rule-impact-card strong {
    color: var(--wc-dark-blue);
}

.prize-defined-card {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    width: min(520px, 100%);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 215, 0, 0.28),
            transparent 42%
        ),
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 246, 196, 0.88)
        );
    border: 1px solid rgba(255, 215, 0, 0.36);
    box-shadow: 0 24px 54px rgba(10, 26, 59, 0.16);
}

.prize-defined-cup {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    border-radius: 28px;
    background: linear-gradient(
        135deg,
        var(--wc-gold),
        var(--wc-red),
        var(--wc-purple)
    );
    color: var(--wc-white);
    font-size: 3rem;
    box-shadow: 0 18px 38px rgba(10, 26, 59, 0.22);
}

.prize-defined-card h2 {
    margin: 0;
    color: var(--wc-dark-blue);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    text-transform: uppercase;
}

.prize-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.15rem;
}

.prize-impact-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    min-height: 260px;
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid
        color-mix(in srgb, var(--prize-accent) 34%, rgba(255, 255, 255, 0.9));
    border-top: 5px solid var(--prize-accent);
    background:
        radial-gradient(
            circle at 18% 12%,
            color-mix(in srgb, var(--prize-accent) 28%, transparent),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.98),
            color-mix(in srgb, var(--prize-accent) 10%, white)
        );
    box-shadow: 0 18px 38px
        color-mix(in srgb, var(--prize-accent) 14%, rgba(10, 26, 59, 0.1));
}

.prize-impact-card::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--prize-accent) 18%, transparent);
}

.prize-impact-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.prize-impact-icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--prize-accent), var(--wc-purple));
    color: var(--wc-white);
    font-size: 1.55rem;
    box-shadow: 0 14px 28px
        color-mix(in srgb, var(--prize-accent) 30%, rgba(10, 26, 59, 0.2));
}

.prize-impact-card h3,
.prize-impact-card p,
.prize-impact-card .surface-status {
    position: relative;
    z-index: 1;
}

.prize-impact-card h3 {
    margin: 0;
    color: var(--wc-dark-blue);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.05;
}

.prize-impact-card p {
    margin: 0;
    color: rgba(18, 18, 22, 0.74);
    line-height: 1.45;
}

.app-impact-title {
    margin-bottom: 1.25rem;
}

.auth-impact-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.auth-impact-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(10, 26, 59, 0.9);
    color: var(--wc-white);
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(10, 26, 59, 0.14);
}

.facts-grid,
.venues-grid,
.curiosity-grid,
.continents-grid,
.groups-grid,
.bracket-preview {
    margin-top: 0.75rem;
}

.fact-card,
.continent-card,
.group-card,
.venue-pill,
.curiosity-pill,
.bracket-preview {
    border-radius: 18px !important;
}

.fact-card {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.98),
        color-mix(in srgb, var(--fact-accent) 12%, white)
    );
    box-shadow: 0 18px 38px
        color-mix(in srgb, var(--fact-accent) 13%, rgba(10, 26, 59, 0.1));
}

.curiosity-pill {
    border-left: 4px solid
        color-mix(in srgb, var(--wc-purple) 58%, var(--wc-aqua));
}

.continent-card {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--continent-accent) 10%, white),
        rgba(255, 255, 255, 0.96)
    );
}

.group-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        color-mix(in srgb, var(--group-accent) 8%, white)
    );
}

.round-preview {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(37, 46, 147, 0.1);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94),
        rgba(240, 244, 255, 0.92)
    );
}

.landing-page .continent-team-chip img,
.landing-page .team-row img {
    width: 32px;
    height: 22px;
    flex: 0 0 auto;
    object-fit: contain;
}

.landing-page .continent-team-chip img {
    border-radius: 6px;
}

.flag-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 0.55rem;
    background: rgba(10, 26, 59, 0.9);
    color: var(--wc-white);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(10, 26, 59, 0.14);
    flex: 0 0 auto;
}

.flag-code-badge.flag-fallback-inline {
    display: none;
}

@media (max-width: 720px) {
    .landing-page .brand img {
        height: 54px !important;
        max-width: 124px;
    }

    .landing-header .brand {
        padding: 0.5rem 0.65rem !important;
        border-radius: 1rem !important;
    }

    .landing-header .header-top {
        justify-content: center;
        padding: 0.7rem 0;
    }

    .landing-header .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .landing-header .main-nav a {
        margin: 0 !important;
        padding: 0.55rem 0.45rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        font-size: 0.82rem;
        text-align: center;
        text-shadow: none;
    }

    .landing-header .main-nav .nav-cta {
        grid-column: span 2;
        padding: 0.58rem 0.65rem;
    }

    .landing-header .header-sub {
        padding: 0.7rem 0 0.85rem;
        gap: 0.8rem;
    }

    .landing-header .countdown > strong,
    .landing-header .progress-area > strong {
        font-size: 0.9rem;
        text-align: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .countdown-timer > span {
        min-width: 3.65rem;
        padding: 0.45rem 0.5rem;
        border-radius: 14px;
    }

    .countdown-timer strong {
        font-size: 1rem;
    }

    .countdown-note {
        text-align: center;
    }

    .hero-showcase {
        min-height: 300px;
        width: 100%;
        margin-top: 0.5rem;
    }

    .hero-quiniela-logo {
        width: min(285px, 82%);
        margin-bottom: -0.55rem;
    }

    .hero-mascot-lineup {
        width: min(360px, 96%);
        grid-template-columns: 0.68fr 1.32fr 0.68fr 0.68fr;
        margin-top: -0.25rem;
    }

    .home-mascot-grume {
        width: min(165px, 42vw);
    }

    .home-mascot-canada {
        width: min(128px, 29vw);
        transform: translate(0.8rem, 0.5rem) rotate(-6deg);
    }

    .home-mascot-mexico {
        width: min(140px, 32vw);
        transform: translateY(0.7rem);
    }

    .home-mascot-eua {
        width: min(128px, 29vw);
        transform: translate(-0.8rem, 0.35rem) rotate(6deg);
    }

    .section-title-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 0.8rem;
        width: 100%;
        padding: 0.85rem;
        border-radius: 18px;
    }

    .section-icon {
        width: 2.85rem;
        height: 2.85rem;
        border-radius: 0.85rem;
        font-size: 1.2rem;
    }

    .section-title-row h1,
    .section-title-row h3 {
        font-size: clamp(1.45rem, 8vw, 2.05rem);
    }

    .section-title-row p {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .section-mascot {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(160px, 44vw);
        margin-top: 0.25rem;
    }

    .facts-grid,
    .venues-grid,
    .curiosity-grid,
    .continents-grid,
    .groups-grid,
    .bracket-preview {
        gap: 0.85rem;
    }
}

.header-sub {
    color: var(--wc-white);
    border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.header-sub .progress-track {
    background: rgba(10, 26, 59, 0.36) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
}

.section,
.section.alt,
.dashboard-main,
.banner-shell,
.calendar-day-group,
.calendar-list,
.auth-body {
    background: transparent !important;
}

.section:not(.section-hero) h1,
.section:not(.section-hero) h2,
.section:not(.section-hero) h3,
.dashboard-main h1,
.dashboard-main h2,
.dashboard-main h3,
.auth-card h1 {
    color: var(--wc-dark-blue);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
}

.section:not(.section-hero) > .container > p,
.dashboard-main p {
    color: rgba(10, 26, 59, 0.86);
}

.section > .container > h1,
.section > .container > h2,
.section > .container > h3,
.section > .container > p {
    max-width: 920px;
}

.section > .container > h1,
.section > .container > h2,
.section > .container > h3 {
    margin-top: 0;
}

.site-footer {
    display: none !important;
}

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

@media (max-width: 720px) {
    .rules-container {
        grid-template-columns: 1fr;
    }

    .prize-impact-grid {
        grid-template-columns: 1fr;
    }

    .rule-impact-card {
        min-height: 0;
    }

    .prize-impact-card {
        min-height: 0;
    }

    .card,
    .auth-card,
    .profile-card,
    .ranking-card,
    .prize-card,
    .plain-prize-item,
    .rule-card,
    .group-card,
    .fact-card,
    .continent-card,
    .calendar-card,
    .match-card,
    .bracket-match,
    .round-preview,
    .banner-card,
    .table-wrap,
    .admin-panel,
    .empty-state,
    .readonly-box,
    .result-box,
    .prediction-audit,
    .venue-pill,
    .curiosity-pill,
    .continent-team-chip,
    .group-accordion,
    .choice-pill,
    .choice-pill-button,
    .bracket-team-button,
    .placeholder-seed,
    .alert {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.88) !important;
    }
}

/* Header mundialista: navegacion, countdown y progreso del torneo. */
.landing-page .landing-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    color: var(--wc-white);
    background:
        linear-gradient(rgba(8, 14, 34, 0.54), rgba(8, 14, 34, 0.54)),
        linear-gradient(
            90deg,
            #0a1a3b 0%,
            #c8102e 38%,
            #009b3a 70%,
            #ffd700 100%
        ) !important;
    border-bottom: 0 !important;
    box-shadow: 0 22px 46px rgba(10, 26, 59, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.landing-page .landing-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        #009b3a 0 11%,
        #ffffff 11% 22%,
        #c8102e 22% 33%,
        #c8102e 33% 44%,
        #ffffff 44% 55%,
        #c8102e 55% 66%,
        #ffffff 66% 78%,
        #002868 78% 100%
    );
}

.landing-page .header-top {
    position: relative;
    z-index: 1;
    padding: 0.9rem 0 0.85rem;
    gap: clamp(0.75rem, 1.4vw, 1.2rem);
}

.landing-page .header-top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #009b3a 0 11%,
        #ffffff 11% 22%,
        #c8102e 22% 33%,
        #c8102e 33% 44%,
        #ffffff 44% 55%,
        #c8102e 55% 66%,
        #ffffff 66% 78%,
        #002868 78% 100%
    );
    opacity: 0.96;
}

.landing-page:not(.app-page) .landing-header .brand {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0.42rem 5.4rem 0.42rem 0.75rem !important;
    margin-left: clamp(1rem, 3vw, 2.6rem);
    margin-right: 1.25rem;
    box-shadow: none !important;
}

.landing-page:not(.app-page) .landing-header .brand::before {
    content: "";
    position: absolute;
    inset: 0 4.2rem 0 0;
    z-index: -1;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.42);
    box-shadow:
        0 0 26px rgba(255, 215, 0, 0.22),
        0 18px 36px rgba(0, 0, 0, 0.24);
}

.landing-page:not(.app-page) .landing-header .brand img {
    height: 92px !important;
    width: auto;
    max-width: 270px;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.3))
        drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.landing-page:not(.app-page) .landing-header .brand .grumexsa-logo-header {
    height: 54px !important;
    max-width: 168px;
    margin-left: 0.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28)) !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Mascota Grumexsa en el header: flotante, sin cuadro/pill detrás */
.landing-page:not(.app-page) .landing-header .brand .mascota-grume-header {
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%) scale(1.14);
    height: 116px !important;
    width: auto;
    max-width: none;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.66))
        drop-shadow(0 0 18px rgba(255, 215, 0, 0.56)) !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 3;
    pointer-events: none;
}

.landing-page.app-page .landing-header .brand {
    position: relative;
    isolation: isolate;
    flex: 0 1 auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0.36rem 3.45rem 0.36rem 0.62rem !important;
    margin-left: clamp(0.25rem, 1vw, 1rem);
    margin-right: 0;
    box-shadow: none !important;
    gap: clamp(0.55rem, 1vw, 0.85rem);
    max-width: min(42vw, 455px);
}

.landing-page.app-page .landing-header .brand::before {
    content: "";
    position: absolute;
    inset: 0 2.7rem 0 0;
    z-index: -1;
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.42);
    box-shadow:
        0 0 26px rgba(255, 215, 0, 0.22),
        0 18px 36px rgba(0, 0, 0, 0.24);
}

.landing-page.app-page .landing-header .brand img {
    height: 72px !important;
    width: auto;
    max-width: 170px;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.3))
        drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.landing-page.app-page .landing-header .brand .grumexsa-logo-header {
    height: 42px !important;
    max-width: 150px;
    margin-left: 0.15rem;
    filter: brightness(0) invert(1) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28)) !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.landing-page.app-page .landing-header .brand .mascota-grume-header {
    position: absolute;
    right: -0.15rem;
    top: 50%;
    transform: translateY(-50%);
    height: 78px !important;
    width: auto;
    max-width: none;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.66))
        drop-shadow(0 0 18px rgba(255, 215, 0, 0.56)) !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 720px) {
    .landing-page:not(.app-page) .landing-header .brand {
        margin-left: 0;
        margin-right: 0.85rem;
        padding-right: 3.65rem !important;
    }

    .landing-page:not(.app-page) .landing-header .brand::before {
        right: 2.8rem;
    }

    .landing-page:not(.app-page) .landing-header .brand .grumexsa-logo-header {
        height: 36px !important;
        max-width: 112px;
    }

    .landing-page:not(.app-page) .landing-header .brand .mascota-grume-header {
        right: -0.35rem;
        height: 68px !important;
        transform: translateY(-50%) scale(1.08);
    }
}

.landing-page .main-nav {
    flex: 1 1 auto;
    gap: 0.28rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.landing-page .main-nav a {
    position: relative;
    margin: 0;
    color: var(--wc-white) !important;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    white-space: nowrap;
}

/* Pills semitransparentes — compactas para caber en una fila */
.landing-page .main-nav a:not(.nav-cta):not(.nav-logout) {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.landing-page .main-nav a:not(.nav-cta)::after {
    display: none;
}

.landing-page .main-nav a:not(.nav-cta):not(.nav-logout):hover,
.landing-page .main-nav a:not(.nav-cta):not(.nav-logout):focus-visible {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.16) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 215, 0, 0.18);
    text-decoration: none;
}

/* Pill de Cerrar sesión — rojo semitransparente */
.landing-page .main-nav .nav-logout {
    display: inline-flex;
    align-items: center;
    background: rgba(200, 16, 46, 0.28);
    border: 1px solid rgba(255, 80, 80, 0.42);
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.84rem;
    color: rgba(255, 200, 200, 0.95) !important;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.landing-page .main-nav .nav-logout:hover,
.landing-page .main-nav .nav-logout:focus-visible {
    background: rgba(200, 16, 46, 0.56) !important;
    border-color: rgba(255, 100, 100, 0.72) !important;
    color: #ffffff !important;
    text-decoration: none;
}

.landing-page .main-nav .nav-register {
    background: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #07142f !important;
    text-shadow: none !important;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.28);
}

.landing-page .main-nav .nav-register:hover,
.landing-page .main-nav .nav-register:focus-visible {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--wc-red) !important;
}

.landing-page .main-nav .nav-cta {
    background: rgba(10, 26, 59, 0.28) !important;
    color: #ffd700 !important;
    border: 2px solid #ffd700 !important;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.landing-page .main-nav .nav-cta:hover,
.landing-page .main-nav .nav-cta:focus-visible {
    background: #ffd700 !important;
    color: #0a1a3b !important;
    border-color: #ffd700 !important;
    text-decoration: none;
}

.landing-page .header-sub {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: 1rem 0 1.15rem;
    color: var(--wc-white);
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%)
            0 0 / 18px 18px,
        linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%)
            0 0 / 18px 18px,
        linear-gradient(180deg, rgba(4, 10, 26, 0.36), rgba(4, 10, 26, 0.54));
}

.landing-page .countdown {
    gap: 0.6rem;
}

.landing-page .countdown > strong,
.landing-page .progress-area > strong {
    color: var(--wc-white);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.landing-page .countdown-timer {
    gap: 0.55rem;
}

.landing-page .countdown-timer > span {
    min-width: 4.35rem;
    padding: 0.62rem 0.72rem 0.55rem;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 48%),
        rgba(4, 10, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 12px 24px rgba(0, 0, 0, 0.22);
}

.landing-page .countdown-timer strong {
    color: #ffd700;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 0.95;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.34);
}

.landing-page .countdown-timer small,
.landing-page .countdown-note {
    color: rgba(255, 255, 255, 0.88);
}

.landing-page .progress-area {
    display: grid;
    gap: 0.45rem;
    width: 100%;
}

.landing-page .progress-track {
    position: relative;
    height: 1.18rem;
    overflow: visible;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
        linear-gradient(
            90deg,
            rgba(4, 10, 26, 0.9),
            rgba(10, 26, 59, 0.72),
            rgba(4, 10, 26, 0.9)
        ) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.34),
        0 10px 22px rgba(0, 0, 0, 0.18);
}

.landing-page .progress-track span {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #009b3a,
        #ffd700 54%,
        #c8102e
    ) !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.34);
}

.landing-page .progress-track::after {
    content: "⚽";
    position: absolute;
    top: 50%;
    left: var(--progress-percent, 0%);
    z-index: 2;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    line-height: 1;
    text-shadow:
        0 0 4px #ffffff,
        0 0 12px rgba(255, 255, 255, 0.9),
        0 3px 8px rgba(0, 0, 0, 0.38);
}

.landing-page .progress-dates {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.section-hero .hero-actions {
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.section-hero .hero-actions .btn {
    min-height: 3.25rem;
    padding: 0.92rem 1.35rem;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 950;
    letter-spacing: 0;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.section-hero .hero-actions .btn-primary {
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #ffb000 38%,
        #c8102e 100%
    ) !important;
    color: #07142f !important;
    border: 2px solid rgba(255, 255, 255, 0.72) !important;
    text-shadow: none;
}

.section-hero .hero-actions .btn-ghost {
    background: rgba(4, 10, 26, 0.7) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 215, 0, 0.86) !important;
    backdrop-filter: blur(12px) saturate(1.25);
    -webkit-backdrop-filter: blur(12px) saturate(1.25);
}

.section-hero .hero-actions .btn-primary:hover,
.section-hero .hero-actions .btn-primary:focus-visible {
    background: #ffd700 !important;
    color: #07142f !important;
    transform: translateY(-2px);
}

.section-hero .hero-actions .btn-ghost:hover,
.section-hero .hero-actions .btn-ghost:focus-visible {
    background: #ffffff !important;
    color: #0a1a3b !important;
    border-color: #ffd700 !important;
    transform: translateY(-2px);
}

.landing-page #curiosidades {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(255, 215, 0, 0.3),
            transparent 26%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(94, 224, 198, 0.28),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            rgba(10, 26, 59, 0.08),
            rgba(200, 16, 46, 0.08),
            rgba(0, 155, 58, 0.08)
        ) !important;
}

.landing-page #curiosidades::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(10, 26, 59, 0.08) 0 1px,
        transparent 1px 18px
    );
    opacity: 0.65;
    pointer-events: none;
}

.landing-page #curiosidades .container {
    position: relative;
    z-index: 1;
}

.landing-page #curiosidades .section-title-row {
    margin-bottom: 1.6rem;
}

.landing-page #curiosidades .section-icon {
    background: linear-gradient(135deg, #ffd700, #ff5415, #c8102e);
    color: #07142f;
}

.landing-page #curiosidades .curiosity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-page #curiosidades .curiosity-pill {
    --pill-accent: #ffd700;
    position: relative;
    min-height: 126px;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.96),
        rgba(245, 249, 255, 0.88)
    );
    box-shadow:
        0 18px 34px rgba(10, 26, 59, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.landing-page #curiosidades .curiosity-pill:nth-child(3n + 1) {
    --pill-accent: #009b3a;
}

.landing-page #curiosidades .curiosity-pill:nth-child(3n + 2) {
    --pill-accent: #ffd700;
}

.landing-page #curiosidades .curiosity-pill:nth-child(3n) {
    --pill-accent: #c8102e;
}

.landing-page #curiosidades .curiosity-pill::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--pill-accent);
}

.landing-page #curiosidades .curiosity-pill::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pill-accent) 24%, transparent);
}

.landing-page #curiosidades .curiosity-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(10, 26, 59, 0.16);
}

.landing-page #curiosidades .curiosity-pill span {
    width: 2.35rem;
    height: 2.35rem;
    background: var(--pill-accent);
    color: #07142f;
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 20px
        color-mix(in srgb, var(--pill-accent) 25%, rgba(10, 26, 59, 0.18));
}

.landing-page #curiosidades .curiosity-pill p {
    color: rgba(10, 26, 59, 0.9);
    font-weight: 650;
    line-height: 1.38;
}

@media (max-width: 720px) {
    .landing-page:not(.app-page) .landing-header .brand img {
        height: 52px !important;
        max-width: 154px;
    }

    .landing-page .header-top {
        padding: 0.7rem 0 0.85rem;
    }

    .landing-page .main-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .landing-page .main-nav a {
        margin: 0;
        font-size: 0.82rem;
    }

    .landing-page .main-nav .nav-cta {
        grid-column: 1 / -1;
    }

    .landing-page .header-sub {
        grid-template-columns: 1fr;
        padding: 0.85rem 0 1rem;
    }

    .landing-page .countdown,
    .landing-page .progress-area {
        justify-items: center;
    }

    .landing-page .progress-area {
        justify-items: stretch;
    }

    .landing-page .countdown-timer {
        justify-content: center;
    }

    .landing-page .countdown-timer > span {
        min-width: 3.85rem;
        padding: 0.5rem 0.48rem;
    }

    .landing-page .countdown-timer strong {
        font-size: 1.12rem;
    }

    .section-hero .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .section-hero .hero-actions .btn {
        width: 100%;
    }

    .landing-page #curiosidades .curiosity-grid {
        grid-template-columns: 1fr;
    }

    .landing-page #curiosidades .curiosity-pill {
        min-height: auto;
    }
}

.auth-card .btn-primary.full-width {
    min-height: 3rem;
    border: 0;
    background: linear-gradient(135deg, var(--wc-dark-blue), var(--wc-indigo));
    box-shadow: 0 14px 28px rgba(10, 26, 59, 0.22);
}

.auth-card .btn-primary.full-width:hover,
.auth-card .btn-primary.full-width:focus-visible {
    background: linear-gradient(135deg, var(--wc-indigo), var(--wc-red));
    box-shadow: 0 16px 32px rgba(10, 26, 59, 0.28);
}

.auth-card .auth-actions-stack {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(10, 26, 59, 0.1);
}

.auth-card .auth-actions-stack a {
    color: var(--wc-dark-blue);
    font-weight: 800;
    text-decoration: none;
}

.auth-card .auth-actions-stack a:hover,
.auth-card .auth-actions-stack a:focus-visible {
    color: var(--wc-red);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* === REVISION FINAL CONTROLADA - GRUMEXSA MUNDIAL 2026 ===
   Parche scopeado: no cambia estructura ni reescribe la landing completa. */

/* Header interno: misma marca, sin blanco sobre blanco ni logos encimados. */
.landing-page.app-page .landing-header,
.auth-body.landing-page .landing-header {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 215, 0, 0.16), transparent 24%),
        linear-gradient(105deg, #07142f 0%, #4a122b 34%, #064a2f 68%, #636b0d 100%) !important;
    color: #ffffff !important;
    border-bottom: 0 !important;
    box-shadow: 0 14px 34px rgba(7, 20, 47, 0.22) !important;
}
.landing-page.app-page .landing-header .header-top,
.auth-body.landing-page .landing-header .header-top {
    min-height: 102px;
    align-items: center;
    padding-top: 0.72rem !important;
    padding-bottom: 0.82rem !important;
}
.landing-page.app-page .main-nav a:not(.nav-logout),
.auth-body.landing-page .main-nav a:not(.nav-logout) {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.35) !important;
}
.landing-page.app-page .main-nav a:not(.nav-cta):not(.nav-logout),
.auth-body.landing-page .main-nav a:not(.nav-cta):not(.nav-logout) {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.24) !important;
}
.landing-page.app-page .main-nav .nav-logout {
    color: #ffe4e4 !important;
    background: rgba(200, 16, 46, .34) !important;
    border-color: rgba(255, 215, 0, .28) !important;
}
.landing-page.app-page .landing-header .brand,
.auth-body.landing-page .landing-header .brand {
    min-width: min(430px, 42vw);
    max-width: min(460px, 44vw);
}

/* Fondos internos limpios, sin mezclar con el hero de portada. */
.landing-page.app-page main,
.landing-page.app-page .dashboard-main,
.auth-body.landing-page main {
    background:
        radial-gradient(circle at 12% 2%, rgba(255, 215, 0, 0.13), transparent 24%),
        radial-gradient(circle at 88% 32%, rgba(94, 224, 198, 0.20), transparent 22%),
        linear-gradient(180deg, #f7fafc 0%, #ffffff 58%, #f7fafc 100%) !important;
}

/* Calendario: evita texto duplicado/encimado, reemplaza pill oscura por chips ordenados. */
.calendar-page-title.clean-title-card,
.calendar-hero-card {
    width: min(930px, 100%) !important;
    align-items: center !important;
    gap: clamp(.9rem, 2vw, 1.35rem) !important;
    padding: clamp(1.2rem, 2.6vw, 1.9rem) !important;
    overflow: visible !important;
}
.calendar-page-title .section-title-icon {
    flex: 0 0 auto !important;
    font-size: .8rem !important;
    font-weight: 950 !important;
    letter-spacing: .08em;
}
.calendar-page-title .calendar-title {
    margin: 0 !important;
    line-height: .98 !important;
    letter-spacing: -.04em !important;
}
.calendar-page-title .calendar-lead,
.calendar-page-title p {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: 760px !important;
    margin: .65rem 0 .75rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(10, 26, 59, .72) !important;
    box-shadow: none !important;
    font-size: clamp(.94rem, 1.45vw, 1.05rem) !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
}
.calendar-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.calendar-stat-chips span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .48rem .72rem;
    border-radius: 999px;
    background: rgba(10, 26, 59, .08);
    border: 1px solid rgba(10, 26, 59, .10);
    color: var(--wc-dark-blue);
    font-size: .88rem;
    font-weight: 800;
}
.calendar-stat-chips strong { color: var(--wc-red); }

/* Cómo jugar: reglas premium sin emojis gigantes ni elementos superpuestos. */
.howto-section .container { display: grid; gap: 1.45rem; }
.clean-title-card { width: min(980px, 100%) !important; }
.clean-title-card p {
    background: transparent !important;
    color: rgba(10, 26, 59, .72) !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: 1.45 !important;
}
.premium-rules-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.clean-rule-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 1.25rem !important;
    border-radius: 26px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.78)) !important;
    border-top: 5px solid var(--rule-accent) !important;
}
.clean-rule-card::after {
    content: '';
    position: absolute;
    right: -45px;
    bottom: -52px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rule-accent) 18%, transparent);
    pointer-events: none;
}
.rule-symbol {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wc-dark-blue), var(--wc-purple));
    color: #fff;
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .03em;
}
.clean-flow-card { padding: clamp(1.2rem, 3vw, 1.8rem) !important; border-radius: 28px !important; }
.howto-steps {
    counter-reset: step;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}
.howto-steps li {
    counter-increment: step;
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.74));
    border: 1px solid rgba(10, 26, 59, .10);
}
.howto-steps li::before {
    content: counter(step);
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--wc-green), var(--wc-purple), var(--wc-red));
}
.howto-steps strong { color: var(--wc-dark-blue); }
.howto-steps span { color: rgba(10, 26, 59, .68); font-weight: 600; line-height: 1.35; }

/* Premios: solo el mensaje solicitado, sin iconos ni texto duplicado. */
.prizes-simple-section { min-height: 58vh; display: flex; align-items: center; }
.clean-message-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(1.7rem, 4vw, 2.6rem) !important;
    text-align: center;
    border-radius: 30px !important;
}
.clean-message-card h1 {
    margin: .35rem 0 0;
    color: var(--wc-dark-blue);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
}

/* Registro/Login: ojo visible y alineado. */
.auth-card .password-field { width: 100%; position: relative; }
.auth-card .password-field input { width: 100% !important; padding-right: 5.3rem !important; }
.auth-card .password-toggle {
    position: absolute;
    top: 50%;
    right: .58rem;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 4.15rem;
    height: 2.25rem;
    padding: 0 .65rem;
    border: 1px solid rgba(10, 26, 59, .12);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--wc-dark-blue);
    font-size: .74rem;
    font-weight: 850;
    cursor: pointer;
    z-index: 4;
    box-shadow: none;
}
.auth-card .password-toggle:hover,
.auth-card .password-toggle:focus-visible {
    background: rgba(109, 9, 249, .12);
    outline: 2px solid rgba(109, 9, 249, .22);
}

/* Quiniela: estado claro y botón de borrar sin romper autoguardado. */
.capture-progress-card { margin-top: 1rem; padding: 1rem 1.2rem; display: grid; gap: .55rem; }
.capture-progress-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 850; color: var(--wc-dark-blue); }
.capture-progress-card .progress-track {
    height: .9rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(10, 26, 59, .12) !important;
    border: 1px solid rgba(10, 26, 59, .12) !important;
    box-shadow: inset 0 2px 5px rgba(10, 26, 59, .12) !important;
}
.capture-progress-card .progress-track::after { display: none !important; }
.capture-progress-card .progress-fill,
.capture-progress-card .progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--wc-green), var(--wc-gold), var(--wc-red)) !important;
    box-shadow: none !important;
}
.match-card-status-row,
.prediction-current-inline { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.status-pill,
.prediction-current-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .34rem .72rem; font-size: .82rem; font-weight: 850; }
.status-pill.pending { background: rgba(255, 193, 7, .18); color: #7a5200; }
.status-pill.saved { background: rgba(19, 204, 72, .15); color: #075b22; }
.status-pill.locked { background: rgba(10, 26, 59, .12); color: #38445d; }
.prediction-current-chip { background: rgba(37, 46, 147, .08); color: var(--wc-dark-blue); }
.clear-prediction-btn {
    justify-self: start;
    width: fit-content;
    padding: .62rem .9rem !important;
    border-radius: 999px !important;
    background: rgba(200, 16, 46, .08) !important;
    color: #861023 !important;
    border: 1px solid rgba(200, 16, 46, .18) !important;
    box-shadow: none !important;
    font-weight: 850 !important;
}
.clear-prediction-btn:hover,
.clear-prediction-btn:focus-visible { background: rgba(200, 16, 46, .14) !important; transform: translateY(-1px); }

@media (max-width: 960px) {
    .landing-page.app-page .landing-header .brand,
    .auth-body.landing-page .landing-header .brand { min-width: 0; max-width: 100%; }
    .landing-page.app-page .main-nav,
    .auth-body.landing-page .main-nav { justify-content: center; }
    .premium-rules-grid,
    .howto-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calendar-page-title.clean-title-card { grid-template-columns: 1fr !important; text-align: left !important; }
}
@media (max-width: 720px) {
    .landing-page.app-page .landing-header .header-top,
    .auth-body.landing-page .landing-header .header-top { min-height: auto; }
    .landing-page.app-page .main-nav a:not(.nav-cta):not(.nav-logout),
    .landing-page.app-page .main-nav .nav-logout,
    .auth-body.landing-page .main-nav a:not(.nav-cta):not(.nav-logout) { font-size: .78rem; padding: .42rem .55rem; justify-content: center; }
    .premium-rules-grid,
    .howto-steps { grid-template-columns: 1fr; }
    .capture-progress-header { align-items: flex-start; flex-direction: column; gap: .15rem; }
    .next-pending-btn,
    .clear-prediction-btn { width: 100%; justify-content: center; }
    .calendar-stat-chips { flex-direction: column; align-items: stretch; }
}

/* === FIX FINAL: usabilidad quiniela, modal de pronósticos y controles de contraseña === */
.auth-card .password-field input {
    padding-right: 6rem !important;
}
.auth-card .password-toggle,
.password-toggle {
    min-width: 4.8rem !important;
    width: auto !important;
    height: 2.35rem !important;
    padding: 0 .75rem !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    font-size: .78rem !important;
    overflow: hidden;
}
.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1rem;
}
.dashboard-quick-actions .btn {
    width: auto;
    min-width: 220px;
    justify-content: center;
}
.info-note.card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .45rem;
    padding: .9rem 1.1rem !important;
    border-radius: 18px !important;
    line-height: 1.45;
}
.info-note .helper-inline {
    display: inline-flex;
    margin-left: .15rem;
}
.predictions-modal-backdrop,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(4, 10, 26, .62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.predictions-modal {
    width: min(860px, 100%);
    max-height: min(82vh, 760px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0 !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    box-shadow: 0 30px 90px rgba(4, 10, 26, .36) !important;
}
.predictions-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.1rem, 3vw, 1.55rem);
    border-bottom: 1px solid rgba(10, 26, 59, .10);
}
.predictions-modal-header h3 {
    margin: .15rem 0 .3rem;
    color: var(--wc-dark-blue);
    font-size: clamp(1.45rem, 3vw, 2rem);
}
.predictions-modal-header p {
    margin: 0;
    color: rgba(10, 26, 59, .68);
    font-weight: 650;
    max-width: 620px;
}
.modal-close-btn {
    border: 1px solid rgba(10, 26, 59, .12);
    background: rgba(10, 26, 59, .06);
    color: var(--wc-dark-blue);
    border-radius: 999px;
    padding: .62rem .92rem;
    font-weight: 900;
    cursor: pointer;
}
.saved-predictions-list {
    overflow: auto;
    padding: .9rem clamp(1rem, 3vw, 1.55rem) clamp(1.1rem, 3vw, 1.55rem);
    display: grid;
    gap: .72rem;
}
.saved-prediction-row {
    width: 100%;
    border: 1px solid rgba(10, 26, 59, .10);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,255,.92));
    color: var(--wc-dark-blue);
    padding: .88rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.saved-prediction-row:hover,
.saved-prediction-row:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(109, 9, 249, .25);
    box-shadow: 0 16px 34px rgba(10, 26, 59, .12);
    outline: none;
}
.saved-prediction-main,
.saved-prediction-meta {
    display: grid;
    gap: .18rem;
}
.saved-prediction-main strong,
.saved-prediction-meta strong {
    font-weight: 950;
}
.saved-prediction-main span,
.saved-prediction-meta span {
    color: rgba(10, 26, 59, .68);
    font-weight: 700;
}
.saved-prediction-meta {
    text-align: right;
    min-width: 150px;
}
.saved-empty-state {
    margin: 1rem;
    padding: 1.2rem !important;
}
@media (max-width: 720px) {
    .dashboard-quick-actions .btn {
        width: 100%;
        min-width: 0;
    }
    .predictions-modal-backdrop,
    .modal-backdrop {
        align-items: flex-end;
        padding: .75rem;
    }
    .predictions-modal {
        max-height: 88vh;
        border-radius: 24px 24px 18px 18px !important;
    }
    .predictions-modal-header {
        flex-direction: column;
    }
    .modal-close-btn {
        width: 100%;
    }
    .saved-prediction-row {
        flex-direction: column;
    }
    .saved-prediction-meta {
        text-align: left;
        min-width: 0;
    }
    .info-note.card,
    .info-note .helper-inline {
        display: block;
    }
}

/* === Hotfix puntual: hora compacta en quiniela y nombres de registro === */
.match-date-small {
    margin-top: .28rem;
    color: rgba(10, 26, 59, .72);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .01em;
}
.match-card .match-topline + .match-date-small + .match-venue {
    margin-top: .12rem;
}
.auth-card input[data-name-uppercase] {
    text-transform: uppercase;
}
.capture-progress-card .progress-fill {
    min-width: 0;
}
@media (max-width: 640px) {
    .match-date-small {
        font-size: .78rem;
    }
}

/* === PATCH FINAL PRE-SUBIDA: ranking compacto, avatares y avisos de cierre === */
.matchday-alerts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 0 0 1rem;
}

.matchday-alert-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: .8rem;
    padding: 1rem 1.05rem !important;
    border: 1px solid rgba(10, 26, 59, .1);
    box-shadow: 0 18px 40px rgba(10, 26, 59, .08) !important;
}

.matchday-alert-card.deadline.open {
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 243, 205, .92));
}

.matchday-alert-card.deadline.locked {
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(10, 26, 59, .08));
}

.matchday-alert-card.progress.pending {
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(109, 9, 249, .08));
}

.matchday-alert-card.progress.complete {
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(19, 204, 72, .11));
}

.matchday-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wc-indigo), var(--wc-red));
    color: #fff;
    font-size: .88rem;
    font-weight: 950;
    letter-spacing: .02em;
    box-shadow: 0 12px 22px rgba(109, 9, 249, .18);
}

.matchday-alert-content {
    display: grid;
    gap: .38rem;
    min-width: 0;
}

.matchday-alert-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--wc-dark-blue);
}

.matchday-alert-title-row strong {
    font-size: 1rem;
    line-height: 1.15;
}

.matchday-alert-title-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .22rem .55rem;
    background: rgba(10, 26, 59, .08);
    color: rgba(10, 26, 59, .75);
    font-size: .74rem;
    font-weight: 900;
    white-space: nowrap;
}

.matchday-alert-content p {
    margin: 0;
    color: rgba(10, 26, 59, .72);
    font-size: .91rem;
    line-height: 1.42;
}

.matchday-alert-content a {
    color: var(--wc-indigo);
    font-weight: 900;
    text-decoration: none;
}

.compact-alert-btn {
    justify-self: start;
    padding: .5rem .8rem !important;
    min-height: auto !important;
    font-size: .82rem !important;
    border-radius: 999px !important;
}

.compact-ranking-card {
    border-radius: 18px !important;
}

.compact-ranking-table {
    min-width: 860px !important;
}

.compact-ranking-table th,
.compact-ranking-table td {
    padding: .48rem .52rem !important;
    font-size: .82rem !important;
    line-height: 1.2;
}

.compact-ranking-table th {
    font-size: .68rem !important;
    letter-spacing: .035em !important;
}

.compact-rank-number {
    min-width: 1.55rem !important;
    height: 1.55rem !important;
    padding: 0 .35rem !important;
    font-size: .78rem !important;
    border-radius: 10px !important;
}

.compact-player-cell {
    min-width: 190px !important;
    gap: .48rem !important;
}

.ranking-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .92);
    box-shadow: 0 4px 12px rgba(10, 26, 59, .16);
    background: rgba(10, 26, 59, .06);
}

.ranking-player-name-wrap {
    display: grid;
    gap: .08rem;
    min-width: 0;
}

.ranking-player-name-wrap strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-player-name-wrap small,
.last-update-cell {
    color: rgba(10, 26, 59, .58);
    font-size: .72rem;
    font-weight: 750;
}

.last-update-cell {
    display: inline-block;
    max-width: 145px;
    white-space: normal;
    line-height: 1.2;
}

.compact-standings-toolbar {
    margin-bottom: .7rem;
}

@media (max-width: 900px) {
    .matchday-alerts {
        grid-template-columns: 1fr;
    }

    .compact-ranking-table {
        min-width: 780px !important;
    }
}

/* === PATCH FINAL UI FIX 2: banners con impacto, ranking premium y horarios de auditoría === */
.deadline-impact-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 1.15rem;
    padding: 1.15rem;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 28px 70px rgba(10, 26, 59, .18);
    background:
        radial-gradient(circle at 8% 10%, rgba(198, 255, 0, .30), transparent 24%),
        radial-gradient(circle at 94% 6%, rgba(237, 29, 54, .28), transparent 24%),
        linear-gradient(135deg, rgba(10, 26, 59, .98), rgba(38, 25, 109, .95) 48%, rgba(237, 29, 54, .88));
    color: #fff;
}

.deadline-impact-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .13), transparent 22%, rgba(255, 255, 255, .10) 74%, transparent);
    pointer-events: none;
}

.deadline-impact-banner.is-locked {
    background:
        radial-gradient(circle at 8% 10%, rgba(198, 255, 0, .22), transparent 24%),
        radial-gradient(circle at 94% 6%, rgba(237, 29, 54, .34), transparent 24%),
        linear-gradient(135deg, rgba(10, 26, 59, .98), rgba(30, 37, 61, .96) 48%, rgba(99, 40, 109, .92));
}

.deadline-impact-main,
.deadline-impact-progress {
    position: relative;
    z-index: 1;
}

.deadline-impact-main {
    display: grid;
    gap: .48rem;
    align-content: center;
}

.deadline-impact-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: .28rem .62rem;
    border-radius: 999px;
    background: rgba(198, 255, 0, .20);
    color: #f7ffd5;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.deadline-impact-main h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.deadline-impact-main p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 760;
}

.deadline-impact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .28rem;
}

.deadline-impact-actions .btn {
    min-height: auto !important;
    padding: .6rem .95rem !important;
    border-radius: 999px !important;
}

.deadline-impact-progress {
    display: grid;
    place-items: center;
    align-content: center;
    gap: .25rem;
    min-height: 150px;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20);
    text-align: center;
    backdrop-filter: blur(10px);
}

.deadline-impact-progress span {
    color: #c6ff00;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.06em;
}

.deadline-impact-progress strong {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
}

.deadline-impact-progress small {
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
    font-weight: 760;
}

.closure-banner {
    display: none !important;
}

.ranking-table-card.compact-ranking-card {
    border-radius: 26px !important;
    border: 1px solid rgba(255, 255, 255, .86) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.91)),
        radial-gradient(circle at 0 0, rgba(198,255,0,.18), transparent 28%) !important;
    box-shadow: 0 30px 80px rgba(10, 26, 59, .13) !important;
    overflow: auto !important;
}

.ranking-table.compact-ranking-table {
    min-width: 900px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.ranking-table.compact-ranking-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: .65rem .55rem !important;
    background: linear-gradient(135deg, rgba(10,26,59,.98), rgba(36,45,79,.95)) !important;
    color: #fff !important;
    border-bottom: 0 !important;
    font-size: .67rem !important;
}

.ranking-table.compact-ranking-table thead th:first-child {
    border-top-left-radius: 18px;
}

.ranking-table.compact-ranking-table thead th:last-child {
    border-top-right-radius: 18px;
}

.ranking-table.compact-ranking-table tbody td {
    padding: .46rem .55rem !important;
    border-bottom: 1px solid rgba(10, 26, 59, .075) !important;
    background: rgba(255, 255, 255, .62) !important;
}

.ranking-table.compact-ranking-table tbody tr:nth-child(odd) td {
    background: rgba(245, 249, 252, .74) !important;
}

.ranking-table.compact-ranking-table tbody tr:hover td {
    background: rgba(198, 255, 0, .16) !important;
}

.ranking-table.compact-ranking-table tbody tr.current-user-row td {
    background: rgba(109, 9, 249, .075) !important;
    box-shadow: inset 0 1px 0 rgba(109, 9, 249, .08), inset 0 -1px 0 rgba(109, 9, 249, .08);
}

.ranking-table.compact-ranking-table tbody tr.current-user-row td:first-child {
    border-left: 4px solid var(--wc-indigo);
}

.ranking-avatar {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
    border-radius: 14px !important;
    border: 2px solid #fff !important;
    background: linear-gradient(135deg, rgba(10, 26, 59, .08), rgba(109, 9, 249, .10)) !important;
}

.compact-player-cell {
    min-width: 210px !important;
}

.ranking-player-name-wrap strong {
    max-width: 220px !important;
    color: var(--wc-indigo) !important;
    font-size: .86rem !important;
    letter-spacing: -.01em;
}

.ranking-player-name-wrap small {
    color: rgba(10, 26, 59, .56) !important;
    font-size: .70rem !important;
}

.last-update-cell {
    max-width: 138px !important;
    color: rgba(10, 26, 59, .70) !important;
    font-size: .70rem !important;
    font-weight: 850 !important;
}

.readonly-box {
    gap: .25rem !important;
}

.readonly-box a {
    width: fit-content;
    margin-top: .15rem;
    color: var(--wc-indigo);
    font-weight: 900;
    text-decoration: none;
}

.info-note.card {
    padding: .72rem .85rem !important;
    font-size: .86rem;
}

@media (max-width: 900px) {
    .deadline-impact-banner {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .deadline-impact-progress {
        min-height: auto;
        grid-template-columns: auto 1fr;
        place-items: center start;
        text-align: left;
    }

    .deadline-impact-progress span {
        grid-row: span 2;
        font-size: 2rem;
    }
}

/* === PATCH UI FIX 3: ranking entendible + banner claro === */
.deadline-impact-banner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 250px) !important;
    gap: 1rem !important;
    padding: 1rem 1.05rem !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 202, 40, .85) !important;
    border-left: 8px solid #ef3340 !important;
    background:
        radial-gradient(circle at 94% 12%, rgba(198, 255, 0, .30), transparent 24%),
        linear-gradient(135deg, #fff7d6 0%, #ffffff 52%, #e9fff8 100%) !important;
    color: #0a1a3b !important;
    box-shadow: 0 22px 54px rgba(10, 26, 59, .15) !important;
}

.deadline-impact-banner::before {
    background:
        linear-gradient(90deg, rgba(239, 51, 64, .08), transparent 26%, rgba(0, 104, 71, .08)) !important;
}

.deadline-impact-banner.is-locked {
    border-left-color: #ef3340 !important;
    background:
        radial-gradient(circle at 92% 12%, rgba(198, 255, 0, .28), transparent 24%),
        linear-gradient(135deg, #fff3d0 0%, #ffffff 52%, #eafff7 100%) !important;
}

.deadline-impact-kicker {
    background: #0a1a3b !important;
    color: #c6ff00 !important;
    box-shadow: 0 8px 18px rgba(10, 26, 59, .18) !important;
}

.deadline-impact-main h2 {
    color: #0a1a3b !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    font-size: clamp(1.75rem, 2.8vw, 2.55rem) !important;
    letter-spacing: -.045em !important;
}

.deadline-impact-main p {
    color: rgba(10, 26, 59, .84) !important;
    text-shadow: none !important;
    font-weight: 850 !important;
}

.deadline-impact-progress {
    min-height: 128px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #0a1a3b, #17264a) !important;
    border: 1px solid rgba(10, 26, 59, .16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px rgba(10, 26, 59, .18) !important;
}

.deadline-impact-progress span {
    color: #c6ff00 !important;
}

.deadline-impact-progress strong,
.deadline-impact-progress small {
    color: #fff !important;
}

.ranking-table-card.compact-ranking-card {
    padding: 0 !important;
    overflow-x: auto !important;
}

.ranking-table.compact-ranking-table.score-ranking-table {
    min-width: 980px !important;
    width: 100% !important;
    table-layout: fixed !important;
}

.score-ranking-table .rank-col { width: 64px; }
.score-ranking-table .player-col { width: 38%; }
.score-ranking-table .points-col { width: 90px; }
.score-ranking-table .hit-col { width: 132px; }
.score-ranking-table .exact-col { width: 132px; }
.score-ranking-table .pred-col { width: 118px; }
.score-ranking-table .update-col { width: 188px; }

.ranking-table.compact-ranking-table.score-ranking-table thead th {
    padding: .62rem .7rem !important;
    vertical-align: middle !important;
    font-size: .70rem !important;
    line-height: 1.12 !important;
    white-space: normal !important;
}

.ranking-table.compact-ranking-table.score-ranking-table thead th small {
    display: block;
    margin-top: .1rem;
    color: rgba(255,255,255,.70);
    font-size: .62rem;
    letter-spacing: .015em;
    text-transform: none;
}

.ranking-table.compact-ranking-table.score-ranking-table tbody td {
    padding: .42rem .7rem !important;
    vertical-align: middle !important;
}

.ranking-table.compact-ranking-table.score-ranking-table tbody td:nth-child(n+3) {
    text-align: center !important;
}

.ranking-table.compact-ranking-table.score-ranking-table tbody td:nth-child(2) {
    text-align: left !important;
}

.compact-player-cell {
    width: 100% !important;
    min-width: 0 !important;
    gap: .55rem !important;
}

.ranking-avatar {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
}

.ranking-player-name-wrap {
    min-width: 0 !important;
    width: 100% !important;
}

.ranking-player-name-wrap strong {
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.12 !important;
}

.points-total {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a1a3b, #263a77);
    color: #fff;
    font-weight: 950;
}

.score-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 1.7rem;
    padding: 0 .45rem;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid rgba(10, 26, 59, .10);
}

.winner-chip {
    background: rgba(0, 104, 71, .10);
    color: #006847;
}

.exact-chip {
    background: rgba(109, 9, 249, .10);
    color: #4d0ec4;
}

.last-update-cell {
    max-width: none !important;
    display: inline-block;
    font-size: .72rem !important;
    line-height: 1.16 !important;
}

@media (max-width: 900px) {
    .deadline-impact-banner {
        grid-template-columns: 1fr !important;
    }
    .ranking-table.compact-ranking-table.score-ranking-table {
        min-width: 900px !important;
    }
}

/* === PATCH UI FIX 4: clasificación clara, tooltips y banner legible === */
.standings-icon-pro {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 950;
    font-size: 1.45rem;
}

.ranking-rules-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .75rem;
    margin: .75rem 0 .75rem;
    padding: .78rem .9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,248,255,.92));
    border: 1px solid rgba(10,26,59,.10);
    box-shadow: 0 18px 44px rgba(10,26,59,.09);
    color: #0a1a3b;
}

.ranking-rules-panel strong {
    margin-right: .2rem;
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ranking-rules-panel span {
    padding: .34rem .58rem;
    border-radius: 999px;
    background: rgba(10,26,59,.065);
    color: #0a1a3b;
    font-size: .82rem;
    font-weight: 760;
}

.ranking-rules-panel small {
    width: 100%;
    color: #667085;
    font-weight: 650;
}

.final-ranking-card {
    padding: 0 !important;
    overflow-x: auto !important;
    border-radius: 24px !important;
}

.final-score-ranking-table {
    width: 100% !important;
    min-width: 1040px !important;
    table-layout: auto !important;
}

.final-score-ranking-table .rank-col { width: 76px; }
.final-score-ranking-table .player-col { width: 36%; }
.final-score-ranking-table .points-col { width: 94px; }
.final-score-ranking-table .hit-col { width: 155px; }
.final-score-ranking-table .exact-col { width: 150px; }
.final-score-ranking-table .pred-col { width: 118px; }
.final-score-ranking-table .update-col { width: 170px; }

.final-score-ranking-table thead th {
    padding: .68rem .7rem !important;
    vertical-align: middle !important;
    white-space: normal !important;
    line-height: 1.14 !important;
    font-size: .70rem !important;
}

.th-help-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
}

.ranking-help {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(198,255,0,.18);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.22);
    font-size: .67rem;
    font-weight: 950;
    cursor: help;
}

.final-score-ranking-table tbody td {
    padding: .58rem .7rem !important;
    vertical-align: middle !important;
}

.final-player-cell {
    min-width: 0 !important;
    gap: .65rem !important;
}

.final-player-cell .ranking-avatar {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
}

.final-player-cell .ranking-player-name-wrap {
    min-width: 0 !important;
    max-width: none !important;
}

.final-player-cell .ranking-player-name-wrap strong {
    display: block !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.08 !important;
    font-size: .87rem !important;
}

.final-player-cell .ranking-player-name-wrap small {
    font-size: .70rem !important;
}

.score-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: .22rem .5rem;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(10,26,59,.07);
    color: #0a1a3b;
}

.points-total {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a1a3b, #2f3e78);
    color: #fff;
}

.last-update-cell {
    display: inline-block;
    max-width: 160px;
    color: #475467;
    font-size: .76rem;
    line-height: 1.15;
    font-weight: 750;
}

/* Banner de quiniela: fondo claro y texto legible, evita azul sobre azul */
.deadline-impact-banner,
.deadline-impact-banner.is-locked,
.deadline-impact-banner.is-open {
    background:
        radial-gradient(circle at 96% 0%, rgba(237, 29, 54, .16), transparent 28%),
        radial-gradient(circle at 0% 12%, rgba(198, 255, 0, .18), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,255,.94) 52%, rgba(255,246,230,.94)) !important;
    color: #0a1a3b !important;
    border: 1px solid rgba(10,26,59,.12) !important;
    box-shadow: 0 28px 75px rgba(10,26,59,.14) !important;
}

.deadline-impact-banner::before {
    background: linear-gradient(90deg, rgba(10,26,59,.05), transparent 22%, rgba(237,29,54,.06) 74%, transparent) !important;
}

.deadline-impact-main h2,
.deadline-impact-main p,
.deadline-impact-progress strong,
.deadline-impact-progress small {
    color: #0a1a3b !important;
    text-shadow: none !important;
}

.deadline-impact-main h2 {
    font-size: clamp(2rem, 4.2vw, 3.4rem) !important;
    letter-spacing: -.06em !important;
}

.deadline-impact-kicker {
    background: #0a1a3b !important;
    color: #fff !important;
}

.deadline-impact-progress {
    background: rgba(255,255,255,.82) !important;
    border: 1px solid rgba(10,26,59,.12) !important;
}

.deadline-impact-progress span {
    color: #1b7f2a !important;
    text-shadow: none !important;
}

@media (max-width: 900px) {
    .ranking-rules-panel {
        align-items: flex-start;
    }

    .final-score-ranking-table {
        min-width: 930px !important;
    }
}
