/* ===== AMBIENT EFFECTS - Underworld Atmosphere ===== */

/* Pulsing glow at top - surveillance active */
@keyframes ambientGlow {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

#game-frame .ambient-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(ellipse,
        rgba(168, 85, 247, 0.12) 0%,
        rgba(168, 85, 247, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    animation: ambientGlow 5s ease-in-out infinite;
}

/* Settings Button - Control Access */
#settings-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg,
            var(--graphite) 0%,
            var(--slate) 100%
        );
    border: 1px solid var(--steel);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 var(--inner-light),
        0 2px 8px var(--shadow-heavy);
}

#settings-button:hover {
    border-color: var(--violet-dim);
    box-shadow:
        inset 0 1px 0 var(--inner-light),
        0 4px 16px rgba(168, 85, 247, 0.2);
}

#settings-button:hover svg {
    color: var(--violet);
}

#settings-button svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.3s ease;
}

#settings-button:hover svg {
    transform: rotate(45deg);
}

/* ===== RESPONSIVE - Tactical Adaptation ===== */
@media (max-height: 700px) {
    #top-hud {
        padding: 8px 12px;
    }

    #respect-badge {
        width: 44px;
        height: 44px;
    }

    .respect-inner {
        width: 34px;
        height: 34px;
    }

    .respect-level {
        font-size: 1.1rem;
    }

    #currency-strip {
        height: 38px;
        max-width: 280px;
    }

    .slot-value {
        font-size: 0.85rem;
        min-width: 50px;
    }

    #champion-progress {
        width: 44px;
        height: 44px;
    }

    .champion-center {
        width: 34px;
        height: 34px;
    }

    #app {
        padding: 8px;
        gap: 8px;
    }

    .game-title {
        font-size: 1rem;
    }

    #bottom-area {
        min-height: 60px;
        padding: 0 12px 12px;
    }

    #dialogue-box {
        padding: 10px 14px;
    }

    .shop-button {
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    #respect-badge {
        width: 42px;
        height: 42px;
    }

    .respect-inner {
        width: 32px;
        height: 32px;
    }

    #currency-strip {
        max-width: 220px;
        margin: 0 8px;
    }

    .currency-slot {
        padding: 0 8px;
        gap: 6px;
    }

    .slot-icon {
        width: 16px;
        height: 16px;
    }

    .slot-value {
        font-size: 0.8rem;
        min-width: 45px;
    }

    #champion-progress {
        width: 42px;
        height: 42px;
    }

    .champion-center {
        width: 32px;
        height: 32px;
    }

    .game-title {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }

    .game-title::before,
    .game-title::after {
        width: 20px;
    }
}

/* Subtle noise texture overlay for entire app */
@keyframes noiseAnim {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

