/* VRC POP LIVE — Landing / DJ Picker */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Space Mono', 'Courier New', monospace;
    min-height: 100vh;
}

/* ── Background emoji rain ── */
#emoji-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-emoji {
    position: absolute;
    bottom: -60px;
    pointer-events: none;
    opacity: 0;
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    animation: emojiFloat var(--dur, 8s) ease-in-out forwards;
    filter: blur(1.5px) drop-shadow(0 0 8px rgba(255, 45, 107, 0.3));
}

@keyframes emojiFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.6);
    }
    8% {
        opacity: var(--start-opacity, 0.2);
    }
    50% {
        opacity: var(--start-opacity, 0.2);
    }
    85% {
        opacity: calc(var(--start-opacity, 0.2) * 0.4);
    }
    100% {
        opacity: 0;
        transform: translateY(calc(-100vh - 80px)) translateX(var(--drift, 20px)) rotate(var(--rot, 15deg)) scale(1);
    }
}

/* ── Vignette atmosphere ── */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse at 50% 30%,
        transparent 30%,
        rgba(10, 10, 10, 0.4) 60%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

/* ── Layout ── */
.landing {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Branding ── */
.brand {
    text-align: center;
}

/* ── Per-character animated title ── */
.brand-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0;
    line-height: 1.1;
}

.title-char {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    color: #fff;
    display: inline-block;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    paint-order: stroke fill;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 45, 107, 0.2),
        0 0 60px rgba(255, 45, 107, 0.1);
    animation: charWave 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
}

.title-accent {
    color: #ff2d6b;
    text-shadow:
        0 0 10px rgba(255, 45, 107, 0.9),
        0 0 30px rgba(255, 45, 107, 0.6),
        0 0 60px rgba(255, 45, 107, 0.3),
        0 0 100px rgba(255, 45, 107, 0.15);
}

/* Chromatic flicker on title chars */
.title-char::before,
.title-char::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.title-space {
    width: 0.35em;
    font-size: clamp(2rem, 8vw, 3rem);
}

@keyframes charWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ── Per-character animated subheader ── */
.brand-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0;
    margin-top: 12px;
}

.sub-char {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.55rem, 2vw, 0.75rem);
    font-weight: 700;
    color: #ff2d6b;
    display: inline-block;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 8px rgba(255, 45, 107, 0.8),
        0 0 20px rgba(255, 45, 107, 0.4),
        0 0 40px rgba(255, 45, 107, 0.15);
    animation: subWave 2.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.06s);
}

.sub-dot {
    font-size: clamp(0.55rem, 2vw, 0.75rem);
    color: #fff;
    display: inline-block;
    margin: 0 0.3em;
    text-shadow:
        0 0 6px #fff,
        0 0 12px #ff2d6b,
        0 0 24px #ff2d6b;
    animation: dotPulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.06s);
}

.sub-space {
    width: 0.3em;
    font-size: clamp(0.55rem, 2vw, 0.75rem);
}

@keyframes subWave {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
        text-shadow:
            0 0 8px #fff,
            0 0 16px #ff2d6b,
            0 0 32px #ff2d6b,
            0 0 50px rgba(255, 45, 107, 0.5);
    }
}

/* ── Sections ── */
.section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label-muted {
    color: #444;
}

/* ── Card Grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* ── Cards ── */
.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid color-mix(in srgb, var(--c) 30%, #2a2a2a);
    transition: transform 0.12s ease, border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
    border-color: var(--c);
    box-shadow:
        0 0 24px color-mix(in srgb, var(--c) 25%, transparent),
        inset 0 0 14px color-mix(in srgb, var(--c) 6%, transparent);
    transform: translateY(-2px);
}

.card:active {
    transform: scale(0.97);
}

.card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c);
    text-shadow: 0 0 10px color-mix(in srgb, var(--c) 35%, transparent);
}

/* ── Empty state ── */
.empty {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ── Scanlines ── */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
}

/* ── Responsive ── */
@media (max-width: 380px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card-name {
        font-size: 1.2rem;
    }
}
