/* Solution Section Styles */
.solution-section {
    padding: var(--spacing-section-lg) 0;
    position: relative;
    /* Blend from Agitation (#0f172a) to Outcome (#0a0a0a) with Green Highlight */
    background: radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        linear-gradient(to bottom, #0f172a 0%, #0a0a0a 100%);
}

@media (max-width: 768px) {
    .solution-section {
        text-align: center;
    }

    .solution-list {
        align-items: center;
        /* Center list items in container */
        text-align: left;
        /* Keep text left aligned for readability or center? User said "Center all the text". */
        /* If I center the list item completely, the checkmark and text stack? No flex row. */
        /* Let's try to center the flex container itself but keep children layout? */
        /* "Center all the text" usually implies text-align: center. */
        /* But for a list with icons, it looks weird. */
        /* However, based on "Center these texts", I'll center the container content. */
        display: inline-flex;
        /* Shrink to fit */
        width: 100%;
    }

    .solution-list li {
        /* match the previous sections for consistency */
        text-align: left;
    }
}

/* Tablet Animation Resize */
@media (min-width: 768px) and (max-width: 1024px) {
    .game-container {
        max-height: 350px;
        /* Reduced from 500px default max-height */
        aspect-ratio: auto;
        /* Allow height to override if needed or keep ratio? */
        /* aspect-ratio 16/9 at tablet width (e.g. 768px) is ~430px. 350px is smaller. */
        height: 350px;
    }
}

@media (max-width: 768px) {
    .solution-visual {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        /* Reduced from 2rem to 1rem per visual feedback */
        pointer-events: none;
        /* Disable interaction on mobile */
    }

    .solution-content {
        margin-top: 0 !important;
    }

    .solution-list {
        margin-top: 0.5rem !important;
        /* Reduced spacing between text and list */
    }

    .solution-list li {
        margin-bottom: 0.5rem;
    }
}

/* Game Container (The Visual) */
.game-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 500px;
    /* Prevent over-stretching */
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: #000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1);
}

#deliverability-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Clean modern overlay (Vignette) */
.game-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
    z-index: 10;
}

/* UI Overlay */
.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    /* Or a monospace font if available */
    font-weight: 700;
    font-size: 14px;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-ui .score,
.game-ui .status {
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Stack Layout Fix */
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.text-success {
    color: #22C55E;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Solution List */
.solution-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.icon-check {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.solution-list p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.solution-list strong {
    color: white;
    font-weight: 600;
}