:root { --bg: #0a0a1a; --grid: rgba(0, 255, 255, 0.04); --cyan: #00e5ff; --cyan-dim: #00b8d4; --text: #e0f7fa; --text-dim: #80deea; --danger: #ff5252; --ok: #00e676; --warn: #ffb74d; --panel: rgba(10, 20, 40, 0.55); --panel-border: rgba(0, 229, 255, 0.35); } * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace; -webkit-font-smoothing: antialiased; user-select: none; } body { background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; } /* Subtle radial vignette */ body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.6) 100%); z-index: 1; } #stage { position: fixed; inset: 0; z-index: 2; cursor: crosshair; } /* ---------- Webcam preview ---------- */ #preview-wrap { position: fixed; left: 24px; bottom: 64px; width: 240px; height: 180px; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--panel-border); box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.08) inset, 0 8px 32px rgba(0, 229, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.6); z-index: 10; backdrop-filter: blur(4px); } #preview-wrap::before { content: "LIVE ยท IRIS"; position: absolute; top: 8px; left: 10px; font-size: 10px; letter-spacing: 0.15em; color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.7); z-index: 12; pointer-events: none; } #preview-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; box-shadow: 0 0 24px rgba(0, 229, 255, 0.18) inset; z-index: 11; } #webcam, #overlay { position: absolute; inset: 0; width: 100%; height: 100%; } #webcam { object-fit: cover; transform: scaleX(-1); /* mirrored */ z-index: 1; } #overlay { z-index: 2; pointer-events: none; } /* ---------- Status bar ---------- */ #status-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; gap: 24px; padding: 0 20px; background: var(--panel); border-top: 1px solid var(--panel-border); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: 0.05em; z-index: 20; color: var(--text-dim); } .stat { display: flex; align-items: center; gap: 8px; } .stat .label { color: rgba(128, 222, 234, 0.55); text-transform: uppercase; font-size: 10px; letter-spacing: 0.18em; } .stat .value { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.5); font-variant-numeric: tabular-nums; min-width: 60px; } .stat .value.ok { color: var(--ok); text-shadow: 0 0 8px rgba(0, 230, 118, 0.4); } .stat .value.warn { color: #ffb74d; text-shadow: 0 0 8px rgba(255, 183, 77, 0.4); } .stat .value.err { color: var(--danger); text-shadow: 0 0 8px rgba(255, 82, 82, 0.4); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-dim); box-shadow: 0 0 8px var(--cyan-dim); animation: pulse 1.6s ease-in-out infinite; } .dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); } .dot.warn { background: #ffb74d; box-shadow: 0 0 10px #ffb74d; } .dot.err { background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: none; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } } /* Small inline button (used for "Recalibrate" in the status bar) */ .btn-mini { font-family: inherit; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); background: transparent; border: 1px solid var(--panel-border); border-radius: 4px; padding: 4px 10px; cursor: pointer; transition: background 0.2s, box-shadow 0.2s, color 0.2s; } .btn-mini:hover { background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); color: #ffffff; } .btn-mini:disabled { color: rgba(128, 222, 234, 0.35); border-color: rgba(0, 229, 255, 0.15); cursor: not-allowed; background: transparent; box-shadow: none; } /* ---------- Title ---------- */ #title { position: fixed; top: 18px; left: 24px; z-index: 15; font-size: 11px; letter-spacing: 0.3em; color: rgba(0, 229, 255, 0.7); text-shadow: 0 0 8px rgba(0, 229, 255, 0.4); } #title .accent { color: var(--cyan); } /* ---------- Loading overlay ---------- */ #loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: rgba(10, 10, 26, 0.92); backdrop-filter: blur(6px); transition: opacity 0.5s ease, visibility 0.5s; } #loader.hidden { opacity: 0; visibility: hidden; } .spinner { width: 64px; height: 64px; border: 2px solid rgba(0, 229, 255, 0.15); border-top-color: var(--cyan); border-right-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; box-shadow: 0 0 24px rgba(0, 229, 255, 0.3); } @keyframes spin { to { transform: rotate(360deg); } } .loader-text { font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); } .loader-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.15em; max-width: 320px; text-align: center; line-height: 1.6; } /* ---------- Error overlay ---------- */ #error-overlay { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(10, 10, 26, 0.88); backdrop-filter: blur(6px); padding: 40px; text-align: center; } #error-overlay.show { display: flex; } #error-overlay .icon { font-size: 48px; filter: drop-shadow(0 0 12px rgba(255, 82, 82, 0.6)); } #error-overlay h2 { font-size: 18px; letter-spacing: 0.15em; color: var(--danger); text-transform: uppercase; } #error-overlay p { color: var(--text-dim); font-size: 13px; max-width: 520px; line-height: 1.7; } #error-overlay button { margin-top: 12px; padding: 10px 24px; background: transparent; border: 1px solid var(--cyan); color: var(--cyan); font-family: inherit; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; border-radius: 6px; transition: background 0.2s, box-shadow 0.2s; } #error-overlay button:hover { background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 16px rgba(0, 229, 255, 0.3); } /* ---------- Debug panel (top-left, collapsible) ---------- */ #debug-panel { position: fixed; top: 48px; left: 24px; z-index: 30; width: 260px; max-width: calc(100vw - 48px); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; backdrop-filter: blur(8px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); font-size: 11px; color: var(--text); overflow: hidden; transition: max-height 0.25s ease; } #debug-panel.collapsed { max-height: 32px; } #debug-panel.expanded { max-height: 480px; } #debug-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; cursor: pointer; user-select: none; background: rgba(0, 229, 255, 0.06); border-bottom: 1px solid var(--panel-border); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); } #debug-panel.collapsed #debug-body { display: none; } #debug-panel.collapsed #debug-header { border-bottom: none; } #debug-toggle { font-family: inherit; color: var(--cyan); font-size: 14px; line-height: 1; } #debug-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 440px; overflow-y: auto; } .dbg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 1.4; word-break: break-all; } .dbg-row .k { color: rgba(128, 222, 234, 0.7); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; flex-shrink: 0; } .dbg-row .v { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; } .dbg-row .v.ok { color: var(--ok); } .dbg-row .v.warn { color: #ffb74d; } .dbg-row .v.err { color: var(--danger); } .dbg-row .v.run { color: var(--cyan); } #debug-err { margin-top: 6px; padding: 8px 10px; background: rgba(255, 82, 82, 0.08); border: 1px solid rgba(255, 82, 82, 0.35); border-radius: 6px; color: var(--danger); font-size: 10px; line-height: 1.5; word-break: break-word; display: none; max-height: 120px; overflow-y: auto; } #debug-err.show { display: block; } /* ---------- Calibration overlay (9-point) ---------- */ #calibration-overlay { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(10, 10, 26, 0.92); backdrop-filter: blur(6px); } #calibration-overlay.show { display: flex; } #cal-dot { position: absolute; width: 36px; height: 36px; margin-left: -18px; margin-top: -18px; border-radius: 50%; background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(0, 229, 255, 1) 35%, rgba(0, 229, 255, 0.6) 65%, rgba(0, 229, 255, 0) 100%); box-shadow: 0 0 24px rgba(0, 229, 255, 0.9), 0 0 60px rgba(0, 229, 255, 0.5); animation: calPulse 1s ease-in-out infinite; pointer-events: none; transform-origin: center; } #cal-dot::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid rgba(0, 229, 255, 0.6); } @keyframes calPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } } #cal-text { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.7); text-align: center; pointer-events: none; } #cal-sub { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.2em; color: var(--text-dim); text-align: center; pointer-events: none; } #cal-cancel { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); } /* Faint preview ghost dots for upcoming calibration points */ .cal-ghost { position: absolute; width: 14px; height: 14px; margin-left: -7px; margin-top: -7px; border-radius: 50%; border: 1px solid rgba(0, 229, 255, 0.25); background: rgba(0, 229, 255, 0.05); pointer-events: none; }