/* =========================================================
   switzerland/context.css | generado por _build/build.py
   Paleta de switzerland/index.css + /context.css original. NO EDITAR AQUÍ:
   cambia el original, index.css o _build/templates/css/ y reconstruye.
   ========================================================= */

:root {
    --bg-black: #050505;
    --bg-deep: #2a0505;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;

    --card-bg: rgba(26, 8, 8, 0.8);
    --card-bg-hover: #240404;
    --card-border: rgba(255, 42, 42, 0.18);

    --accent: #ff2a2a;
    --accent-soft: rgba(255, 42, 42, 0.14);
    --accent-line: rgba(255, 42, 42, 0.35);
    --accent-glow: rgba(255, 42, 42, 0.45);
    --accent-peak: #ff6b6b;

    --badge-bg: rgba(38, 10, 10, 0.92);
    --badge-fg: #ffffff;
    --cta-bg: #ff2a2a;
    --cta-fg: #ffffff;

    --feat-bg: rgba(30, 9, 9, 0.92);
    --track-bg: rgba(18, 4, 4, 0.6);
}

:root {
    --neon-blue: var(--accent);
    --neon-blue-glow: var(--accent-glow);
    --bg-color: var(--bg-black);
    --border-dark: #1f2430;
    --neon-pink: #ff0055;
    --neon-pink-glow: rgba(255, 0, 85, 0.4);
}

/* ---- context.css original (raíz), con el color de la liga ---- */
/* =========================================
   index.css | THE PUCK GAMES LANDING
   v1.3 — featured career simulator + polish
   ========================================= */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top, #111827 0%, var(--bg-color) 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg { max-width: 100%; }

/* --- ACCESIBILIDAD: SALTAR AL CONTENIDO --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--neon-blue);
    color: #04111a;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 0 0 10px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* --- FOCO VISIBLE PARA TECLADO --- */
a:focus-visible,
.game-card:focus-visible,
.league-item:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
    border-radius: 12px;
}

/* --- HUB HERO --- */
.hub-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    text-align: center;
}

.hub-title {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    margin: 0 0 0.6rem;
}

.hub-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto 3rem;
    max-width: 46ch;
    line-height: 1.5;
}

/* Compatibilidad con el título antiguo */
.selection-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    letter-spacing: -0.5px;
}

/* --- GAME CARDS --- */
.games-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.game-card {
    position: relative;
    background: rgba(20, 26, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-blue);
    background: #1a222e;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.card-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--neon-blue) 10%, transparent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.game-card:hover .card-glow { opacity: 1; }

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.game-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.game-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 25px;
}

/* =========================================
   TARJETA DESTACADA · CAREER SIMULATOR
   (ocupa el ancho de 3 tarjetas)
   ========================================= */
.game-card.featured-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 34px;
    align-items: center;
    text-align: left;
    padding: 64px 36px 36px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--neon-blue) 22%, transparent);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--neon-blue) 10%, transparent) 0%, transparent 55%),
        rgba(17, 23, 34, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.game-card.featured-card:hover {
    transform: translateY(-4px);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--neon-blue) 16%, transparent) 0%, transparent 55%),
        rgba(20, 27, 40, 0.95);
    border-color: color-mix(in srgb, var(--neon-blue) 55%, transparent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Etiqueta superior de la tarjeta destacada */
.card-badge.featured-flag {
    position: absolute;
    top: 20px;
    left: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--neon-blue) 18%, transparent), rgba(13, 17, 26, 0.9));
    border: 1px solid var(--neon-blue);
    border-radius: 50px;
    padding: 6px 16px;
    color: var(--neon-blue);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 0 14px 2px color-mix(in srgb, var(--neon-blue) 22%, transparent);
    z-index: 10;
}

.featured-main {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.featured-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.featured-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.05;
    margin: 0 0 14px;
    color: #fff;
}

.featured-desc {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 20px;
    max-width: 52ch;
}

.featured-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.featured-facts li {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 6px 13px;
}

.featured-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--neon-blue);
    color: #04111a;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--neon-blue) 18%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover .featured-action {
    transform: translateX(4px);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--neon-blue) 32%, transparent);
}

.featured-card:hover .featured-action svg {
    transform: none;
}

/* --- LÍNEA TEMPORAL DE LA CARRERA --- */
.career-track {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(9, 12, 19, 0.6);
    padding: 22px 20px;
    min-width: 0;
}

.track-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.track-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    position: relative;
}

