.turn-indicator {
    text-align: center;
    letter-spacing: 1px;
    color: #00ffe7;
    text-shadow: 0 0 8px #ff00c8, 0 0 2px #00ffe7;
}

.control-panel {
    position: fixed;
    right: 18px;
    top: 18px;
    background: rgba(0,0,0,0.6);
    border: 1px solid #00ffe7;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
}

.control-panel button {
    background: linear-gradient(90deg,#00ffe7,#ff00c8);
    border: none;
    color: #111;
    padding: 6px 10px;
    margin: 4px 2px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.status-details {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #cfe;
}

.difficulty-row {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.difficulty-label {
    font-size: 0.9rem;
    color: #cfe;
}

.difficulty-slider {
    width: 160px;
}

.lost-pieces {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #fff;
}

.lost-row {
    margin-top: 4px;
}

.promotion-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.promotion-panel {
    background: #111;
    border: 2px solid #00ffe7;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(0,255,231,0.4);
    text-align: center;
    min-width: 220px;
}

.promotion-title {
    margin-bottom: 10px;
    font-weight: bold;
    color: #00ffe7;
}

.promotion-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.promotion-button {
    font-size: 2rem;
    padding: 6px 10px;
    background: #222;
    color: #fff;
    border: 1px solid #ff00c8;
    border-radius: 8px;
    cursor: pointer;
}
body {
    background: #181a1b;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#chess-app {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    grid-template-rows: repeat(8, 60px);
    box-shadow: 0 0 40px 10px #00ffe7, 0 0 0 8px #222 inset;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid #00ffe7;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

.chess-square {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    transition: box-shadow 0.2s;
    position: relative;
}

.light-square {
    background: linear-gradient(135deg, #f3e7d6 0%, #e0c9a7 100%);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

.dark-square {
    background: linear-gradient(135deg, #6b4f35 0%, #3b2a1a 100%);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

.selected-square {
    outline: 4px solid #ff00c8;
    box-shadow: 0 0 20px 4px #ff00c8;
    z-index: 2;
}

.chess-piece {
    font-size: 2.5rem;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.chess-piece.white-piece {
    color: #ffffff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 6px rgba(255,255,255,0.6);
}

.chess-piece.black-piece {
    color: #000000;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 4px rgba(0,0,0,0.6);
}
