/* dᶻix̌ʷ — EMDR infinity loop + canvas water field + grounding pad */

.obd-root {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: #000000;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.obd-instruct {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 2.75rem);
    left: 0;
    right: 0;
    z-index: 5;
    flex-shrink: 0;
    margin: 0;
    padding: 0 1.1rem;
    font-size: clamp(0.58rem, 2.2vw, 0.68rem);
    line-height: 1.5;
    text-align: center;
    color: rgba(148, 163, 184, 0.72);
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    background: transparent !important;
    pointer-events: none;
}

.obd-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: 0;
    overflow: hidden;
    background: #000000;
}

.obd-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    touch-action: none;
    pointer-events: none;
}

.obd-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    touch-action: none;
    background: transparent;
}

.obd-paused-banner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin: 0;
    padding: 0.5rem 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(254, 202, 202, 0.95);
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.obd-paused-banner--visible {
    opacity: 1;
}

.obd-pad-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--emergency-footer-reserve, 92px) + 0.35rem);
    z-index: 5;
    flex-shrink: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    perspective: 420px;
    background: transparent !important;
    border: none;
}

.obd-ground-pad {
    width: min(92vw, 320px);
    min-height: 4.25rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.92);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.58rem, 2.6vw, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform: rotateX(14deg);
    transform-style: preserve-3d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.obd-ground-pad--active {
    border-color: rgba(110, 231, 213, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(45, 212, 191, 0.25);
    transform: rotateX(8deg) scale(0.99);
    color: #99f6e4;
}

@media (prefers-reduced-motion: reduce) {
    .obd-paused-banner {
        transition: none;
    }
}
