/* ═══════════════════════════════
   QR SCAN PAGE
   KMK Munai Design System
   ═══════════════════════════════ */

.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

/* Frame was invisible: "border: 20px #fff" omits the required
   border-style, so no border rendered at all (only the dark
   dimming box-shadow around it was ever visible). */
.overlay-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, 78vw);
    height: min(320px, 78vw);
    border-radius: var(--radius-card, 16px);
    border: 3px solid var(--color-brand-white, #fff);
    z-index: 101;
    box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.6), 0 0 24px rgba(204, 32, 32, 0.5);
}

.overlay-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

* {
    margin: 0 auto;
    padding: 0;
    user-select: none;
}

/* Fixed 812px height assumed one specific iPhone viewport and
   clipped/left gaps on every other device — switched to
   min-height so it always fills the actual screen. */
.center-screen {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    background: var(--color-surface-page, #F4F4F4);
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

#loadingMessage {
    text-align: center;
    padding: var(--space-lg, 24px);
    background: var(--color-surface-card, #fff);
    color: var(--color-text-secondary, #777);
    font-size: var(--font-size-md, 15px);
    font-weight: 600;
}

#canvas {
    width: 100vw;
}

#output {
    margin-top: 20px;
    background: var(--color-surface-card, #fff);
    border-top: 1px solid var(--color-border, #E2E2E2);
    padding: var(--space-md, 16px);
    padding-bottom: 0;
    color: var(--color-text-primary, #111);
    font-size: var(--font-size-sm, 13px);
}

#output div {
    padding-bottom: 10px;
    word-wrap: break-word;
}

#noQRFound {
    text-align: center;
}
