:root {
    --bg-1: #0d1a16;
    --bg-2: #142a22;
    --card: rgba(24, 46, 39, 0.72);
    --card-border: rgba(212, 184, 63, 0.22);
    --gold: #d4b83f;
    --gold-bright: #ecd57c;
    --teal: #5ba896;
    --text: #f1efe2;
    --text-dim: #8fa89b;
}

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

html,
body {
    height: 100%;
}

body {
    background:
        radial-gradient(ellipse 900px 600px at 50% -10%, rgba(212, 184, 63, 0.14), transparent 60%),
        radial-gradient(ellipse 700px 700px at 85% 100%, rgba(91, 168, 150, 0.16), transparent 55%),
        linear-gradient(160deg, var(--bg-2), var(--bg-1) 60%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 32px 16px;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.35;
    animation: float linear infinite;
}

@keyframes float {
    to {
        transform: translateY(-110vh) translateX(var(--drift));
        opacity: 0;
    }
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 38px 26px 28px;
    text-align: center;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.6s ease forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 180deg, var(--gold), var(--teal), var(--gold));
    animation: spin 6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a4a3f, #142a22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--gold-bright);
    animation: spin 6s linear infinite reverse;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.name svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
    flex-shrink: 0;
    transition: fill 0.2s ease;
}

.star-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.star-wrap:hover svg {
    fill: var(--gold-bright);
}

.star-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translate(-50%, 6px);
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 7px 12px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: normal;
    text-transform: none;
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.star-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bg-2);
}

.star-wrap:hover .star-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(91, 168, 150, 0.12);
    border: 1px solid rgba(91, 168, 150, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: var(--teal);
    letter-spacing: 0.03em;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 6px var(--teal);
}

.typewriter {
    margin-top: 16px;
    min-height: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-dim);
}

.typewriter .cursor {
    color: var(--gold);
}

.bio {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(212, 184, 63, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.badge:hover {
    border-color: var(--gold);
    background: rgba(212, 184, 63, 0.14);
    color: var(--gold-bright);
}

.divider {
    height: 1px;
    background: var(--card-border);
    margin: 22px 0 20px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 239, 226, 0.04);
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.social:hover {
    border-color: var(--gold);
    background: rgba(212, 184, 63, 0.08);
}

.footer-note {
    margin-top: 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.status.online {
    color: #43b581;
    border-color: rgba(67, 181, 129, 0.3);
    background: rgba(67, 181, 129, 0.12);
}
.status.online::before {
    background: #43b581;
    box-shadow: 0 0 6px #43b581;
}

.status.idle {
    color: #faa61a;
    border-color: rgba(250, 166, 26, 0.3);
    background: rgba(250, 166, 26, 0.12);
}
.status.idle::before {
    background: #faa61a;
    box-shadow: 0 0 6px #faa61a;
}

.status.dnd {
    color: #f04747;
    border-color: rgba(240, 71, 71, 0.3);
    background: rgba(240, 71, 71, 0.12);
}
.status.dnd::before {
    background: #f04747;
    box-shadow: 0 0 6px #f04747;
}

.status.offline {
    color: var(--text-dim);
    border-color: rgba(143, 168, 155, 0.3);
    background: rgba(143, 168, 155, 0.12);
}
.status.offline::before {
    background: var(--text-dim);
    box-shadow: none;
}

/* ── Activity card (Discord-style) ───────────────────────────────────────── */

.activity-box {
    margin-top: 12px;
    padding: 12px 14px 14px;
    border-radius: 12px;
    background: rgba(10, 20, 17, 0.72);
    border: 1px solid var(--card-border);
    text-align: left;
    backdrop-filter: blur(8px);
}

.act-header {
    margin-bottom: 10px;
}

.act-verb {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.act-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Thumbnail (album art / game cover) */
.act-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.act-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.act-thumb-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: rgba(13, 26, 22, 0.92);
    border: 1.5px solid var(--card-border);
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.act-icon-big {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(212, 184, 63, 0.08);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.act-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.act-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-details {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-state {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-elapsed {
    font-family: 'Inter', monospace;
    font-size: 12px;
    color: var(--gold);
    margin-top: 4px;
}

.act-progress-wrap {
    margin-top: 6px;
}

.act-progress-bar {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.act-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--gold);
    transition: width 1s linear;
}

.act-progress-times {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--text-dim);
}

.act-thumb-icon-img {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--card-border);
    object-fit: cover;
    background: rgba(13, 26, 22, 0.92);
}