* {margin: 0; padding: 0; font-family: 'Raleway', sans-serif; }
html {overflow-y: scroll;} 
body { font-family: 'Raleway', sans-serif; }
ul { list-style: none inside; }
li { list-style: none inside; }
a:focus { outline: none; }
.clear { clear: both; }   /* <div class="clear"> </div> */
a { text-decoration: none; color: black; font-family: 'Raleway', sans-serif;}
input, textarea { outline: none; font-family: 'Raleway', sans-serif; }
fieldset { border: none; }
table { border-collapse: collapse; border-spacing: 0; }
::-moz-selection{ background: pink; color: white; } 
::selection { background: pink; color: white; }   

/* MEDIEVAL CASTLE BOARD SETUP - RESPONSIVE */
#board { 
    border: 8px solid #8B7D6B; 
    margin: 0 auto;
    display: table;
    background: linear-gradient(45deg, #6B5B47 0%, #8B7D6B 50%, #6B5B47 100%);
    -moz-box-shadow: 
        inset 0 0 0 4px #5D5449,
        inset 0 0 0 8px #756B5E,
        0 0 20px rgba(0,0,0,0.4),
        0 0 40px rgba(139, 125, 107, 0.2);
    -webkit-box-shadow: 
        inset 0 0 0 4px #5D5449,
        inset 0 0 0 8px #756B5E,
        0 0 20px rgba(0,0,0,0.4),
        0 0 40px rgba(139, 125, 107, 0.2);
    box-shadow: 
        inset 0 0 0 4px #5D5449,
        inset 0 0 0 8px #756B5E,
        0 0 20px rgba(0,0,0,0.4),
        0 0 40px rgba(139, 125, 107, 0.2);
    border-radius: 12px;
    position: relative;
    /* Removed 3D transform that might interfere with clicks */
    /* transform: perspective(1000px) rotateX(5deg); */
    /* transform-style: preserve-3d; */
}

#board::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: url('assets/castle-floor.svg');
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

#board td { 
    width: 36px; 
    height: 36px; 
    border: 1px solid rgba(139, 125, 107, 0.3); 
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(135deg, #E6DDD4 0%, #D4C7B8 30%, #C2B5A6 70%, #B0A394 100%);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

#board td::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/castle-floor.svg');
    background-size: 36px 36px;
    opacity: 0.4;
    pointer-events: none;
}

#board td:hover {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        linear-gradient(135deg, #F0E7DE 0%, #DED1C2 30%, #CCC0B1 70%, #B8AD9E 100%);
    transform: translateZ(2px);
}

/* MEDIEVAL CASTLE WALLS */
#board td.wallPlacementVert,
#board td.wallPlacementVert_NOHOVER { 
    width: 8px; 
    border: 0px; 
    background: url('assets/castle-wall-v.svg') center center no-repeat;
    background-size: contain;
    position: relative;
    transform: perspective(500px) rotateY(-10deg);
}

#board td.wallPlacementHoriz,
#board td.wallPlacementHoriz_NOHOVER { 
    height: 8px; 
    border: 0px; 
    background: url('assets/castle-wall-h.svg') center center no-repeat;
    background-size: contain;
    position: relative;
    transform: perspective(500px) rotateX(10deg);
}

#board td.crossSpace { 
    width: 8px; 
    height: 8px; 
    border: 0px; 
    background: transparent; 
}

#board td.wallPlacementHoriz, #board td.wallPlacementVert { cursor: pointer; }
#board td.movableGreenSpaces { 
    background: rgba(255, 215, 0, 0.3);
}


/* MEDIEVAL PARTICLE EFFECTS */
.particle {
    pointer-events: none;
    z-index: 1001;
}

.particle-spark {
    animation: sparkle 0.5s ease-out;
}

.particle-dust {
    animation: dustfall 1s ease-out;
}

.particle-magic {
    animation: magical 0.8s ease-out;
}

