/* Retro Arcade Theme - Bubble Bobble Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-purple: #bf00ff;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --screen-glow: rgba(0, 255, 255, 0.1);
}

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(180deg, #1a0a2e 0%, #0a0a1a 50%, #050510 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Arcade Cabinet Container */
.arcade-cabinet {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Marquee Header */
.marquee {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 100%;
    animation: gradient-shift 3s linear infinite;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    border: 4px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.marquee-content {
    white-space: nowrap;
    animation: scroll 15s linear infinite;
}

.marquee-content span {
    font-size: 14px;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 2px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Screen Frame */
.screen-frame {
    background: linear-gradient(145deg, #2a1a3e, #1a0a2e);
    padding: 30px;
    border-left: 8px solid #333;
    border-right: 8px solid #333;
    border-bottom: 20px solid #222;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

/* Screen Area */
.screen {
    position: relative;
    background: #000;
    border: 4px solid #444;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        inset 0 0 100px rgba(0, 255, 255, 0.1),
        0 0 30px rgba(0, 255, 255, 0.3);
    min-height: 600px;
}

/* CRT Effect Overlay */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    border-radius: 16px;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.game-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        4px 4px 0 #000;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 4px 4px 0 #000; }
    to { text-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink), 0 0 60px var(--neon-pink), 4px 4px 0 #000; }
}

.blink {
    animation: blink 1s step-end infinite;
    color: var(--neon-cyan);
    font-size: 12px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Neon Text Classes */
.neon-pink {
    color: var(--neon-pink);
}

.neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.pixel-text {
    font-family: 'Press Start 2P', cursive;
}

/* Ad Banner */
.ad-banner {
    margin: 20px auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px dashed var(--neon-purple);
    border-radius: 5px;
    text-align: center;
    min-width: 300px;
    min-height: 90px;
    width: 100%;
    max-width: 728px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ad-banner ins {
    display: block;
    width: 100%;
    min-height: 90px;
}

/* Arcade Grid */
.arcade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

/* Game Card */
.game-card {
    background: linear-gradient(145deg, #1a0a2e, #0a0a1a);
    border: 3px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    border-color: var(--neon-pink);
}

.game-card h3 {
    color: var(--neon-pink);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-card p {
    font-size: 10px;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.5;
}

.play-btn {
    display: inline-block;
    background: linear-gradient(180deg, #ff00ff, #bf00bf);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    text-shadow: 1px 1px 0 #000;
    box-shadow: 
        0 4px 0 #800080,
        0 0 15px rgba(255, 0, 255, 0.5);
    transition: all 0.1s;
}

.play-btn:hover {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #800080,
        0 0 20px rgba(255, 0, 255, 0.8);
}

.play-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #800080;
}

.game-meta {
    margin-top: 10px;
    font-size: 8px;
    color: #555;
}

/* High Score Display */
.high-score {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-cyan);
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.high-score span {
    display: block;
    margin: 5px 0;
}

.high-score span:first-child {
    font-size: 10px;
    color: var(--neon-cyan);
}

.high-score span:last-child {
    font-size: 20px;
    color: var(--neon-pink);
}

/* Cabinet Controls (Decorative) */
.cabinet-controls {
    background: linear-gradient(145deg, #333, #111);
    padding: 30px;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    border-bottom: 10px solid #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.joystick {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #666 30%, #333 70%);
    border-radius: 50%;
    border: 4px solid #222;
    position: relative;
}

.joystick::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 40px;
    background: linear-gradient(180deg, #444, #222);
    border-radius: 5px;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #222;
    box-shadow: 
        0 5px 0 #000,
        inset 0 -5px 10px rgba(0,0,0,0.3);
}

.btn-a {
    background: radial-gradient(circle, #ff0040, #990026);
}

.btn-b {
    background: radial-gradient(circle, #00ff40, #009926);
}

/* Responsive */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 20px;
    }
    
    .arcade-grid {
        grid-template-columns: 1fr;
    }
    
    .cabinet-controls {
        padding: 20px;
        gap: 30px;
    }
}

/* Game Page Specific Styles */
.game-container {
    position: relative;
    z-index: 1;
}

.game-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-cyan);
    border-radius: 5px;
}

.game-nav a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 10px;
}

.game-nav a:hover {
    color: var(--neon-pink);
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    border: 4px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    max-width: 100%;
}

.game-info {
    text-align: center;
    margin-top: 15px;
    font-size: 10px;
    color: #888;
}

/* Phaser Game Container */
#game {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#game canvas {
    display: block;
    margin: 0 auto;
    border: 4px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    max-width: 100%;
}
