:root {
    --primary: #ff4757;
    --primary-dark: #ff3838;
    --primary-light: #ff6b7a;
    --bg-dark: #0f1419;
    --bg-card: #1a1f2e;
    --bg-secondary: #252d3d;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --border-color: #ff4757;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Trebuchet MS', 'Gill Sans', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f2e 100%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 122, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1120px;
    padding: 40px 20px;
    text-align: center;
}

/* Title Section */
.title-section {
    margin-bottom: 60px;
    animation: slideDownIn 0.8s ease-out;
}

.title-content h1,
.title-content p {
    margin: 0;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

/* Game Section */
.game-section {
    width: 100%;
    display: block;
    margin-bottom: 40px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.game-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(255, 71, 87, 0.1);
    overflow: hidden;
    animation: slideUpIn 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(255, 71, 87, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.card-content {
    padding: 30px 24px;
    background: var(--bg-card);
    flex-grow: 1;
}

.game-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 25px 0;
}

/* Game Features */
.game-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 71, 87, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 71, 87, 0.1);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* CTA Button */
.cta-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 71, 87, 0.4);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.cta-button.is-clicked {
    transform: scale(0.99);
}

/* Footer */
.menu-footer {
    margin-top: 40px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 300;
}

/* Animations */
@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-container {
        padding: 30px 16px;
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .title-section {
        margin-bottom: 40px;
    }

    .card-content {
        padding: 24px 20px;
    }

    .game-features {
        gap: 10px;
        padding: 16px;
    }

    .feature-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 20px 12px;
    }

    .main-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .title-section {
        margin-bottom: 30px;
    }

    .card-header h2 {
        font-size: 1.2rem;
    }

    .game-description {
        font-size: 0.95rem;
    }

    .game-features {
        flex-direction: row;
        justify-content: space-between;
    }

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

    .feature-value {
        font-size: 1.2rem;
    }
}
