html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Suppress A-Frame's enter-VR/Cardboard button unconditionally */
.a-enter-vr,
.a-enter-ar {
    display: none !important;
}

#cta-btn {
    position: fixed;
    left: 50%;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    transform: translateX(-50%);
    display: none;
    padding: 14px 28px;
    border: 2px solid #c7df22;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: #5750a4;
    font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    font-size: 20px;
    font-stretch: condensed;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    cursor: pointer;
    z-index: 9999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(87, 80, 164, 0.3);
    white-space: nowrap;
}

#cta-btn::after {
    content: "\2192";
    margin-left: 10px;
    color: #c7df22;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

#cta-btn:active {
    background: #5750a4;
    color: #fff;
}

#cta-btn.visible {
    display: block;
}

/* Above #cta-btn (9999) and 8th Wall's #loadingContainer (800), so it covers
   whatever the engine leaves on screen on an unsupported device */
#unsupported-msg {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #12121a;
    z-index: 10000;
}

#unsupported-msg.visible {
    display: flex;
}

.unsupported-card {
    max-width: 420px;
    color: #fff;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.unsupported-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.unsupported-body {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* Populated only when 8th Wall reports a reason; stays empty otherwise */
.unsupported-reason {
    margin: 20px 0 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}
