/* Shared mobile navigation menu — adds a working hamburger toggle to every
   page that uses the standard .header > .container > .logo + .nav-links
   markup (all game pages and static pages; index.html has its own bespoke
   menu already and doesn't need this file). */

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e8ecf1;
    background: #fff;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: #1a1a2e;
    flex-shrink: 0;
}
.mobile-menu-toggle:hover { border-color: #009CFF; }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }

    .header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid #e8ecf1;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        padding: 8px 20px 16px;
        z-index: 200;
    }
    .header { position: relative; }
    .header .nav-links.active { display: flex; }
    .header .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #f0f2f5;
    }
    .header .nav-links a:last-child { border-bottom: none; }
}
