/* ==========================================================================
   Oracle Wu 3D Component Styles
   ========================================================================== */

oracle-wu-3d,
.oracle-wu-3d-wrap {
    display: inline-block;
    position: relative;
    width: 240px;
    height: 290px;
    user-select: none;
    touch-action: manipulation;
    opacity: 0.80;
    transition: opacity 0.3s ease;
}

.oracle-wu-3d-wrap:hover {
    opacity: 0.95;
}

.oracle-wu-3d-wrap.docked {
    position: fixed;
    right: 18px;
    bottom: 12px;
    z-index: 100;
}

.oracle-wu-3d-canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
    pointer-events: auto;
    image-rendering: auto;
}

/* Modal for Inspecting Madame Wu's Parity Mirror */
.oracle-wu-mirror-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 24, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.oracle-wu-mirror-modal.open {
    display: flex;
}

.oracle-wu-mirror-card {
    background: linear-gradient(145deg, #180d32, #0d061f);
    border: 1.5px solid rgba(168, 85, 247, 0.55);
    border-radius: 20px;
    padding: 24px 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.3);
    text-align: center;
}

.mirror-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.mirror-card-header h3 {
    font-size: 17px;
    font-weight: 900;
    color: #facc15;
}

.mirror-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    padding: 4px;
}

.mirror-close-btn:hover {
    color: #ffffff;
}

.mirror-interactive-stage {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 14px;
}

.mirror-labels {
    display: flex;
    justify-content: space-around;
    font-size: 11.5px;
    font-weight: 800;
    margin-top: 6px;
}

.mirror-explanation {
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 14px;
    text-align: left;
}

.mirror-explanation p {
    margin-bottom: 6px;
}

.mirror-footer-quote {
    font-size: 12px;
    font-style: italic;
    color: #fde047;
    background: rgba(250, 204, 21, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #facc15;
}
.oracle-wu-3d-bubble {
    position: absolute;
    bottom: 85%;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.92);
    background: rgba(24, 9, 42, 0.94);
    border: 2px solid #ffd54a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    padding: 10px 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(180, 140, 255, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: pre-wrap;
    max-width: 240px;
    text-align: center;
    z-index: 10;
}

.oracle-wu-3d-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: #ffd54a transparent transparent transparent;
}

.oracle-wu-3d-bubble.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
