* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minecraft', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
}

/* ─── Enter overlay ─── */
.enter-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}
.enter-overlay.fade-out { opacity: 0; pointer-events: none; }

.enter-title {
    font-family: 'Minecraft', monospace;
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}
.enter-subtitle {
    font-family: 'Minecraft', monospace;
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    animation: blink-slow 1.5s ease-in-out infinite;
    text-align: center;
}

@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.8; transform:scale(1.02); }
}
@keyframes blink-slow {
    0%,100% { opacity:.6; }
    50%      { opacity:1; }
}

/* ─── Background video ─── */
.background-gif {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.background-gif video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Main card ─── */
.glass-card {
    width: 560px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    padding: 28px 28px 20px;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ─── Card layout: avatar left, info right ─── */
.card-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* ─── Avatar ─── */
.pfp-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    outline: 2px solid rgba(255,255,255,0.2);
    transition: outline-color 0.3s ease, box-shadow 0.3s ease;
}
.pfp-container:hover {
    outline-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 18px rgba(255,255,255,0.25);
}
.pfp-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ─── Status indicator (avatar badge) ─── */
.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: rgba(10,10,10,0.9);
    border-radius: 50%;
    border: 3px solid rgba(10,10,10,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #747f8d;
    transition: background 0.3s ease;
    position: relative;
}
.status-indicator.online .status-dot  { background: #23a559; }
.status-indicator.idle .status-dot    { background: #f0b232; }
.status-indicator.dnd .status-dot     { background: #f23f43; }
.status-indicator.offline .status-dot { background: #80848e; }

/* DND bar */
.status-indicator.dnd .status-dot::after {
    content: '';
    position: absolute;
    width: 7px; height: 2px;
    background: rgba(10,10,10,0.9);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 2px;
}
/* Offline ring */
.status-indicator.offline .status-dot::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    border: 2px solid rgba(10,10,10,0.9);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}

/* ─── Text content (right column) ─── */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: white;
    flex: 1;
    min-width: 0;
}

#typewriter {
    font-family: 'Minecraft', monospace;
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 1px;
}
#typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%,50% { opacity:1; }
    51%,100% { opacity:0; }
}

/* ─── Discord row (username + custom status) ─── */
.discord-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}
.discord-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}
.discord-status-text {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Social buttons ─── */
.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: box-shadow 0.25s ease, transform 0.15s ease;
    border: 1.5px solid;
}
.social-btn:hover { transform: translateY(-2px); }

.social-btn.discord {
    color: #fff;
    border-color: #5865f2;
    box-shadow: 0 0 12px rgba(88,101,242,0.4);
}
.social-btn.discord:hover { box-shadow: 0 0 22px rgba(88,101,242,0.8); }

.social-btn.roblox {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.social-btn.roblox:hover { box-shadow: 0 0 22px rgba(255,255,255,0.6); }

.social-btn.github {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 8px rgba(255,255,255,0.05);
}
.social-btn.github:hover { box-shadow: 0 0 22px rgba(200,200,200,0.5); }

.social-btn.steam {
    color: #fff;
    border-color: #6f44a7;
    box-shadow: 0 0 12px rgba(111,68,167,0.4);
}
.social-btn.steam:hover { box-shadow: 0 0 22px rgba(111,68,167,0.8); }

/* Roblox SVG icon sizing */
.roblox-icon {
    width: 18px;
    height: 18px;
}

/* ─── View counter ─── */
.view-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    font-family: 'Minecraft', monospace;
}
.view-counter i { font-size: 13px; }

/* ─── Activity modal ─── */
.activity-modal {
    width: 300px;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 240px));
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.activity-header {
    background: rgba(88,101,242,0.25);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
    font-size: 13px;
    font-weight: bold;
    user-select: none;
}
.activity-header i { font-size: 16px; }

.activity-content {
    padding: 14px 16px;
    color: white;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.activity-item:last-child { margin-bottom: 0; }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-icon i { font-size: 16px; color: rgba(255,255,255,0.5); }

.activity-details { flex: 1; min-width: 0; }
.activity-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-state {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-time { font-size: 10px; color: rgba(255,255,255,0.4); }

.no-activity {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    text-align: center;
    padding: 8px 0;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.status-text .status-dot { width: 8px; height: 8px; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .glass-card {
        width: 92%;
        padding: 20px;
    }
    .card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .discord-row { justify-content: center; }
    .social-buttons { justify-content: center; }
    .view-counter { justify-content: center; }

    .activity-modal {
        width: 92%;
        position: relative;
        transform: none;
        top: auto; left: auto;
        margin: 16px auto 0;
    }
}