/* =========================================================
   base.css | THE PUCK GAMES · base de los juegos de liga que
   ya usan el diseño de los originales de la NHL.
   Lo propio de cada juego viene en /<liga>/<juego>.css, que
   incluye el CSS original de la raíz con el color de la liga.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text-primary, #fff);
    background-color: var(--bg-black, #080a0f);
    background-image: radial-gradient(circle at top, var(--bg-deep, #111827) 0%, var(--bg-black, #080a0f) 70%);
    background-attachment: fixed;
}
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Migas de pan (solo SEO, discretas) */
.crumbs { width: 100%; max-width: 1100px; margin: 0 auto; padding: 14px 20px 0; font-size: .8rem; color: var(--text-secondary); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--neon-blue); }

/* Título e intro, como en los originales */
.game-h1 { font-size: 2.2rem; font-weight: 900; color: #fff; text-align: center; margin: 0 0 10px; letter-spacing: -.5px; line-height: 1.1; }
.game-h1 .accent, .accent { color: var(--neon-blue); }
.game-intro { max-width: 640px; margin: 0 auto 25px; text-align: center; font-size: .95rem; line-height: 1.6; color: var(--text-secondary); }
.game-head { text-align: center; padding: 10px 20px 0; }
@media (max-width: 768px) {
    .game-h1 { font-size: 1.5rem; }
    .game-intro { font-size: .85rem; padding: 0 10px; }
}

/* Autocompletado: foto, nombre y equipo de cada sugerencia */
.sugg-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #333; flex: none; }
.sugg-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.sugg-name { flex: 1; }
.sugg-team { font-size: .8rem; color: var(--text-secondary); font-weight: 700; }

/* FAQ como en los originales */
.faq-section { width: 100%; margin: 4rem 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, .4); }
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin: 0 0 2rem; letter-spacing: -.5px; }
.faq-title .accent { color: var(--neon-blue); }
.faq-question { font-size: 1.1rem; font-weight: 800; color: var(--neon-blue); margin: 1.8rem 0 .6rem; letter-spacing: -.3px; }
.faq-answer { font-size: .95rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.faq-answer strong { color: #fff; }

/* Más juegos de la liga */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.related a { display: block; background: rgba(20, 28, 40, .95); border: 1px solid var(--border-dark, #1f2430); border-radius: 12px; padding: 14px; text-decoration: none; color: #fff; font-weight: 800; transition: border-color .2s, box-shadow .2s; }
.related a span { display: block; color: var(--text-secondary); font-weight: 600; font-size: .85rem; margin-top: 4px; }
.related a:hover { border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue-glow); }
@media (max-width: 768px) { .faq-section { padding: 3rem 1.2rem; } }
