/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.game-header h1 {
    font-size: 2.5rem;
    color: #4a5568;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    font-weight: 600;
}

.current-player, .game-phase {
    background: #f7fafc;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e2e8f0;
}

/* Main game area */
.game-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Chess board */
.chess-board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 560px;
    height: 560px;
    border: 4px solid #4a5568;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.chess-square {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

/* Chess pieces should appear above rifts */
.chess-square:not(:empty) {
    z-index: 15;
}

.chess-square.light {
    background-color: #f0d9b5;
}

.chess-square.dark {
    background-color: #b58863;
}

.chess-square:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.chess-square.selected {
    background-color: #ffd700 !important;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.8);
}

.chess-square.possible-move {
    background-color: #90ee90 !important;
    position: relative;
}

.chess-square.possible-move::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #228b22;
    border-radius: 50%;
    opacity: 0.7;
}

.chess-square.capture-move {
    background-color: #ff6b6b !important;
    position: relative;
}

.chess-square.capture-move::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid #dc2626;
    border-radius: 50%;
    opacity: 0.8;
}

/* Rift styling */
.chess-square.rift {
    background: linear-gradient(45deg, #667eea, #764ba2, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: rift-glow 6s ease-in-out infinite;
    position: relative;
}

/* Keep rifts blue in dark mode - ensure they show the background */
body.dark-mode .chess-square.rift {
    background: linear-gradient(45deg, #667eea, #764ba2, #4facfe, #00f2fe) !important;
    background-size: 400% 400% !important;
    animation: rift-glow 6s ease-in-out infinite !important;
    position: relative;
}

.chess-square.rift::before {
    content: '🌀';
    position: absolute;
    font-size: 1.5rem;
    z-index: 5;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: rift-swirl 4s linear infinite;
}

@keyframes rift-swirl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure swirl animation works in dark mode */
body.dark-mode .chess-square.rift::before {
    content: '🌀';
    position: absolute;
    font-size: 1.5rem;
    z-index: 5;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: rift-swirl 4s linear infinite;
}

@keyframes rift-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.chess-square.rift.activated {
    animation: rift-activation 1s ease-in-out;
}

@keyframes rift-activation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Board coordinates */


/* Game controls */
.game-controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.game-controls h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.game-controls p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #666;
}

.rift-counter {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 600;
    text-align: center;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn.primary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* Captured pieces */
.captured-pieces {
    margin: 20px 0;
}

.captured-white, .captured-black {
    margin: 10px 0;
    padding: 10px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
}

.captured-white {
    border-left-color: #cbd5e0;
}

.captured-black {
    border-left-color: #4a5568;
}

.captured-white span, .captured-black span {
    font-weight: 600;
    margin-right: 10px;
}

#captured-white-pieces, #captured-black-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* Active effects */
.active-effects {
    margin: 20px 0;
}

#field-effects-list {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    min-height: 50px;
}

.effect-item {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Modals */
.rift-effects-modal, .victory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2, .modal-content h3 {
    color: #4a5568;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Dice roll */
.dice-roll {
    margin: 20px 0;
}

.dice-display {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.effect-options {
    margin: 20px 0;
}

.effect-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.effect-option:hover {
    border-color: #667eea;
    background: #edf2f7;
}

/* Responsive design */
@media (max-width: 1200px) {
    .game-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chess-board {
        width: 480px;
        height: 480px;
    }
    
    .chess-square {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
}

@media (max-width: 600px) {
    .chess-board {
        width: 320px;
        height: 320px;
    }
    
    .chess-square {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation classes */
.piece-move {
    transition: all 0.3s ease;
}

.piece-capture {
    animation: capture-animation 0.5s ease-in-out;
}

@keyframes capture-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(0); }
}

.check-indicator {
    background-color: #ff6b6b !important;
    box-shadow: inset 0 0 20px rgba(255, 107, 107, 0.8);
}

/* Game Log and Chat Styles */
.game-log, .chat-section {
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.game-log h4, .chat-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
    text-shadow: none;
}

body.dark-mode .game-log h4, 
body.dark-mode .chat-section h4 {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.log-content, .chat-messages {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.log-content {
    color: #2c3e50;
}

.chat-messages {
    color: #2c3e50;
}

.log-entry, .chat-message {
    margin-bottom: 5px;
    padding: 2px 0;
}

.log-entry.system {
    color: #6b46c1;
    font-style: italic;
}

.log-entry.move {
    color: #1e40af;
}

.log-entry.effect {
    color: #f687b3;
}

.chat-message.own {
    color: #68d391;
}

.chat-message.opponent {
    color: #fbb6ce;
}

.chat-input-container {
    display: flex;
    gap: 5px;
}

.chat-input-container input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
}

.chat-input-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn.small {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: auto;
}

/* Piece removal animation */
@keyframes pieceRemoval {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.piece-removing {
    animation: pieceRemoval 1.5s ease-in-out forwards;
}

/* Rift effect choice buttons */
.effect-choices {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.effect-choice {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.effect-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.effect-choice.decline {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.effect-choice.accept {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e2e8f0;
}

body.dark-mode .game-header {
    background: rgba(0, 0, 0, 0.8);
    color: #e2e8f0;
}

body.dark-mode .game-header h1 {
    color: #f7fafc;
}

body.dark-mode .current-player, 
body.dark-mode .game-phase {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* Chess board styling for dark mode */
body.dark-mode .chess-board {
    background: #000000 !important;
    border: 3px solid #ffffff;
}

/* Make chess board container background black in dark mode */
body.dark-mode .chess-board-container {
    background: #000000;
    padding: 30px;
    border-radius: 20px;
}

body.dark-mode .chess-square {
    color: #333;
}

body.dark-mode .chess-square.light {
    background: #f0d9b5;
    color: #333;
}

body.dark-mode .chess-square.dark {
    background: #b58863;
    color: #333;
}

/* Ensure rift squares override dark mode square colors */
body.dark-mode .chess-square.dark.rift {
    background: linear-gradient(45deg, #667eea, #764ba2, #4facfe, #00f2fe) !important;
    background-size: 400% 400% !important;
    animation: rift-glow 6s ease-in-out infinite !important;
}

body.dark-mode .chess-square.light.rift {
    background: linear-gradient(45deg, #667eea, #764ba2, #4facfe, #00f2fe) !important;
    background-size: 400% 400% !important;
    animation: rift-glow 6s ease-in-out infinite !important;
}

body.dark-mode .game-controls {
    background: rgba(0, 0, 0, 0.6);
    color: #e2e8f0;
}

body.dark-mode .game-controls h3 {
    color: #ffffff;
}

body.dark-mode .setup-controls h3 {
    color: #ffffff;
}

body.dark-mode .setup-controls p {
    color: #ffffff;
}

body.dark-mode .rift-counter {
    color: #333 !important;
}

body.dark-mode .rift-counter span {
    color: #333 !important;
}

/* Keep buttons unchanged in dark mode */
body.dark-mode .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

body.dark-mode .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

body.dark-mode .btn.primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body.dark-mode .btn.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

body.dark-mode .log-content, 
body.dark-mode .chat-messages {
    background: rgba(0, 0, 0, 0.4);
    color: #e2e8f0;
}

/* Fix light mode text legibility */
.log-content, 
.chat-messages {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

.game-log h4, 
.chat-section h4 {
    color: #2c3e50;
    text-shadow: none;
}

/* Fix captured pieces text in dark mode */
body.dark-mode .captured-white span,
body.dark-mode .captured-black span {
    color: #333 !important;
}

/* Fix active field effects text in dark mode */
body.dark-mode .active-effects h4 {
    color: #e2e8f0;
}

body.dark-mode .field-effect-item {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .field-effect-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

body.dark-mode .log-entry.system {
    color: #fbbf24;
}

body.dark-mode .log-entry.move {
    color: #60a5fa;
}

body.dark-mode .log-entry.effect {
    color: #f472b6;
}

body.dark-mode .chat-message.own {
    color: #34d399;
}

body.dark-mode .chat-message.opponent {
    color: #fbb6ce;
}

body.dark-mode .chat-input-container input {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid #4a5568;
}

body.dark-mode .chat-input-container input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #60a5fa;
}

body.dark-mode .modal-content {
    background: rgba(0, 0, 0, 0.9);
    color: #e2e8f0;
}

body.dark-mode .effect-choice {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e2e8f0;
}

body.dark-mode .effect-choice.decline {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

body.dark-mode .effect-choice.accept {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

/* Multiplayer Controls */
.multiplayer-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

body.dark-mode .close-btn {
    color: #ccc;
}

body.dark-mode .close-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Multiplayer Status */
.multiplayer-status {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.multiplayer-status h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.room-players-display, .room-spectators-display {
    margin-bottom: 10px;
}

.room-players-display:last-child, .room-spectators-display:last-child {
    margin-bottom: 0;
}

.room-player-item, .room-spectator-item {
    background: #e9ecef;
    border-radius: 4px;
    padding: 5px 8px;
    margin: 2px 0;
    font-size: 12px;
    color: #495057;
}

.room-player-item {
    background: #d4edda;
    color: #155724;
}

.room-spectator-item {
    background: #f8d7da;
    color: #721c24;
}

body.dark-mode .multiplayer-status {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .multiplayer-status h4 {
    color: #e2e8f0;
}

body.dark-mode .room-player-item {
    background: #2f855a;
    color: #f0fff4;
}

body.dark-mode .room-spectator-item {
    background: #c53030;
    color: #fed7d7;
}

.multiplayer-controls .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.multiplayer-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Room Modal */
.room-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.room-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.room-inputs input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.room-inputs input:focus {
    outline: none;
    border-color: #667eea;
}

.room-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.players-list, .spectators-list {
    margin: 10px 0;
}

.players-list h5, .spectators-list h5 {
    margin: 5px 0;
    color: #333;
}

.player-item, .spectator-item {
    padding: 5px 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.coin-flip-result {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
}

.coin-flip-result p {
    margin: 0;
    font-weight: bold;
    color: #1e40af;
}

/* Settings Menu */
.settings-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

body.dark-mode .settings-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #e2e8f0;
}

body.dark-mode .settings-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.settings-panel {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: none;
}

body.dark-mode .settings-panel {
    background: rgba(0, 0, 0, 0.9);
    color: #e2e8f0;
}

.settings-panel.show {
    display: block;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #4CAF50;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(26px);
}

/* D20 Animation */
.dice-rolling {
    animation: diceRoll 2s ease-in-out;
}

@keyframes diceRoll {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.dice-display {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.dark-mode .dice-display {
    color: #ff8a80;
}

/* Field Effect Items */
.field-effect-item {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.field-effect-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.field-effect-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.field-effect-item.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.frozen-piece {
    opacity: 0.5;
    cursor: not-allowed;
}

.frozen-piece::after {
    content: '❄️';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1rem;
}
