/* =========================================================
   PLUMBER T-RAX ONLINE — SOLID, NON-TRANSLUCENT GAME UI
   Matches the existing chess/game menu button language.
   ========================================================= */

#olRoot {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    box-sizing: border-box;
    overflow: auto;
    background:
        linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
        #000 center / cover no-repeat;
    color: #fff;
    font-family: inherit;
    text-align: center;
}

#olRoot.open {
    display: flex;
}

#olRoot .fg-heading,
#olRoot .fg-title {
    text-shadow:
        0 0 8px #39ff14,
        0 0 18px #39ff14;
}

#olRoot .chess-mode-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 88vw);
    min-height: 65px;
    padding: 14px 25px;
    border: 3px solid #39ff14;
    border-radius: 14px;
    background: linear-gradient(135deg, #111111, #202020);
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
        0 0 8px rgba(57,255,20,.5),
        inset 0 0 10px rgba(57,255,20,.08);
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

#olRoot .chess-mode-button:hover {
    transform: scale(1.06);
    background: #39ff14;
    color: #000;
    box-shadow:
        0 0 15px #39ff14,
        0 0 30px rgba(57,255,20,.7);
}

#olRoot .chess-mode-button:active {
    transform: scale(.98);
}

#olRoot .chess-mode-button:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

#olRoot .games-exit-button {
    position: absolute;
    top: 25px;
    right: 25px;
    min-width: 120px;
    min-height: 50px;
    padding: 10px 20px;
    background: rgba(0,0,0,.9);
    border: 3px solid #00c853;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,255,0,.35);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

#olRoot .games-exit-button:hover {
    transform: scale(1.08);
    background: rgba(0,255,0,.20);
    box-shadow: 0 0 25px rgba(0,255,0,.8);
}

#olRoot .login-input {
    width: min(360px, 88vw);
    box-sizing: border-box;
    min-height: 52px;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border: 2px solid #39ff14;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
}

#olRoot .login-input:focus {
    box-shadow: 0 0 15px rgba(57,255,20,.55);
}

#olRoot .ol-label,
#olRoot .ol-name-label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
}

#olRoot .ol-code {
    font-size: 56px;
    line-height: 1;
    letter-spacing: 12px;
    color: #7cff3a;
    font-weight: 900;
    text-shadow: 0 0 18px #7cff3a;
    margin: 4px 0 10px;
}

#olRoot .ol-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 320px;
    margin: 3px 0;
    font-size: 22px;
    font-weight: 800;
}

#olRoot .ol-step b {
    min-width: 38px;
}

#olRoot .ol-step .fg-btn {
    min-width: 44px;
    min-height: 40px;
    padding: 4px 12px;
}

#olRoot .ol-players {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: min(800px, 90vw);
    margin: 4px 0 6px;
}

#olRoot .ol-p {
    min-width: 150px;
    min-height: 55px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    background: #111;
    border: 2px solid #39ff14;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(57,255,20,.22);
}

#olRoot .ol-p small {
    color: #39ff14;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 1px;
}

#olRoot .ol-seat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #39ff14;
    color: #000;
    font-weight: 900;
}

#olRoot .ol-host-note,
#olRoot .ol-wait,
#olRoot #olCount,
#olRoot #olMsg,
#olRoot .bx-msg {
    color: #fff;
    max-width: 760px;
}

#olRoot .ol-host-note {
    margin: 5px 0 8px;
    color: #39ff14;
    font-weight: 800;
    letter-spacing: 1px;
}

#olToast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 100001;
    display: none;
    background: #000;
    color: #fff;
    border: 2px solid #39ff14;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(57,255,20,.45);
}

#olRotate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    color: #39ff14;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font: 900 22px sans-serif;
    letter-spacing: 1px;
    padding: 30px;
}

#fg-online-button,
#chess-online-button,
#ludo-online-button {
    opacity: 1 !important;
    cursor: pointer !important;
    filter: none !important;
}

@media (max-width: 600px) {
    #olRoot {
        padding: 20px;
    }

    #olRoot .chess-mode-button {
        width: min(320px, 88vw);
        min-height: 60px;
        font-size: 17px;
    }

    #olRoot .games-exit-button {
        top: 15px;
        right: 15px;
        min-width: 90px;
        min-height: 42px;
        font-size: 15px;
    }

    #olRoot .ol-code {
        font-size: 42px;
        letter-spacing: 8px;
    }
}

/* Online mode buttons generated inside game menus use the same solid
   button treatment and must never inherit a disabled/translucent state. */
[data-online-game] {
    opacity: 1 !important;
    filter: none !important;
    cursor: pointer !important;
}