.track-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--neon-blue) 60%, transparent), color-mix(in srgb, var(--neon-blue) 5%, transparent));
}

.track-step {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 0.87rem;
}

.track-step::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0d111a;
    border: 2px solid color-mix(in srgb, var(--neon-blue) 55%, transparent);
}

.track-step.is-peak::before {
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.track-step.is-end::before {
    border-color: rgba(255, 255, 255, 0.25);
}

.track-age {
    font-weight: 900;
    color: var(--neon-blue);
    font-variant-numeric: tabular-nums;
}

.track-event {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-ovr {
    font-weight: 800;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 3px 8px;
    min-width: 38px;
    text-align: center;
}

.track-step.is-peak .track-ovr {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.track-step.is-end .track-ovr {
    color: rgba(255, 255, 255, 0.35);
}

/* --- RESPONSIVE DE LA TARJETA DESTACADA --- */
@media (max-width: 880px) {
    .game-card.featured-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 58px 24px 28px;
    }

    .card-badge.featured-flag { left: 24px; }

    .featured-desc { font-size: 0.96rem; }
}

@media (max-width: 420px) {
    .track-event { font-size: 0.8rem; }
    .career-track { padding: 18px 14px; }
}

/* --- ETIQUETA "DAILY" ESTILO NEÓN --- */
.card-badge.daily {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(20, 26, 38, 0.9), rgba(13, 17, 26, 0.95));
    border: 1px solid var(--neon-yellow-green);
    border-radius: 50px;
    padding: 6px 16px;
    color: var(--neon-yellow-green);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px 2px var(--neon-yellow-green-glow);
    z-index: 10;
    animation: pulsingNeonBadge 2.5s infinite;
}

@keyframes pulsingNeonBadge {
    0% { box-shadow: 0 0 10px 2px var(--neon-yellow-green-glow); transform: scale(1); }
    50% { box-shadow: 0 0 18px 4px var(--neon-yellow-green-glow); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px 2px var(--neon-yellow-green-glow); transform: scale(1); }
}

/* --- CARD ACTION (BOTTOM) --- */
.card-action {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.play-text {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.game-card:hover .card-action {
    color: var(--neon-blue);
    border-top-color: color-mix(in srgb, var(--neon-blue) 20%, transparent);
}

.game-card:hover svg {
    transform: translateX(5px);
}

.card-action svg { transition: transform 0.3s ease; }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    width: 100%;
    margin: 4rem 0 0 0;
    padding: 4rem 2rem;
    border-top: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent);
    background: rgba(13, 17, 26, 0.4);
    box-sizing: border-box;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.faq-title .accent {
    color: var(--neon-blue);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 70ch;
}

.faq-answer strong {
    color: #fff;
    font-weight: 700;
}

/* =========================================
   COMING SOON & LOCKED CARDS
   ========================================= */
.card-badge.coming-soon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.95), rgba(15, 10, 5, 0.98));
    border: 1px solid #ff9d00;
    border-radius: 50px;
    padding: 6px 16px;
    color: #ff9d00;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 12px 1px rgba(255, 157, 0, 0.3);
    z-index: 10;
}

.game-card.locked {
    cursor: not-allowed !important;
    background: rgba(10, 13, 20, 0.8) !important;
    border: 1px dashed rgba(255, 157, 0, 0.3) !important;
    position: relative;
    z-index: 1;
}

.game-card.locked::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.015) 10px,
        rgba(255, 255, 255, 0.015) 20px
    );
    pointer-events: none;
    z-index: -1;
}

.game-card.locked > .card-icon,
.game-card.locked > .card-content {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: grayscale(0.5);
}

.game-card.locked:hover {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    border-color: rgba(255, 157, 0, 0.6) !important;
}

.game-card.locked:hover > .card-icon,
.game-card.locked:hover > .card-content {
    opacity: 0.7;
}

.game-card.locked .card-glow {
    display: none !important;
}

.game-card.locked .card-action {
    color: rgba(255, 255, 255, 0.3) !important;
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

.game-card.locked:hover .card-action {
    color: rgba(255, 255, 255, 0.4) !important;
}

.game-card.locked:hover svg {
    transform: none !important;
}

/* --- ETIQUETA "BETA" ESTILO NEÓN VERDE --- */
.card-badge.beta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(20, 26, 38, 0.9), rgba(13, 17, 26, 0.95));
    border: 1px solid #00ff88;
    border-radius: 50px;
    padding: 6px 16px;
    color: #00ff88;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px 2px rgba(0, 255, 136, 0.3);
    z-index: 10;
    animation: pulsingBetaBadge 2.5s infinite;
}