.particle-stone {
    animation: stonedrop 0.6s ease-out;
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes dustfall {
    0% { transform: translateY(-10px) scale(1); opacity: 0.6; }
    100% { transform: translateY(30px) scale(0); opacity: 0; }
}

@keyframes magical {
    0% { transform: scale(0) rotate(0deg); opacity: 1; box-shadow: 0 0 20px currentColor; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 0.7; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes stonedrop {
    0% { transform: translateY(-5px) scale(1); opacity: 0.8; }
    100% { transform: translateY(20px) scale(0.2); opacity: 0; }
}

/* ENHANCED MEDIEVAL ANIMATIONS */
@keyframes knightMarch {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.piecePlayer.moving, .pieceComputer.moving {
    animation: knightMarch 0.3s ease-in-out;
}

/* CASTLE ATMOSPHERIC EFFECTS */
#board::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(139, 125, 107, 0.1) 0%, transparent 30%);
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    animation: castleGlow 4s ease-in-out infinite alternate;
}

@keyframes castleGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* GAME OVER WINNER PANEL */
#winner-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: 2000;
    display: none;
    pointer-events: none;
}

.winner-content {
    background: 
        linear-gradient(135deg, rgba(139, 125, 107, 0.95) 0%, rgba(93, 84, 73, 0.95) 50%, rgba(74, 63, 53, 0.95) 100%),
        url('assets/castle-floor.svg');
    background-size: auto, 60px 60px;
    border: 4px solid #8B7D6B;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    max-width: 300px;
    width: auto;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 8px 25px rgba(0,0,0,0.8),
        0 0 40px rgba(139, 125, 107, 0.6);
    color: #F5F5DC;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: winnerPanelAppear 0.5s ease-out;
    pointer-events: auto;
}

@keyframes winnerPanelAppear {
    0% { 
        transform: scale(0.3) rotate(-10deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.1) rotate(2deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

.winner-content .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 125, 107, 0.8);
    border: 2px solid #8B7D6B;
    color: #F5F5DC;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.winner-content .close-btn:hover {
    background: rgba(139, 125, 107, 1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(139, 125, 107, 0.6);
    color: #FFD700;
}

.winner-knight {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(3px 4px 6px rgba(0,0,0,0.4));
    animation: knightVictory 2s ease-in-out infinite;
}

.winner-knight.blue {
    background-image: url('assets/knight-blue.svg');
}

.winner-knight.red {
    background-image: url('assets/knight-red.svg');
}

@keyframes knightVictory {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-10px) scale(1.05); 
    }
}

.winner-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.winner-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.winner-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.winner-btn {
    padding: 8px 16px;
    border: 2px solid #8B7D6B;
    border-radius: 6px;
    background: 
        linear-gradient(135deg, rgba(74, 63, 53, 0.9) 0%, rgba(93, 84, 73, 0.9) 100%);
    color: #F5F5DC;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.winner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border-color: #DAA520;
    background: 
        linear-gradient(135deg, rgba(218, 165, 32, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
}

.winner-btn.primary {
    background: 
        linear-gradient(135deg, rgba(218, 165, 32, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
    border-color: #DAA520;
}

/* Game over overlay */
.game-over #board {
    pointer-events: none;
}

.game-over .piecePlayer,
.game-over .pieceComputer {
    pointer-events: none;
}

/* MEDIEVAL SOUND CONTROLS */
.sound-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1002;
    display: flex;
    gap: 10px;
}

.sound-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(139, 125, 107, 0.8);
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(139, 125, 107, 0.9) 0%, rgba(74, 63, 53, 0.9) 100%);
    color: #F5F5DC;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.sound-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

.sound-btn.disabled {
    opacity: 0.5;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(74, 63, 53, 0.9) 0%, rgba(139, 125, 107, 0.9) 100%);
}

textarea { visibility: hidden; }   

/* MEDIEVAL KNIGHT PIECES - RESPONSIVE */
.pieceComputer { 
    width: 32px; 
    height: 32px; 
    background: url('assets/knight-red.svg') center center no-repeat;
    background-size: contain;
    margin-left: 2px; 
    cursor: pointer;
    position: relative;
    z-index: 10;
    /* Simplified transform to avoid click issues */
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.3));
}

