body {
    background: #000000;
    min-height: 100vh;
    padding-top: 70px;
}

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

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    color: #00d4ff;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
}

.game-subtitle {
    color: #ffffff;
    font-size: 1.2em;
    opacity: 0.8;
}

.game-panel {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.current-player {
    text-align: center;
    margin-bottom: 25px;
}

.current-player h3 {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: bold;
}

.current-player span {
    color: #00d4ff;
}

.player1-color {
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.player2-color {
    color: #ff3366 !important;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.8);
}

.board-container {
    background: linear-gradient(135deg, #0f0f1e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.column {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.column:hover,
.column-hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-5px);
}

.column:active {
    transform: translateY(-2px);
}

.column.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.column.disabled:hover {
    transform: none;
    background: rgba(0, 212, 255, 0.05);
}

.cell {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cell.player1 {
    background: radial-gradient(circle, #00d4ff 0%, #0099ff 100%);
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), inset 0 -5px 10px rgba(0, 0, 0, 0.3);
}

.cell.player2 {
    background: radial-gradient(circle, #ff3366 0%, #ff0044 100%);
    border-color: #ff3366;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), inset 0 -5px 10px rgba(0, 0, 0, 0.3);
}

.cell.drop-animation {
    animation: dropIn 0.5s ease;
}

.cell.winning {
    animation: pulse 1s infinite, glow 1s infinite;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.game-controls .btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
}

.game-controls .btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #0f0f1e;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.game-controls .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
}

.game-controls .btn-info {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #0f0f1e;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.game-controls .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00cc66 0%, #00ff88 100%);
}

@keyframes dropIn {
    0% {
        transform: translateY(-500px);
        opacity: 0;
    }
    60% {
        transform: translateY(20px);
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2em;
    }

    .board {
        gap: 5px;
        max-width: 100%;
    }

    .column {
        gap: 5px;
        padding: 5px;
        min-height: 44px;
    }

    .cell {
        border-width: 2px;
    }

    .game-panel {
        padding: 20px 15px;
    }

    .game-controls {
        flex-direction: column;
    }

    .game-controls .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.5em;
    }
    
    .game-subtitle {
        font-size: 1em;
    }
    
    .board {
        gap: 3px;
    }
    
    .column {
        gap: 3px;
        padding: 3px;
    }
    
    .game-panel {
        padding: 15px 10px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .board {
        max-width: 450px;
    }
    
    .column {
        gap: 4px;
    }
}
