/* ============================================================
   RETRO 2010 MODE – easter egg theme (scene palette, Winamp,
   sparkles, MySpace-era badges). Everything is scoped under
   .retro-mode on <html>; with the class off this file is inert.
   ============================================================ */

/* Scene-kid palette: overriding the tokens recolors the whole site */
.retro-mode {
    --neon-cyan: #39ff14;
    --neon-magenta: #ff2f92;
    --neon-yellow: #fffb00;
    --glow-cyan-soft: rgba(57, 255, 20, 0.08);
    --glow-cyan-mid: rgba(57, 255, 20, 0.15);
    --glow-cyan-strong: rgba(57, 255, 20, 0.3);
    --glow-magenta-strong: rgba(255, 47, 146, 0.35);
    --glow-yellow-soft: rgba(255, 251, 0, 0.2);
    --tint-cyan-border: rgba(57, 255, 20, 0.4);
    --tint-cyan-bg: rgba(57, 255, 20, 0.05);
    --tint-cyan-line: rgba(57, 255, 20, 0.12);
}

/* Perspective grid becomes a faint checkerboard (very 2010) */
.retro-mode .grid-bg {
    background-image: repeating-conic-gradient(#ffffff 0% 25%, transparent 0% 50%);
    background-size: 26px 26px;
    background-position: 0 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.035;
    transform: none;
    animation: none;
}

/* Leopard-print accent – decorative chips only, never behind paragraphs */
.retro-mode .hero-badge,
.retro-mode .card-tag {
    background:
        radial-gradient(circle at 18% 35%, rgba(255, 47, 146, 0.16) 0 6%, transparent 7%),
        radial-gradient(circle at 55% 75%, rgba(255, 251, 0, 0.10) 0 5%, transparent 6%),
        radial-gradient(circle at 85% 25%, rgba(255, 47, 146, 0.13) 0 5%, transparent 6%);
}

/* ---- 88x31 web badges (footer) ---- */
.retro-badges {
    display: none;
}

.retro-mode .retro-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.retro-mode .badge88 {
    min-width: 88px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid var(--neon-magenta);
    background: linear-gradient(180deg, #1a0212, #000);
    color: var(--neon-yellow);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 4px var(--glow-magenta-strong);
}

.retro-mode .badge88:nth-child(even) {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ---- Winamp-style player widget ---- */
.winamp {
    display: none;
}

.winamp[hidden] {
    display: none !important;
}

.retro-mode .winamp {
    display: block;
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 280px;
    background: #23233a;
    border: 2px solid #0a0a14;
    box-shadow: 0 0 20px var(--glow-magenta-strong);
    z-index: 300;
    font-family: var(--font-mono);
}

.winamp-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: linear-gradient(180deg, #3b3b4f, #23233a);
    color: #e8c95a;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.winamp-close {
    background: none;
    border: 1px solid #666;
    color: #ccc;
    cursor: pointer;
    font-size: 0.6rem;
    line-height: 1;
    padding: 2px 5px;
}

.winamp-close:hover {
    color: var(--neon-magenta);
    border-color: var(--neon-magenta);
}

.winamp-lcd {
    background: #000;
    border: 1px solid #101018;
    margin: 6px 8px 4px;
    padding: 4px 6px;
    overflow: hidden;
}

.winamp-marquee {
    white-space: nowrap;
    overflow: hidden;
}

.winamp-marquee span {
    display: inline-block;
    padding-left: 100%;
    color: #00e000;
    font-size: 0.7rem;
    animation: winampMarquee 9s linear infinite;
}

@keyframes winampMarquee {
    to {
        transform: translateX(-100%);
    }
}

.winamp-vis {
    display: block;
    width: calc(100% - 16px);
    height: 44px;
    margin: 0 8px;
    background: #000;
    border: 1px solid #101018;
}

.winamp-controls {
    display: flex;
    gap: 6px;
    padding: 6px 8px 8px;
}

.winamp-controls button {
    flex: 1;
    background: #2e2e44;
    border: 1px solid #101018;
    color: #cfcfe0;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 3px 0;
}

.winamp-controls button:hover {
    color: var(--neon-magenta);
}

@media (max-width: 480px) {
    .retro-mode .winamp {
        display: none;
    }
}

/* ---- Cursor sparkles ---- */
.sparkle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    color: var(--neon-magenta);
    font-size: 12px;
    text-shadow: 0 0 6px var(--neon-yellow);
    animation: sparkleFade 0.7s ease-out forwards;
}

@keyframes sparkleFade {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-18px) scale(0.4);
    }
}