.piecePlayer { 
    width: 32px; 
    height: 32px; 
    background: url('assets/knight-blue.svg') center center no-repeat;
    background-size: contain;
    margin-left: 2px; 
    cursor: pointer;
    position: relative;
    z-index: 10;
    /* Simplified transform to avoid click issues */
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.3));
}

/* MEDIEVAL WALL PLACEMENT & INTERACTIONS */
.pieceComputer:hover, .piecePlayer:hover {
    transform: translateY(-3px);
    filter: drop-shadow(3px 4px 6px rgba(0,0,0,0.4));
}

#board td.possibleWall { 
    background: rgba(255, 215, 0, 0.7); 
}

#board td.keepWall { 
    background: #FFD700; 
    border-radius: 1px;
    border: 1px solid #B8860B;
}

/* PLAYER INFO LAYOUT */
.players-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

#showCompPieces, #showPlayerPieces { 
    background: 
        linear-gradient(135deg, rgba(139, 125, 107, 0.95) 0%, rgba(117, 107, 94, 0.95) 50%, rgba(93, 84, 73, 0.95) 100%),
        url('assets/castle-floor.svg');
    background-size: auto, 30px 30px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 2px solid #8B7D6B;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 4px 12px rgba(0,0,0,0.25),
        0 0 20px rgba(139, 125, 107, 0.15);
    flex: 1;
    min-width: 0;
    position: relative;
    transform: perspective(500px) rotateX(5deg);
    color: #F5F5DC;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 200px;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.player-header .player-icon {
    font-size: 16px;
    color: #D4AF37;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.player-header .player-name {
    font-size: 13px;
    font-weight: 600;
    color: #F5F5DC;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.player-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-icon {
    font-size: 12px;
    color: #8B7D6B;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #F5F5DC;
    margin-bottom: 1px;
}

.stat-label {
    font-size: 9px;
    color: #C4B5A0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old span styles removed - using new structure */

/* Urgency styling for moves to win */
.movesVal.urgent-moves {
    color: #F44336 !important;
    animation: urgent-pulse 1s ease-in-out infinite;
}

.movesVal.warning-moves {
    color: #FF9800 !important;
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes urgent-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes warning-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Turn flag animations */
.turn-flag {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 16px;
    color: #D4AF37;
    animation: flag-wave 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: none;
}

@keyframes flag-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* MEDIEVAL CONFIGURATION PANEL */
#config-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: 
        linear-gradient(135deg, rgba(139, 125, 107, 0.98) 0%, rgba(93, 84, 73, 0.98) 50%, rgba(74, 63, 53, 0.98) 100%),
        url('assets/castle-floor.svg');
    background-size: auto, 40px 40px;
    color: #F5F5DC;
    border-bottom: 4px solid #8B7D6B;
    z-index: 1000;
    box-shadow: 
        inset 0 -2px 4px rgba(255,255,255,0.1),
        0 4px 20px rgba(0,0,0,0.4),
        0 0 40px rgba(139, 125, 107, 0.2);
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#config-panel.collapsed {
    transform: translateY(-100%);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.1);
}

.config-header h2 {
    margin: 0;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.config-content {
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.config-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.config-section label {
    font-weight: 600;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}

.config-section input, .config-section select {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.config-section:last-child {
    flex-direction: row;
    gap: 10px;
}

/* BUTTONS */
.btn-primary, .btn-success, .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary {
    background: #4CAF50;
}

.btn-success {
    background: #2196F3;
}

.btn-secondary {
    background: #757575;
}

.btn-primary:hover, .btn-success:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#config-toggle {
    background: transparent;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PLAYER INFO STYLING */
.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.player-icon {
    font-size: 16px;
    color: #4CAF50;
}

#showCompPieces .player-icon {
    color: #f44336;
}

.player-name {
    font-weight: 700;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
}

.walls-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wall-icon {
    color: #8B7D6B;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.moves-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.moves-icon {
    color: #4CAF50;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.movesVal {
    font-weight: 700;
    font-size: 14px;
    color: #4CAF50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.movesVal.warning-moves {
    color: #FF9800;
    animation: warning-pulse 2s ease-in-out infinite;
}

.movesVal.urgent-moves {
    color: #F44336;
    animation: urgent-pulse 1s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes urgent-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.1);
        text-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
    }
}

