/* Center overlay menu for the FPS Game Starter live demo.
   Reuses css/sbp-live-demo.css (glow, bevel, hover/press) and the
   Arena Blasters / sign-in display font (Bangers) on the title and labels.
   Scoped to #panel so HUD, gameplay, and logic stay unchanged. */

#panel {
    text-align: center;
    width: min(460px, calc(100vw - 24px));
    padding: 1.6rem 1.35rem 1.25rem;
    border: 1px solid rgba(42, 209, 214, 0.55);
    border-radius: 1.25rem;
    color: #e8eef6;
    background:
        radial-gradient(900px 260px at 50% -8%, rgba(42, 209, 214, 0.16), transparent 60%),
        linear-gradient(180deg, #161b24 0%, #0c1016 100%);
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 32px rgba(42, 209, 214, 0.28),
        0 18px 44px rgba(0, 0, 0, 0.5);
}

#panel #title,
#panel h1#title {
    display: block;
    width: 100%;
    margin: 0 0 0.7rem;
    padding: 0;
    color: #fff3d4;
    font-family: Bangers, Impact, sans-serif;
    font-size: clamp(1.85rem, 6vw, 2.7rem);
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 3px 0 #381328, 0 0 18px rgba(248, 120, 25, 0.25);
}

#panel h1#title.over {
    color: #fecaca;
    text-shadow: 0 3px 0 #3b0a0a, 0 0 18px rgba(239, 68, 68, 0.35);
}

#panel p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.45;
    color: #c5cdd8;
}

#panel .sbp-live-demo-btn {
    width: 100%;
    max-width: 320px;
    margin: 10px auto 0;
    font-family: Bangers, Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
}

#panel .sbp-fps-menu-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    margin-top: 10px;
}

#panel .sbp-fps-menu-row .sbp-live-demo-btn {
    width: auto;
    flex: 1 1 140px;
    max-width: 220px;
    margin-top: 0;
}

/* Callsign + compact REROLL stay on one row. */
#panel .sbp-fps-callsign {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 10px 0 4px;
}

#panel .sbp-fps-callsign .sbp-live-demo-btn {
    width: auto;
    min-height: 2.4rem;
    padding: 0.35rem 1rem;
    margin: 0;
    flex: 0 0 auto;
    font-size: 1.05rem;
}

#panel #mpChoose,
#panel #mpPrivateView,
#panel #mpPause {
    margin-top: 4px;
}

#panel .mp-hint,
#panel #mpNote,
#panel #mpInvite,
#panel #mpPauseInfo {
    color: #9aa3b2;
    font-size: 0.86rem;
}

@media (max-height: 500px) {
    #panel {
        padding: 0.85rem 1rem 0.75rem;
        max-width: 440px;
    }
    #panel #title,
    #panel h1#title {
        font-size: 1.7rem;
        margin-bottom: 0.35rem;
    }
    #panel p { font-size: 12.5px; line-height: 1.35; margin: 4px 0; }
    #panel .sbp-live-demo-btn {
        min-height: 2.5rem;
        padding: 0.45rem 1.15rem;
        margin-top: 6px;
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #panel .sbp-live-demo-btn,
    #panel .sbp-live-demo-btn:hover,
    #panel .sbp-live-demo-btn:active {
        transition: none;
        transform: none;
    }
}
