:root {
    --font-mono: 'Minecraftia', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Courier New', monospace;
    --font-pixel: 'Minecraftia', 'Courier New', monospace;
    --cursor-pointer: none;
    --discord-green: #22c55e;
}

@font-face {
    font-family: 'Minecraftia';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/Minecraftia-Regular.ttf') format('truetype');
}

* {
    cursor: none !important;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 1.6;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    font-family: var(--font-mono);
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.1);
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: 0.5px; line-height: 1.4; }
button, .button, input, select { font-size: 10px; }
.cjk { position: relative; top: -0.7em; }
small, .small-text { font-weight: 500; letter-spacing: 0.2px; }
input, textarea { font-size: 13px; font-weight: 500; letter-spacing: 0.2px; }

#bg-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.bg-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease-in-out; }

#overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
.click-text { font-family: var(--font-pixel); font-size: 20px; color: #fff; text-shadow: 0 0 20px #C4A484, 0 0 40px #4B0082; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1); } }

#tilt-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
}
#tilt-wrapper.show { opacity: 1; transform: none; animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.9) translateY(30px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 768px) {
    #tilt-wrapper { width: 650px; transform: scale(0.55); transform-origin: center center; padding: 0; }
    #tilt-wrapper.show { transform: scale(0.52) translateY(0); animation: popInMobile 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
    @keyframes popInMobile { 0% { opacity: 0; transform: scale(0.52) translateY(30px); } 100% { opacity: 1; transform: scale(0.52) translateY(0); } }
}