.knight-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.knight-blue {
    background-image: url('assets/knight-blue.svg');
}

.knight-red {
    background-image: url('assets/knight-red.svg');
}

/* TURN FLAG INDICATOR */
.turn-flag {
    font-size: 18px;
    color: #DAA520;
    margin-left: 8px;
    animation: flagWave 2s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.6));
}

@keyframes flagWave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* CURRENT PLAYER INDICATOR */
.current-player {
    border: 3px solid #4CAF50;
    background: rgba(76, 175, 80, 0.15);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
    transform: scale(1.02);
}

@keyframes pulse {
    0% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 0 15px rgba(76, 175, 80, 0.4); 
        transform: scale(1.02);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(0,0,0,0.15), 0 0 25px rgba(76, 175, 80, 0.7); 
        transform: scale(1.04);
    }
    100% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 0 15px rgba(76, 175, 80, 0.4); 
        transform: scale(1.02);
    }
}


/* TOGGLE BUTTONS */
#toggle-buttons {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: row;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 22px;
    backdrop-filter: blur(10px);
}

/* Desktop positioning */
@media (min-width: 768px) {
    #toggle-buttons {
        top: 50%;
        left: 20px;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        background: none;
        padding: 0;
        border-radius: 0;
        backdrop-filter: none;
        gap: 15px;
    }
    
    .toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
        border: 3px solid rgba(255,255,255,0.2);
    }
}

@media (min-width: 1024px) {
    .toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

.toggle-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid rgba(139, 125, 107, 0.8);
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(139, 125, 107, 0.95) 0%, rgba(93, 84, 73, 0.95) 50%, rgba(74, 63, 53, 0.95) 100%);
    color: #F5F5DC;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 6px 20px rgba(0,0,0,0.4),
        0 0 30px rgba(139, 125, 107, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    transform: perspective(500px) rotateX(5deg);
}

.toggle-btn:hover {
    transform: perspective(500px) rotateX(5deg) translateY(-3px) scale(1.05);
    box-shadow: 
        inset 0 3px 6px rgba(255,255,255,0.3),
        0 8px 30px rgba(0,0,0,0.5),
        0 0 40px rgba(139, 125, 107, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

.toggle-btn.active {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(218, 165, 32, 0.95) 0%, rgba(184, 134, 11, 0.95) 50%, rgba(139, 69, 19, 0.95) 100%);
    border-color: #DAA520;
    animation: pulse-active 2s infinite;
    color: #FFFACD;
}

@keyframes pulse-active {
    0% { 
        box-shadow: 
            inset 0 2px 4px rgba(255,255,255,0.2),
            0 6px 20px rgba(0,0,0,0.4),
            0 0 0 0 rgba(218, 165, 32, 0.6); 
    }
    50% { 
        box-shadow: 
            inset 0 2px 4px rgba(255,255,255,0.2),
            0 6px 20px rgba(0,0,0,0.4),
            0 0 0 8px rgba(218, 165, 32, 0); 
    }
    100% { 
        box-shadow: 
            inset 0 2px 4px rgba(255,255,255,0.2),
            0 6px 20px rgba(0,0,0,0.4),
            0 0 0 0 rgba(218, 165, 32, 0); 
    }
}

/* NOTIFICATION PANEL */
#notification-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    max-width: 350px;
    pointer-events: none;
}

.notification {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #667eea;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left-color: #4CAF50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification.info {
    border-left-color: #2196F3;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #333;
}

/* MEDIEVAL SIDE PANELS */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(40, 35, 30, 0.95);
    border-left: 2px solid #8B7D6B;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    color: #F5F5DC;
}

.side-panel.open {
    right: 0;
}

/* LOG PANEL SPECIFIC STYLES */
#log-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

.log-entry {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 2px solid #8B7D6B;
    font-size: 13px;
    line-height: 1.4;
}

