/* OPTIONS SCREEN */

#ht-options-root {
    position: absolute;
    inset: 0;
    
    width: 100%;
    height: 100%;
    
    z-index: 20;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    background: rgba(2, 2, 5, 0.7);
    
    box-sizing: border-box;
    
    animation:
        ht-options-fade-in
        0.35s ease-out
        forwards;
}

#ht-options-panel {
    width: min(70%, 900px);
    min-height: 55%;
    
    display: flex;
    flex-direction: column;
    
    justify-content: space-between;
    align-items: center;
    
    padding: 2rem;
    
    color: white;
    
    background: rgba(255, 255, 255, 0.05);
    
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 1.5rem;
    
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.2);
    
    box-sizing: border-box;
    
    animation:
        ht-options-grow
        0.4s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        forwards;
}

#ht-options-header {
    text-align: center;
}

#ht-options-header h2 {
    margin: 0;
    
    color: #00d4ff;
    
    font-family: myOtherFont;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    
    letter-spacing: 0.2rem;
    
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.7),
        0 0 25px rgba(0, 180, 255, 0.3);
}

#ht-options-controls {
    width: 100%;
    
    display: flex;
    flex-direction: column;
    
    gap: 2rem;
}

.ht-options-control {
    width: 100%;
    
    display: flex;
    align-items: center;
    
    gap: 1.5rem;
}

.ht-options-control label {
    width: 30%;
    flex-shrink: 0;
    
    color: #00d4ff;
    
    font-family: myOtherFont;
    font-size: clamp(0.75rem, 1.4vw, 1.1rem);
    
    letter-spacing: 0.05rem;
}

.ht-options-control input[type="range"] {
    width: 100%;
    
    height: 6px;
    
    margin: 0;
    
    accent-color: #00d4ff;
    
    cursor: pointer;
}

#ht-options-buttons {
    width: 100%;
    
    display: flex;
    justify-content: center;
}

#ht-options-menu-btn {
    width: 100%;
    
    min-height: 4rem;
    
    padding: 0.75rem;
    
    color: #00d4ff;
    
    font-family: myOtherFont;
    font-size: clamp(0.75rem, 1.4vw, 1.1rem);
    
    letter-spacing: 0.05rem;
    
    background: rgba(0, 0, 0, 0.55);
    
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.6rem;
    
    cursor: pointer;
    
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;
}

#ht-options-menu-btn:hover {
    color: white;
    
    background: rgba(0, 212, 255, 0.12);
    
    border-color: rgba(0, 212, 255, 0.8);
    
    box-shadow:
        0 0 18px rgba(0, 212, 255, 0.35);
}

#ht-options-menu-btn:active {
    transform: scale(0.97);
}

@keyframes ht-options-fade-in {
    from {
        opacity: 0;
    }
    
    to {
        opacity: 1;
    }
}

@keyframes ht-options-grow {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (orientation: portrait) {
    #ht-options-panel {
        width: min(88%, 600px);
        min-height: 60%;
        
        padding: 1.5rem;
    }
    
    #ht-options-controls {
        gap: 1.5rem;
    }
    
    .ht-options-control {
        flex-direction: column;
        align-items: stretch;
        
        gap: 0.75rem;
    }
    
    .ht-options-control label {
        width: 100%;
    }
    
    #ht-options-menu-btn {
        min-height: 3.5rem;
    }
}
/* Legal links */

#ht-options-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    
    margin: 20px 0 10px;
    padding: 12px 8px;
    
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    letter-spacing: 0.5px;
}

#ht-options-legal a {
    font-family: myOtherFont;
    color: #aebde0;
    text-decoration: none;
    transition: color 0.2s ease;
}

#ht-options-legal a:hover,
#ht-options-legal a:focus-visible {
    color: #65d9ff;
    text-decoration: underline;
}

#ht-options-legal span {
    color: rgba(255, 255, 255, 0.3);
}