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

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #1a0933 0%, #2a1a4a 100%);
    color: #00fff2;
    min-height: 100vh;
    padding: 20px;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 32px;
    color: #ff006e;
    text-shadow: 0 0 20px #ff006e, 0 0 40px #ff006e;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #ff006e, 0 0 40px #ff006e; }
    to { text-shadow: 0 0 30px #ff006e, 0 0 60px #ff006e, 0 0 80px #ff006e; }
}

.subtitle {
    font-size: 12px;
    color: #00fff2;
    margin-bottom: 15px;
}

.ticker {
    background: rgba(0, 255, 242, 0.1);
    border: 2px solid #00fff2;
    padding: 10px;
    font-size: 10px;
    overflow: hidden;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { text-indent: 100%; }
    100% { text-indent: -100%; }
}

.games-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 968px) {
    .games-container {
        grid-template-columns: 1fr;
    }
}

.game-column {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #00fff2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.3);
}

.game-title {
    font-size: 16px;
    color: #ff006e;
    text-align: center;
    margin-bottom: 15px;
}

.game-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    background: #000;
    border: 2px solid #2a1a4a;
    padding: 5px;
}

.game-canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 10px;
    color: #00fff2;
}

.game-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ff006e 0%, #cc0055 100%);
    color: white;
    border: 2px solid #ff006e;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.control-panel {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #ff006e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.game-selector {
    display: flex;
    gap: 10px;
}

.game-selector button.active {
    background: linear-gradient(135deg, #00fff2 0%, #00cccc 100%);
    border-color: #00fff2;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.8);
}

.sound-toggle {
    background: linear-gradient(135deg, #00fff2 0%, #00cccc 100%);
    border-color: #00fff2;
}

.leaderboard {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #00fff2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.leaderboard h2 {
    font-size: 16px;
    color: #ff006e;
    text-align: center;
    margin-bottom: 20px;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .scores-grid {
        grid-template-columns: 1fr;
    }
}

.scores-grid h3 {
    font-size: 12px;
    color: #00fff2;
    margin-bottom: 10px;
    text-align: center;
}

.score-entry {
    font-size: 10px;
    padding: 5px;
    background: rgba(0, 255, 242, 0.1);
    border-left: 3px solid #ff006e;
    margin-bottom: 5px;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 10px;
    color: #00fff2;
}

.footer a {
    color: #ff006e;
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    text-shadow: 0 0 10px #ff006e;
}

.cta {
    margin-top: 10px;
    color: #00fff2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}