.log-entry.move {
    border-left-color: #4CAF50;
}

.log-entry.wall {
    border-left-color: #ff9800;
}

.log-entry.win {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.log-entry.error {
    border-left-color: #f44336;
}

.log-time {
    font-size: 11px;
    color: #BBB;
    opacity: 0.7;
}

.log-message {
    color: #F5F5DC;
    margin-top: 2px;
}

.log-controls {
    padding: 10px 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
}

/* LOG PANEL SCROLLBAR */
#log-content::-webkit-scrollbar {
    width: 6px;
}

#log-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

#log-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}

#log-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

.panel-header {
    background: rgba(50, 45, 40, 0.9);
    color: #F5F5DC;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #8B7D6B;
}

.panel-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

.panel-content {
    padding: 15px;
}

.rules-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.rules-section h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-section h3 i {
    color: #667eea;
}

.rules-section p {
    margin: 8px 0;
    line-height: 1.6;
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}

.rules-section ul {
    margin: 8px 0;
    padding-left: 20px;
}

.rules-section li {
    margin: 5px 0;
    line-height: 1.5;
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    list-style: disc;
}

.rules-section a {
    color: #667eea;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.rules-section a:hover {
    text-decoration: underline;
}

/* RESPONSIVE LAYOUT */
body {
    margin: 0;
    padding: 20px 10px;
    background: 
        url('assets/fairy-tale.png') center center/cover no-repeat,
        radial-gradient(circle at 20% 80%, rgba(139, 125, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(117, 107, 94, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #2C1810 0%, #3D2317 25%, #4A2C1A 50%, #5D3A26 75%, #6B4423 100%);
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/castle-floor.svg');
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* MEDIEVAL BANNERS */
body::after {
    content: '';
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 60px;
    background: url('assets/medieval-banner.svg') no-repeat center;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    animation: bannerWave 3s ease-in-out infinite;
}

@keyframes bannerWave {
    0%, 100% { transform: rotate(-2deg) translateY(0px); }
    50% { transform: rotate(2deg) translateY(-3px); }
}

@keyframes wallShake {
    0%, 100% { transform: perspective(1000px) rotateX(5deg) translateX(0px); }
    25% { transform: perspective(1000px) rotateX(5deg) translateX(-2px); }
    75% { transform: perspective(1000px) rotateX(5deg) translateX(2px); }
}

#play { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* CONFIG PANEL UPDATES */
#config-panel.collapsed {
    transform: translateY(-100%);
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet and larger screens */
@media (min-width: 768px) {
    body {
        padding: 25px 20px 40px;
    }
    
    #play {
        gap: 25px;
        max-width: 1000px;
        padding: 0 20px;
    }
    
    .players-container {
        margin-bottom: 25px;
        gap: 20px;
    }
    
    #showCompPieces, #showPlayerPieces {
        padding: 12px 18px;
        max-width: 220px;
    }
    
    .player-header .player-name {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .player-name {
        font-size: 15px;
    }
    
    #board {
        border: 8px solid #7da4b4;
        box-shadow: 0px 0px 0px 3px #324f5a, 0 0 20px rgba(0,0,0,0.3);
    }
    
    #board td {
        width: 42px;
        height: 42px;
    }
    
    #board td.wallPlacementVert,
    #board td.wallPlacementVert_NOHOVER {
        width: 10px;
    }
    
    #board td.wallPlacementHoriz,
    #board td.wallPlacementHoriz_NOHOVER {
        height: 10px;
    }
    
    #board td.crossSpace {
        width: 10px;
        height: 10px;
    }
    
    .pieceComputer, .piecePlayer {
        width: 34px;
        height: 34px;
        margin-left: 4px;
    }
    
    .toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
        border: 3px solid rgba(255,255,255,0.2);
    }
    
    #toggle-buttons {
        gap: 15px;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    body {
        padding: 30px 40px 60px;
    }
    
    #play {
        gap: 30px;
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .players-container {
        margin-bottom: 30px;
        gap: 30px;
        max-width: 800px;
    }
    
    #showCompPieces, #showPlayerPieces {
        padding: 14px 20px;
        max-width: 240px;
    }
    
    .player-header .player-name {
        font-size: 15px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .player-name {
        font-size: 17px;
    }
    
    #board {
        border: 10px solid #7da4b4;
        box-shadow: 0px 0px 0px 4px #324f5a, 0 0 25px rgba(0,0,0,0.3);
    }
    
    #board td {
        width: 50px;
        height: 50px;
    }
    
    #board td.wallPlacementVert {
        width: 12px;
    }
    
    #board td.wallPlacementVert_NOHOVER {
        width: 12px;
    }
    
    #board td.wallPlacementHoriz {
        height: 12px;
    }
    
    #board td.wallPlacementHoriz_NOHOVER {
        height: 12px;
    }
    
    #board td.crossSpace {
        width: 12px;
        height: 12px;
    }
    
    .pieceComputer, .piecePlayer {
        width: 40px;
        height: 40px;
        margin-left: 5px;
    }
    
    .toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
        border: 3px solid rgba(255,255,255,0.2);
    }
    
    #toggle-buttons {
        gap: 18px;
    }
    
    .config-section input, .config-section select {
        font-size: 15px;
        padding: 10px 14px;
    }
    
    .btn-primary, .btn-success, .btn-secondary {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Large desktop screens */
@media (min-width: 1440px) {
    #play {
        max-width: 1400px;
    }
    
    .players-container {
        max-width: 900px;
    }
    
    #board {
        border: 12px solid #8B7D6B;
        -moz-box-shadow: 
            inset 0 0 0 6px #5D5449,
            inset 0 0 0 12px #756B5E,
            0 0 30px rgba(0,0,0,0.5),
            0 0 50px rgba(139, 125, 107, 0.3);
        -webkit-box-shadow: 
            inset 0 0 0 6px #5D5449,
            inset 0 0 0 12px #756B5E,
            0 0 30px rgba(0,0,0,0.5),
            0 0 50px rgba(139, 125, 107, 0.3);
        box-shadow: 
            inset 0 0 0 6px #5D5449,
            inset 0 0 0 12px #756B5E,
            0 0 30px rgba(0,0,0,0.5),
            0 0 50px rgba(139, 125, 107, 0.3);
    }
    
    #board td {
        width: 55px;
        height: 55px;
    }
    
    #board td.wallPlacementVert,
    #board td.wallPlacementVert_NOHOVER {
        width: 14px;
    }
    
    #board td.wallPlacementHoriz,
    #board td.wallPlacementHoriz_NOHOVER {
        height: 14px;
    }
    
    #board td.crossSpace {
        width: 14px;
        height: 14px;
    }
    
    .pieceComputer, .piecePlayer {
        width: 45px;
        height: 45px;
        margin-left: 5px;
    }
}

