/* ═══════════════════════════════════════════════════════════
   80s VIBES - Page specific styles
   ═══════════════════════════════════════════════════════════ */

body {
    background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ─── Synthwave Grid ───────────────────────────────────────── */
.synth-grid {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background: 
        linear-gradient(90deg, rgba(255,0,255,0.3) 1px, transparent 1px),
        linear-gradient(rgba(255,0,255,0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(200px) rotateX(60deg);
    animation: gridMove 1s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* ─── Retro Sun ────────────────────────────────────────────── */
.sun {
    position: fixed;
    bottom: 15vh;
    width: 200px;
    height: 200px;
    background: linear-gradient(180deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    border-radius: 50%;
    box-shadow: 0 0 100px #ff6b6b;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

/* ─── Stars ────────────────────────────────────────────────── */
.stars {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 1s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* ─── Page Title ───────────────────────────────────────────── */
.page-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 2s ease infinite;
    z-index: 10;
    margin-bottom: 1rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 100%; }
}

/* ─── Main Content Layout ──────────────────────────────────── */
.main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

/* ─── Cassette Player ──────────────────────────────────────── */
.audio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cassette {
    width: 250px;
    height: 150px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid #444;
    cursor: pointer;
    transition: transform 0.2s;
}

.cassette:hover { transform: scale(1.05); }

.cassette::before {
    content: 'AWESOME MIX VOL. 80';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f5f5dc;
    padding: 4px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.35rem;
    color: #333;
    border-radius: 3px;
}

.reels {
    display: flex;
    justify-content: space-around;
    padding-top: 50px;
}

.reel {
    width: 50px;
    height: 50px;
    background: conic-gradient(#333 0deg, #666 90deg, #333 180deg, #666 270deg, #333 360deg);
    border-radius: 50%;
    border: 3px solid #555;
}

.reel.spinning { animation: spin 2s linear infinite; }

.subtitle {
    font-family: 'Press Start 2P', monospace;
    color: #00ffff;
    font-size: 0.5rem;
    margin-top: 1rem;
    text-shadow: 0 0 10px #00ffff;
    animation: blink 1s step-end infinite;
    text-align: center;
}

.subtitle.playing {
    animation: none;
    color: #ff00ff;
}

/* ─── Volume Control ───────────────────────────────────────── */
.volume {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume input {
    width: 80px;
    accent-color: #ff00ff;
}

.volume-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

/* ─── Game Cabinet ─────────────────────────────────────────── */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-cabinet {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 4px solid #ff00ff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 30px rgba(255,0,255,0.3), inset 0 0 20px rgba(0,0,0,0.5);
}

.game-title {
    font-family: 'Press Start 2P', monospace;
    color: #ff00ff;
    font-size: 0.6rem;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff00ff;
}

#gameCanvas {
    background: #000;
    border: 2px solid #00ffff;
    display: block;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
}

.score { color: #00ffff; }
.high-score { color: #ff00ff; }

.game-instructions {
    font-family: 'Press Start 2P', monospace;
    color: #666;
    font-size: 0.4rem;
    margin-top: 10px;
    text-align: center;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', monospace;
    color: #ff0000;
    font-size: 0.8rem;
    text-shadow: 0 0 20px #ff0000;
    display: none;
}

/* ─── Pacman Easter Egg ────────────────────────────────────── */
.pacman {
    position: fixed;
    bottom: 50%;
    font-size: 2rem;
    animation: pacmanMove 8s linear infinite;
    z-index: 5;
}

@keyframes pacmanMove {
    0% { left: -50px; }
    100% { left: 110%; }
}
