/* Estilos comunes de la web de CHESSPEAKER. Paleta en assets/tema.js */
:root {
    --fondo: #1a1a2e;
    --marino: #0f3460;
    --acento: #e94560;
    --oro: #c8a95c;
    --oro-claro: #e6cf8e;
    --texto: #d1d1e0;
}

body {
    background-color: var(--fondo);
    background-image:
        radial-gradient(at 8% 0%, rgba(15, 52, 96, 0.55) 0px, transparent 55%),
        radial-gradient(at 95% 30%, rgba(200, 169, 92, 0.07) 0px, transparent 45%),
        radial-gradient(at 50% 100%, rgba(233, 69, 96, 0.06) 0px, transparent 55%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: var(--texto);
}
h1, h2, h3, h4, .font-heading { font-family: 'Outfit', sans-serif; }

/* Logotipo en texto: dorado como en la marca */
.marca {
    background: linear-gradient(180deg, #f0dc9f 0%, #c8a95c 55%, #9c7f3c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.02em;
}
.texto-oro {
    background: linear-gradient(90deg, #e6cf8e, #c8a95c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.panel {
    background: rgba(22, 33, 62, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(200, 169, 92, 0.14);
}
.panel-hover { transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), border-color .3s, box-shadow .3s; }
.panel-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 169, 92, 0.4);
    box-shadow: 0 14px 32px -12px rgba(200, 169, 92, 0.25);
}
.filete { height: 2px; width: 64px; background: linear-gradient(90deg, transparent, var(--oro), transparent); }

.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: 'Outfit', sans-serif; font-weight: 600; border-radius: .75rem;
    transition: background-color .2s, opacity .2s, border-color .2s;
}
.boton-primario { background: var(--acento); color: #fff; box-shadow: 0 10px 24px -10px rgba(233, 69, 96, 0.6); }
.boton-primario:hover { background: #ff5d75; }
.boton-secundario { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(200, 169, 92, 0.35); color: #f1e6c4; }
.boton-secundario:hover { background: rgba(200, 169, 92, 0.12); }
.boton-icono {
    padding: .6rem; border-radius: .6rem; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); transition: background-color .2s;
}
.boton-icono:hover { background: rgba(255, 255, 255, 0.1); }
.boton-icono.activo { background: var(--acento); border-color: var(--acento); color: #fff; }

.nav-enlace { color: #b8b8cc; transition: color .2s; }
.nav-enlace:hover { color: #fff; }
.nav-enlace.actual { color: var(--oro-claro); font-weight: 600; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #141427; }
::-webkit-scrollbar-thumb { background: #2c3a5e; border-radius: 4px; }

/* ---------- Visor de partidas (assets/visor.js) ---------- */
.cs-tablero .square-55d63.resaltada { box-shadow: inset 0 0 0 999px rgba(200, 169, 92, 0.45); }
.cs-tablero .board-b72b1 { border: none; border-radius: 6px; overflow: hidden; }
.cs-tablero .white-1e1d7 { background-color: #e9e4d4; color: #0f3460; }
.cs-tablero .black-3c85d { background-color: #50698f; color: #e9e4d4; }

.cs-jugadas { line-height: 1.9; }
.cs-jugadas .num { color: #6b7390; font-size: 0.8em; margin-right: 2px; }
.cs-jugadas .mv { cursor: pointer; padding: 1px 4px; border-radius: 4px; white-space: nowrap; }
.cs-jugadas .mv:hover { background: rgba(255, 255, 255, 0.08); }
.cs-jugadas .mv.principal { color: #fff; font-weight: 600; }
.cs-jugadas .mv.activa { background: var(--acento); color: #fff; }
.cs-jugadas .comentario {
    margin: 6px 0 8px; padding: 6px 10px; border-left: 2px solid rgba(200, 169, 92, 0.6);
    color: #c9c9da; font-size: 0.86rem; line-height: 1.55; white-space: pre-line;
}
.cs-jugadas .comentario-inline { color: #e6cf8e; font-size: 0.92em; opacity: .85; }
.cs-jugadas .variante {
    margin: 4px 0 6px 6px; padding-left: 10px; border-left: 1px dashed rgba(209, 209, 224, 0.3);
    color: #9a9ab3; font-size: 0.85rem; line-height: 1.8;
}
.cs-jugadas .nag { color: var(--oro-claro); }

/* Tableros pequeños de la retransmisión */
.mini-tablero .board-b72b1 { border: none; border-radius: 4px; overflow: hidden; }
.mini-tablero .notation-322f9 { display: none; }
.mini-tablero .white-1e1d7 { background-color: #e9e4d4; }
.mini-tablero .black-3c85d { background-color: #50698f; }
.mini-tablero .square-55d63.resaltada { box-shadow: inset 0 0 0 999px rgba(200, 169, 92, 0.5); }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pulso { animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
