* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: #0a1a0a;
    color: #39ff14;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* CRT scanlines (global fallback) */
body::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 999;
    background: repeating-linear-gradient(0deg, rgba(0,255,0,0.03) 0px, transparent 2px, transparent 4px);
    animation: scanline 0.1s linear infinite;
}
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 4px; } }

/* ===== Global Elements ===== */
button {
    transition: all 0.2s ease;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

a {
    transition: color 0.2s ease;
    color: #ffdd00;
}

a:hover {
    color: #39ff14;
}

::selection {
    background: rgba(57, 255, 20, 0.3);
    color: #000;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050f05;
}

::-webkit-scrollbar-thumb {
    background: #2a4a2a;
    border: 1px solid #39ff14;
}

::-webkit-scrollbar-thumb:hover {
    background: #39ff14;
}

/* ===== Pixel Button (shared) ===== */
.pixel-btn {
    background: #2a3a2a;
    border: 2px solid #39ff14;
    color: #39ff14;
    padding: 10px 18px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    box-shadow: 0 0 0 1px #000, 0 0 10px rgba(57,255,20,0.5);
    transition: 0.1s;
    text-decoration: none;
    display: inline-block;
}

.pixel-btn:hover {
    background: #39ff14;
    color: #000;
    box-shadow: 0 0 20px #39ff14;
}
.pixel-btn:active {
    transform: scale(0.95);
    background: #ffdd00;
    border-color: #ffdd00;
}

/* ===== Detail Page Shared Header ===== */
.pixel-detail-header {
    background: #1a2a1a;
    border-bottom: 4px solid #39ff14;
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 20px rgba(57,255,20,0.3);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #39ff14;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(57,255,20,0.6);
}

.brand-logo:hover {
    color: #ffdd00;
}

.back-btn {
    color: #ffdd00;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 8px 14px;
    border: 2px solid #ffdd00;
    transition: all 0.2s;
    background: #000;
}

.back-btn:hover {
    background: #ffdd00;
    color: #000;
    box-shadow: 0 0 15px rgba(255,221,0,0.8);
}

/* ===== Arcade Ad ===== */
.arcade-ad {
    border: 2px dashed #2a4a2a;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    margin: 24px 0;
    text-align: center;
}

.arcade-ad-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffdd00;
    margin-bottom: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .detail-header {
        padding: 10px 16px;
    }
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .brand-logo {
        font-size: 12px;
    }
}