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;
}

#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;
}

.qrLink {
    display: block;
    width: 96px;
    height: 96px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    pointer-events: auto;
    opacity: 1;
    transition: opacity 500ms ease;
}

body.hasDrawn .qrLink {
    opacity: 0.33;
}

.qrLink img,
.qrLink canvas {
    display: block;
    width: 96px;
    height: 96px;
}

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

    .qrLink {
        width: 82px;
        height: 82px;
        padding: 7px;
    }

    .qrLink img,
    .qrLink canvas {
        width: 82px;
        height: 82px;
    }

}
