/* Rombobox · estilo común de las páginas de texto */
:root {
    --bg-color: #121212;
    --panel-bg: #1e1e1e;
    --border-color: #444;
    --accent-green: #2ecc71;
    --accent-red: #e74c3c;
    --accent-yellow: #f1c40f;
    --accent-blue: #3498db;
    --text: #e6e6e6;
    --muted: #a8a8a8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

a { color: var(--accent-yellow); }

/* Cabecera compacta: solo en las páginas, nunca en el juego */
.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 900; font-size: 20px; letter-spacing: 0.05em; }
.brand b { color: var(--accent-yellow); font-weight: 900; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent-yellow); }

/* Hueco de publicidad de las páginas */
.ad-slot { display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 4px auto 0; }
.ad-slot.ad-off { display: none !important; }
.ad-slot.placeholder {
    border: 1px dashed #3a3a3a;
    border-radius: 6px;
    color: #5a5a5a;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: repeating-linear-gradient(45deg, #161616 0 8px, #191919 8px 16px);
}
.ad-page { width: 320px; max-width: 100%; height: 50px; }
@media (min-width: 768px) { .ad-page { width: 728px; height: 90px; } }

/* Contenido */
.page { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.page h1 { font-size: 34px; line-height: 1.15; margin: 22px 0 6px; color: #fff; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 8px; }
.page h2 { font-size: 23px; color: var(--accent-yellow); margin: 36px 0 8px; }
.page h3 { font-size: 18px; color: #fff; margin: 22px 0 4px; }
.page p { margin: 10px 0; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.page b, .page strong { color: #fff; }

.card { background: var(--panel-bg); border: 1px solid #2c2c2c; border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.tip { border-left: 4px solid var(--accent-yellow); }
.tip h3 { margin-top: 0; }

/* Tablas */
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 420px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #2f2f2f; text-align: left; vertical-align: top; }
th { color: var(--accent-yellow); font-weight: 700; background: #1a1a1a; }

/* Muestras de casillas */
.legend { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; margin: 0; }
.chip {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 6px;
    border: 2px solid #444;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px;
}
.c-white { background: #fff; }
.c-black { background: #000; border-color: #666; }
.c-neutral { background: #555; }
.c-green { background: var(--accent-green); }
.c-red { background: var(--accent-red); }
.c-yellow { background: var(--accent-yellow); }
.c-blue { background: var(--accent-blue); }
.c-off { filter: brightness(0.45); }
.c-x { background: #fff; }
.c-x.green { border: 3px solid var(--accent-green); color: var(--accent-green); }

/* Tira de casillas para ilustrar jugadas */
.strip { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.strip .chip { width: 46px; height: 46px; font-size: 22px; position: relative; }
.strip .arrow { color: var(--muted); font-size: 20px; }
.strip .here::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 3px solid var(--accent-yellow);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}
.strip-caption { text-align: center; font-size: 14px; color: var(--muted); margin: 2px 0 12px; }

/* Llamada a jugar */
.cta { display: flex; justify-content: center; margin: 32px 0 8px; }
.cta a {
    display: inline-block;
    padding: 15px 34px;
    background: var(--accent-green);
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(46, 204, 113, 0.28);
}
.cta a:hover { background: #27ae60; }

/* Botones de acción (privacidad) */
.actions { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.actions button { padding: 12px; font-size: 15px; font-weight: 700; border-radius: 8px; border: 1px solid #3a3a3a; background: #262626; color: #fff; cursor: pointer; font-family: inherit; }
.actions button:hover { background: #303030; }
.note { font-size: 14px; color: var(--accent-green); min-height: 20px; }

/* Sobre mí */
.about-photo {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-yellow);
    box-shadow: 0 0 18px rgba(241, 196, 15, 0.35);
    display: block;
    margin: 18px auto 6px;
    background: #2d2d2d;
}
.about-photo.missing { display: flex; align-items: center; justify-content: center; font-size: 56px; }
.mail {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #262626; border: 1px solid #3a3a3a; border-radius: 10px;
    font-weight: 700; text-decoration: none; word-break: break-all;
}

/* Pie */
.site-foot { border-top: 1px solid #262626; margin-top: 20px; padding: 22px 16px 30px; text-align: center; font-size: 14px; color: #777; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.site-foot a { color: var(--muted); }

@media (max-width: 480px) {
    body { font-size: 16px; }
    .page h1 { font-size: 28px; }
    .lead { font-size: 17px; }
    .page h2 { font-size: 21px; }
    .site-head { justify-content: center; }
}
