/* Copyright (c) 2024-2026. Jericho Crosby (Chalwk) */

.panel {
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.panel-head h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.game-instructions {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(203, 213, 225, 0.1);
    border-radius: var(--radius);
}

.game-instructions h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.game-instructions > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.game-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 400px;
}

#game {
    display: block;
    background: linear-gradient(180deg, #9fd6ff 0%, #eaf6ff 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 1000px;
    height: 420px;
    user-select: none;
    -webkit-user-select: none;
}

#game:focus {
    outline: none;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(203, 213, 225, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.game-stats strong {
    color: var(--primary);
}

.game-stats span {
    font-family: var(--font-mono);
    font-weight: 600;
    margin-left: 0.5rem;
}

.controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 768px) {
    #game {
        height: 350px;
    }

    .game-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .game-stats {
        justify-content: center;
    }

    .controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #game {
        height: 280px;
    }
}