/* Páginas de contenido (guías, ayuda) servidas como HTML estático para que los buscadores las lean sin ejecutar
   el juego. Usa la misma paleta y el mismo aire que el menú del juego: panel plano sobre negro, acento cian,
   profundidad por bordes y sombras suaves, sin brillos. */
:root {
    --bg: #0a0a0f;
    --surface: #111117;
    --surface-2: #17171f;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.12);
    --text: #ededf2;
    --muted: rgba(237, 237, 242, 0.68);
    --dim: rgba(237, 237, 242, 0.40);
    --accent: #22d3ee;
    --accent-strong: #67e8f9;
    --r-md: 12px;
    --r-lg: 16px;
    --shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--line);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Cabecera fija con el logo y la vuelta al juego */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar img { height: 34px; width: auto; display: block; }
.btn {
    display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
    border: 1px solid var(--line-strong); border-radius: var(--r-md);
    color: var(--text); font-size: 14px; font-weight: 500; background: transparent;
    transition: border-color .15s, background .15s;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.2); text-decoration: none; color: var(--text); }
.btn-primary { background: var(--accent); color: #04141a; border-color: transparent; }
.btn-primary:hover { background: var(--accent-strong); color: #04141a; }

/* Rastro de migas */
.crumb { font-size: 13px; color: var(--dim); padding: 18px 0 0; }
.crumb a { color: var(--muted); }

/* Panel principal de contenido */
main { padding: 10px 0 56px; }
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: clamp(24px, 5vw, 44px);
    margin-top: 16px;
}

h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 36px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.lede { margin: 0 0 8px; color: var(--muted); font-size: clamp(15px, 2.4vw, 17px); }
h2 { margin: 40px 0 10px; font-size: clamp(19px, 3.2vw, 23px); font-weight: 620; letter-spacing: -0.01em; scroll-margin-top: 76px; }
h3 { margin: 26px 0 6px; font-size: 16.5px; font-weight: 600; color: var(--text); }
p, li { color: var(--muted); }
p { margin: 12px 0; }
strong, b { color: var(--text); font-weight: 600; }
ul, ol { margin: 12px 0; padding-left: 22px; }
li { margin: 7px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* Tecla del teclado */
kbd {
    display: inline-block; min-width: 20px; text-align: center;
    padding: 2px 8px; margin: 0 1px;
    font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--line-strong);
    border-bottom-width: 2px; border-radius: 7px;
}

/* Tabla de controles / datos. Se envuelve para poder desplazarse en pantallas estrechas sin romper el ancho. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
td:first-child { white-space: nowrap; color: var(--text); font-weight: 500; }

/* Aviso / nota destacada */
.note {
    margin: 18px 0; padding: 14px 16px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--r-md);
    font-size: 14.5px; color: var(--muted);
}
.note strong { color: var(--accent-strong); }

/* Enlaces entre guías al pie del artículo */
.more { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 560px) { .more { grid-template-columns: 1fr 1fr; } }
.more a {
    display: block; padding: 14px 16px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r-md); color: var(--text);
}
.more a:hover { border-color: rgba(255,255,255,0.18); text-decoration: none; }
.more a span { display: block; color: var(--dim); font-size: 13px; font-weight: 400; margin-top: 2px; }

/* Pie */
footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--muted); }

/* Tarjetas de estadísticas (página de comunidad) */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 8px; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 16px 14px; text-align: left;
}
.stat .num { font-size: clamp(22px, 5vw, 30px); font-weight: 680; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.stat .lbl { margin-top: 4px; font-size: 13px; color: var(--muted); }
.stat.hl { border-color: rgba(34, 211, 238, 0.28); background: rgba(34, 211, 238, 0.06); }
.stat.hl .num { color: var(--accent-strong); }
.muted-note { color: var(--dim); font-size: 13px; margin-top: 6px; }

/* Índice de preguntas */
details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 2px 16px; margin: 10px 0; background: var(--surface-2); }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--text); font-size: 15.5px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--accent); font-weight: 700; margin-right: 10px; }
details[open] summary::before { content: "\2013"; }
details > *:not(summary) { margin-top: 0; }
details p:last-child { margin-bottom: 14px; }

/* Teléfonos: tipografía y espaciados algo más ajustados, cabecera compacta. */
@media (max-width: 520px) {
    body { font-size: 15.5px; line-height: 1.65; }
    .topbar .wrap { height: 54px; }
    .topbar img { height: 30px; }
    .btn { height: 36px; padding: 0 13px; font-size: 13.5px; }
    .panel { padding: 20px 16px; }
    table { font-size: 14px; }
    th, td { padding: 9px 9px; }
}
