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

body {
    font-family: 'Fredoka', cursive, sans-serif;
    background: linear-gradient(135deg, #a8edf0 0%, #fed6e3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

/* Header / Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: #4a3e3d;
    text-shadow: 3px 3px 0px #fff;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #555;
}

/* Container & Grid */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 30px auto;
    flex: 1;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Game Cards */
.game-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 4px solid #fff;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
}

/* Card Themes */
.card-math { border-color: #ff7675; }
.card-geo { border-color: #74b9ff; }
.card-coming-soon { border-color: #a29bfe; opacity: 0.9; }

/* Badges & Icons */
.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffeaa7;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #d63031;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 4rem;
    margin: 15px 0 10px;
}

.game-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.game-card p {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Buttons */
.play-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: #00b894;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0px 5px 0px #00896f;
    transition: all 0.1s ease;
    border: none;
    cursor: pointer;
}

.play-btn:hover {
    background: #55efc4;
    color: #2d3436;
}

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

.play-btn.disabled {
    background: #b2bec3;
    box-shadow: 0px 5px 0px #636e72;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #636e72;
}