html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #9ef7d3;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 10, 6, 0.72), rgba(0, 5, 3, 0.88)),
        url("BattaileNavale.webp") center center / cover no-repeat fixed;
}

body {
    position: relative;
    isolation: isolate;
}

/* ================= VIGNETTE ================= */
html::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ================= GRID RADAR ================= */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 180vmax;
    height: 180vmax;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;

    background:
        repeating-radial-gradient(circle, rgba(0,255,140,0.1) 0 2px, transparent 2px 80px),
        repeating-linear-gradient(0deg, rgba(0,255,140,0.05) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(90deg, rgba(0,255,140,0.04) 0 1px, transparent 1px 50px);

    mask-image: radial-gradient(circle, black 0%, black 60%, transparent 100%);
}

/* ================= SWEEP ================= */
body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 180vmax;
    height: 180vmax;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(4px);

    background: conic-gradient(
        transparent 0deg,
        transparent 330deg,
        rgba(0,255,140,0.05) 340deg,
        rgba(0,255,140,0.15) 350deg,
        rgba(120,255,200,0.8) 356deg,
        rgba(0,255,140,0.2) 360deg
    );

    mask-image: radial-gradient(circle, black 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    animation: radarSweep 5s linear infinite;
}

@keyframes radarSweep {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================= MENU ================= */
#menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 520px);
    padding: 42px 30px;
    text-align: center;
    background: rgba(0, 18, 10, 0.7);
    border: 1px solid rgba(0,255,140,0.3);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    z-index: 3;
}

/* ================= TITRE ================= */
#title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 3px;
    color: #baffea;
}

/* ================= BOUTONS ================= */
.menu-btn {
    position: relative;
    display: block;
    width: min(100%, 320px);
    margin: 12px auto;
    padding: 15px;
    font-size: 16px;
    color: #a7f7d7;
    background: rgba(0, 36, 20, 0.6);
    border: 1px solid rgba(0,255,140,0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}

/* ================= BLIP ================= */
.menu-btn::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(120,255,200,0.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* apparition du blip */
.menu-btn:hover::after {
    animation: blipPing 0.8s ease-out;
}

@keyframes blipPing {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 1;
        box-shadow: 0 0 10px rgba(120,255,200,0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* ================= HOVER ================= */
.menu-btn:hover {
    background: rgba(0,60,30,0.8);
    border-color: rgba(120,255,200,0.9);
    color: #e0fff6;
    box-shadow: 0 0 15px rgba(0,255,140,0.4);
}

.menu-btn:active {
    transform: scale(0.96);
}

/* ================= FOOTER ================= */
#footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(170,245,215,0.5);
    z-index: 3;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 700px) {
    #menu {
        width: calc(100vw - 20px);
        padding: 25px 15px;
    }

    #title {
        font-size: clamp(24px, 8vw, 36px);
    }

    .menu-btn {
        width: 100%;
    }
}