:root {
    --pixel-bg: #0f111a;
    --pixel-bg-2: #1f1728;
    --pixel-panel: #1d2436;
    --pixel-panel-2: #2a2440;
    --pixel-border: #f7cf67;
    --pixel-accent: #ff6f3c;
    --pixel-accent-2: #34d9f3;
    --pixel-text: #f6efd6;
    --pixel-muted: #d8cfb4;
    --pixel-shadow: #08090f;
}

body.pixel-version,
body.pixel-version.game-page {
    background:
        linear-gradient(180deg, rgba(16, 20, 34, 0.95) 0%, rgba(18, 12, 24, 0.96) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.024) 0px,
            rgba(255, 255, 255, 0.024) 1px,
            transparent 1px,
            transparent 4px
        );
    color: var(--pixel-text);
}

body.pixel-version,
body.pixel-version p,
body.pixel-version a,
body.pixel-version li,
body.pixel-version span,
body.pixel-version strong,
body.pixel-version h1,
body.pixel-version h2,
body.pixel-version h3,
body.pixel-version h4,
body.pixel-version h5,
body.pixel-version h6,
body.pixel-version button,
body.pixel-version input,
body.pixel-version textarea,
body.pixel-version label,
body.pixel-version small {
    font-family: 'Press Start 2P', 'Special Elite', monospace;
    letter-spacing: 0.025em;
}

body.pixel-version p,
body.pixel-version li,
body.pixel-version .section-description,
body.pixel-version .lead,
body.pixel-version .about-text p,
body.pixel-version .insert-help,
body.pixel-version .touch-hint,
body.pixel-version .leaderboard-name,
body.pixel-version .leaderboard-score,
body.pixel-version #loadingMeta {
    font-size: clamp(0.52rem, 0.9vw, 0.68rem);
    line-height: 1.9;
    color: var(--pixel-muted);
}

body.pixel-version img,
body.pixel-version canvas {
    image-rendering: pixelated;
}

body.pixel-version .grain-overlay {
    opacity: 0.2;
    mix-blend-mode: soft-light;
}

body.pixel-version .navbar,
body.pixel-version.game-page .navbar {
    background: rgba(9, 12, 18, 0.96);
    border-bottom: 3px solid var(--pixel-border);
    box-shadow: 0 6px 0 var(--pixel-shadow);
}

body.pixel-version .nav-logo,
body.pixel-version .nav-link,
body.pixel-version .btn,
body.pixel-version .section-title,
body.pixel-version .band-name,
body.pixel-version .leaderboard-title,
body.pixel-version #transitionOverlay h2,
body.pixel-version .title-game-name,
body.pixel-version .insert-coin,
body.pixel-version #loadingText {
    text-transform: uppercase;
    text-shadow: 2px 2px 0 var(--pixel-shadow);
}

body.pixel-version .nav-logo {
    color: #ffe3a7;
}

body.pixel-version .nav-link {
    color: #f7e6bd;
}

body.pixel-version .nav-link.active,
body.pixel-version .nav-link:hover {
    color: var(--pixel-accent-2);
}

body.pixel-version .nav-link::after {
    height: 4px;
    bottom: -6px;
    background: repeating-linear-gradient(
        90deg,
        var(--pixel-accent-2) 0px,
        var(--pixel-accent-2) 8px,
        transparent 8px,
        transparent 14px
    );
}

body.pixel-version .nav-toggle span {
    border-radius: 0;
    height: 3px;
}

body.pixel-version .hero {
    background:
        linear-gradient(180deg, rgba(7, 8, 12, 0.52) 0%, rgba(7, 8, 12, 0.78) 100%),
        url('../images/hero-background_pixel.png') center center / cover no-repeat;
}

body.pixel-version .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.pixel-version .band-name {
    color: #ffd277;
    text-shadow:
        0 0 0 var(--pixel-shadow),
        4px 4px 0 var(--pixel-shadow),
        0 0 16px rgba(255, 111, 60, 0.35);
}

body.pixel-version .cta-buttons {
    margin-top: 36px;
    z-index: 2;
}

