/* ==========================================================================
   HUD — the machine's own read-outs: corner brackets, monospace labels, a status LED.
   Used around the printer, and as a frame on photographs of the process.
   ========================================================================== */

.hud {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hud-dim);
}

.hud b {
    font-weight: 600;
    color: var(--hud-400);
    font-variant-numeric: tabular-nums;
}

.hud__led {
    display: inline-block;
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: var(--hot-500);
    box-shadow: 0 0 0 3px rgb(236 121 37 / 0.18), 0 0 10px var(--hot-glow);
    animation: led 1.4s ease-in-out infinite;
    flex: none;
}

.hud__led[data-state="done"] {
    background: var(--ok);
    box-shadow: 0 0 0 3px rgb(63 209 139 / 0.18), 0 0 10px rgb(63 209 139 / 0.5);
    animation: none;
}

@keyframes led {
    50% { opacity: 0.35; }
}

/* A photograph framed like a camera feed of the build chamber. */
.hud-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-l);
    isolation: isolate;
}

.hud-frame img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.hud-frame::before,
.hud-frame::after {
    content: "";
    position: absolute;
    z-index: 1;
    inline-size: 22px;
    block-size: 22px;
    border: 2px solid rgb(255 255 255 / 0.8);
    pointer-events: none;
}

.hud-frame::before {
    inset-block-start: 14px;
    inset-inline-start: 14px;
    border-inline-end: 0;
    border-block-end: 0;
    border-start-start-radius: 6px;
}

.hud-frame::after {
    inset-block-end: 14px;
    inset-inline-end: 14px;
    border-inline-start: 0;
    border-block-start: 0;
    border-end-end-radius: 6px;
}

.hud-frame__tag {
    position: absolute;
    z-index: 1;
    inset-block-end: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgb(8 9 11 / 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--bone-50);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
