@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

body {
    background: #080810;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
    color: #fff;
}

#bg-image {
    position: fixed; inset: 0; z-index: 0;
    background: url('background.jpg') center/cover no-repeat;
    filter: brightness(0.35) saturate(0.8);
    animation: bgBreath 10s ease-in-out infinite alternate;
}
@keyframes bgBreath {
    0%   { transform: scale(1);    filter: brightness(0.32) saturate(0.8); }
    100% { transform: scale(1.04); filter: brightness(0.38) saturate(0.9); }
}

#splash {
    position: fixed; inset: 0;
    background: #080810;
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
#splash.fade-out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.splash-ring {
    width: 56px; height: 56px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.06);
    border-top-color: rgba(255,255,255,0.6);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.splash-content p {
    font-size: 11px; letter-spacing: 6px; text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    animation: blink 2s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:0.2} 50%{opacity:0.9} }

#snow-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.container {
    position: relative; z-index: 2;
    width: 100%;
    max-width: 860px;
    padding: 20px;
    animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1);
}
@keyframes fadeUp { from{opacity:0;transform:translateY(36px)} to{opacity:1;transform:none} }

.profile-card {
    background: rgba(11,11,19,0.6);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 40px 100px rgba(0,0,0,0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s;
    animation: cardIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
@keyframes cardIn {
    from { opacity:0; transform:translateY(20px) scale(0.97); }
    to   { opacity:1; transform:none; }
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 50px 120px rgba(0,0,0,0.9);
}

.banner-wrap { position: relative; height: 260px; overflow: hidden; background: #0d0d18; flex-shrink: 0; }
.banner-wrap img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.8s; filter:brightness(0.85); }
.profile-card:hover .banner-wrap img { transform: scale(1.04); }
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(11,11,19,0.5) 70%, rgba(11,11,19,1) 100%);
}
.about-btn {
    position: absolute; top: 16px; right: 16px; z-index: 4;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 20px;
    color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600;
    letter-spacing: 1px; padding: 6px 18px; cursor: pointer;
    text-transform: uppercase; transition: all 0.25s; font-family: inherit;
}
.about-btn:hover { background: rgba(255,255,255,0.12); color:#fff; border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }

.about-panel {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.35s;
    opacity: 0; flex-shrink: 0;
}
.about-panel.open { max-height: 200px; opacity: 1; }
.about-inner {
    padding: 18px 28px 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.about-title {
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 10px;
}
.about-text { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.about-text strong { color: rgba(255,255,255,0.9); }
.about-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.about-tag {
    font-size: 11px; font-weight: 600; padding: 3px 14px; border-radius: 20px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.45);
}

.card-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

.card-left {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

.card-divider {
    width: 1px; flex-shrink: 0;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.07), transparent);
    margin: 20px 0;
}

.card-right {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px 28px;
}

.avatar-section { display: flex; align-items: center; padding: 14px 24px 10px; gap: 16px; }
.avatar-wrap { position: relative; flex-shrink: 0; }

.avatar-wrap::before {
    content: '';
    position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(rgba(120,80,255,0.7), rgba(0,180,255,0.7), rgba(255,60,180,0.7), rgba(120,80,255,0.7));
    animation: rotatRing 3s linear infinite;
    z-index: -1;
    filter: blur(calc(2px + var(--pulse-blur, 0px)));
    transform: scale(calc(1 + var(--pulse-scale, 0)));
    opacity: calc(0.85 + var(--pulse-opacity, 0));
    transition: transform 0.06s linear, filter 0.06s linear, opacity 0.06s linear;
    will-change: transform, filter, opacity;
}
.avatar-wrap::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: rgba(11,11,19,0.95); z-index: -1; }
@keyframes rotatRing { to { transform: rotate(360deg); } }
.avatar-wrap img {
    width: 84px; height: 84px; border-radius: 50%;
    background: #1a1a2e; object-fit: cover; display: block;
    position: relative; z-index: 1; transition: transform 0.3s;
}
.avatar-wrap img:hover { transform: scale(1.06); }
.status-ring {
    position: absolute; bottom: 2px; right: 2px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(11,11,19,1); border: 3px solid rgba(11,11,19,1);
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; transition: background 0.4s; }
.status-dot.online  { background: #23d160; box-shadow: 0 0 8px rgba(35,209,96,0.8); }
.status-dot.idle    { background: #ffdd57; box-shadow: 0 0 8px rgba(255,221,87,0.8); }
.status-dot.dnd     { background: #ff3860; box-shadow: 0 0 8px rgba(255,56,96,0.8); }
.status-dot.offline { background: #4a4a5a; }

.user-info { flex: 1; min-width: 0; }
.user-name {
    font-size: 26px; font-weight: 800; color: #fff;
    letter-spacing: -0.5px; margin-bottom: 4px; line-height: 1;
    animation: glitchIdle 8s ease-in-out infinite;
}
@keyframes glitchIdle {
    0%,90%,100% { text-shadow: none; transform: none; }
    92% { text-shadow: -2px 0 #ff3860, 2px 0 #00b4ff; transform: skewX(-1deg); }
    94% { text-shadow: 2px 0 #ff3860, -2px 0 #00b4ff; transform: skewX(1deg); }
    96% { text-shadow: none; transform: none; }
}
.typing-row { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; height: 20px; }
.typing-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); }
.typing-cursor { font-size: 15px; color: rgba(255,255,255,0.5); animation: blink 1s step-end infinite; }
.user-tag { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; flex-wrap: wrap; }
.status-pill {
    font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
    padding: 3px 12px; border-radius: 20px; text-transform: uppercase;
}
.status-pill.online  { color: #23d160; background: rgba(35,209,96,0.1);  border: 1px solid rgba(35,209,96,0.25); }
.status-pill.idle    { color: #ffdd57; background: rgba(255,221,87,0.1);  border: 1px solid rgba(255,221,87,0.25); }
.status-pill.dnd     { color: #ff3860; background: rgba(255,56,96,0.1);   border: 1px solid rgba(255,56,96,0.25); }
.status-pill.offline { color: #6b6b80; background: rgba(107,107,128,0.1); border: 1px solid rgba(107,107,128,0.2); }
.dev-pill {
    font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
    padding: 3px 12px; border-radius: 20px; text-transform: uppercase;
    color: #c084fc; background: rgba(192,132,252,0.1); border: 1px solid rgba(192,132,252,0.25);
    animation: devPulse 3s ease-in-out infinite;
}
@keyframes devPulse { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 12px rgba(192,132,252,0.25)} }

.user-handle {
    font-size: 13px; color: rgba(255,255,255,0.25);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.user-handle:hover { color: rgba(255,255,255,0.6); }
.user-handle.copied::after {
    content: 'Copied!';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #23d160;
    background: rgba(35,209,96,0.1);
    border: 1px solid rgba(35,209,96,0.3);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    animation: copyFade 1.4s ease forwards;
    pointer-events: none;
}
@keyframes copyFade {
    0%   { opacity: 0; transform: translateY(-50%) translateX(-4px); }
    15%  { opacity: 1; transform: translateY(-50%) translateX(0); }
    80%  { opacity: 1; transform: translateY(-50%) translateX(0); }
    100% { opacity: 0; transform: translateY(-50%) translateX(4px); }
}

.meta-row {
    display: flex; align-items: center; gap: 14px;
    padding: 2px 24px 12px; flex-wrap: wrap;
}
.location-row { display: flex; align-items: center; gap: 5px; }
.location-icon {
    width: 14px; height: 14px; color: #fff; flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.7));
    animation: locPulse 2.5s ease-in-out infinite;
}
@keyframes locPulse { 0%,100%{filter:drop-shadow(0 0 3px rgba(255,255,255,0.5))} 50%{filter:drop-shadow(0 0 8px rgba(255,255,255,0.9))} }
.location-text { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); }
.clock-row { display: flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,0.3); }
.clock-row svg { opacity: 0.35; }
#clockText { color: rgba(255,255,255,0.6); font-weight: 600; font-variant-numeric: tabular-nums; }
.views-row { display: flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,0.25); }
.views-row svg { opacity: 0.35; }
#viewCount { color: rgba(255,255,255,0.6); font-weight: 700; }

.social-row { display: flex; align-items: center; gap: 10px; padding: 0 24px 14px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.social-btn:hover { transform: translateY(-3px) scale(1.1); color: #fff; }
.social-btn.discord:hover { background: rgba(88,101,242,0.2); border-color: rgba(88,101,242,0.4); box-shadow: 0 4px 20px rgba(88,101,242,0.3); }
.social-btn.github:hover  { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.social-btn.steam:hover   { background: rgba(102,192,244,0.15); border-color: rgba(102,192,244,0.3); }
.social-btn.youtube:hover { background: rgba(255,0,0,0.15); border-color: rgba(255,0,0,0.3); box-shadow: 0 4px 20px rgba(255,0,0,0.2); }

.discord-btn-wrap { padding: 0 24px 4px; display: flex; justify-content: center; }
.discord-round-btn {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    box-shadow: 0 6px 28px rgba(88,101,242,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.discord-round-btn:hover { transform: scale(1.12) translateY(-3px); box-shadow: 0 12px 44px rgba(88,101,242,0.6); }
.discord-round-btn:active { transform: scale(0.93); }

.divider {
    margin: 0 24px 14px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.game-card {
    padding: 14px 16px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07); border-radius: 18px;
    display: flex; align-items: center; gap: 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.3s;
}
.game-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); transform: translateX(3px); }
.game-icon-wrap {
    width: 54px; height: 54px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.game-icon { width:100%; height:100%; object-fit:cover; display:none; }
.game-icon-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.2); }
.game-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.game-label { display:flex; align-items:center; gap:6px; font-size:10px; font-weight:700; letter-spacing:1.5px; color:rgba(255,255,255,0.3); text-transform:uppercase; }
.game-live-dot { width:7px; height:7px; border-radius:50%; background:#23d160; box-shadow:0 0 6px rgba(35,209,96,0.8); animation:livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:0.4} }
.game-name { font-size:16px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-state { font-size:12px; color:rgba(255,255,255,0.4); }

.spotify-card {
    padding: 14px 16px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07); border-radius: 18px;
    display: flex; align-items: center; gap: 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.3s;
}
.spotify-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(29,185,84,0.2); transform: translateX(3px); }
.sp-cover {
    width: 54px; height: 54px; border-radius: 12px; object-fit:cover; flex-shrink:0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6); transition: transform 0.3s, box-shadow 0.3s;
}
.spotify-card:hover .sp-cover { transform: scale(1.06) rotate(2deg); box-shadow: 0 6px 28px rgba(29,185,84,0.2); }
.sp-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.sp-label { display:flex; align-items:center; gap:5px; font-size:10px; font-weight:700; letter-spacing:1.5px; color:#1DB954; text-transform:uppercase; }
.sp-label svg { fill:#1DB954; flex-shrink:0; }
.sp-song { font-size:16px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sp-artist { font-size:12px; color:rgba(255,255,255,0.4); }
.spotify-card .bars .bar { background: linear-gradient(to top, #1DB954, #1ed760); }

.bars { display:flex; align-items:flex-end; gap:3px; height:28px; flex-shrink:0; }
.bar { width:5px; border-radius:3px; background:linear-gradient(to top,rgba(255,255,255,0.8),rgba(255,255,255,0.3)); animation:barPulse 1.1s ease-in-out infinite alternate; }
.bars .bar:nth-child(1){height:14px;animation-delay:0s}
.bars .bar:nth-child(2){height:22px;animation-delay:.15s}
.bars .bar:nth-child(3){height:28px;animation-delay:.3s}
.bars .bar:nth-child(4){height:18px;animation-delay:.45s}
.bar.paused{animation:none;height:5px!important;opacity:0.1}
@keyframes barPulse{0%{transform:scaleY(0.4)}100%{transform:scaleY(1)}}

.music-player {
    position:fixed; bottom:24px; right:24px; z-index:100;
    background:rgba(9,9,17,0.97); backdrop-filter:blur(28px);
    border-radius:18px; border:1px solid rgba(255,255,255,0.07);
    box-shadow:0 20px 60px rgba(0,0,0,0.9);
    padding:14px 18px; display:flex; flex-direction:column; gap:10px; min-width:220px;
    animation:slideUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.4s both;
    transition:border-color 0.3s, transform 0.3s;
}
.music-player:hover { border-color:rgba(255,255,255,0.12); transform:translateY(-2px); }
@keyframes slideUp{from{opacity:0;transform:translateY(28px) scale(0.95)}to{opacity:1;transform:none}}
.mp-info{display:flex;flex-direction:column;gap:2px}
.mp-title{font-size:13px;font-weight:700;color:#fff}
.mp-artist{font-size:11px;color:rgba(255,255,255,0.25)}
.mp-controls{display:flex;align-items:center;gap:10px}
.mp-btn{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.5);cursor:pointer;transition:all 0.2s;flex-shrink:0}
.mp-btn:hover{background:rgba(255,255,255,0.1);color:#fff;transform:scale(1.1)}
.mp-btn.active{color:#fff;background:rgba(255,255,255,0.09);border-color:rgba(255,255,255,0.15)}
.mp-controls input[type="range"]{-webkit-appearance:none;appearance:none;flex:1;height:3px;border-radius:3px;background:rgba(255,255,255,0.1);outline:none}
.mp-controls input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;cursor:pointer;box-shadow:0 0 8px rgba(255,255,255,0.3)}
.mini-bars{display:flex;align-items:flex-end;gap:2px;height:14px}
.mini-bars .bar{width:3px;border-radius:2px}
.mini-bars .bar:nth-child(1){height:8px;animation-delay:0s}
.mini-bars .bar:nth-child(2){height:12px;animation-delay:.15s}
.mini-bars .bar:nth-child(3){height:14px;animation-delay:.3s}
.mini-bars .bar:nth-child(4){height:9px;animation-delay:.45s}

*{cursor:none}
.cursor-dot{position:fixed;border-radius:50%;pointer-events:none;z-index:99999;background:#fff;box-shadow:0 0 6px rgba(255,255,255,0.7),0 0 16px rgba(255,255,255,0.2);transform:translate(-50%,-50%)}

@media (max-width: 700px) {
    body { align-items: flex-start; overflow-y: auto; overflow-x: hidden; padding: 12px 0 120px; }
    .container { max-width: 100%; padding: 10px; }
    .card-body { flex-direction: column; }
    .card-left { width: 100%; }
    .card-divider { width: auto; height: 1px; margin: 0; background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent); }
    .card-right { padding: 16px 20px; gap: 10px; }
    .banner-wrap { height: 160px; }
    .about-btn { font-size: 11px; padding: 5px 13px; top: 12px; right: 12px; }
    .avatar-wrap img { width: 72px; height: 72px; }
    .user-name { font-size: 22px; }
    .music-player { bottom:0; right:0; left:0; border-radius:16px 16px 0 0; min-width:unset; max-width:unset; flex-direction:row; align-items:center; gap:12px; padding:12px 20px 18px; }
    .mp-info { flex:1; min-width:0; }
    .mini-bars { display:none; }
    #snow-canvas { display:none; }
}