body.pixel-version .scroll-indicator {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 34px;
    margin-bottom: 8px;
    font-size: 1.8rem;
    color: var(--pixel-accent-2);
    text-shadow: 2px 2px 0 var(--pixel-shadow);
    animation: pixelArrowBounce 1.7s steps(2, end) infinite;
}

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

body.pixel-version .about,
body.pixel-version .music,
body.pixel-version .contact,
body.pixel-version .runner-section {
    position: relative;
}

body.pixel-version .about::before,
body.pixel-version .music::before,
body.pixel-version .contact::before,
body.pixel-version .runner-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.16;
}

body.pixel-version .section-title {
    color: #ffe7ad;
}

body.pixel-version .section-title::after {
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--pixel-accent) 0px,
        var(--pixel-accent) 10px,
        var(--pixel-accent-2) 10px,
        var(--pixel-accent-2) 20px
    );
}

body.pixel-version .btn,
body.pixel-version .platform-card,
body.pixel-version .email-link,
body.pixel-version .leaderboard-panel,
body.pixel-version .game-shell,
body.pixel-version .hud-item,
body.pixel-version .game-over-card,
body.pixel-version .loading-card,
body.pixel-version .about-content,
body.pixel-version .music-content,
body.pixel-version .contact-content,
body.pixel-version .leaderboard-list li,
body.pixel-version .spotify-embed-wrapper,
body.pixel-version .band-photo-wrapper,
body.pixel-version .game-canvas-wrap,
body.pixel-version #nicknameInput,
body.pixel-version .insert-coin,
body.pixel-version .title-game-name {
    border-radius: 0 !important;
    border: 3px solid var(--pixel-border);
    box-shadow: 4px 4px 0 var(--pixel-shadow);
}

body.pixel-version .btn,
body.pixel-version .platform-card,
body.pixel-version .email-link,
body.pixel-version .leaderboard-list li,
body.pixel-version .hud-item {
    background: linear-gradient(180deg, rgba(44, 34, 57, 0.93) 0%, rgba(18, 16, 29, 0.95) 100%);
}

body.pixel-version .about-content,
body.pixel-version .music-content,
body.pixel-version .contact-content,
body.pixel-version .game-shell,
body.pixel-version .leaderboard-panel,
body.pixel-version .game-over-card,
body.pixel-version .loading-card {
    background: linear-gradient(180deg, rgba(26, 29, 44, 0.9) 0%, rgba(16, 14, 26, 0.95) 100%);
}

body.pixel-version .btn {
    color: var(--pixel-text);
    font-size: clamp(0.5rem, 0.85vw, 0.68rem);
    line-height: 1.55;
    padding: 12px 14px;
}

body.pixel-version .btn::before {
    display: none;
}

body.pixel-version .btn-primary {
    border-color: #ff9b63;
    box-shadow: 4px 4px 0 #331a12;
}

body.pixel-version .btn-secondary {
    border-color: #7ee6f1;
    box-shadow: 4px 4px 0 #152a2d;
}

body.pixel-version .btn:hover,
body.pixel-version .platform-card:hover,
body.pixel-version .email-link:hover {
    transform: translate(-2px, -2px);
}

body.pixel-version .band-photo {
    border-radius: 0 !important;
    filter: contrast(1.08) saturate(0.92);
}

body.pixel-version .spotify-embed-wrapper iframe {
    border-radius: 0 !important;
    border: 3px solid rgba(247, 207, 103, 0.85);
    box-shadow: 4px 4px 0 var(--pixel-shadow);
    width: 100%;
    height: 520px;
}

body.pixel-version .spotify-embeds {
    position: relative;
    padding: 18px 16px 20px;
    margin-top: 18px;
    margin-bottom: 26px;
    border: 3px solid var(--pixel-border);
    box-shadow: 4px 4px 0 var(--pixel-shadow);
    background:
        linear-gradient(180deg, rgba(35, 30, 49, 0.96) 0%, rgba(16, 14, 26, 0.96) 100%);
    animation: pixelMarqueeGlow 1.1s steps(2, end) infinite;
}

