/* Rysa MLBB floating helper — homepage catalogue only. */
.rysa-mlbb-helper[hidden],
.rysa-mlbb-region-modal[hidden] { display: none !important; }
.rysa-mlbb-helper {
    position: fixed;
    z-index: 20020;
    width: 76px;
    height: 76px;
    left: 50%;
    top: 27vh;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .2s ease;
    -webkit-user-select: none;
    user-select: none;
}
.rysa-mlbb-helper.is-visible { opacity: 1; pointer-events: auto; }
.rysa-mlbb-helper-face {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.rysa-mlbb-helper-face:active { cursor: grabbing; }
.rysa-mlbb-helper-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    pointer-events: none;
    transform-origin: 50% 80%;
}
.rysa-mlbb-helper.is-visible .rysa-mlbb-helper-face img {
    animation: rysaMlbbHelperIdle 3.2s ease-in-out .25s infinite;
}
.rysa-mlbb-helper-bubble {
    position: absolute;
    left: 50%;
    top: -43px;
    z-index: 1;
    min-width: 86px;
    padding: 9px 13px;
    border: 1px solid #d9ecff;
    border-radius: 9px;
    background: #f7fbff;
    color: #102b50;
    box-shadow: 0 5px 15px rgba(0,0,0,.20);
    font: 900 12px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .45px;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 7px) scale(.94);
    transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}
.rysa-mlbb-helper-bubble::after {
    content: "";
    position: absolute;
    left: calc(50% - 5px);
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid #d9ecff;
    border-bottom: 1px solid #d9ecff;
    background: #f7fbff;
    transform: rotate(45deg);
}
.rysa-mlbb-helper.is-visible .rysa-mlbb-helper-bubble {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    transition-delay: .2s;
}
.rysa-mlbb-helper.is-dragging .rysa-mlbb-helper-face img { animation: none; }
.rysa-mlbb-helper.is-dragging .rysa-mlbb-helper-bubble { transition-delay: 0s; }

.rysa-mlbb-region-modal {
    position: fixed;
    inset: 0;
    z-index: 20030;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px;
}
.rysa-mlbb-region-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 5, 18, .86);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}
.rysa-mlbb-region-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: min(86vh, 680px);
    overflow: auto;
    border: 1px solid rgba(113,197,255,.42);
    border-radius: 19px;
    background: linear-gradient(155deg,#14243a 0%,#101a2e 55%,#091224 100%);
    color: #f4f8ff;
    box-shadow: 0 24px 70px rgba(0,0,0,.58);
    animation: rysaMlbbRegionIn .2s ease-out both;
}
.rysa-mlbb-region-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 17px 13px;
    border-bottom: 1px solid rgba(130,169,205,.17);
}
.rysa-mlbb-region-head h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.2; letter-spacing: -.25px; }
.rysa-mlbb-region-head p { margin: 5px 0 0; color: #a8bad1; font-size: 12px; line-height: 1.45; }
.rysa-mlbb-region-close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #344b65;
    border-radius: 11px;
    background: #14243b;
    color: #eff7ff;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}
.rysa-mlbb-region-body { padding: 16px 17px 18px; }
.rysa-mlbb-region-fields { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(100px,.8fr); gap: 10px; }
.rysa-mlbb-region-field { min-width: 0; margin: 0 0 13px; }
.rysa-mlbb-region-field label { display: block; margin: 0 0 6px; color: #a9c3df; font-size: 11px; font-weight: 800; letter-spacing: .35px; }
.rysa-mlbb-region-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #344b65;
    border-radius: 11px;
    outline: none;
    background: #081326;
    color: #f4f8ff;
    font: 500 14px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.rysa-mlbb-region-field input:focus { border-color: #55baff; box-shadow: 0 0 0 3px rgba(74,171,255,.15); }
.rysa-mlbb-region-field input::placeholder { color: #7187a4; }
.rysa-mlbb-region-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(100deg,#2498e7,#2869e6);
    color: #fff;
    font: 850 14px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    cursor: pointer;
}
.rysa-mlbb-region-submit:disabled { opacity: .65; cursor: wait; }
.rysa-mlbb-region-result[hidden] { display: none !important; }
.rysa-mlbb-region-result {
    margin-top: 12px;
    padding: 12px 13px;
    border: 1px solid #3c536b;
    border-radius: 12px;
    background: #101e33;
    color: #d7e8fb;
    font-size: 13px;
    line-height: 1.5;
}
.rysa-mlbb-region-result.success { border-color: #27745c; background: #0d2a24; color: #d1ffed; }
.rysa-mlbb-region-result.error { border-color: #7d4050; background: #321a25; color: #ffd8e0; }
.rysa-mlbb-region-result strong { color: #fff; }
.rysa-mlbb-region-result .region-result-name { display: block; margin: 3px 0 1px; color: #7ed0ff; font-size: 21px; font-weight: 900; }
.rysa-mlbb-region-note { margin: 11px 2px 0; color: #849ab7; font-size: 11px; line-height: 1.5; text-align: center; }
@keyframes rysaMlbbHelperIdle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes rysaMlbbRegionIn { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 390px) {
    .rysa-mlbb-helper,.rysa-mlbb-helper-face { width: 70px; height: 70px; }
    .rysa-mlbb-helper-bubble { top: -41px; min-width: 82px; padding: 8px 11px; font-size: 11px; }
    .rysa-mlbb-region-modal { padding: 10px; }
    .rysa-mlbb-region-head { padding: 15px 14px 12px; }
    .rysa-mlbb-region-body { padding: 14px; }
    .rysa-mlbb-region-head h2 { font-size: 18px; }
}
@media (max-width: 330px) { .rysa-mlbb-region-fields { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-reduced-motion: reduce) {
    .rysa-mlbb-helper,.rysa-mlbb-helper *,.rysa-mlbb-region-dialog { animation: none !important; transition: none !important; }
}