/* Medium mobile screens */
@media (min-width: 481px) and (max-width: 767px) {
    body {
        padding: 20px 10px 80px;
    }
    
    #play {
        gap: 18px;
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
    }
    
    #toggle-buttons {
        bottom: 20px;
        gap: 20px;
        padding: 10px 15px;
        border-radius: 25px;
    }
    
    .toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    #board {
        border: 6px solid #7da4b4;
        box-shadow: 0px 0px 0px 3px #324f5a, 0 0 18px rgba(0,0,0,0.25);
        border-radius: 8px;
    }
    
    #board td {
        width: 38px;
        height: 38px;
    }
    
    #board td.wallPlacementVert,
    #board td.wallPlacementVert_NOHOVER {
        width: 9px;
    }
    
    #board td.wallPlacementHoriz,
    #board td.wallPlacementHoriz_NOHOVER {
        height: 9px;
    }
    
    #board td.crossSpace {
        width: 9px;
        height: 9px;
    }
    
    .pieceComputer, .piecePlayer {
        width: 31px;
        height: 31px;
        margin-left: 3px;
    }
    
    #showCompPieces, #showPlayerPieces {
        padding: 12px 16px;
    }
    
    .players-container {
        gap: 12px;
        margin-bottom: 18px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .player-header .player-name {
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .player-name {
        font-size: 15px;
    }
}

/* Mobile landscape orientation */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        padding: 15px 5px 70px;
    }
    
    #play {
        gap: 10px;
    }
    
    #toggle-buttons {
        bottom: 10px;
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    .toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .players-container {
        margin-bottom: 10px;
    }
    
    #showCompPieces, #showPlayerPieces {
        padding: 8px 12px;
    }
    
    .player-header .player-name {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    .player-name {
        font-size: 12px;
    }
    
    .player-icon {
        font-size: 12px;
    }
    
    .walls-info i {
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    body {
        padding: 20px 8px 80px;
    }
    
    #play {
        gap: 12px;
        padding: 0 5px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile notification adjustments */
    #notification-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 12px 16px;
    }
    
    .notification-header {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    /* Mobile log panel adjustments */
    .side-panel {
        width: 100%;
        right: -100%;
    }
    
    /* Mobile sound controls */
    .sound-controls {
        bottom: 80px;
        right: 10px;
        flex-direction: column;
    }
    
    .sound-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    /* Mobile banner adjustments */
    body::after {
        width: 30px;
        height: 40px;
        top: 10px;
        left: 10px;
    }
    
    .toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 15px;
    }
    
    #board {
        border: 4px solid #7da4b4;
        box-shadow: 0px 0px 0px 2px #324f5a, 0 0 10px rgba(0,0,0,0.2);
    }
    
    #board td {
        width: 32px;
        height: 32px;
    }
    
    #board td.wallPlacementVert,
    #board td.wallPlacementVert_NOHOVER {
        width: 7px;
    }
    
    #board td.wallPlacementHoriz,
    #board td.wallPlacementHoriz_NOHOVER {
        height: 7px;
    }
    
    #board td.crossSpace {
        width: 7px;
        height: 7px;
    }
    
    .pieceComputer, .piecePlayer {
        width: 26px;
        height: 26px;
        margin-left: 3px;
        border: 1px solid;
    }
    
    #showCompPieces, #showPlayerPieces {
        padding: 8px 12px;
    }
    
    .players-container {
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .player-header .player-name {
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 8px;
    }
    
    .player-name {
        font-size: 13px;
    }
}

