/* ===========================
   Paint By Pictures - Screen Styles
   =========================== */

/* --- Screen States --- */
.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Removed landing screen styles in favor of PicoCSS modal inline overrides */


/* --- Gameplay Screen --- */
#gameplay-screen {
    position: relative;
    flex: 1;
    min-height: 0;
    /* display: flex and flex-direction: column are provided by .screen.active */
}

#gameplay-screen #artwork-container {
    flex: 1;
    min-height: 0;
}

.game-menu-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.game-menu-btn:hover {
    background: white;
    transform: scale(1.1);
}

.target-colors-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.target-colors-btn:hover {
    background: white;
    transform: scale(1.1);
}

.target-colors-btn.active {
    /* background: var(--primary);
    color: white; */
}

/* --- Help Modal --- */
.help-content {
    max-width: 500px;
}

.help-step {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.help-step::before {
    /* content: counter(step-counter); */
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.help-steps {
    counter-reset: step-counter;
}

.help-step h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.help-step p {
    color: #666;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .puzzle-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .app-logo {
        font-size: 4rem;
    }

    .landing-actions {
        flex-direction: row;
        max-width: 500px;
    }
}