/* Shared game onboarding tooltips — Truco + Billar. v20260906 */

.mio-ob-tip {
    position: fixed;
    z-index: 9999;
    max-width: min(280px, calc(100vw - 24px));
    padding: 8px 10px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-family: Montserrat, 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mio-ob-tip__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mio-ob-tip__caret {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    margin-top: 4px;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #00b82e;
}

.mio-ob-tip--billar .mio-ob-tip__caret {
    border-left-color: rgba(255, 255, 255, 0.85);
}

.mio-ob-tip__text {
    flex: 1 1 auto;
    min-width: 0;
}

.mio-ob-tip__guide {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;
    box-sizing: border-box;
    color: #a8a29e !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.3;
}

.mio-ob-tip__guide:hover,
.mio-ob-tip__guide:focus-visible {
    color: #fff !important;
    outline: none;
}

.mio-ob-tip__omit {
    align-self: flex-end;
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.mio-ob-tip__omit:hover,
.mio-ob-tip__omit:focus-visible {
    color: #fff;
    outline: none;
}

.mio-ob-tip__arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.mio-ob-tip--above .mio-ob-tip__arrow {
    left: 50%;
    bottom: -7px;
    margin-left: -6px;
    border-width: 7px 6px 0 6px;
    border-color: #1a1a1a transparent transparent transparent;
}

.mio-ob-tip--below .mio-ob-tip__arrow {
    left: 50%;
    top: -7px;
    margin-left: -6px;
    border-width: 0 6px 7px 6px;
    border-color: transparent transparent #1a1a1a transparent;
}

.mio-ob-pulse {
    position: relative;
    z-index: 2;
    animation: mio-ob-pulse-glow 2s ease-in-out infinite;
    border-radius: 8px;
}

.mio-ob-pulse--truco {
    box-shadow: 0 0 0 2px rgba(0, 184, 46, 0.55), 0 0 12px rgba(0, 184, 46, 0.35);
}

.mio-ob-pulse--billar {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.35);
}

.mio-ob-ring {
    position: absolute;
    z-index: 5;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    pointer-events: none;
    animation: mio-ob-pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.75);
}

.mio-ob-ring.is-escalated {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    transform: scale(1.2);
}

.mio-ob-power-hl {
    box-shadow: 0 0 0 2px #00b82e, 0 0 0 6px rgba(0, 184, 46, 0.2) !important;
}

@keyframes mio-ob-pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