/* ==========================================
   MODERN THEME STYLES
   ========================================== */

body.modern-theme {
    background: linear-gradient(135deg, #0C0D14 0%, #1A1B23 50%, #2C2D35 100%);
    color: #FFFFFF;
}

/* Modern Board Styling */
.modern-theme #board {
    background: linear-gradient(45deg, #2A2B35 0%, #3A3B45 50%, #2A2B35 100%);
    border: 3px solid #4A4B55;
    border-radius: 8px;
    box-shadow: 
        0 0 0 2px #3A3B45,
        0 8px 25px rgba(0,0,0,0.5),
        0 0 50px rgba(106, 66, 255, 0.1);
}

.modern-theme #board::before {
    background: none;
    border-radius: 8px;
}

/* Modern Board Squares */
.modern-theme #board td[data-pos] {
    background: #3A3B45;
    border: 1px solid #4A4B55;
    transition: all 0.2s ease;
}

.modern-theme #board td[data-pos]:hover {
    background: #4A4B55;
}

/* Modern Piece Styling */
.modern-theme .piecePlayer {
    background: radial-gradient(circle, #4FC3F7 0%, #2196F3 70%);
    border: 3px solid #1976D2;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.modern-theme .pieceComputer {
    background: radial-gradient(circle, #F06292 0%, #E91E63 70%);
    border: 3px solid #C2185B;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.modern-theme .piecePlayer:hover,
.modern-theme .pieceComputer:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(106, 66, 255, 0.6);
}

/* Modern Movement Indicators */
.modern-theme .movableGreenSpaces {
    background: rgba(76, 175, 80, 0.3) !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 4px;
    animation: modernPulse 1.5s ease-in-out infinite;
}

@keyframes modernPulse {
    0%, 100% { 
        background: rgba(76, 175, 80, 0.3);
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    }
    50% { 
        background: rgba(76, 175, 80, 0.5);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

/* Modern Wall Styling */
.modern-theme .possibleWall {
    background: rgba(255, 215, 0, 0.4) !important;
    border: 1px solid #FFD700 !important;
}

.modern-theme .keepWall {
    background: #FF9800 !important;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Modern Player Panels */
.modern-theme .players-container {
    background: rgba(42, 43, 53, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #4A4B55;
    border-radius: 12px;
}

.modern-theme #showPlayerPieces,
.modern-theme #showCompPieces {
    background: rgba(58, 59, 69, 0.8);
    border: 1px solid #6A6B75;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 180px;
    padding: 6px 10px;
}

.modern-theme .player-header .player-icon {
    color: #6842FF;
}

.modern-theme .stat-icon {
    color: #8A8B94;
}

.modern-theme .stat-value {
    color: #FFFFFF;
}

.modern-theme .stat-label {
    color: #A0A1AA;
}

.modern-theme .turn-flag {
    color: #6842FF;
}

.modern-theme .current-player {
    border: 2px solid #6842FF !important;
    background: rgba(104, 66, 255, 0.15) !important;
    box-shadow: 0 0 20px rgba(104, 66, 255, 0.3) !important;
}

/* Modern Moves Info */
.modern-theme .moves-icon {
    color: #4FC3F7;
}

.modern-theme .movesVal {
    color: #4FC3F7;
}

.modern-theme .movesVal.warning-moves {
    color: #FFB74D;
}

.modern-theme .movesVal.urgent-moves {
    color: #EF5350;
}

/* Modern Knight Icons */
.modern-theme .knight-icon {
    display: none;
}

.modern-theme .knight-icon::after {
    content: "♔";
    font-size: 24px;
    display: block;
    text-align: center;
    line-height: 32px;
}

.modern-theme .knight-blue::after {
    color: #2196F3;
}

.modern-theme .knight-red::after {
    color: #E91E63;
}

/* Modern UI Panels */
.modern-theme #config-panel,
.modern-theme #rules-panel,
.modern-theme #log-panel {
    background: rgba(26, 27, 35, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #4A4B55;
    color: #FFFFFF;
}

.modern-theme .panel-header {
    background: rgba(106, 66, 255, 0.1);
    border-bottom: 1px solid #6842FF;
}

/* Modern Buttons */
.modern-theme .btn-primary,
.modern-theme .btn-success,
.modern-theme .btn-secondary {
    background: linear-gradient(135deg, #6842FF, #8A2BE2);
    border: none;
    border-radius: 6px;
    color: white;
    transition: all 0.2s ease;
}

.modern-theme .btn-primary:hover,
.modern-theme .btn-success:hover,
.modern-theme .btn-secondary:hover {
    background: linear-gradient(135deg, #7C4DFF, #9C27B0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 66, 255, 0.3);
}

/* Modern Toggle Buttons */
.modern-theme .toggle-btn {
    background: rgba(58, 59, 69, 0.8);
    border: 1px solid #6A6B75;
    color: #FFFFFF;
}

.modern-theme .toggle-btn:hover {
    background: rgba(106, 66, 255, 0.2);
    border-color: #6842FF;
}

.modern-theme .toggle-btn.active {
    background: #6842FF;
    border-color: #6842FF;
}

/* Modern Turn Flag */
.modern-theme .turn-flag {
    color: #6842FF;
    filter: drop-shadow(0 0 8px rgba(104, 66, 255, 0.6));
}

/* Modern Notifications */
.modern-theme .notification {
    background: rgba(26, 27, 35, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #4A4B55;
    border-radius: 8px;
    color: #FFFFFF;
}

.modern-theme .notification.success {
    border-left: 4px solid #4CAF50;
}

.modern-theme .notification.error {
    border-left: 4px solid #F44336;
}

.modern-theme .notification.warning {
    border-left: 4px solid #FF9800;
}

.modern-theme .notification.info {
    border-left: 4px solid #6842FF;
}