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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

.background {
    position: fixed;
    inset: 0;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Enter Screen */
.enter-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    transition: opacity 0.6s ease;
}

.enter-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.enter-btn {
    padding: 16px 32px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.7s ease;
}

.main-content.hidden {
    display: none;
}

.main-content.show {
    animation: fadeInUp 0.7s ease forwards;
}

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

/* Card */
.card {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Avatar */
.avatar-container {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 0 auto 24px;
}

.avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.5);
}

.status-indicator.online { background-color: #22c55e; }
.status-indicator.idle { background-color: #eab308; }
.status-indicator.dnd { background-color: #ef4444; }
.status-indicator.offline { background-color: #6b7280; }

/* Name & Description */
.name {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.description {
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* Activity */
.activity {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.activity.hidden {
    display: none;
}

.activity-label {
    color: #22d3ee;
}

.activity-details {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Links */
.links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.02);
}

.link-btn .icon {
    width: 20px;
    height: 20px;
}

/* Countdown */
.countdown {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.countdown.hidden {
    display: none;
}

.countdown span {
    font-size: 8rem;
    font-weight: bold;
    color: #ef4444;
    text-shadow: 0 0 20px red, 0 0 40px red;
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Explosion */
.explosion {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: white;
    animation: explode 3s ease-in-out forwards;
}

.explosion.hidden {
    display: none;
}

@keyframes explode {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    20% {
        opacity: 1;
        background: white;
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        background: orange;
    }
    100% {
        opacity: 0;
        transform: scale(2);
        background: black;
    }
}

/* Visit Counter */
.visits {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 0.9rem;
    color: white;
}

.footer a {
    color: #22d3ee;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
