/* Signage — full-bleed kiosk styling, shared by the web host and the MAUI BlazorWebView. */

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

/* The render surface fills the whole viewport. */
.signage-surface {
    position: fixed;
    inset: 0;
    background: #000;
}

.signage-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}

.signage-idle {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 2rem;
}

/* ---- Standby screen ---- */
.signage-standby {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: radial-gradient(circle at 50% 35%, #1b2433 0%, #0a0e14 70%);
}

.standby-brand {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.standby-pairing {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.standby-code {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 0 30px rgba(120, 170, 255, 0.4);
}

.standby-qr {
    width: clamp(120px, 18vw, 220px);
    height: auto;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.standby-hint {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #9aa7b8;
}

/* ---- QR scan overlay (html5-qrcode) ---- */
.sg-qr-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.92);
}

.sg-qr-frame {
    width: min(80vw, 360px);
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

#sg-qr-reader {
    width: 100%;
}

.sg-qr-cancel {
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #2a3647;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.7rem 1.8rem;
    cursor: pointer;
}
