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

:root {
    --yellow: #FFD700;
    --yellow-glow: #FFC800;
    --yellow-light: #FFEB3B;
    --blue: #00BFFF;
    --dark: #0a0a0a;
    --darker: #050505;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.7);
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a05;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a0a05;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.5) saturate(1.2);
}

/* Entrance Screen */
.entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

#entranceWireframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Scan line effect */
.entrance-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

/* Vignette effect */
.entrance-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.entrance-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.entrance-logo {
    margin-bottom: 3rem;
}

.entrance-name {
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.entrance-prompt {
    animation: fadeInUp 1s ease 0.5s forwards, promptPulse 2s ease-in-out 1.5s infinite;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.click-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: textFlicker 4s ease-in-out infinite;
}

@keyframes textFlicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
    52% { opacity: 0.4; }
    54% { opacity: 0.8; }
}

.click-arrow {
    animation: bounce 1.5s ease-in-out infinite;
}

.click-arrow svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(12px) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* SVG Wireframe */
.wireframe-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 520px;
}

/* Card Wrapper for 3D effect */
.card-wrapper {
    perspective: 1000px;
}

/* Profile Card */
.profile-card {
    position: relative;
    overflow: hidden;
    background: rgba(20, 18, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 0.75rem;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.4s ease, border 0.4s ease;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.1),
        0 0 60px rgba(255, 215, 0, 0.05);
    animation: cardFadeIn 0.8s ease forwards;
    opacity: 0;
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.profile-card:hover {
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.2),
        0 0 80px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Picture */
.profile-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 0;
    object-fit: cover;
    border: 2px solid var(--yellow);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(0, 191, 255, 0.3);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Username */
.username {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3);
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Badges */
.badges {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.badge svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 6px currentColor);
}

.badge:hover {
    transform: scale(1.2);
}

.badge:hover svg {
    filter: drop-shadow(0 0 10px currentColor);
}

.badge.og {
    color: #a855f7;
}

/* Badge Tooltip */
.badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.badge:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Social Links */
.social-links {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-icon:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-6px) scale(1.1);
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.15);
}

.social-icon:active {
    transform: translateY(-2px) scale(0.95);
}

.social-icon .roblox-icon {
    width: 1.6rem;
    height: 1.6rem;
}

/* Discord Card */
.discord-card {
    background: rgba(20, 18, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.4s ease, border 0.4s ease;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.1),
        0 0 60px rgba(255, 215, 0, 0.05);
    animation: cardFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.discord-card:hover {
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.2),
        0 0 80px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.discord-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #747f8d;
    border: 3px solid rgba(20, 18, 10, 0.95);
    box-shadow: 0 0 8px currentColor;
}

.status-dot.online { background: #3ba55c; }
.status-dot.idle { background: #faa61a; }
.status-dot.dnd { background: #ed4245; }
.status-dot.offline { background: #747f8d; }

.discord-info {
    flex: 1;
}

.discord-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.discord-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.discord-status {
    font-size: 0.9rem;
    color: var(--white-muted);
    line-height: 1.4;
}

.discord-status span {
    color: rgba(255, 255, 255, 0.5);
}

.activity-art {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.activity-art.visible {
    display: block;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.footer a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: rgba(255, 215, 0, 0.5);
}

.footer img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 600px) {
    .username {
        font-size: 1.8rem;
    }

    .profile-pic {
        width: 90px;
        height: 90px;
    }

    .profile-glow {
        width: 110px;
        height: 110px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .discord-avatar {
        width: 45px;
        height: 45px;
    }

    .discord-name {
        font-size: 1rem;
    }
}
