* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
}

body {
    background-color: #130b32;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(92, 50, 183, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(199, 95, 170, 0.3) 0%, transparent 40%);
}

.arcade-machine {
    width: 90%;
    max-width: 800px;
    position: relative;
    margin: 20px auto;
}

.arcade-top {
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #222, #000);
    border-radius: 20px 20px 0 0;
    position: relative;
    border: 5px solid #5a34b7;
    border-bottom: none;
    box-shadow: 0 0 20px #c75faa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.marquee {
    background: #c75faa;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
    box-shadow: 0 0 15px #c75faa;
    animation: blink 2s infinite alternate;
    text-align: center;
    width: auto;
    display: inline-block;
}

.arcade-screen {
    width: 100%;
    background-color: #0a061d;
    padding: 40px 30px;
    border: 5px solid #5a34b7;
    box-shadow: 
        0 0 30px #54217a, 
        inset 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.arcade-bottom {
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, #222, #000);
    border-radius: 0 0 20px 20px;
    border: 5px solid #5a34b7;
    border-top: none;
    box-shadow: 0 0 20px #c75faa;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #c75faa;
    text-shadow: 0 0 10px #c75faa, 0 0 20px #c75faa;
    letter-spacing: 3px;
    animation: flicker 3s infinite alternate;
    position: relative;
    z-index: 5;
}

.countdown {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    position: relative;
    z-index: 5;
}

.countdown-item {
    text-align: center;
    background-color: rgba(84, 33, 122, 0.8);
    padding: 20px 15px;
    border-radius: 10px;
    width: 22%;
    box-shadow: 0 0 15px #5a34b7;
    border: 2px solid #639cb8;
    position: relative;
    overflow: hidden;
}

.countdown-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #639cb8;
    text-shadow: 0 0 5px #639cb8;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.countdown-label {
    font-size: 0.9rem;
    color: #c75faa;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.start-button {
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.start-btn {
    background: linear-gradient(to bottom, #c75faa, #54217a);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px #c75faa, 0 5px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px #c75faa, 0 8px 15px rgba(0, 0, 0, 0.4);
}

.start-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 15px #c75faa, 0 2px 5px rgba(0, 0, 0, 0.4);
}

.start-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.start-btn:hover::before {
    animation: shine 1.5s infinite;
}

.joystick {
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 50%;
    box-shadow: 0 0 15px #c75faa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.joystick-knob {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom, #c75faa, #54217a);
    border-radius: 50%;
    box-shadow: 0 0 10px #c75faa;
}

.buttons {
    position: absolute;
    bottom: 40px;
    left: 30px;
    display: flex;
    gap: 15px;
}

.button {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom, #c75faa, #54217a);
    border-radius: 50%;
    box-shadow: 0 0 10px #c75faa;
}

.game-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: glitch 10s infinite;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px #c75faa, 0 0 20px #c75faa;
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: 0 0 15px #c75faa, 0 0 30px #c75faa, 0 0 40px #c75faa;
        opacity: 0.8;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20% { transform: translateX(100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes glitch {
    0% { opacity: 0; }
    5% { opacity: 0.1; transform: translateX(5px); }
    6% { opacity: 0; transform: translateX(0); }
    97% { opacity: 0; }
    98% { opacity: 0.2; transform: translateX(-5px); }
    100% { opacity: 0; transform: translateX(0); }
}

@media (max-width: 768px) {
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        width: 45%;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .marquee {
        font-size: 1rem;
        padding: 8px 15px;
        white-space: nowrap;
    }
    
    .arcade-top {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .start-btn {
        padding: 12px 30px;
        font-size: 1.2rem;
    }
    
    .joystick {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 15px;
    }
    
    .joystick-knob {
        width: 30px;
        height: 30px;
    }
    
    .button {
        width: 30px;
        height: 30px;
    }
    
    .buttons {
        bottom: 30px;
        left: 20px;
    }
}