﻿body {
    font-family: 'Press Start 2P', cursive;
    background-color: #080711;
    color: #f8f8f8;
    image-rendering: pixelated;
    user-select: none;
}

/* CRT Scanline & Curved Screen Effect */
.crt-container {
    position: relative;
    overflow: hidden;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    z-index: 30;
}

.crt-screen {
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 228, 0, 0.2);
    border: 12px solid #282830;
    border-radius: 20px;
}

/* Pixel art glowing text */
.pixel-glow-yellow {
    text-shadow: 4px 4px 0px #000, -2px -2px 0px #000, 2px -2px 0px #000, -2px 2px 0px #000, 0 0 10px #fc9c00;
}

.pixel-glow-green {
    text-shadow: 3px 3px 0px #000, 0 0 12px #00e400;
}

.pixel-glow-red {
    text-shadow: 3px 3px 0px #000, 0 0 12px #e40058;
}

/* 8-Bit Button Style */
.nes-btn {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    background-color: #e40058;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    box-shadow: inset -4px -4px 0px #880030, inset 4px 4px 0px #ff6090, 4px 4px 0px #000;
    border: 4px solid #000;
    transition: all 0.1s ease;
    cursor: pointer;
}

    .nes-btn:hover {
        transform: translate(-2px, -2px);
        box-shadow: inset -4px -4px 0px #880030, inset 4px 4px 0px #ff6090, 6px 6px 0px #000;
        background-color: #ff1a6c;
    }

    .nes-btn:active {
        transform: translate(2px, 2px);
        box-shadow: inset -2px -2px 0px #880030, inset 2px 2px 0px #ff6090, 2px 2px 0px #000;
    }

.nes-btn-green {
    background-color: #00a800;
    box-shadow: inset -4px -4px 0px #006000, inset 4px 4px 0px #50e450, 4px 4px 0px #000;
}

    .nes-btn-green:hover {
        background-color: #00c800;
        box-shadow: inset -4px -4px 0px #006000, inset 4px 4px 0px #50e450, 6px 6px 0px #000;
    }

.nes-btn-yellow {
    background-color: #fc9c00;
    color: #000;
    box-shadow: inset -4px -4px 0px #a86000, inset 4px 4px 0px #ffd050, 4px 4px 0px #000;
}

/* Arcade Border Box */
.nes-box {
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px #000000, 0 0 0 8px #7c7c7c, 6px 6px 0 8px #000000;
    background-color: #000000;
}

/* Floating Pixel Coin Animation */
@keyframes coinBlink {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

.animate-coin {
    animation: coinBlink 1.5s infinite ease-in-out;
}

@keyframes blinkFast {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.animate-press-start {
    animation: blinkFast 0.9s infinite;
}

/* Custom Scrollbar 8-bit */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
    border-left: 2px solid #7c7c7c;
}

::-webkit-scrollbar-thumb {
    background: #fc9c00;
    border: 2px solid #000;
}