@keyframes pulsingBetaBadge {
    0% { box-shadow: 0 0 10px 2px rgba(0, 255, 136, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 18px 4px rgba(0, 255, 136, 0.6); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px 2px rgba(0, 255, 136, 0.3); transform: scale(1); }
}

/* --- ETIQUETA "NEW" (naranja, sin estilos inline) --- */
.card-badge.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.95), rgba(15, 10, 5, 0.98));
    border: 1px solid #ff9d00;
    border-radius: 50px;
    padding: 6px 16px;
    color: #ff9d00;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px 2px rgba(255, 157, 0, 0.3);
    z-index: 10;
}

/* =========================================
   LEAGUES BAR (HORIZONTAL)
   ========================================= */
.leagues-bar {
    display: flex;
    flex-wrap: wrap;
    background: rgba(20, 26, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-width: 760px;
    margin: 0 auto 2.5rem auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.league-item {
    flex: 1 1 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.league-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.league-item:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.league-item.active {
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--neon-blue) 15%, transparent));
    color: #fff;
    box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--neon-blue) 80%, transparent);
}

.league-item.locked {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(10, 13, 20, 0.4);
}

.league-lock {
    color: #ff9d00;
    opacity: 0.7;
}

.league-item.locked:hover {
    background: rgba(255, 157, 0, 0.05);
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 600px) {
    .hub-container {
        padding: 2rem 1rem 3.5rem;
    }

    .hub-subtitle { margin-bottom: 2rem; }

    .leagues-bar {
        flex-direction: column;
        border-radius: 12px;
    }

    .league-item:not(:last-child)::after {
        display: none;
    }

    .league-item.active {
        box-shadow: inset 3px 0 0 color-mix(in srgb, var(--neon-blue) 80%, transparent);
    }

    .faq-section { padding: 3rem 1.25rem; }
}

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

/* =========================================================
   MÓVIL
   Antes solo había unas pocas reglas sueltas repartidas.
   Esto cubre todos los bloques de la página de una vez.
   ========================================================= */

/* Nada debe desbordar a lo ancho en ningún tamaño */
html, body { overflow-x: hidden; }
.hub-container, .games-showcase, .featured-card, .faq-container { max-width: 100%; }
.hub-container * { min-width: 0; }

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
    .hub-container { padding: 2.2rem 1.25rem 3.5rem; }
    .games-showcase { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
    .game-card { padding: 24px 22px; }
    .featured-card { padding: 26px 24px; }
}