body.pixel-version .spotify-embeds::before {
    content: 'SLOT PLAYER';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    font-size: 0.5rem;
    color: #130f0a;
    background: var(--pixel-border);
    border: 2px solid #1e150e;
    box-shadow: 2px 2px 0 var(--pixel-shadow);
    letter-spacing: 0.05em;
    animation: pixelBlinkLabel 1.2s steps(2, end) infinite;
}

body.pixel-version .spotify-embeds::after {
    content: '';
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 230, 130, 0.8) 0 2px, transparent 2px),
        radial-gradient(circle at 82% 24%, rgba(52, 217, 243, 0.8) 0 2px, transparent 2px),
        radial-gradient(circle at 26% 82%, rgba(255, 115, 70, 0.8) 0 2px, transparent 2px),
        radial-gradient(circle at 72% 76%, rgba(255, 230, 130, 0.8) 0 2px, transparent 2px);
    opacity: 0.6;
    animation: pixelSparkle 1.25s steps(2, end) infinite;
}

body.pixel-version .spotify-embed-wrapper {
    position: relative;
    max-width: 920px;
    width: 100%;
    border-color: #ffd98d;
    box-shadow: 0 0 0 3px #17101f, 5px 5px 0 var(--pixel-shadow);
    background:
        linear-gradient(180deg, rgba(45, 38, 61, 0.95) 0%, rgba(20, 18, 33, 0.95) 100%);
    animation: pixelReelFlicker 0.95s steps(2, end) infinite;
}

body.pixel-version .spotify-embed-wrapper::after {
    content: '';
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border: 2px dashed rgba(52, 217, 243, 0.45);
}

body.pixel-version .music-platforms {
    gap: 12px;
    padding: 14px;
    border: 3px solid #8adce4;
    box-shadow: 4px 4px 0 var(--pixel-shadow);
    background:
        linear-gradient(180deg, rgba(18, 34, 44, 0.9) 0%, rgba(14, 21, 31, 0.92) 100%);
    animation: pixelMarqueeCyan 1.1s steps(2, end) infinite;
}

body.pixel-version .retro-player {
    position: relative;
    margin: 0 auto 34px;
    max-width: 920px;
    padding: 18px 16px 16px;
    border: 3px solid var(--pixel-border);
    background: linear-gradient(180deg, rgba(40, 28, 52, 0.96) 0%, rgba(18, 15, 29, 0.97) 100%);
    box-shadow: 5px 5px 0 var(--pixel-shadow);
    animation: pixelMarqueeGlow 1.1s steps(2, end) infinite;
}

body.pixel-version .retro-player::before,
body.pixel-version .retro-player::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffdd7d;
    box-shadow:
        0 0 0 2px #23170f,
        0 0 0 4px rgba(255, 223, 125, 0.18);
    animation: pixelSparkle 1.05s steps(2, end) infinite;
}

body.pixel-version .retro-player::before {
    top: 8px;
    left: 8px;
}

body.pixel-version .retro-player::after {
    top: 8px;
    right: 8px;
}

body.pixel-version .retro-player-head {
    text-align: center;
    margin-bottom: 14px;
}

body.pixel-version .retro-player-head h3 {
    margin: 0;
    font-size: clamp(0.62rem, 1vw, 0.76rem);
    color: #ffe9af;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
}

body.pixel-version .retro-player-head p {
    margin: 8px 0 0;
    font-size: 0.5rem;
    color: #8ceaf7;
    text-transform: uppercase;
}

body.pixel-version .retro-display {
    border: 3px solid #8ceaf7;
    background: linear-gradient(180deg, rgba(15, 29, 38, 0.96) 0%, rgba(9, 16, 24, 0.96) 100%);
    padding: 12px 12px 10px;
    box-shadow: inset 0 0 0 2px rgba(140, 234, 247, 0.26);
}

body.pixel-version .retro-now-label {
    margin: 0;
    font-size: 0.46rem;
    color: #7fe7f2;
    text-transform: uppercase;
}

body.pixel-version .retro-now-title {
    margin: 8px 0 10px;
    font-size: clamp(0.5rem, 0.88vw, 0.64rem);
    line-height: 1.6;
    color: #ffe7a8;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    min-height: 2.8em;
}

