:root {
    --sg-pink: #ff4a1c;
    --sg-pink-glow: #ff7340;
    --sg-crimson: #b80f2e;
    --sg-gold: #e9b949;
    --sg-gold-soft: #f6dc8a;
    --sg-bg: #0a0608;
    --sg-card: #140a0f;
    --sg-panel: #110a0d;
    --sg-fg: #fdf3f7;
    --sg-muted: #b49aa7;
    --sg-border: #3a2530;
    --sg-shadow: rgba(0, 0, 0, 0.6);
    --sg-ink: #0a0608;

    --sg-metal: linear-gradient(135deg, #6b4a12 0%, #f6dc8a 18%, #b98a2e 36%, #fff3c4 52%, #a8781f 70%, #f0c96a 86%, #7a5414 100%);
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--sg-bg);
    position: relative;
    font-family: 'Inter', system-ui, sans-serif;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--sg-bg);
    z-index: 1;
}

a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--sg-gold-soft);
    outline-offset: 3px;
}

.center-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    padding: 20px;
}

.box {
    width: 400px;
    background: rgba(17, 10, 13, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-image: var(--sg-metal) 1;
    box-shadow: 0 0 60px rgba(255, 74, 28, 0.06);
    position: relative;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--sg-fg);
    pointer-events: auto;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.15s ease;
}

.box:hover {
    box-shadow: 0 0 80px rgba(255, 74, 28, 0.1);
}

.banner-container {
    margin: 0 -24px;
    width: calc(100% + 48px);
    height: 128px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--sg-gold);
}

.banner-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 6, 8, 0.55) 0%, rgba(10, 6, 8, 0) 60%);
    pointer-events: none;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(1.15) contrast(1.05);
}

.profile-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-top: -48px;
    margin-bottom: 14px;
    z-index: 10;
}

.profile-border {
    width: 100%;
    height: 100%;
    padding: 3px;
    background: var(--sg-metal);
    box-shadow: 6px 6px 0 0 var(--sg-shadow);
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--sg-panel);
    display: block;
    background: var(--sg-panel);
}

.profile-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--sg-pink), var(--sg-gold));
    filter: blur(18px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.94);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.08);
        opacity: 0.65;
    }
}

.status-dot {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 17px;
    height: 17px;
    border: 3px solid var(--sg-panel);
    box-shadow: 0 0 0 1px var(--sg-gold);
    z-index: 5;
    transition: background-color 0.4s ease;
}

.status-dot.online  { background: #23a55a; }
.status-dot.idle    { background: #f0b232; }
.status-dot.dnd     { background: #f23f43; }
.status-dot.offline { background: #80848e; }

.status-bubble {
    position: absolute;
    top: 4px;
    left: 104px;
    z-index: 40;
    pointer-events: none;
    animation: bubble-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.4s;
}

@keyframes bubble-in {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(6px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.status-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 7px 6px 0;
    border-color: transparent var(--sg-pink) transparent transparent;
}

.status-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--sg-fg);
    border-left: 3px solid var(--sg-pink);
    padding: 5px 11px;
    box-shadow: 4px 4px 0 0 var(--sg-shadow);
    white-space: nowrap;
    min-height: 26px;
}

.status-icon {
    width: 13px;
    height: 13px;
    color: var(--sg-pink);
    flex-shrink: 0;
}

.status-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: #5a1020;
    line-height: 1;
    letter-spacing: 0.2px;
}

.status-cursor {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--sg-pink);
    margin-left: -3px;
    animation: status-blink 1s step-end infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
    position: relative;
    z-index: 50;
}

.profile-name {
    font-family: 'Cinzel', 'Inter', serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: var(--sg-metal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    filter: drop-shadow(0 0 12px rgba(255, 74, 28, 0.3));
}

.badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-item {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sg-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--sg-muted);
    position: relative;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.badge-text {
    width: auto;
    padding: 0 6px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.badge-icon {
    width: 13px;
    height: 13px;
    transition: transform 0.2s ease;
}

.badge-item:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 14px var(--glow-color);
    transform: translateY(-3px);
}

.badge-item:hover .badge-icon {
    transform: scale(1.15);
}

.badge-item::after,
.social-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--sg-panel);
    border: 1px solid var(--sg-gold);
    color: var(--sg-fg);
    padding: 6px 10px;
    font-size: 0.66rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 4px 0 0 var(--sg-shadow);
    z-index: 100;
}

.badge-item:hover::after,
.social-icon-btn:hover::after,
.social-icon-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.profile-bio {
    font-size: 0.85rem;
    color: var(--sg-muted);
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.6;
    max-width: 300px;
    font-weight: 500;
}

.divider {
    width: 100%;
    height: 2px;
    background: var(--sg-metal);
    opacity: 0.55;
    margin-bottom: 20px;
}

.socials-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.social-icon-btn {
    width: 50px;
    height: 50px;
    background: var(--sg-card);
    border: 1px solid var(--sg-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--sg-fg);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    position: relative;
    cursor: pointer;
    box-shadow: 3px 3px 0 0 var(--sg-shadow);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.social-icon-btn:hover {
    border-color: var(--hover-color, var(--sg-pink));
    color: var(--hover-color, var(--sg-pink));
    box-shadow: 5px 5px 0 0 var(--sg-shadow), 0 0 16px var(--hover-glow, rgba(255, 74, 28, 0.25));
    transform: translate(-2px, -2px);
}

.social-icon-btn:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.social-icon-btn:hover .social-icon {
    transform: scale(1.1);
}

.cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    margin-top: 20px;
    background: var(--sg-pink);
    border: 2px solid var(--sg-pink);
    color: var(--sg-ink);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 0 var(--sg-shadow);
    transition: transform 0.15s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.03);
}

.cta-icon {
    width: 17px;
    height: 17px;
    margin-right: 10px;
}

.cta-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

@media (max-width: 440px) {
    .box {
        width: 100%;
        padding: 0 18px 20px;
    }

    .banner-container {
        margin: 0 -18px;
        width: calc(100% + 36px);
    }

    .profile-name {
        font-size: 1.7rem;
    }

    .socials-row {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-glow,
    .status-cursor {
        animation: none;
    }
}
