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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

h1 {
    font-size: 2.8em;
    margin-top: 50px;
    margin-bottom: 10px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
    letter-spacing: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    flex: 1;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.game-card h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.game-card p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.8);
}

.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 35px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
    margin-top: auto;
}

.play-btn:hover {
    transform: scale(1.05);
}

.orange-btn {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

.yellow-btn {
    background: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
    color: #333;
}

.purple-btn {
    background: linear-gradient(135deg, #3f51b5 0%, #9c27b0 100%);
}

.green-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00994d 100%);
    color: #000;
}

.blue-btn {
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.orioles-btn {
    background: linear-gradient(135deg, #df4601 0%, #000000 100%);
}

.gray-btn {
    background: linear-gradient(135deg, #607d8b 0%, #37474f 100%);
}

.green-dark-btn {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
        margin-top: 55px;
    }

    .back-btn {
        font-size: 0.8em;
        padding: 8px 15px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        padding: 20px;
    }
}
