* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    overflow: hidden;
    cursor: none;
}

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#intro {
    position: fixed;
    inset: 0;
    background: #2d2d2d;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    z-index: 1000;
    transition: opacity 0.4s ease-out;
}

#intro.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-text {
    color: white;
    font-size: 60px;
    letter-spacing: 5px;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.intro-text.hovered {
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff, 0 0 8px #ffffff;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid #6b7280;
    border-top: 3px solid #e5e7eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    color: #9ca3af;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 10000;
    background: rgba(255,255,255,0.03);
}

#intro:hover ~ #cursor,
#intro:hover #cursor {
    transform: translate(-50%, -50%) scale(1.35);
    border-color: #ffffff;
    background: rgba(255,255,255,0.1);
}

#bio:hover ~ #cursor {
    transform: translate(-50%, -50%) scale(1);
}

#bio {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    cursor: none;
}

#bio.show {
    display: flex;
    opacity: 1;
}

.center-card {
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    transition: transform .15s;
    width: 440px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}

.user-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-text {
    text-align: left;
    flex: 1;
}

.avatar {
    width: 70px;
    border-radius: 50%;
}

.nickname {
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

.subtitle {
    color: #ccc;
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.timezone {
    color: #aaa;
    font-size: 13px;
    margin-top: 4px;
}

.phrase {
    color: #ccc;
    margin-top: 10px;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.loc-icon {
    width: 14px;
    height: 14px;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    border: none;
    background: transparent;
    padding: 0;
}

.btn svg {
    width: 28px;
    height: 28px;
}

.btn:hover {
    transform: scale(1.2);
}

.buttons img.btn {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
}

#volume-btn {
    position: fixed;
    right: 15px;
    bottom: 15px;
    font-size: 18px;
    background: rgba(0, 0, 0, .6);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
    transition: 0.2s;
    display: none;
}

#volume-btn.visible {
    display: block;
}

#volume-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.05);
}

.copy-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 2000;
}

.copy-toast.show {
    opacity: 1;
}

.avatar-wrapper {
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, .8);
    background: #747f8d;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(35, 165, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}

.activity-block {
    background: rgba(32, 34, 37, 0.9);
    border-radius: 8px;
    margin-top: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #1db954;
    min-height: 72px;
}

.activity-block.spotify {
    border-left-color: #1db954;
}

.activity-block.game {
    border-left-color: #5865f2;
}

.activity-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #202225;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.activity-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-details {
    color: #b5bac1;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-state {
    color: #b5bac1;
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    color: #72767d;
    font-size: 11px;
    margin-top: 4px;
}

#activities-container {
    margin-top: 8px;
}

.game-emoji-icon {
    width: 48px;
    height: 48px;
    background: #202225;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    body, #intro, #bio {
        cursor: auto;
    }

    #cursor {
        display: none;
    }

    .btn {
        min-width: 44px;
        min-height: 44px;
        width: auto;
        height: auto;
        padding: 8px;
    }

    .btn svg {
        width: 32px;
        height: 32px;
    }

    .buttons img.btn {
        width: 44px !important;
        height: 44px !important;
        object-fit: cover;
        border-radius: 10px;
    }

    .intro-text {
        font-size: 32px;
        letter-spacing: 3px;
        text-align: center;
        padding: 0 20px;
    }

    .loader-circle {
        width: 40px;
        height: 40px;
    }

    .loader-text {
        font-size: 14px;
    }

    .center-card {
        width: 92%;
        max-width: 400px;
        padding: 20px 18px;
        margin: 16px;
        backdrop-filter: blur(12px);
    }

    #bio.show .center-card {
        transform: none !important;
        transition: none;
    }

    .avatar {
        width: 60px;
    }

    .nickname {
        font-size: 24px;
    }

    .subtitle {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }

    .timezone {
        font-size: 11px;
    }

    .bottom-bar {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }

    .location {
        justify-content: center;
        order: 2;
    }

    .buttons {
        order: 1;
        gap: 12px;
    }

    .activity-block {
        padding: 10px;
        gap: 10px;
    }

    .activity-img, .game-emoji-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .activity-name {
        font-size: 13px;
    }

    .activity-details, .activity-state {
        font-size: 11px;
        white-space: normal;
        word-break: break-word;
    }

    #volume-btn {
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        font-size: 20px;
    }

    .copy-toast {
        top: 20px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .btn:hover {
        transform: none;
    }

    #volume-btn:hover {
        transform: none;
    }

    .status-dot {
        width: 14px;
        height: 14px;
        bottom: 3px;
        right: 3px;
    }
}

@media (max-width: 480px) {
    .center-card {
        width: 95%;
        padding: 16px 14px;
    }

    .nickname {
        font-size: 22px;
    }

    .subtitle {
        font-size: 11px;
    }

    .user-info {
        gap: 10px;
    }

    .buttons {
        gap: 8px;
    }

    .btn svg {
        width: 28px;
        height: 28px;
    }

    .buttons img.btn {
        width: 40px !important;
        height: 40px !important;
    }

    .intro-text {
        font-size: 26px;
        letter-spacing: 2px;
    }
}

@media (hover: hover) and (pointer: fine) {
    #cursor {
        display: block;
    }

    body, #intro, #bio {
        cursor: none;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .center-card {
        width: auto;
        max-width: 85%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 16px;
    }

    .user-info {
        gap: 12px;
    }

    .avatar {
        width: 50px;
    }

    .nickname {
        font-size: 22px;
    }

    .bottom-bar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .buttons {
        order: 0;
    }

    .location {
        order: 0;
    }

    #activities-container {
        max-height: 120px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    #bio {
        overflow-y: auto;
        align-items: flex-start;
        padding: 20px 0;
    }

    #bio.show {
        align-items: center;
    }

    .center-card {
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .activity-details, .activity-state, .activity-time {
        white-space: normal;
        word-break: break-word;
    }

    .subtitle {
        white-space: normal;
        word-break: break-word;
    }
}

.buttons img.btn {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .buttons img.btn {
        width: 44px !important;
        height: 44px !important;
        object-fit: cover;
        border-radius: 10px;
    }
}