
    .nexoia-chess-game {
        width: 100%;
        max-width: 1100px;
        margin: 20px auto;
        font-family: Arial, Helvetica, sans-serif;
        color: #212529;
    }
    .nexoia-chess-card {
        background: #ffffff;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
    }
    /* ================================================================
   CABECERA
   ================================================================ */
    .nexoia-chess-header {
        background: linear-gradient(135deg, #343a40, #16181a);
        color: white;
        text-align: center;
        padding: 24px;
    }
    .nexoia-chess-header h2 {
        margin: 0 0 7px;
        font-size: 30px;
    }
    .nexoia-chess-header p {
        margin: 0;
        opacity: .85;
    }
    /* ================================================================
   CONTENIDO
   ================================================================ */
    .nexoia-chess-content {
        padding: 28px;
    }
    /* ================================================================
   INICIO
   ================================================================ */
    .nexoia-chess-start {
        text-align: center;
    }
    .nexoia-chess-start-icon {
        font-size: 72px;
        margin-bottom: 10px;
    }
    .nexoia-chess-start h3 {
        margin: 8px 0;
        font-size: 27px;
    }
    .nexoia-chess-start p {
        color: #6c757d;
    }
    .nexoia-chess-config {
        max-width: 700px;
        margin: 28px auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .nexoia-chess-config-box {
        border: 2px solid #e2e3e5;
        border-radius: 15px;
        padding: 18px;
        background: #fafafa;
    }
    .nexoia-chess-config-title {
        font-weight: bold;
        margin-bottom: 13px;
        font-size: 15px;
    }
    .nexoia-chess-config-options {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nexoia-chess-choice {
        border: 2px solid #dee2e6;
        background: white;
        border-radius: 10px;
        padding: 10px 15px;
        cursor: pointer;
        font-weight: bold;
        transition: .2s;
    }
    .nexoia-chess-choice:hover {
        transform: translateY(-2px);
    }
    .nexoia-chess-choice.selected {
        border-color: #343a40;
        background: #eceff1;
    }
    .nexoia-chess-color {
        font-size: 30px;
    }
    .nexoia-chess-btn {
        border: 0;
        border-radius: 11px;
        padding: 13px 28px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: .2s;
    }
    .nexoia-chess-btn:hover {
        transform: translateY(-2px);
    }
    .nexoia-chess-btn-primary {
        background: #343a40;
        color: white;
    }
    .nexoia-chess-btn-primary:hover {
        background: #1f2326;
    }
    /* ================================================================
   JUEGO
   ================================================================ */
    .nexoia-chess-play {
        display: none;
    }
    .nexoia-chess-layout {
        display: grid;
        grid-template-columns: minmax(300px, 650px) 260px;
        gap: 25px;
        align-items: start;
        justify-content: center;
    }
    /* ================================================================
   RELOJES
   ================================================================ */
    .nexoia-chess-clock {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 13px 17px;
        border-radius: 13px;
        margin-bottom: 10px;
        background: #f1f3f5;
        border: 2px solid #dee2e6;
    }
    .nexoia-chess-clock.active {
        border-color: #343a40;
        box-shadow: 0 0 0 3px rgba(52, 58, 64, .08);
    }
    .nexoia-chess-clock-name {
        font-weight: bold;
    }
    .nexoia-chess-clock-time {
        font-family: monospace;
        font-size: 22px;
        font-weight: bold;
    }
    .nexoia-chess-clock.danger {
        border-color: #dc3545;
        color: #dc3545;
    }
    /* ================================================================
   TABLERO
   ================================================================ */
    .nexoia-chess-board-wrapper {
        width: 100%;
        max-width: 650px;
        margin: auto;
    }
    .nexoia-chess-board {
        width: 100%;
        aspect-ratio: 1 / 1;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(8, 1fr);
        border: 8px solid #343a40;
        border-radius: 8px;
        overflow: hidden;
        box-sizing: border-box;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
    }
    .nexoia-chess-square {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        user-select: none;
        overflow: hidden;
    }
    .nexoia-chess-square.light {
        background: #f0d9b5;
    }
    .nexoia-chess-square.dark {
        background: #b58863;
    }
    .nexoia-chess-square.selected {
        box-shadow: inset 0 0 0 5px rgba(255, 215, 0, .85);
    }
    .nexoia-chess-square.last-move {
        box-shadow: inset 0 0 0 999px rgba(255, 235, 59, .20);
    }
    .nexoia-chess-square.check {
        box-shadow: inset 0 0 0 999px rgba(220, 53, 69, .55);
    }
    .nexoia-chess-square.possible::after {
        content: "";
        width: 20%;
        height: 20%;
        background: rgba(20, 20, 20, .38);
        border-radius: 50%;
        position: absolute;
    }
    .nexoia-chess-square.capture::after {
        content: "";
        position: absolute;
        inset: 8%;
        border: 5px solid rgba(190, 30, 30, .65);
        border-radius: 50%;
    }
    .nexoia-chess-piece {
        font-family:
            "Segoe UI Symbol",
            "Noto Sans Symbols 2",
            "Arial Unicode MS",
            serif;
        font-size: clamp(34px, 7vw, 64px);
        line-height: 1;
        z-index: 2;
        transform: translateY(0) scale(1);
        transition:
            transform .20s ease,
            opacity .20s ease;
    }
    .nexoia-chess-square:hover .nexoia-chess-piece {
        transform: scale(1.06);
    }
    .nexoia-chess-piece.moving {
        animation: nexoiaChessMove .22s ease;
    }
    @keyframes nexoiaChessMove {
        0% {
            transform: scale(.75);
            opacity: .4;
        }
        60% {
            transform: scale(1.14);
            opacity: 1;
        }
        100% {
            transform: scale(1);
        }
    }
    /* ================================================================
   COORDENADAS
   ================================================================ */
    .nexoia-chess-coordinate {
        position: absolute;
        font-size: 10px;
        font-weight: bold;
        opacity: .65;
        z-index: 1;
    }
    .nexoia-chess-file {
        right: 4px;
        bottom: 2px;
    }
    .nexoia-chess-rank {
        left: 4px;
        top: 2px;
    }
    /* ================================================================
   PANEL
   ================================================================ */
    .nexoia-chess-panel {
        background: #f8f9fa;
        border-radius: 15px;
        padding: 17px;
        border: 1px solid #dee2e6;
    }
    .nexoia-chess-status {
        text-align: center;
        font-weight: bold;
        min-height: 28px;
        margin-bottom: 12px;
    }
    .nexoia-chess-status.check {
        color: #dc3545;
    }
    .nexoia-chess-status.good {
        color: #198754;
    }
    .nexoia-chess-history {
        background: white;
        border-radius: 10px;
        border: 1px solid #dee2e6;
        height: 240px;
        overflow-y: auto;
        padding: 8px;
        margin-bottom: 14px;
    }
    .nexoia-chess-history-row {
        display: grid;
        grid-template-columns: 35px 1fr 1fr;
        padding: 5px 7px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
    }
    .nexoia-chess-history-row:last-child {
        border-bottom: 0;
    }
    .nexoia-chess-panel-buttons {
        display: grid;
        gap: 8px;
    }
    .nexoia-chess-btn-secondary {
        background: white;
        color: #343a40;
        border: 1px solid #ced4da;
    }
    .nexoia-chess-turn {
        text-align: center;
        margin-bottom: 12px;
        font-weight: bold;
    }
    /* ================================================================
   RESULTADO
   ================================================================ */
    .nexoia-chess-result {
        display: none;
        text-align: center;
        padding: 30px 10px;
    }
    .nexoia-chess-result-icon {
        font-size: 75px;
    }
    .nexoia-chess-result h3 {
        font-size: 30px;
    }
    .nexoia-chess-result-score {
        font-size: 24px;
        font-weight: bold;
        margin: 15px 0 25px;
    }
    /* ================================================================
   PROMOCIÓN
   ================================================================ */
    .nexoia-chess-promotion {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .65);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 99999;
    }
    .nexoia-chess-promotion-box {
        background: white;
        border-radius: 18px;
        padding: 25px;
        text-align: center;
        box-shadow: 0 15px 50px rgba(0, 0, 0, .3);
    }
    .nexoia-chess-promotion-options {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    .nexoia-chess-promotion-button {
        width: 75px;
        height: 75px;
        border: 2px solid #dee2e6;
        border-radius: 12px;
        background: white;
        cursor: pointer;
        font-size: 50px;
    }
    .nexoia-chess-promotion-button:hover {
        border-color: #343a40;
    }
    /* ================================================================
   RESPONSIVE
   ================================================================ */
    @media(max-width:900px) {
        .nexoia-chess-layout {
            grid-template-columns: 1fr;
        }
        .nexoia-chess-panel {
            max-width: 650px;
            width: 100%;
            margin: auto;
            box-sizing: border-box;
        }
    }
    @media(max-width:650px) {
        .nexoia-chess-content {
            padding: 15px;
        }
        .nexoia-chess-config {
            grid-template-columns: 1fr;
        }
        .nexoia-chess-board {
            border-width: 4px;
        }
        .nexoia-chess-piece {
            font-size: clamp(30px, 10vw, 48px);
        }
    }