body.pixel-version .retro-progress {
    width: 100%;
    height: 18px;
    padding: 2px;
    border: 2px solid #ffd98d;
    background: #13121d;
    cursor: pointer;
}

body.pixel-version .retro-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(
        90deg,
        #ffdd7d 0px,
        #ffdd7d 10px,
        #ff8f5f 10px,
        #ff8f5f 18px,
        #65edf9 18px,
        #65edf9 26px
    );
    box-shadow: 0 0 6px rgba(255, 221, 125, 0.4);
    transition: width 0.12s linear;
}

body.pixel-version .retro-time {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.48rem;
    color: #f4e3b4;
}

body.pixel-version .retro-controls {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.pixel-version .retro-btn {
    border: 2px solid #ffd98d;
    background: linear-gradient(180deg, rgba(56, 42, 72, 0.98) 0%, rgba(28, 23, 41, 0.98) 100%);
    color: #f7e9bf;
    padding: 10px 8px;
    font-size: 0.52rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--pixel-shadow);
}

body.pixel-version .retro-btn:hover {
    transform: translate(-1px, -1px);
    border-color: #7fe7f2;
    color: #7fe7f2;
}

body.pixel-version .retro-btn-play {
    border-color: #7fe7f2;
    color: #7fe7f2;
}

body.pixel-version .retro-playlist {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

body.pixel-version .retro-playlist button {
    width: 100%;
    text-align: left;
    border: 2px solid rgba(247, 217, 141, 0.7);
    background: linear-gradient(180deg, rgba(37, 30, 50, 0.98) 0%, rgba(19, 16, 29, 0.98) 100%);
    color: #eadfbf;
    padding: 10px 10px;
    font-size: 0.5rem;
    line-height: 1.6;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--pixel-shadow);
}

body.pixel-version .retro-playlist button:hover,
body.pixel-version .retro-playlist button.is-active {
    border-color: #7fe7f2;
    color: #7fe7f2;
    background: linear-gradient(180deg, rgba(26, 43, 58, 0.98) 0%, rgba(14, 23, 34, 0.98) 100%);
}

body.pixel-version .platform-card {
    min-width: 128px;
    min-height: 142px;
    padding: 18px 12px;
    border-width: 3px;
    border-color: #ffd98d;
    box-shadow: 0 0 0 2px #12131e, 4px 4px 0 var(--pixel-shadow);
    background:
        linear-gradient(180deg, rgba(53, 46, 69, 0.96) 0%, rgba(25, 21, 37, 0.96) 100%);
    animation: pixelCardBlink 0.95s steps(2, end) infinite;
}

body.pixel-version .platform-card::before {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: 8px;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #ffdd7d 0px,
        #ffdd7d 8px,
        #ff7d57 8px,
        #ff7d57 16px,
        #59e7f2 16px,
        #59e7f2 24px
    );
    opacity: 0.95;
    animation: pixelBarScroll 1.05s linear infinite;
}

body.pixel-version .platform-card::after {
    content: '777';
    position: absolute;
    top: 22px;
    right: 8px;
    font-size: 0.46rem;
    color: #ffdf89;
    text-shadow: 1px 1px 0 #000;
    opacity: 0.9;
    animation: pixelJackpotBlink 0.75s steps(2, end) infinite;
}

body.pixel-version .platform-card i {
    margin-top: 14px;
    font-size: 2rem;
    animation: pixelIconPulse 1.1s steps(2, end) infinite;
}

body.pixel-version .platform-card span {
    margin-top: 6px;
    font-size: 0.56rem;
    line-height: 1.5;
    animation: pixelTextBlink 1.35s steps(2, end) infinite;
}