.glass-card { background: var(--glass-bg); background-image: var(--glass-glow); border: var(--glass-border); border-radius: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(12px); padding: 28px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); position: relative; transition: background 0.8s ease, border 0.8s ease, box-shadow 0.8s ease; }
.header-row { display: flex; align-items: center; gap: 25px; margin-bottom: 15px; }
.avatar-container { position: relative; width: 95px; height: 95px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.35); box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); position: relative; z-index: 1; }
.avatar-decoration { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 125%; height: 125%; z-index: 2; pointer-events: none; }
.status-badge { position: absolute; bottom: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background-color: #747f8d; border: 4px solid #1a1a1a; z-index: 3; display: flex; align-items: center; justify-content: center; }
.status-online { background-color: #23a559; }
.status-idle { background-color: #f0b232; }
.status-idle::after { content: ''; width: 12px; height: 12px; background: #1a1a1a; border-radius: 50%; position: absolute; top: 0px; left: -2px; }
.status-dnd { background-color: #f23f43; }
.status-dnd::after { content: ''; width: 12px; height: 4px; background: #1a1a1a; border-radius: 2px; }
.status-offline { background-color: #80848e; }
.status-offline::after { content: ''; width: 8px; height: 8px; background: #1a1a1a; border-radius: 50%; }

.user-info { display: flex; flex-direction: column; gap: 8px; }
.username { font-family: var(--font-pixel); font-size: 26px; display: flex; align-items: center; gap: 10px; transition: text-shadow 0.8s ease, filter 0.8s ease; font-weight: 600; }
.bio { font-size: 14px; color: var(--text-sub); font-weight: bold; letter-spacing: 0.5px; transition: text-shadow 0.8s ease; }
.join-date { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.discord-block { border-radius: 16px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; transition: background 0.8s ease, border 0.8s ease; }
.server-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #5865F2, #4752C4); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); flex-shrink: 0; position: relative; overflow: hidden; }
.server-icon img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.join-btn { background: var(--discord-green); color: white; border: none; font-family: var(--font-pixel); font-size: 15px; padding: 10px 20px; border-radius: 8px; text-decoration: none; transition: 0.2s; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4); flex-shrink: 0; cursor: var(--cursor-pointer) !important; }
.join-btn.disabled { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.5); box-shadow: none; pointer-events: none; cursor: default; }

.social-icons { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.social-icon { width: 45px; height: 45px; border-radius: 12px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--accent-main); font-size: 22px; text-decoration: none; transition: 0.3s, color 0.8s; border: 1px solid rgba(255,255,255,0.05); position: relative; cursor: var(--cursor-pointer) !important; }
.social-icon:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); color: #fff; z-index: 1; }
.social-icon svg { width: 24px; height: 24px; fill: currentColor; pointer-events: none; transition: 0.3s; }
.social-icon:hover svg { fill: #fff; }
.location { position: absolute; bottom: 20px; left: 25px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 6px; }

.music-player { padding: 15px 25px; border-radius: 20px; display: flex; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 45px; position: relative; }
.audio-visualizer { position: absolute; bottom: 100%; left: 5%; width: 90%; height: 45px; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; margin-bottom: 0px; z-index: 0; }
.v-bar { flex: 1; height: 2px; border-radius: 3px 3px 0 0; transition: height 0.05s ease-out, background 0.8s ease, box-shadow 0.8s ease; opacity: 0.9; transform-origin: bottom; }
.album-art { width: 55px; height: 55px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.5); position: relative; z-index: 1; flex-shrink: 0; }
.track-info { flex: 1; display: flex; flex-direction: column; gap: 4px; z-index: 1; min-width: 0; }
.track-name { font-family: var(--font-pixel); font-size: 12px; color: white; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: text-shadow 0.8s ease; }
.progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; margin-top: 2px; cursor: var(--cursor-pointer) !important; }
.progress-fill { height: 100%; width: 0%; background: #ffffff; box-shadow: 0 0 10px #ffffff; transition: width 0.1s linear; }
.time-info { display: flex; justify-content: space-between; font-size: 11px; font-family: var(--font-mono); color: rgba(255,255,255,0.85); }
.controls { display: flex; gap: 15px; font-size: 16px; color: #ffffff; justify-content: center; align-items: center; z-index: 1; flex-shrink: 0; }
.control-icon { transition: 0.2s; width: 20px; height: 20px; fill: #ffffff !important; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)); flex-shrink: 0; cursor: var(--cursor-pointer) !important; }
.control-icon:hover { transform: scale(1.2); filter: drop-shadow(0 0 10px #ffffff); }
#play { width: 26px; height: 26px; }
#loop { width: 18px; height: 18px; margin-right: 2px; }

#snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
#volume-slider { -webkit-appearance: none; appearance: none; width: 70px; height: 5px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; outline: none; cursor: var(--cursor-pointer) !important; }
#volume-slider::-webkit-slider-track { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; }
#volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; background: #ffffff !important; border-radius: 50%; box-shadow: 0 0 10px #ffffff, 0 0 12px var(--accent-main); transition: box-shadow 0.8s ease; cursor: var(--cursor-pointer) !important; }

.snowflake { position: absolute; top: -10px; color: #fff; font-size: 1em; font-family: Arial, sans-serif; text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); pointer-events: none; user-select: none; animation: snowfall linear infinite; opacity: 0; }
@keyframes snowfall { 0% { top: -10%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 110%; opacity: 0; } }
@keyframes sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(30px); } }
.snowflake.small { font-size: 0.6em; animation-duration: 8s; }
.snowflake.medium { font-size: 1em; animation-duration: 12s; }
.snowflake.large { font-size: 1.4em; animation-duration: 15s; }
.snowflake.sway { animation: snowfall linear infinite, sway 3s ease-in-out infinite; }

#custom-cursor { position: fixed; top: 0; left: 0; width: 38px; height: 38px; pointer-events: none; z-index: 9999999; display: none; will-change: transform; object-fit: contain; filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5)); }
.mouse-glow { position: fixed; width: 6px; height: 6px; background: #ffffff; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(1); transition: opacity 0.5s ease-out, transform 0.5s ease-out; z-index: 99999; }
.cursor { animation: blink 1s infinite; color: var(--accent-main); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


body.themes1 {
    --cursor-img: url('../themes/themes1/cursor.webp');
    --glass-bg: linear-gradient(to right, rgba(111, 78, 55, 0.55), rgba(48, 25, 52, 0.55));
    --glass-border: 1px solid rgba(210, 180, 140, 0.25);
    --glass-glow: linear-gradient(to right, rgba(139, 69, 19, 0.5), rgba(75, 0, 130, 0.6));
    --accent-main: #C4A484;
    --accent-sub: #9370DB;
    --text-sub: rgba(245, 235, 225, 0.85);
    --discord-green: #22c55e;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.4), 0 0 20px rgba(75, 0, 130, 0.3);
}
body.themes1 .discord-block { background: rgba(111, 78, 55, 0.25); border: 1px solid rgba(255,255,255,0.08); }
body.themes1 .mouse-glow { box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.8), 0 0 12px 6px rgba(255, 140, 0, 0.8), 0 0 20px 8px rgba(255, 140, 0, 0.4); }
body.themes1 .username { text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(196, 164, 132, 0.7), 0 0 24px rgba(139, 69, 19, 0.5), 0 0 32px rgba(75, 0, 130, 0.5); filter: drop-shadow(0 0 8px rgba(139, 69, 19, 0.6)); }
body.themes1 .bio, body.themes1 .track-name { text-shadow: 0 0 8px rgba(196, 164, 132, 0.5), 0 0 16px rgba(75, 0, 130, 0.4); }
body.themes1 .social-icon { text-shadow: 0 0 8px rgba(196, 164, 132, 0.4); }
body.themes1 .social-icon:hover { text-shadow: 0 0 10px rgba(196, 164, 132, 0.8), 0 0 20px rgba(75, 0, 130, 0.6); box-shadow: 0 0 15px var(--accent-main); }
body.themes1 .v-bar { background: linear-gradient(to top, var(--accent-main) 0%, rgba(255, 255, 255, 0.9) 100%); box-shadow: 0 -2px 10px rgba(196, 164, 132, 0.4); }

body.themes2 {
    --cursor-img: url('../themes/themes2/cursor.webp');
    --glass-bg: linear-gradient(to left, rgba(15, 23, 50, 0.65), rgba(65, 40, 120, 0.65));
    --glass-border: 1px solid rgba(130, 150, 255, 0.25);
    --glass-glow: linear-gradient(to left, rgba(20, 30, 70, 0.5), rgba(90, 60, 170, 0.6));
    --accent-main: #8ab4f8;
    --accent-sub: #d0b0ff;
    --text-sub: rgba(220, 230, 255, 0.85);
    --discord-green: #22c55e;
    text-shadow: 0 0 10px rgba(10, 20, 50, 0.4), 0 0 20px rgba(65, 40, 120, 0.3);
}
body.themes2 .discord-block { background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(130, 150, 255, 0.15); }
body.themes2 .mouse-glow { box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.9), 0 0 12px 6px rgba(100, 150, 255, 0.8), 0 0 20px 8px rgba(130, 90, 255, 0.5); }
body.themes2 .username { text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(100, 150, 255, 0.7), 0 0 24px rgba(130, 90, 255, 0.6), 0 0 32px rgba(130, 90, 255, 0.5); filter: drop-shadow(0 0 8px rgba(100, 150, 255, 0.6)); }
body.themes2 .bio, body.themes2 .track-name { text-shadow: 0 0 8px rgba(100, 150, 255, 0.5), 0 0 16px rgba(130, 90, 255, 0.4); }
body.themes2 .social-icon { text-shadow: 0 0 8px rgba(100, 150, 255, 0.4); }
body.themes2 .social-icon:hover { text-shadow: 0 0 10px rgba(100, 150, 255, 0.8), 0 0 20px rgba(130, 90, 255, 0.6); box-shadow: 0 0 15px var(--accent-main); }
body.themes2 .v-bar { background: linear-gradient(to top, var(--accent-sub) 0%, rgba(255, 255, 255, 0.9) 100%); box-shadow: 0 -2px 10px rgba(100, 150, 255, 0.5); }

body.themes3 {
    --cursor-img: url('../themes/themes3/cursor.webp');
    --glass-bg: linear-gradient(to bottom right, rgba(15, 15, 15, 0.8), rgba(0, 0, 0, 0.9));
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-glow: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(40, 40, 40, 0.6));
    --accent-main: #ffffff;
    --accent-sub: #888888;
    --text-sub: rgba(220, 220, 220, 0.85);
    --discord-green: #22c55e;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.15);
}
body.themes3 .discord-block { background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); }
body.themes3 .mouse-glow { box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.9), 0 0 12px 6px rgba(200, 200, 200, 0.6), 0 0 20px 8px rgba(100, 100, 100, 0.4); }
body.themes3 .username { text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.5), 0 0 24px rgba(200, 200, 200, 0.4); filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8)); }
body.themes3 .bio, body.themes3 .track-name { text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 16px rgba(200, 200, 200, 0.3); }
body.themes3 .social-icon { text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }
body.themes3 .social-icon:hover { text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.7); box-shadow: 0 0 15px var(--accent-main); color: #000; background: #fff; }
body.themes3 .v-bar { background: linear-gradient(to top, #ffffff 0%, rgba(150, 150, 150, 0.8) 100%); box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.6); }

body.themes4 {
    --cursor-img: url('../themes/themes4/cursor.webp');
    --glass-bg: linear-gradient(to right, rgba(25, 10, 45, 0.65), rgba(45, 15, 60, 0.65));
    --glass-border: 1px solid rgba(179, 157, 219, 0.25);
    --glass-glow: linear-gradient(to right, rgba(94, 53, 177, 0.5), rgba(216, 27, 96, 0.5));
    --accent-main: #5e35b1;
    --accent-sub: #d81b60;
    --text-sub: #b39ddb;
    --discord-green: #22c55e;
    text-shadow: 0 0 10px rgba(94, 53, 177, 0.4), 0 0 20px rgba(216, 27, 96, 0.3);
}
body.themes4 .discord-block { background: rgba(94, 53, 177, 0.25); border: 1px solid rgba(255,255,255,0.08); }
body.themes4 .mouse-glow { box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.8), 0 0 12px 6px rgba(216, 27, 96, 0.8), 0 0 20px 8px rgba(94, 53, 177, 0.4); }
body.themes4 .username { text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(179, 157, 219, 0.7), 0 0 24px rgba(94, 53, 177, 0.6), 0 0 32px rgba(216, 27, 96, 0.5); filter: drop-shadow(0 0 8px rgba(94, 53, 177, 0.6)); }
body.themes4 .bio, body.themes4 .track-name { text-shadow: 0 0 8px rgba(179, 157, 219, 0.5), 0 0 16px rgba(94, 53, 177, 0.4); }
body.themes4 .social-icon { text-shadow: 0 0 8px rgba(179, 157, 219, 0.4); }
body.themes4 .social-icon:hover { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(216, 27, 96, 0.6); box-shadow: 0 0 15px var(--accent-sub); }
body.themes4 .v-bar { background: linear-gradient(to top, var(--accent-main) 0%, var(--accent-sub) 70%, rgba(255, 255, 255, 0.9) 100%); box-shadow: 0 -2px 10px rgba(216, 27, 96, 0.5); }
