/* ── VARIABLES ──────────────────────────────────── */
:root {
    --bg:            #090814;
    --text:          #f0f1ff;
    --text-muted:    #a8acd6;
    --accent:        #7c6cf8;
    --panel-bg:      #12112a;
    --social-bg:     #0a0a18;
    --social-hover:  #16153a;
    --social-color:  #c4b5fd;
    --social-border: #3730a3;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background-color: var(--bg);
    background-image: radial-gradient(circle, rgba(124,108,248,0.28) 1px, transparent 1px);
    background-size: 22px 22px;
    animation: grid-drift 10s linear infinite;
    font-family: 'Press Start 2P', monospace;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, var(--bg) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 22px 22px; }
}

/* ── PANEL (Windows 95 style) ───────────────────── */
.panel-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.panel {
    background: var(--panel-bg);
    border: 3px solid var(--accent);
    box-shadow: 6px 6px 0 #000, 0 0 40px rgba(124,108,248,0.18);
}

.titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accent);
    color: #fff;
    font-size: 0.45rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
}

.titlebar-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    font-family: inherit;
    font-size: 0.5rem;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    line-height: 1;
}

.titlebar-btn:hover { background: rgba(255,255,255,0.15); }

.panel-body {
    padding: 2rem 1.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

/* scanlines */
.panel-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
}

/* ── AVATAR ─────────────────────────────────────── */
.avatar {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

/* ── NAME / TAGLINE ─────────────────────────────── */
.username {
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: 0.1em;
}

.tagline {
    font-size: 0.4rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

/* ── SEPARATOR ──────────────────────────────────── */
.sep {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--accent) 0px, var(--accent) 4px,
        transparent 4px, transparent 8px
    );
}

/* ── LINK BUTTONS ───────────────────────────────── */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.px-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--social-border);
    background: var(--social-bg);
    color: var(--social-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.42rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
    transition: transform 0.08s, box-shadow 0.08s, background 0.08s;
    position: relative;
    z-index: 1;
}

.px-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    background: var(--social-hover);
    color: #fff;
}

.px-link:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

/* Icon: swap SVG gegen <img class="px-link__icon" src="icons/xxx.png"> */
.px-link__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.px-link__label { flex: 1; }

.px-link__arrow {
    font-size: 0.5rem;
    opacity: 0.5;
}

/* ── FOOTER ─────────────────────────────────────── */
.panel-footer {
    font-size: 0.32rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 520px) {
    .panel-body { padding: 1.5rem 1.1rem 2rem; }
    .username   { font-size: 0.7rem; }
}
