@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Quicksand:wght@500;600;700&display=swap');

:root {
    --bg-top: #241f3f;
    --bg-bottom: #14111f;
    --paper: #221e3a;
    --ink: #f2eefc;
    --ink-soft: #a79fc9;
    --line: #362f57;

    --mint: #cff6e0;
    --mint-ink: #1f9d5c;
    --sky: #cfe8ff;
    --sky-ink: #2178c9;
    --sun: #ffedbf;
    --sun-ink: #c9860f;
    --grape: #ece0ff;
    --grape-ink: #7c4fd1;
    --grape-bright: #b9a1ff;
    --coral: #ffdcd6;
    --coral-ink: #e1503a;

    --radius-lg: 26px;
    --radius-md: 18px;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: radial-gradient(circle at 16% 10%, #2c2650 0%, var(--bg-top) 45%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    color: var(--ink);
}

.bg-pattern {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 72px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.2px;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-top: 6px;
}

#menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    opacity: 0;
}

.menu-btn-enter {
    animation: menu-btn-in 0.4s ease forwards;
}

@keyframes menu-btn-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.menu-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

.menu-btn-label {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
}

#arc-btn .menu-btn-icon {
    background: var(--mint);
    color: var(--mint-ink);
}

#arc-btn:hover {
    border-color: var(--mint-ink);
}

#bongard-btn .menu-btn-icon {
    background: var(--sky);
    color: var(--sky-ink);
}

#bongard-btn:hover {
    border-color: var(--sky-ink);
}

#winograd-btn .menu-btn-icon {
    background: var(--grape);
    color: var(--grape-ink);
}

#winograd-btn:hover {
    border-color: var(--grape-ink);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

.menu-btn:focus-visible {
    outline: 3px solid var(--grape-bright);
    outline-offset: 2px;
}

@media (max-width: 500px) {
    .page {
        padding: 48px 16px;
    }

    .hero-title {
        font-size: 25px;
    }
}
