:root {
    --bg-color: #050004;
    --accent: #ff2d8f;
    --accent-bright: #ff7ac0;
    --accent-soft: #ff9ecb;
    --accent-deep: #b81165;
    --glass-bg: rgba(255, 45, 143, 0.06);
    --glass-border: rgba(255, 122, 192, 0.18);
    --tooltip-bg: #1a0512;
    --text-primary: #ffffff;
    --text-secondary: #e7c3d7;
    --text-muted: rgba(255, 200, 224, 0.6);
    --font-primary: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --status-online: #43b581;
    --status-idle: #faa61a;
    --status-dnd: #f04747;
    --status-offline: #747f8d;
}

body, html {
    margin: 0; padding: 0; height: 100%;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 12%, rgba(255, 45, 143, 0.20), transparent 55%),
        radial-gradient(circle at 85% 90%, rgba(184, 17, 101, 0.18), transparent 50%),
        linear-gradient(160deg, #12000a 0%, #000000 65%);
    overflow: hidden;
    font-family: var(--font-mono);
    color: var(--text-primary);
    cursor: crosshair;
}

/* Visible Focus States */
*:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 4px;
    border-radius: 4px;
}
.profile-link:focus-visible {
    background: rgba(255, 45, 143, 0.18);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 45, 143, 0.4);
    border-color: rgba(255, 122, 192, 0.5);
}

canvas { display: block; position: absolute; top: 0; left: 0; z-index: 1; }
.content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    pointer-events: none; transition: opacity 0.5s ease-out;
}
.title {
    font-family: var(--font-primary); font-weight: 900; font-size: 6rem; margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-deep));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: text-jitter 4s infinite;
}
.subtitle { font-family: var(--font-primary); letter-spacing: 6px; font-size: 2rem; margin-top: 0; margin-bottom: 40px; color: var(--accent-soft); }
.enter-text { font-family: var(--font-mono); font-size: 1.5rem; animation: pulse 2s infinite ease-in-out; color: var(--text-secondary); }

.profile-card {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 24px;
    width: 90%; max-width: 400px; min-height: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 45, 143, 0.12); z-index: 5; opacity: 0; pointer-events: none;
    display: flex; flex-direction: column; align-items: center;
}
.profile-card.visible { pointer-events: auto; animation: card-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.profile-banner { width: 100%; height: 120px; background-color: rgba(184, 17, 101, 0.25); background-image: linear-gradient(135deg, #ff2d8f, #b81165); background-size: cover; background-position: center; border-top-left-radius: 23px; border-top-right-radius: 23px; }
.profile-content { padding: 0 30px 30px; margin-top: -60px; display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box; }
.avatar-container { position: relative; margin-bottom: 15px; display: inline-block; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255, 122, 192, 0.45); object-fit: cover; box-shadow: 0 0 20px rgba(255, 45, 143, 0.35); display: block; }

.status-indicator { position: absolute; bottom: 4px; right: 4px; z-index: 2; display: flex; align-items: center; justify-content: center; color: var(--status-offline); transition: color 0.3s; }
.status-indicator.online { color: var(--status-online); }
.status-indicator.idle { color: var(--status-idle); }
.status-indicator.dnd { color: var(--status-dnd); }
.status-indicator.offline { color: var(--status-offline); }

.thought-bubble {
    position: absolute; top: 15px; left: calc(100% + 15px);
    background: rgba(26, 5, 18, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 122, 192, 0.15); padding: 10px 16px; border-radius: 18px;
    color: #f6d9e8; font-family: var(--font-primary); font-size: 0.85rem; font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); display: none; z-index: 3;
    animation: float-bubble 3s ease-in-out infinite; max-width: 220px; width: max-content;
    word-wrap: break-word; text-align: left; line-height: 1.4;
}
.thought-bubble.visible { display: block; }
.thought-bubble::before { content: ''; position: absolute; top: 16px; left: -12px; width: 8px; height: 8px; background: rgba(26, 5, 18, 0.95); backdrop-filter: blur(12px); border-radius: 50%; border: 1px solid rgba(255, 122, 192, 0.15); }
.thought-bubble::after { content: ''; position: absolute; top: 26px; left: -22px; width: 5px; height: 5px; background: rgba(26, 5, 18, 0.95); backdrop-filter: blur(12px); border-radius: 50%; border: 1px solid rgba(255, 122, 192, 0.15); }

.profile-name { font-family: var(--font-primary); font-size: 1.8rem; font-weight: 900; color: var(--text-primary); margin: 0; letter-spacing: 2px; }
.name-container { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }

.profile-handle { font-family: var(--font-primary); font-weight: 600; font-size: 0.9rem; color: var(--text-muted); margin-top: -10px; margin-bottom: 15px; text-align: center; letter-spacing: 0.5px; cursor: pointer; transition: color 0.2s;}
.profile-handle:hover { color: var(--accent-bright); }
.profile-bio { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-secondary); text-align: center; margin: 0 0 30px 0; max-width: 92%; line-height: 1.5; }

.commission-btn {
    display: inline-block; margin-top: 25px; padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border: 1px solid rgba(255, 122, 192, 0.35); border-radius: 12px;
    color: var(--text-primary); text-decoration: none; font-family: var(--font-primary); font-size: 0.95rem; font-weight: 600;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(255, 45, 143, 0.3);
}
.commission-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 45, 143, 0.5); filter: brightness(1.08); }

