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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #000;
    color: #ccc;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-user-drag: none;
}

img, a, i {
    -webkit-user-drag: none;
}

::selection {
    background: rgba(255, 255, 255, 0.12);
}

/* ===== CURSOR DOT ===== */
.cursor-dot {
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.018) 0%, transparent 60%);
    will-change: transform;
}

/* ===== STAR FIELD CANVAS ===== */
#starsCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ===== CLOCK ===== */
.clock {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.45);
    animation: fadeIn 2.5s ease 1s both, clockPulse 4s ease-in-out 3.5s infinite;
}

@keyframes clockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* ===== MAIN CONTENT ===== */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px 100px;
    gap: 20px;
}

/* ===== NICKNAME ===== */
.nick {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.45), rgba(255,255,255,0.35));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    opacity: 0;
    animation: revealNick 2s ease 0.3s forwards, shimmer 8s ease-in-out 2.5s infinite;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.06));
}


.nick::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    animation: lineExpand 1.5s ease 1.5s forwards, linePulse 5s ease-in-out 4s infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes revealNick {
    0% {
        opacity: 0;
        letter-spacing: 20px;
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        letter-spacing: 8px;
        filter: blur(0);
    }
}

@keyframes lineExpand {
    to { width: 60px; }
}

@keyframes shimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -200% center; }
}

/* ===== BIO ===== */
.bio {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    text-transform: lowercase;
    margin-top: 4px;
    animation: fadeIn 2s ease 1.2s both;
}

/* ===== SOCIALS ===== */
.socials {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    animation: fadeIn 2s ease 1.6s both;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    transition: all 0.5s ease;
    position: relative;
    animation: breathe 6s ease-in-out infinite;
}

.social-icon:nth-child(2) { animation-delay: 0.8s; }
.social-icon:nth-child(3) { animation-delay: 1.6s; }
.social-icon:nth-child(4) { animation-delay: 2.4s; }

@keyframes breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px);
}

/* ===== MUSIC PLAYER ===== */
.player {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 20px;
    width: min(360px, calc(100vw - 40px));
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    animation: playerReveal 3s ease 2s forwards, playerBlur 2s ease 5s forwards;
}

@keyframes playerReveal {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes playerBlur {
    0% {
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    100% {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}

.player-track {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.player-title {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.player-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
}

.player-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.player-progress {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: width 0.3s linear;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.player-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 6px;
}

.player-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

.player-btn--play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.player-btn--play:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SHARED ANIMATION ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */

/* Touch devices — hide cursor glow */
@media (hover: none), (pointer: coarse) {
    .cursor-dot { display: none; }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .nick {
        font-size: clamp(22px, 4vw, 36px);
        letter-spacing: 10px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .nick {
        font-size: clamp(20px, 5vw, 32px);
        letter-spacing: 8px;
    }
    .bio {
        font-size: 13px;
        letter-spacing: 2px;
    }
    .clock {
        font-size: 12px;
        letter-spacing: 4px;
        top: 20px;
    }
    .socials {
        gap: 16px;
    }
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    .player {
        width: min(340px, calc(100vw - 32px));
        padding: 12px 16px;
        bottom: 20px;
    }
}

/* Mobile */
@media (max-width: 500px) {
    .nick {
        font-size: clamp(18px, 6vw, 28px);
        letter-spacing: 6px;
    }
    .bio {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .clock {
        font-size: 11px;
        letter-spacing: 3px;
        top: env(safe-area-inset-top, 14px);
    }
    .content {
        padding: 50px 16px 90px;
        gap: 14px;
    }
    .socials {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 240px;
    }
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .player {
        width: calc(100vw - 24px);
        bottom: 10px;
        border-radius: 12px;
        padding: 10px 14px;
    }
    .player-track {
        gap: 6px;
        margin-bottom: 6px;
    }
    .player-title { font-size: 12px; }
    .player-artist { font-size: 11px; }
    .player-bar { margin-bottom: 8px; }
    .player-btn--play {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    .player-controls {
        gap: 14px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .nick {
        font-size: 16px;
        letter-spacing: 4px;
    }
    .bio {
        font-size: 11px;
    }
    .content {
        padding: 44px 12px 80px;
        gap: 12px;
    }
    .socials {
        gap: 10px;
        max-width: 200px;
    }
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .player {
        padding: 8px 12px;
        bottom: 6px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .content {
        padding: 40px 20px 80px;
        gap: 10px;
        min-height: 100vh;
    }
    .clock {
        top: 6px;
        font-size: 10px;
    }
    .nick {
        font-size: clamp(16px, 3vh, 24px);
        letter-spacing: 6px;
    }
    .bio { font-size: 11px; }
    .player {
        bottom: 6px;
        padding: 8px 14px;
    }
    .socials { gap: 12px; }
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
