:root {
    --bg-color: #050505;
    --card-bg: rgba(16, 17, 22, 0.72);
    --card-border: #242730;
    --text-primary: #ffffff;
    --text-secondary: #9094a0;
    --accent-discord: #5865F2;
    --accent-steam: #66c0f4;
    --accent-telegram: #2AABEE;
    --card-width: 340px;
}

/* Animated angle for rotating gradients */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* ============================
   Splash / Click to enter
   ============================ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-inner {
    text-align: center;
    animation: floaty 3.5s ease-in-out infinite;
}

.splash-text {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
    animation: pulseText 2.2s ease-in-out infinite;
}

.splash-sub {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

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

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ============================
   Custom Cursor
   ============================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ============================
   Background
   ============================ */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75)),
        rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.container {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* ============================
   Card
   ============================ */
.card-container {
    position: relative;
    transform-style: preserve-3d;
    opacity: 0;
}

body.entered .card-container {
    animation: cardEntrance 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card {
    width: var(--card-width);
    position: relative;
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--card-border);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateZ(40px);
    overflow: hidden;
}

/* Holographic Shine */
.card-shine {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--shine-x, -200px) var(--shine-y, -200px),
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.03) 30%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.profile {
    padding: 38px 30px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

/* ============================
   Avatar
   ============================ */
.avatar-wrapper {
    position: relative;
    margin-bottom: 18px;
    transform: translateZ(20px);
    cursor: none;
}

.avatar {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 3px solid #0d0e12;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: none;
}

@keyframes avatarBounce {
    0%   { transform: scale(1) rotate(0deg); }
    20%  { transform: scale(0.85) rotate(-5deg); }
    50%  { transform: scale(1.15) rotate(3deg); }
    70%  { transform: scale(0.95) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.avatar.clicked {
    animation: avatarBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    background-color: #23a559;
    border: 4px solid #0d0e12;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(35, 165, 89, 0.7);
}

/* ============================
   Typography
   ============================ */
.username {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.25);
    transform: translateZ(25px);
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 26px;
    font-weight: 500;
    transform: translateZ(20px);
}

/* ============================
   Links
   ============================ */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    transform: translateZ(15px);
    transform-style: preserve-3d;
}

.link-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: none;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Left accent bar slides in on hover */
.link-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: currentColor;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.link-btn i {
    font-size: 20px;
    transition: color 0.2s ease;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.link-btn:hover::before {
    transform: scaleY(1);
}

.link-btn:active {
    transform: translateY(0);
}

/* Per-button accent colors (icon + left bar via currentColor) */
.discord-btn:hover  { color: var(--accent-discord); }
.telegram-btn:hover { color: var(--accent-telegram); }
.steam-btn:hover    { color: var(--accent-steam); }

.discord-btn:hover i  { color: var(--accent-discord); }
.telegram-btn:hover i { color: var(--accent-telegram); }
.steam-btn:hover i    { color: var(--accent-steam); }

.discord-btn.copied {
    border-color: #23a559;
    color: var(--text-primary);
}

.discord-btn.copied i {
    color: #23a559;
}

.discord-btn.copied::before {
    background: #23a559;
    transform: scaleY(1);
}

/* ============================
   Footer / Views
   ============================ */
.card-footer {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    transform: translateZ(12px);
}

.views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.views i {
    font-size: 11px;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .card {
        width: 100%;
        max-width: 340px;
    }
    .splash-text { font-size: 28px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .splash-inner { animation: none; }
}