.links-container { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.profile-link {
    position: relative; display: flex; justify-content: center; align-items: center;
    width: 44px; height: 44px; text-decoration: none; color: var(--text-primary);
    background: rgba(255, 45, 143, 0.06); border: 1px solid rgba(255, 122, 192, 0.18); border-radius: 50%;
    transition: all 0.3s ease; box-sizing: border-box;
}
.profile-link:hover {
    background: rgba(255, 45, 143, 0.2); transform: translateY(-4px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 45, 143, 0.5); border-color: rgba(255, 122, 192, 0.6);
    color: var(--accent-soft);
}

.audio-dock {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(18, 3, 12, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 122, 192, 0.22); border-radius: 50px; padding: 8px 16px 8px 12px;
    display: flex; align-items: center; gap: 15px; z-index: 10; opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.3s ease; pointer-events: none; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.audio-dock.visible { opacity: 1; pointer-events: auto; }
.track-info { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.track-name { font-family: var(--font-primary); font-size: 0.85rem; font-weight: 900; color: var(--text-primary); white-space: nowrap; }

.audio-controls { display: flex; align-items: center; gap: 8px; }
.mute-btn { background: none; border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px; transition: transform 0.2s, opacity 0.2s; opacity: 0.75; }
.mute-btn:hover, .mute-btn:focus-visible { transform: scale(1.1); opacity: 1; }

.volume-slider { width: 60px; height: 4px; -webkit-appearance: none; appearance: none; background: rgba(255, 122, 192, 0.25); border-radius: 4px; outline: none; cursor: pointer; transition: background 0.3s; }
.volume-slider:hover { background: rgba(255, 122, 192, 0.45); }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-bright); cursor: pointer; }
.volume-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-bright); cursor: pointer; border: none;}

/* JS Tooltip to prevent edge clipping */
.dynamic-tooltip {
    position: fixed; background: var(--tooltip-bg); color: var(--text-primary); padding: 6px 10px; border-radius: 8px;
    font-size: 0.75rem; font-family: var(--font-primary); font-weight: 600; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 122, 192, 0.2);
    z-index: 1000; pointer-events: none; transform: translate(-50%, -100%); margin-top: -10px;
}
.dynamic-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border-width: 6px; border-style: solid; border-color: var(--tooltip-bg) transparent transparent transparent;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }
@keyframes text-jitter {
    0%, 93% { transform: translate(0, 0); opacity: 1; }
    94% { transform: translate(-5px, 0); opacity: 0.8; }
    95% { transform: translate(5px, 0); opacity: 0.9; }
    96% { transform: translate(-2px, 0); opacity: 1; }
    97%, 100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes card-enter { from { opacity: 0; transform: translate(-50%, -50%) scale(0.96) translateY(15px); } to { opacity: 1; transform: translate(-50%, -50%) scale(1) translateY(0); } }
@keyframes float-bubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.copy-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--text-primary); padding: 8px 20px; border-radius: 8px;
    font-family: var(--font-primary); font-size: 0.85rem; font-weight: 600; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 100; pointer-events: none; box-shadow: 0 4px 15px rgba(255, 45, 143, 0.4);
}
.copy-toast.visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
    .title { font-size: 4rem; }
    .subtitle { font-size: 1.2rem; }
    .enter-text { font-size: 1.2rem; }
    .profile-card { max-width: 340px; min-height: auto; }
    .profile-banner { height: 90px; }
    .profile-avatar { width: 100px; height: 100px; }
    .profile-content { margin-top: -50px; padding: 0 20px 20px; }
    .profile-name { font-size: 1.4rem; }
    .thought-bubble { max-width: 150px; font-size: 0.75rem; }
    .thought-bubble::before, .thought-bubble::after { display: none; }
    .commission-btn { padding: 10px 24px; font-size: 0.85rem; }
}
