/* Game Collection CSS - Cyberpunk Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a, #1a0a2e, #0f0f23);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 3px
        );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
    z-index: 1;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.game-collection {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h1 {
    text-align: center;
    font-size: 3rem;
    margin: 30px 0;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.game-card {
    background: linear-gradient(145deg, #0a0a0a, #1a0a2e);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), 0 0 60px rgba(255, 0, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #00ffff;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.6), 0 0 100px rgba(255, 0, 255, 0.4);
    border-color: #ff00ff;
}

.game-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff00ff;
    text-align: center;
    text-shadow: 0 0 15px #ff00ff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Game Icons */
.game-icon {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    margin-bottom: 15px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1), transparent 50%),
                linear-gradient(180deg, #000000, #0a0014);
    position: relative;
    overflow: hidden;
}

/* Tetris Icon */
.tetris-icon .tetris-blocks {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    gap: 5px;
    transform: rotate(15deg);
}

.tetris-icon .block {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), inset 0 0 10px rgba(255, 0, 255, 0.5);
    animation: tetris-pulse 2s infinite alternate;
}

@keyframes tetris-pulse {
    0% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), inset 0 0 10px rgba(255, 0, 255, 0.5); }
    100% { box-shadow: 0 0 25px rgba(0, 255, 255, 1), inset 0 0 15px rgba(255, 0, 255, 0.8); }
}

/* Match-3 Icon */
.match3-icon {
    gap: 15px;
}

.match3-icon .gem {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: gem-spin 3s infinite linear;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.match3-icon .gem:nth-child(2) {
    animation-delay: 1s;
    background: linear-gradient(135deg, #00ffff, #ffff00);
}

.match3-icon .gem:nth-child(3) {
    animation-delay: 2s;
    background: linear-gradient(135deg, #ffff00, #ff00ff);
}

@keyframes gem-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Pong Icon */
.pong-icon {
    justify-content: space-between;
    padding: 20px;
}

.pong-icon .paddle {
    width: 10px;
    height: 60px;
    background: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    animation: paddle-move 2s infinite alternate ease-in-out;
}

.pong-icon .paddle.right {
    animation-delay: 1s;
}

.pong-icon .ball {
    width: 20px;
    height: 20px;
    background: #ff00ff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    animation: ball-bounce 1s infinite alternate ease-in-out;
}

@keyframes paddle-move {
    0%, 100% { transform: translateY(-20px); }
    50% { transform: translateY(20px); }
}

@keyframes ball-bounce {
    0% { transform: translateX(-40px) translateY(-20px); }
    100% { transform: translateX(40px) translateY(20px); }
}

/* Bricks Icon */
.bricks-icon {
    flex-direction: column;
    justify-content: space-around;
    padding: 20px;
}

.bricks-icon .bricks-row {
    display: flex;
    gap: 8px;
}

.bricks-icon .brick {
    width: 40px;
    height: 15px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.bricks-icon .brick-ball {
    width: 15px;
    height: 15px;
    background: #ffff00;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.8);
    animation: brick-ball-move 2s infinite alternate ease-in-out;
}

.bricks-icon .brick-paddle {
    width: 60px;
    height: 8px;
    background: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

@keyframes brick-ball-move {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

/* Reaction Icon */
.reaction-icon {
    flex-direction: column;
    gap: 20px;
}

.reaction-icon .reaction-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    animation: reaction-pulse 1.5s infinite;
}

.reaction-icon .reaction-text {
    font-size: 48px;
    color: #ffff00;
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
    animation: reaction-flash 1.5s infinite;
}

@keyframes reaction-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
    50% { transform: scale(1.2); box-shadow: 0 0 50px rgba(0, 255, 255, 1); }
}

@keyframes reaction-flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Tic-Tac-Toe Icon */
.tictactoe-icon {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(3, 50px);
    gap: 0;
}

.tictactoe-icon .grid-line {
    position: absolute;
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.tictactoe-icon .grid-line.h1,
.tictactoe-icon .grid-line.h2 {
    width: 150px;
    height: 3px;
    left: 0;
}

.tictactoe-icon .grid-line.h1 { top: 50px; }
.tictactoe-icon .grid-line.h2 { top: 100px; }

.tictactoe-icon .grid-line.v1,
.tictactoe-icon .grid-line.v2 {
    width: 3px;
    height: 150px;
    top: 0;
}

.tictactoe-icon .grid-line.v1 { left: 50px; }
.tictactoe-icon .grid-line.v2 { left: 100px; }

.tictactoe-icon .x-mark,
.tictactoe-icon .o-mark {
    position: absolute;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tictactoe-icon .x-mark {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    top: 9px;
    left: 9px;
    width: 32px;
    height: 32px;
}

.tictactoe-icon .o-mark {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    bottom: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
}

/* Space Invaders Icon */
.space-icon {
    flex-direction: column;
    gap: 40px;
}

.space-icon .alien {
    font-size: 64px;
    animation: alien-move 2s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8));
}

.space-icon .spaceship {
    font-size: 48px;
    animation: spaceship-move 2s infinite alternate ease-in-out;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
}

@keyframes alien-move {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

@keyframes spaceship-move {
    0% { transform: translateX(20px); }
    100% { transform: translateX(-20px); }
}

.game-card p {
    margin-bottom: 20px;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

.play-now-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    border-radius: 3px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
}

.play-now-button:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 10px #00ffff;
}

.play-now-button:active {
    transform: scale(0.98);
}

/* Responsive design */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .game-card h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .game-grid {
        gap: 15px;
    }
    
    .game-card {
        padding: 15px;
    }
    
    .game-card h2 {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .game-card h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .game-grid {
        gap: 15px;
    }
    
    .game-card {
        padding: 15px;
    }
    
    .game-card h2 {
        font-size: 1.2rem;
    }
}