/* Rangers On Tour Predictor V7.0 — Broxi Core */

/* ===== V7 SOURCE: css/broxi-v5.css ===== */
.rot-stadium-toggle {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 100001;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: linear-gradient(145deg, #0b4ea2, #123a76);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,.30);
    cursor: pointer;
}

.rot-stadium-panel {
    position: fixed;
    right: 18px;
    bottom: 158px;
    z-index: 100002;
    width: min(380px, calc(100vw - 28px));
    padding: 17px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(15,33,67,.98), rgba(8,23,49,.98));
    color: #fff;
    box-shadow: 0 22px 58px rgba(0,0,0,.42);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.rot-stadium-panel,
.rot-stadium-panel label,
.rot-stadium-panel span,
.rot-stadium-panel strong,
.rot-stadium-panel output {
    color: #fff;
}

.rot-stadium-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.rot-stadium-panel__header,
.rot-stadium-title,
.rot-stadium-switch {
    display: flex;
    align-items: center;
}

.rot-stadium-panel__header {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.rot-stadium-title {
    gap: 10px;
}

.rot-stadium-title__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    font-size: 21px;
}

.rot-stadium-title strong,
.rot-stadium-title small {
    display: block;
}

.rot-stadium-title small,
.rot-stadium-note {
    color: rgba(255,255,255,.78) !important;
}

.rot-stadium-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.rot-stadium-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.rot-stadium-row input[type="range"] {
    grid-column: 1;
    width: 100%;
    accent-color: #2188ff;
}

.rot-stadium-row output {
    grid-column: 2;
    grid-row: 2;
    min-width: 44px;
    text-align: right;
}

.rot-stadium-switch {
    position: relative;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
}

.rot-stadium-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rot-toggle-ui {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 25px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    transition: background .2s ease;
}

.rot-toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.rot-stadium-switch input:checked + .rot-toggle-ui {
    background: #e11d2e;
}

.rot-stadium-switch input:checked + .rot-toggle-ui::after {
    transform: translateX(21px);
}

.rot-stadium-select {
    display: grid;
    gap: 8px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.rot-stadium-select select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 11px;
    background: #fff;
    color: #10284f;
    padding: 0 11px;
    font-weight: 700;
}

.rot-stadium-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.rot-stadium-actions button {
    min-height: 43px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #10284f;
    font-weight: 800;
    cursor: pointer;
}

.rot-stadium-actions__wide {
    grid-column: 1 / -1;
}

.rot-stadium-note {
    margin: 12px 0 0;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .rot-stadium-toggle {
        right: 12px;
        bottom: 84px;
    }

    .rot-stadium-panel {
        right: 14px;
        bottom: 148px;
    }
}


/* Broxi AI V4.1 */
.rot-voice-status{margin:12px 0 0;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.08);color:#fff!important;text-align:center;font-size:12px;font-weight:800}
.rot-voice-status[data-state="ready"]{background:rgba(36,160,90,.22)}
.rot-voice-status[data-state="speaking"]{background:rgba(35,136,255,.25)}
.rot-voice-status[data-state="error"]{background:rgba(226,29,46,.25)}
#rotFunToast{overflow:hidden}
#rotFunToast .rot-broxi-progress{position:absolute;left:16px;right:16px;bottom:8px;height:4px;width:auto;background:#ffd21f;border-radius:999px;overflow:hidden}

/* Broxi AI V5 consolidated controller */
#rotFunToast{transition:opacity .2s ease,transform .2s ease,visibility .2s ease;opacity:0;visibility:hidden;transform:translateY(12px)}
#rotFunToast.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
#rotFunToast[hidden]{display:none!important}
.rot-voice-status[data-state="ready"]{background:rgba(36,160,90,.22)}
.rot-voice-status[data-state="speaking"]{background:rgba(35,136,255,.25)}
.rot-voice-status[data-state="error"]{background:rgba(226,29,46,.25)}

/* V5.0.1: keep technical browser voice details out of the public panel. */
#rotVoiceStatus, .rot-voice-status { display: none !important; }

/* ===== V7 SOURCE: broxi-v6.1/css/broxi-v6.1.css ===== */
#rotFunToast.rot-fun-toast{overflow:visible!important}
#rotFunToast .rot-broxi-tip{position:relative;display:grid!important;grid-template-columns:94px minmax(0,1fr);align-items:center;gap:12px;min-height:94px;padding-left:6px}
#rotFunToast .broxi-v61-mascot{position:relative;align-self:end;width:100px;height:112px;margin-top:-28px;margin-bottom:-10px;overflow:visible;pointer-events:none;transform-origin:50% 90%;animation:broxiV61Idle 3.6s ease-in-out infinite}
#rotFunToast .broxi-v61-mascot img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 8px rgba(0,0,0,.28));user-select:none;-webkit-user-drag:none}
#rotFunToast.is-visible .broxi-v61-mascot{animation:broxiV61Arrive .5s cubic-bezier(.18,.86,.22,1.22) both,broxiV61Idle 3.6s .55s ease-in-out infinite}
#rotFunToast.broxi-v61-talking .broxi-v61-mascot img{animation:broxiV61Talk .25s ease-in-out infinite alternate}
#rotFunToast.broxi-v61-celebrate .broxi-v61-mascot{animation:broxiV61Celebrate .68s cubic-bezier(.2,.9,.2,1.2) 2}
#rotFunToast .rot-fun-toast-close{position:absolute!important;top:8px!important;right:8px!important;z-index:20!important;display:grid!important;place-items:center!important;width:25px!important;height:25px!important;min-width:25px!important;padding:0!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:50%!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font:800 19px/1 Arial,sans-serif!important;cursor:pointer!important;pointer-events:auto!important;touch-action:manipulation!important}
#rotFunToast .rot-fun-toast-close:hover,#rotFunToast .rot-fun-toast-close:focus-visible{background:rgba(255,255,255,.23)!important;outline:2px solid rgba(255,210,31,.75)!important;outline-offset:2px}
#rotFunToast .rot-broxi-progress{left:16px!important;right:auto!important;bottom:8px!important;max-width:calc(100% - 32px)!important;border-radius:999px!important;overflow:hidden!important}
@keyframes broxiV61Idle{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(.5deg)}}
@keyframes broxiV61Arrive{0%{opacity:0;transform:translate(-18px,15px) scale(.72) rotate(-6deg)}72%{opacity:1;transform:translate(2px,-3px) scale(1.04) rotate(2deg)}100%{opacity:1;transform:none}}
@keyframes broxiV61Talk{from{transform:translateY(0) rotate(-.7deg) scaleY(1)}to{transform:translateY(-2px) rotate(.7deg) scaleY(1.015)}}
@keyframes broxiV61Celebrate{0%,100%{transform:translateY(0) rotate(0) scale(1)}35%{transform:translateY(-13px) rotate(-5deg) scale(1.07)}68%{transform:translateY(-7px) rotate(5deg) scale(1.05)}}
@media(max-width:600px){#rotFunToast .rot-broxi-tip{grid-template-columns:70px minmax(0,1fr);gap:8px;min-height:78px}#rotFunToast .broxi-v61-mascot{width:76px;height:88px;margin-top:-18px;margin-bottom:-8px}}
@media(prefers-reduced-motion:reduce){#rotFunToast .broxi-v61-mascot,#rotFunToast .broxi-v61-mascot img{animation:none!important}}
