@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.enter-text {
    color: #fff;
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    animation: pulse 2s infinite;
    font-family: 'Press Start 2P', monospace;
}

@keyframes pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.8); }
    50% { opacity: 0.4; text-shadow: none; }
}

.tilt-wrapper, .volume-container {
    opacity: 0;
    transform: scale(0.85); 
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt-wrapper.entered, .volume-container.entered {
    opacity: 1;
    transform: scale(1);
}

#snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; 
}

.volume-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.slider-track {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, margin-left 0.3s ease;
    display: flex;
    align-items: center;
}

.volume-wrapper:hover .slider-track {
    width: 80px; 
    margin-left: 10px;
}

#volume-slider {
    width: 100%;
    cursor: pointer;
    accent-color: #fff;
}

.tilt-wrapper {
    z-index: 1;
    perspective: 1000px; 
    width: 100%;
    max-width: 500px;
    padding: 20px; 
}

.profile-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform-style: preserve-3d;
    will-change: transform;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.main-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.username {
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.username-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 3px;
    vertical-align: middle;
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.badge-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 5px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-group img {
    height: 23px;
    width: auto;
}

.bio {
    font-weight: 400;
    font-size: 0.45rem;
    margin-top: 8px;
    color: #ccc;
    letter-spacing: 1px;
    line-height: 2;
    white-space: nowrap;
}

.join-date {
    font-size: 0.4rem;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.dummy-btn {
    display: inline-block;
    cursor: pointer; 
}

.glow-icon {
    display: inline-block; 
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
    transition: all 0.3s ease; 
}

.glow-icon:hover {
    transform: scale(1.2); 
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}

.bottom-stats {
    display: flex;
    gap: 10px;
    font-size: 0.45rem;
    color: #fff;
    font-weight: 400;
    align-items: center;
    letter-spacing: 1px;
}

.divider {
    color: #444;
}

.music-player {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 75%;
    margin-top: 10px;
}

.music-icon-box {
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    overflow: hidden; 
}

.music-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-details {
    flex-grow: 1;
}

.music-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.music-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time {
    font-size: 0.4rem;
    color: #aaa;
    font-weight: 400;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 3px;
    background-color: #333;
    cursor: pointer;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.music-controls {
    display: flex;
    gap: 15px;
    margin-left: 10px;
}

.music-controls i {
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    transition: 0.2s;
}

.music-controls i:hover { color: #fff; }

@media (max-width: 500px) {
    .username { font-size: 1.5rem; }
    .main-avatar { width: 70px; height: 70px; }
    .bio { font-size: 0.9rem; }
    
    .profile-container { gap: 20px; }
    
    .social-links {
        gap: 12px;
        flex-wrap: wrap; 
        justify-content: center;
    }
    .glow-icon { font-size: 2.3rem; }
    
    .music-player { flex-direction: column; align-items: stretch; text-align: center; }
    .music-icon-box { margin: 0 auto; }
    .music-controls { justify-content: center; margin-left: 0; margin-top: 5px; }
    
    .bottom-stats { font-size: 0.8rem; }
}
