.game-section {
    display: none;
    flex-direction: row;
    height: calc(100vh - 64px);
    gap: 0;
}

.image-panel {
    flex: 1;
    overflow: hidden;
    background: var(--text);
    position: relative;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: none;
    }
}

.sidebar-panel {
    width: 280px;
    background: var(--surface);
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    background: var(--gradient-brand);
    color: #fff;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 0.85rem;
    opacity: 0.85;
}

.object-checklist {
    list-style: none;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.object-item {
    margin: 0;
}

.obj-icon {
    font-size: 1.2rem;
}

.back-btn-wrap {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.celebration {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.celebration-box {
    background: var(--surface);
    border-radius: 28px;
    padding: 48px 40px;
    max-width: 420px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    h2 {
        font-size: 2rem;
        margin-bottom: 8px;
        color: var(--primary);
    }

    p {
        color: var(--text-muted);
        margin-bottom: 28px;
        font-size: 1.1rem;
    }
}

.celebration-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 14px;
    border-radius: 3px;
    animation: fall linear forwards;
}

@media (max-width: 768px) {
    .game-section {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 64px);
    }

    .image-panel {
        height: 50vw;
        min-height: 220px;
    }

    .sidebar-panel {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--border);
    }
}
