/* =========================================================
   MAIN MENU – unified style
   ========================================================= */

body {
    background: linear-gradient(to bottom, #fffafa, #f0f0f0);
    overflow-y: auto;
    font-family: 'Noto Sans JP', 'Open Sans', sans-serif;
}

/* ---------------------------------------------
   PAGE WRAPPER
--------------------------------------------- */
.main-page {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;

    opacity: 0;
    transform: translateY(10px);
    animation: main-fade-in 1.2s ease-out forwards;
}

@keyframes main-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------
   TITLE
--------------------------------------------- */
.main-title {
    margin: 0;
    padding-top: 1rem;

    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    color: #5c2a2a;
    letter-spacing: 0.05em;

    text-shadow: 0 1px 1px rgba(0,0,0,0.05);

    animation: main-idle-float 5s ease-in-out infinite alternate,
               main-texture-flicker 16s ease-in-out infinite alternate;
    animation-delay: 0.2s, 0.1s;
}

@keyframes main-idle-float {
    from { transform: translateY(6px); }
    to   { transform: translateY(-6px); }
}

@keyframes main-texture-flicker {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 1% 1%; }
    100% { background-position: 0% 0%; }
}

/* ---------------------------------------------
   BUTTON GROUP
--------------------------------------------- */
.main-menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.8rem;
}

/* ---------------------------------------------
   BUTTONS – same “card” look as other menus
--------------------------------------------- */
.main-menu-button {
    width: 90%;
    max-width: 550px;
    padding: 1.2rem 1rem;

    font-size: 1.3rem;
    font-weight: bold;
    color: #5c2a2a;
    letter-spacing: 0.04em;
    text-align: center;

    background:
        linear-gradient(to bottom, rgba(249, 194, 194, 0.9), rgba(244, 122, 122, 0.9)),
        url('../includes/assets/textures/paper-texture.jpg');
    background-size: 200%;
    background-blend-mode: overlay;

    border: 2px solid #b48a8a;
    border-radius: 1rem;

    box-shadow: 0 5px 10px rgba(0,0,0,0.12);
    cursor: pointer;
    text-decoration: none;

    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.main-menu-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(to bottom, #f9c2c2, #f6baba);
    box-shadow: 0 7px 16px rgba(0,0,0,0.18);
}

/* ---------------------------------------------
   RESPONSIVE
--------------------------------------------- */
@media (max-width: 700px) {
    .main-menu-button {
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem;
    }

    .main-page {
        padding: 1.5rem 0.8rem 3rem;
    }
}