@keyframes pixelMarqueeGlow {
    0%, 100% { box-shadow: 4px 4px 0 #08090f, 0 0 0 2px #ffb160 inset; }
    50% { box-shadow: 4px 4px 0 #08090f, 0 0 0 2px #6df2ff inset; }
}

@keyframes pixelMarqueeCyan {
    0%, 100% { box-shadow: 4px 4px 0 #08090f, 0 0 0 2px #6df2ff inset; }
    50% { box-shadow: 4px 4px 0 #08090f, 0 0 0 2px #ffb160 inset; }
}

@keyframes pixelBlinkLabel {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.68; }
}

@keyframes pixelSparkle {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.85; }
}

@keyframes pixelReelFlicker {
    0%, 100% { filter: brightness(1) contrast(1.02); }
    50% { filter: brightness(1.08) contrast(1.06); }
}

@keyframes pixelCardBlink {
    0%, 100% { border-color: #ffd98d; }
    50% { border-color: #7cf0ff; }
}

@keyframes pixelBarScroll {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

@keyframes pixelJackpotBlink {
    0%, 49% { opacity: 0.95; color: #ffdf89; }
    50%, 100% { opacity: 0.52; color: #7cf0ff; }
}

@keyframes pixelIconPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.09); filter: brightness(1.2); }
}

@keyframes pixelTextBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

body.pixel-version .platform-card i,
body.pixel-version .email-link i {
    color: var(--pixel-accent-2);
    text-shadow: 2px 2px 0 var(--pixel-shadow);
}

body.pixel-version .game-canvas-wrap {
    border-width: 4px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 6px 6px 0 #0b0d15;
}

body.pixel-version .game-overlay {
    background: rgba(8, 9, 14, 0.86);
}

body.pixel-version .insert-coin,
body.pixel-version .title-game-name,
body.pixel-version #loadingText,
body.pixel-version #transitionOverlay h2 {
    text-shadow: 0 0 0 #000, 2px 2px 0 #000;
}

body.pixel-version #nicknameInput {
    border-width: 3px;
    color: var(--pixel-text);
    background: rgba(0, 0, 0, 0.4);
}

body.pixel-version .footer {
    border-top: 3px solid var(--pixel-border);
    background: rgba(8, 10, 16, 0.97);
}

body.pixel-version .footer p {
    color: #f2e9ca;
}

.pixel-version-switch {
    margin-left: 12px;
    padding: 8px 10px;
    border: 2px solid var(--pixel-border);
    background: rgba(18, 20, 33, 0.9);
    color: #ffe6b0;
    font-family: 'Press Start 2P', 'Special Elite', monospace;
    font-size: 0.54rem;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 #09090f;
}

.pixel-version-switch:hover {
    color: var(--pixel-accent-2);
    border-color: var(--pixel-accent-2);
}

@media (max-width: 900px) {
    body.pixel-version .btn {
        font-size: 0.48rem;
    }

    body.pixel-version .retro-player {
        padding: 14px 12px 12px;
    }

    body.pixel-version .retro-controls {
        gap: 6px;
    }

    body.pixel-version .retro-btn {
        padding: 9px 6px;
        font-size: 0.48rem;
    }

    body.pixel-version .spotify-embed-wrapper iframe {
        height: 460px;
    }

    body.pixel-version p,
    body.pixel-version li,
    body.pixel-version .section-description,
    body.pixel-version .lead,
    body.pixel-version .about-text p,
    body.pixel-version .insert-help,
    body.pixel-version .touch-hint,
    body.pixel-version .leaderboard-name,
    body.pixel-version .leaderboard-score,
    body.pixel-version #loadingMeta {
        font-size: 0.48rem;
    }
}

@media (max-width: 560px) {
    body.pixel-version .btn {
        font-size: 0.44rem;
        padding: 10px 10px;
    }

    body.pixel-version .nav-link,
    body.pixel-version .nav-logo {
        font-size: 0.58rem;
    }

    body.pixel-version .section-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }

    body.pixel-version .retro-player-head h3 {
        font-size: 0.54rem;
    }

    body.pixel-version .retro-player-head p,
    body.pixel-version .retro-now-label,
    body.pixel-version .retro-time,
    body.pixel-version .retro-playlist button {
        font-size: 0.45rem;
    }

    body.pixel-version .retro-now-title {
        font-size: 0.46rem;
    }

    body.pixel-version .retro-controls {
        grid-template-columns: 1fr;
    }

    body.pixel-version .spotify-embed-wrapper iframe {
        height: 400px;
    }
}
