html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    font-family: "Segoe UI", "Avenir Next", Arial, sans-serif;
}

body::after {
    content: none;
}

#fluidCanvas {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

#aimLayer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.fluidAim {
    --aim-color: #34f5f1;
    position: absolute;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border: 2px solid color-mix(in srgb, var(--aim-color) 82%, white 18%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 150ms ease, transform 150ms ease;
    box-shadow:
        0 0 20px var(--aim-color),
        inset 0 0 16px color-mix(in srgb, var(--aim-color) 34%, transparent);
}

.fluidAim.visible {
    opacity: 0.9;
    transform: scale(1);
}

.fluidAim::before,
.fluidAim::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--aim-color);
    box-shadow: 0 0 12px var(--aim-color);
}

.fluidAim::before {
    width: 2px;
    height: 76px;
}

.fluidAim::after {
    width: 76px;
    height: 2px;
}

#surfaceHud {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 8;
    pointer-events: none;
}

#introBox {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 7;
    display: grid;
    gap: 7px;
    width: min(320px, calc(100vw - 48px));
    padding: 16px 18px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.64);
    color: rgba(255, 255, 255, 0.86);
    font-family: "Segoe UI", "Avenir Next", Arial, sans-serif;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 650ms ease, transform 650ms ease;
    backdrop-filter: blur(12px);
}

#introBox strong {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 750;
}

#introBox span {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.68);
}

body.hasDrawn #introBox {
    opacity: 0;
    transform: translate(-50%, -46%);
}

body.hasDrawn.idleInfo #introBox {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.qrLink {
    display: block;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 500ms ease;
    transform: scale(0.8);
    transform-origin: bottom right;
}

body.hasDrawn .qrLink {
    opacity: 0.33;
}

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    margin-top: 8px;
    margin-right: auto;
    margin-bottom: 8px;
    margin-left: auto;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    transition: opacity 1s ease;
    text-decoration: none;
    transform-origin: top left;
    transform: scale(1);
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
}

.rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
}

@media (max-width: 620px) {
    #surfaceHud {
        right: 12px;
        bottom: 12px;
    }

    .qrLink {
        transform: scale(0.66);
    }

}
