/* =========================================
   DIEGETIC HINT ENGINE UI
   ========================================= */
#hint-container {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    /* Removed rigid width caps to allow sleek, single-line stretching */
    width: max-content;
    max-width: 550px;
    align-items: flex-start;
}

.hint-element {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.hint-element.is-visible {
    opacity: 1;
}

/* Smooth, gliding dismissal */
.hint-element.is-dismissing {
    opacity: 0 !important;
    transform: translateX(-40px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
}

/* =========================================
   ZONE 1: GALLERY GRID (Hacker Terminal)
   ========================================= */
.hint-z1 {
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--current-theme-color, #00f3ff);
    border-left: 4px solid var(--current-theme-color, #00f3ff);
    color: var(--current-theme-color, #00f3ff);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transform: translateX(-20px);
}
.hint-z1.is-visible { transform: translateX(0); }

.hint-z1.hint-success {
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    font-weight: bold;
}

/* =========================================
   ZONE 2: VINYL PLAYER (Hardware OLED)
   ========================================= */
.hint-z2 {
    background: #000000;
    color: #c68a95; 
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 25px;
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.8), 5px 5px 20px rgba(0,0,0,0.5);
    border-radius: 2px; 
    transform: translateY(10px);
}
.hint-z2.is-visible { transform: translateY(0); }

/* =========================================
   ZONE 3: TELEMETRY DECK (Static LED Board)
   ========================================= */
.hint-z3 {
    background: transparent;
    border-top: 1px dashed var(--theme-accent, #ff6f00);
    border-bottom: 1px dashed var(--theme-accent, #ff6f00);
    color: var(--theme-accent, #ff6f00);
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    padding: 10px 20px;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--theme-accent, #ff6f00);
    transform: translateY(10px);
}
.hint-z3.is-visible { transform: translateY(0); }

/* =========================================
   ZONE 4: THE HORIZON (Cinematic Metadata)
   ========================================= */
.hint-z4 {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(10px);
}
.hint-z4.is-visible { transform: translateY(0); }

/* Zone 4 Success (Clean White Permanence) */
.hint-z4.hint-success {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.5);
    font-weight: 700;
    letter-spacing: 6px;
}

/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
@media screen and (max-width: 768px) {
    #hint-container {
        bottom: 85px; 
        left: 15px;
        max-width: calc(100vw - 30px);
    }
    .hint-element {
        font-size: 10px;
        white-space: normal; /* Allow wrap only on extremely small screens */
    }
}