/* Explain: Base reset, utility classes, and PlayStation-style animations for UI elements. */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
    user-select: none;
}

/* Hide scrollbar for horizontal lists */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes ps-waves {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ps-bg-gradient {
    background: linear-gradient(-45deg, #050a15, #0a1931, #0f2547, #070b14);
    background-size: 400% 400%;
    animation: ps-waves 20s ease infinite;
}

@keyframes tileGlow {
    0% { border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255,255,255,0.1); }
    50% { border-color: rgba(255, 255, 255, 1); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255,255,255,0.3); }
    100% { border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255,255,255,0.1); }
}

.tile-focus {
    transform: scale(1.08) translateZ(0);
    border: 2px solid white !important;
    animation: tileGlow 3.5s infinite ease-in-out;
    z-index: 10;
    border-radius: 0.5rem !important;
}

@keyframes splashZoom {
    0% { transform: scale(1); opacity: 0; }
    15% { opacity: 0.6; }
    85% { opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; }
}

@keyframes splashFade {
    0% { transform: translateY(20px) scale(0.95); opacity: 0; }
    15% { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1.2); }
    30% { filter: brightness(1); }
    80% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-20px) scale(1.05); opacity: 0; }
}

@keyframes consoleBoot {
    0% { transform: scale(0.95); opacity: 0; filter: blur(4px); }
    15% { transform: scale(1); opacity: 1; filter: blur(0px); }
    100% { transform: scale(1.05); opacity: 1; filter: blur(0px); }
}