
    /* ================================================================
   CONTENEDOR
   ================================================================ */
    .nexoia-damas {
        width: 100%;
        max-width: 720px;
        margin: 20px auto;
        font-family:
            Arial,
            Helvetica,
            sans-serif;
        color: #212529;
    }
    /* ================================================================
   TARJETA
   ================================================================ */
    .nexoia-damas-card {
        background: #fff;
        border:
            1px solid #dee2e6;
        border-radius: 18px;
        overflow: hidden;
        box-shadow:
            0 8px 30px rgba(0, 0, 0, .10);
    }
    /* ================================================================
   CABECERA
   ================================================================ */
    .nexoia-damas-header {
        background:
            linear-gradient(135deg,
                #212529,
                #495057);
        color: #fff;
        text-align: center;
        padding: 25px;
    }
    .nexoia-damas-header h2 {
        margin: 0 0 8px;
        font-size: 28px;
    }
    .nexoia-damas-header p {
        margin: 0;
        opacity: .85;
    }
    /* ================================================================
   CONTENIDO
   ================================================================ */
    .nexoia-damas-content {
        padding: 20px;
    }
    /* ================================================================
   CONTROLES
   ================================================================ */
    .nexoia-damas-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 18px;
    }
    .nexoia-damas-select {
        padding:
            10px 14px;
        border:
            1px solid #ced4da;
        border-radius: 8px;
        background: #fff;
        font-size: 14px;
    }
    .nexoia-damas-button {
        border: 0;
        border-radius: 8px;
        padding:
            10px 16px;
        background: #212529;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
    }
    .nexoia-damas-button:hover {
        background: #000;
    }
    /* ================================================================
   MARCADOR
   ================================================================ */
    .nexoia-damas-score {
        display: grid;
        grid-template-columns:
            repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }
    .nexoia-damas-score-box {
        background: #f8f9fa;
        border-radius: 10px;
        text-align: center;
        padding: 10px;
    }
    .nexoia-damas-score-label {
        display: block;
        color: #6c757d;
        font-size: 12px;
    }
    .nexoia-damas-score-value {
        display: block;
        font-size: 22px;
        font-weight: bold;
    }
    /* ================================================================
   ESTADO
   ================================================================ */
    .nexoia-damas-status {
        min-height: 28px;
        text-align: center;
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 15px;
    }
    /* ================================================================
   TABLERO
   ================================================================ */
    .nexoia-damas-board-wrapper {
        width: 100%;
        max-width: 600px;
        margin:
            0 auto 20px;
    }
    .nexoia-damas-board {
        display: grid;
        grid-template-columns:
            repeat(8, 1fr);
        aspect-ratio: 1 / 1;
        border:
            6px solid #212529;
        border-radius: 10px;
        overflow: hidden;
        box-shadow:
            0 5px 20px rgba(0, 0, 0, .18);
    }
    /* ================================================================
   CASILLAS
   ================================================================ */
    .nexoia-damas-cell {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 0;
        padding: 0;
        cursor: pointer;
    }
    .nexoia-damas-cell.clara {
        background: #f0d9b5;
    }
    .nexoia-damas-cell.oscura {
        background: #b58863;
    }
    .nexoia-damas-cell.seleccionada {
        box-shadow:
            inset 0 0 0 5px #0d6efd;
    }
    .nexoia-damas-cell.movimiento {
        box-shadow:
            inset 0 0 0 5px #198754;
    }
    .nexoia-damas-cell.captura {
        box-shadow:
            inset 0 0 0 5px #dc3545;
    }
    /* ================================================================
   PIEZAS
   ================================================================ */
    .nexoia-damas-piece {
        width: 76%;
        height: 76%;
        border-radius: 50%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow:
            inset 0 -5px 8px rgba(0, 0, 0, .25),
            0 3px 5px rgba(0, 0, 0, .35);
        transition:
            transform .12s ease;
    }
    .nexoia-damas-piece:hover {
        transform:
            scale(1.04);
    }
    .nexoia-damas-piece.blanca {
        background:
            radial-gradient(circle at 35% 30%,
                #ffffff,
                #e9ecef 60%,
                #adb5bd);
        border:
            3px solid #adb5bd;
    }
    .nexoia-damas-piece.negra {
        background:
            radial-gradient(circle at 35% 30%,
                #666,
                #212529 60%,
                #000);
        border:
            3px solid #111;
    }
    /* ================================================================
   DAMA
   ================================================================ */
    .nexoia-damas-piece.dama::after {
        content: "♛";
        font-size:
            clamp(20px,
                6vw,
                42px);
        line-height: 1;
    }
    .nexoia-damas-piece.blanca.dama::after {
        color: #212529;
    }
    .nexoia-damas-piece.negra.dama::after {
        color: #ffd43b;
    }
    /* ================================================================
   RESULTADO
   ================================================================ */
    .nexoia-damas-result {
        display: none;
        text-align: center;
        padding: 18px;
        background: #f8f9fa;
        border-radius: 12px;
    }
    .nexoia-damas-result-icon {
        font-size: 48px;
    }
    .nexoia-damas-result h3 {
        margin:
            8px 0 15px;
        font-size: 24px;
    }
    /* ================================================================
   AYUDA
   ================================================================ */
    .nexoia-damas-help {
        text-align: center;
        color: #6c757d;
        font-size: 13px;
        line-height: 1.5;
    }
    @media(max-width:600px) {
        .nexoia-damas-content {
            padding: 12px;
        }
        .nexoia-damas-controls {
            flex-direction: column;
        }
        .nexoia-damas-select,
        .nexoia-damas-button {
            width: 100%;
        }
        .nexoia-damas-piece {
            width: 80%;
            height: 80%;
        }
    }