/* ---------- MÓVIL ---------- */
@media (max-width: 640px) {
    .hub-container {
        padding: 1.5rem 1rem calc(3rem + env(safe-area-inset-bottom));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .hub-hero { margin-bottom: 1.6rem; }
    .hub-title { font-size: clamp(1.5rem, 7.5vw, 2rem); letter-spacing: -.5px; }
    .hub-subtitle { font-size: .88rem; line-height: 1.55; }

    /* --- Tarjetas de juego: una por fila, en horizontal --- */
    .games-showcase { grid-template-columns: 1fr; gap: 10px; }

    .game-card {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 15px 16px;
        border-radius: 16px;
        text-align: left;
        min-height: 76px;
    }
    .card-icon { font-size: 1.9rem; flex-shrink: 0; margin: 0; }
    .card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
    .game-title { font-size: 1rem; margin: 0; }
    .game-desc {
        font-size: .78rem; line-height: 1.4; margin: 0;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    /* La llamada a la acción sobra: la tarjeta entera ya es pulsable */
    .card-action { display: none; }
    .card-badge { top: 8px; right: 8px; font-size: .52rem; padding: 3px 8px; }

    /* --- Tarjeta destacada --- */
    .featured-card { padding: 20px 18px; border-radius: 18px; }
    .featured-icon { font-size: 1.9rem; margin-bottom: 10px; }
    .featured-title { font-size: 1.35rem; line-height: 1.15; }
    .featured-desc { font-size: .86rem; line-height: 1.55; }
    .featured-facts { gap: 6px; margin-bottom: 18px; }
    .featured-facts li { font-size: .7rem; padding: 5px 10px; }
    .featured-cta { width: 100%; }
    .featured-action { width: 100%; justify-content: center; padding: 14px 20px; }
    .featured-flag { width: 26px; height: 19px; }

    /* --- Línea temporal de la carrera --- */
    .career-track { padding: 16px 14px; border-radius: 14px; }
    .track-list { padding-left: 16px; }
    .track-step { gap: 8px; }
    .track-age { font-size: .68rem; min-width: 30px; }
    .track-event { font-size: .78rem; }
    .track-ovr { font-size: .68rem; }

    /* --- Preguntas frecuentes --- */
    .faq-section { margin-top: 3rem; }
    .faq-title { font-size: 1.25rem; margin-bottom: 1.4rem; }
    .faq-question { font-size: .95rem; margin-top: 1.4rem; }
    .faq-answer { font-size: .87rem; line-height: 1.6; }
}

/* ---------- MÓVIL PEQUEÑO ---------- */
@media (max-width: 380px) {
    .hub-container { padding-left: .8rem; padding-right: .8rem; }
    .game-card { padding: 13px 13px; gap: 11px; min-height: 68px; }
    .card-icon { font-size: 1.6rem; }
    .game-title { font-size: .92rem; }
    .game-desc { font-size: .72rem; -webkit-line-clamp: 2; }
    .featured-title { font-size: 1.15rem; }
    .featured-facts li { font-size: .65rem; padding: 4px 9px; }
    .faq-question { font-size: .9rem; }
}

/* ---------- SIN RATÓN ---------- */
@media (hover: none) {
    /* En táctil el hover se queda pegado tras tocar */
    .game-card:hover, .featured-card:hover, .league-item:hover,
    .featured-card:hover .featured-action { transform: none; box-shadow: none; }
    .game-card:active { transform: scale(.98); }
    .featured-action:active { transform: scale(.98); }
    .game-card, .featured-card, .league-item { -webkit-tap-highlight-color: transparent; }
}
/* --- MÁS LIGAS (ligas que vendrán) --- */
.more-leagues {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: -8px auto 26px;
    max-width: 100%;
}
.more-leagues-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-secondary, #8b949e);
}
.more-leagues { width: 100%; }
.leagues-bar.leagues-more { margin: 0 auto; flex-wrap: nowrap; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.leagues-bar.leagues-more::-webkit-scrollbar { display: none; }
.leagues-bar.leagues-more .league-item { flex: 0 0 auto; white-space: nowrap; padding: 10px 18px; font-size: .9rem; }
@media (max-width: 600px) {
    .leagues-bar.leagues-more { width: 100%; }
}
.card-badge.featured-flag { white-space: nowrap; }
.game-card .card-badge.featured-flag { width: max-content; height: auto; }

/* =========================================
   LEAGUES BAR POR NIVELES
   Fila 1: América · Fila 2: Finlandia, Suiza, Alemania, Suecia
   Fila 3: Eslovaquia, Chequia, Austria
   ========================================= */
.leagues-bar.tiered {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    flex-wrap: initial;
    overflow: hidden;
}
.leagues-bar.tiered .league-item { padding: 14px 8px; min-width: 0; white-space: nowrap; }
.leagues-bar.tiered .league-item::after { display: none; }
.leagues-bar.tiered .tier-1 { grid-column: span 12; font-size: 1.05rem; padding: 16px 10px; }
.leagues-bar.tiered .tier-2 { grid-column: span 3; }
.leagues-bar.tiered .tier-3 { grid-column: span 4; font-size: .88rem; }
.leagues-bar.tiered .tier-2,
.leagues-bar.tiered .tier-3 { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.leagues-bar.tiered .tier-2 + .tier-2,
.leagues-bar.tiered .tier-3 + .tier-3 { border-left: 1px solid rgba(255, 255, 255, 0.08); }

@media (max-width: 600px) {
    .leagues-bar.tiered { flex-direction: initial; overflow: hidden; }
    .leagues-bar.tiered .league-item { padding: 12px 6px; font-size: .85rem; gap: 6px; }
    .leagues-bar.tiered .tier-1 { font-size: .98rem; }
    .leagues-bar.tiered .tier-2 { grid-column: span 6; }
    .leagues-bar.tiered .tier-1 + .tier-2 + .tier-2 + .tier-2 { border-left: 0; }
    .leagues-bar.tiered .league-item.active { box-shadow: inset 0 -3px 0 var(--accent, color-mix(in srgb, var(--neon-blue) 80%, transparent)); }
}

/* =========================================================
   context.css | THE PUCK GAMES - PUCK CONTEXT
   =========================================================
   El archivo anterior con este nombre era el del simulador de
   carrera (careersim.css): no definia ni una sola clase de este
   juego, por eso la lista de intentos salia sin formato.
   ========================================================= */

.context-page {
    --ctx-card:   #131a26;
    --ctx-line:   #2a3441;
    --ctx-dim:    #8892b0;
    --ctx-accent: var(--neon-blue);
    --ctx-pink:   var(--neon-pink, #ff0055);

    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
.context-page *, .context-page *::before, .context-page *::after { box-sizing: border-box; }

.hidden { display: none !important; }

/* ---------- CABECERA ---------- */
.ctx-head { text-align: center; margin-bottom: 22px; }

.ctx-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1.05;
    color: #fff;
}
.ctx-title .accent { color: var(--ctx-accent); }

.ctx-sub {
    color: var(--ctx-dim);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 480px;
}

/* ---------- MARCADOR ---------- */
.ctx-scoreboard {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.ctx-stat {
    min-width: 128px;
    background: var(--ctx-card);
    border: 1px solid var(--ctx-line);
    border-radius: 14px;
    padding: 10px 18px;
    text-align: center;
}
.ctx-stat.is-accent { border-color: color-mix(in srgb, var(--neon-blue) 45%, transparent); box-shadow: 0 0 15px color-mix(in srgb, var(--neon-blue) 12%, transparent); }

.ctx-stat-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ctx-dim);
    margin-bottom: 3px;
}

.ctx-stat-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ctx-stat.is-accent .ctx-stat-value { color: var(--ctx-accent); text-shadow: 0 0 12px color-mix(in srgb, var(--neon-blue) 40%, transparent); }

/* ---------- BUSCADOR ---------- */
.ctx-search {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 26px;
    position: relative;
    z-index: 100;
}

.ctx-autocomplete { position: relative; flex: 1 1 auto; min-width: 0; }

.ctx-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--ctx-card);
    border: 2px solid var(--ctx-line);
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.ctx-input::placeholder { color: #5b6479; font-weight: 600; }
.ctx-input:focus { border-color: var(--ctx-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--neon-blue) 20%, transparent); }
.ctx-input:disabled { opacity: 0.5; cursor: not-allowed; }

.ctx-giveup {
    flex-shrink: 0;
    background: rgba(255, 0, 85, 0.1);
    border: 2px solid var(--ctx-pink);
    color: var(--ctx-pink);
    border-radius: 12px;
    padding: 0 20px;
    font-family: inherit;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ctx-giveup:hover { background: var(--ctx-pink); color: #fff; transform: translateY(-2px); }

/* Sugerencias */
.suggestions-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--ctx-line);
    border-radius: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.sugg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s;
}
.sugg-item:last-child { border-bottom: none; }
.sugg-item:hover { background: color-mix(in srgb, var(--neon-blue) 10%, transparent); }

.sugg-img {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}
.sugg-name { font-weight: 900; font-size: 1rem; color: #fff; }

/* ---------- LISTA DE INTENTOS ---------- */
.guesses-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guess-row {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ctx-card);
    border: 1px solid var(--ctx-line);
    padding: 10px 14px;
    animation: ctxRowIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.guess-row.is-target { border-color: #00ff88; box-shadow: 0 0 18px rgba(0, 255, 136, 0.25); }

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

.guess-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    opacity: 0.22;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.guess-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guess-photo {
    width: 42px; height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.guess-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.guess-name {
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guess-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ctx-dim);
}
.guess-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.guess-crest { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

.guess-rank {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    min-width: 58px;
    text-align: right;
    flex-shrink: 0;
}
.guess-row.is-target .guess-rank { color: #00ff88; }

/* ---------- MODALES ---------- */
.final-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 16px;
}
.final-modal.show { display: flex; animation: ctxFade 0.3s ease both; }
@keyframes ctxFade { from { opacity: 0; } to { opacity: 1; } }

.ctx-modal {
    background: var(--ctx-card);
    border: 2px solid var(--ctx-accent);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    animation: ctxPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes ctxPop {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to   { opacity: 1; transform: none; }
}

.ctx-modal.win  { border-color: #00ff88; box-shadow: 0 0 40px rgba(0, 255, 136, 0.3); }
.ctx-modal.lose { border-color: var(--ctx-pink); box-shadow: 0 0 40px rgba(255, 0, 85, 0.3); }

.ctx-modal h2 { font-size: 2.4rem; font-weight: 900; margin: 0 0 12px; line-height: 1; }
.ctx-modal.win h2  { color: #00ff88; text-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
.ctx-modal.lose h2 { color: var(--ctx-pink); text-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }

.ctx-modal-lead { color: var(--ctx-dim); font-weight: 700; font-size: 1rem; margin: 0; }

.ctx-reveal { display: flex; flex-direction: column; align-items: center; margin: 18px 0 22px; }
.ctx-reveal img {
    width: 160px; height: 160px;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    border: 4px solid currentColor;
}
.ctx-modal.win .ctx-reveal img  { color: #00ff88; }
.ctx-modal.lose .ctx-reveal img { color: var(--ctx-pink); }

.ctx-reveal h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 16px 0 0;
}
.ctx-reveal-sub { color: var(--ctx-dim); font-size: 0.8rem; font-weight: 700; margin: 6px 0 0; }

.ctx-count { color: var(--ctx-dim); font-weight: 700; margin: 0 0 24px; }
.ctx-count b { display: block; color: #00ff88; font-size: 2rem; font-weight: 900; }

.ctx-actions { display: flex; gap: 12px; }
.ctx-btn {
    flex: 1;
    padding: 14px 10px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}
.ctx-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ctx-btn-main  { background: #00ff88; color: #000; }
.ctx-btn-lose  { background: var(--ctx-pink); color: #fff; }
.ctx-btn-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.2); color: #fff; }

/* ---------- FAQ ---------- */
.faq-section {
    width: 100%;
    margin-top: 2rem;
    padding: 4rem 2rem;
    border-top: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent);
    background: rgba(13, 17, 26, 0.4);
    box-sizing: border-box;
}
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 2rem; letter-spacing: -0.5px; }
.faq-title .accent { color: var(--ctx-accent); }
.faq-question { font-size: 1.1rem; font-weight: 800; color: var(--ctx-accent); margin: 1.8rem 0 0.6rem; }
.faq-answer { font-size: 0.95rem; color: var(--ctx-dim); line-height: 1.6; margin: 0; }
.faq-answer strong { color: #fff; font-weight: 700; }
.faq-answer a { color: var(--ctx-accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--neon-blue) 30%, transparent); }
.faq-answer a:hover { border-bottom-color: var(--ctx-accent); }

/* ---------- MÓVIL ---------- */
@media (max-width: 600px) {
    .context-page { padding: 16px 10px 40px; }

    .ctx-title { font-size: 1.7rem; }
    .ctx-sub { font-size: 0.85rem; }

    .ctx-scoreboard { width: 100%; }
    .ctx-stat { flex: 1; min-width: 0; padding: 8px 10px; }
    .ctx-stat-value { font-size: 1.35rem; }

    .ctx-input { padding: 13px 15px; font-size: 0.95rem; }
    .ctx-giveup { padding: 0 14px; font-size: 0.78rem; }

    .guess-row { padding: 8px 10px; }
    .guess-photo { width: 36px; height: 36px; }
    .guess-name { font-size: 0.88rem; }
    .guess-tags { font-size: 0.65rem; }
    .guess-crest { width: 26px; height: 26px; }
    .guess-rank { font-size: 1rem; min-width: 46px; }

    .ctx-reveal img { width: 130px; height: 130px; }
    .ctx-modal { padding: 28px 20px; }
    .ctx-modal h2 { font-size: 1.9rem; }
}

/* Etiqueta solo para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ---- ajustes de liga ---- */
:root {
    --neon-blue: var(--accent);
    --neon-blue-glow: var(--accent-glow);
    --bg-color: var(--bg-black);
    --border-dark: #1f2430;
    --neon-pink: #ff0055;
    --neon-pink-glow: rgba(255, 0, 85, 0.4);
}
:root {
    --card-bg: #131a26;
    --bg-dark: #0a0e17;
}
body {
    background-color: var(--bg-black);
    background-image: radial-gradient(circle at top, var(--bg-deep) 0%, var(--bg-black) 70%);
    background-attachment: fixed;
}
/* ---------- Puck Context · ajustes de liga sobre el context.css original ---------- */
.guess-photo, .ctx-reveal img { background: #1c2230; }
.ctx-giveup:disabled { opacity: .4; cursor: default; }
a.ctx-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ctx-actions { flex-wrap: wrap; }
