/* Layout: glass HUD (16:9, pure black) on top, operator console grid below; admin is a dense ledger view.
   Single dark look by choice — the console frames an optical see-through display. */
:root {
  color-scheme: dark;
  --bg: #0c1013;
  --panel: #141a1f;
  --panel-2: #1a2228;
  --line: #27323b;
  --fg: #e4eaee;
  --muted: #8b99a4;
  --hud-fg: #f3fff9;
  --hud-dim: #7f948a;
  --hud-accent: #52ffaa;     /* bright green reads best on see-through optics */
  --warn: #ffc857;
  --bad: #ff6f6f;
  --sign: #1f56b8;           /* 도로명판 blue */
  --font-ui: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hud-accent); outline-offset: 2px; }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--panel-2); padding: 0 .35em; border-radius: 4px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: .5rem 0 0; }

/* top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: rgba(12,16,19,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); }
.brand-mark { width: 30px; height: 18px; border: 2px solid var(--hud-accent); border-radius: 9px 9px 12px 12px; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 8px; background: var(--hud-accent); transform: translateX(-50%); }
.tabs { display: flex; gap: 4px; background: var(--panel); padding: 4px; border-radius: 10px; border: 1px solid var(--line); }
.tabs a { text-decoration: none; padding: 6px 14px; border-radius: 7px; font-size: 14px; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

main { max-width: 1560px; margin: 0 auto; padding: 16px 20px; }
main:has(#view-admin:not([hidden])), main:has(#view-help:not([hidden])) { max-width: 1240px; padding-bottom: 48px; }
.view[hidden], [hidden] { display: none !important; }

/* ───── 가로형 글래스 레이아웃: 화면 한 장에 글래스(16:9) + 조작 패널 ───── */
.glass-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px;
  height: calc(100dvh - var(--topbar-h, 64px) - 32px);
  min-height: 420px;
}
.stage { container-type: size; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rotate-note { display: none; }

/* ───── HUD ───── */
.hud {
  container-type: inline-size;
  width: min(100cqw, (100cqh - 34px) * 16 / 9);
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; flex: none;
  background: #000; color: var(--hud-fg); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px #222, 0 0 0 10px #0a0a0a, 0 0 0 11px #2a2f33;
}
.hud-caption { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.hud-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 3.2cqw 4cqw; display: flex; flex-direction: column; }
.hud-cam { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 1.2cqw; overflow: hidden; background: #050505; }
.hud-cam video, .hud-cam canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hud-cam.live canvas { display: none; }
.cam-frame { position: absolute; top: 14%; right: 18%; bottom: 14%; left: 18%; border: .25cqw dashed rgba(82,255,170,.7); border-radius: .8cqw; }
.hud-cam.shutter::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #fff; animation: shutter .35s ease-out forwards; }
@keyframes shutter { from { opacity: .85; } to { opacity: 0; } }

.h-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2cqw; }
.h-title { font-size: 2.3cqw; font-weight: 600; color: var(--hud-dim); letter-spacing: .02em; }
.h-clock { font-family: var(--font-mono); font-size: 2cqw; color: var(--hud-dim); }
.h-sub { font-size: 1.7cqw; color: var(--hud-dim); margin-top: .3cqw; font-family: var(--font-mono); }
.h-fac { font-size: 2.6cqw; font-weight: 700; }
.h-step { text-align: right; }
.h-step b { display: block; font-size: 2.6cqw; color: var(--hud-accent); }
.h-step span { font-family: var(--font-mono); font-size: 1.8cqw; color: var(--hud-dim); }
.h-dots { display: flex; gap: .8cqw; justify-content: flex-end; margin-top: .6cqw; }
.h-dots i { width: 3.4cqw; height: .5cqw; border-radius: 1cqw; background: #2b3a33; }
.h-dots i.done { background: var(--hud-accent); }
.h-dots i.now { background: var(--hud-fg); }

/* list screen */
.h-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; padding-left: 2cqw; }
.h-ghost { font-size: 2cqw; color: var(--hud-dim); opacity: .55; filter: blur(.08cqw); }
.h-focus { border-left: .6cqw solid var(--hud-accent); padding: .6cqw 0 .6cqw 2.4cqw; }
.h-focus .t { font-size: 2.2cqw; color: var(--hud-accent); font-weight: 600; }
.h-focus .n { font-size: 5.6cqw; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.h-focus .l { font-size: 2.2cqw; color: #c8d6cf; margin-top: .4cqw; }
.pill { display: inline-block; font-size: 1.8cqw; padding: .15cqw 1.2cqw; border-radius: 3cqw; border: .18cqw solid currentColor; margin-top: 1cqw; }
.pill.todo { color: var(--hud-dim); }
.pill.ok { color: var(--hud-accent); }
.pill.warn { color: var(--warn); }
.h-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2cqw; font-size: 1.9cqw; color: var(--hud-dim); }
.h-bottom .say { color: var(--hud-fg); }
.h-bottom .say q { color: var(--hud-accent); quotes: "“" "”"; }

/* inspect screen */
.h-body { flex: 1; display: grid; grid-template-columns: 38cqw 1fr; gap: 3cqw; margin-top: 2cqw; min-height: 0; }
.h-body.nocam { grid-template-columns: 1fr; }
.h-guide h4 { margin: 0; font-size: 3.4cqw; line-height: 1.2; }
.h-guide p { margin: .8cqw 0 0; font-size: 2.1cqw; color: #c8d6cf; line-height: 1.45; }
.h-ledger { display: inline-block; margin-top: 1.4cqw; font-size: 2cqw; padding: .4cqw 1.2cqw; border: .18cqw solid #3a4a42; border-radius: .8cqw; }
.h-ledger b { color: var(--hud-accent); font-weight: 600; }
.h-result { margin-top: 1.4cqw; font-size: 2.2cqw; font-weight: 600; }
.h-result.ok { color: var(--hud-accent); }
.h-result.warn { color: var(--warn); }
.h-result.bad { color: var(--bad); }
.h-status { display: flex; flex-wrap: wrap; gap: 1cqw; margin-top: 1.6cqw; }
.h-status span { font-size: 2.1cqw; padding: .3cqw 1.4cqw; border: .18cqw solid #3a4a42; border-radius: .8cqw; color: #c8d6cf; }
.h-status span.sug { border-color: var(--hud-dim); border-style: dashed; }
.h-status span.on { border-color: var(--hud-accent); color: #000; background: var(--hud-accent); font-weight: 700; }
.h-thumbs { display: flex; gap: 1.2cqw; margin-top: 1.4cqw; }
.h-thumbs figure { margin: 0; width: 14cqw; }
.h-thumbs img, .h-thumbs .empty { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: .6cqw; display: block; }
.h-thumbs .empty { border: .18cqw dashed #3a4a42; }
.h-thumbs figcaption { font-size: 1.5cqw; color: var(--hud-dim); }
.h-toast { position: absolute; left: 50%; top: 3cqw; transform: translateX(-50%); background: rgba(82,255,170,.12); border: .18cqw solid var(--hud-accent); color: var(--hud-fg); font-size: 2cqw; padding: .6cqw 2cqw; border-radius: 3cqw; white-space: nowrap; animation: toast 3.2s ease forwards; }
.h-toast.warn { border-color: var(--warn); background: rgba(255,200,87,.12); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -1cqw); } 8%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.h-spin { display: inline-block; width: 1.8cqw; height: 1.8cqw; border: .3cqw solid #2b3a33; border-top-color: var(--hud-accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.2cqw; margin-right: .8cqw; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── console ───── */
.console { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; padding-right: 2px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; flex: none; }
.panel-wide { order: -1; }
.panel h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.tgl { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
.tgl .dot { width: 8px; height: 8px; border-radius: 50%; background: #3b464e; }
.tgl[aria-pressed="true"] { border-color: #2f6f52; }
.tgl[aria-pressed="true"] .dot { background: var(--hud-accent); box-shadow: 0 0 8px var(--hud-accent); }
.tgl:disabled { opacity: .45; cursor: not-allowed; }
.heard { margin: 12px 0 0; font-size: 14px; padding: 8px 10px; background: #0f1418; border-radius: 8px; border: 1px solid var(--line); min-height: 40px; }
.touchpad { height: 92px; border-radius: 12px; background: linear-gradient(180deg, #1c252c, #12181d); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; touch-action: none; user-select: none; cursor: grab; }
.touchpad.flash { border-color: var(--hud-accent); }
.tp-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.tp-buttons button, .say button, .chips button, .danger, dialog button {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 13px;
}
.tp-buttons button:hover, .chips button:hover, .say button:hover { border-color: #3d4c57; }
.say { display: flex; gap: 8px; }
.say input { flex: 1; min-width: 0; background: #0f1418; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.say button { background: #1d3a2d; border-color: #2f6f52; padding: 8px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { border-radius: 20px; padding: 4px 12px; }
.chips button.primary { border-color: #2f6f52; color: var(--hud-accent); }
.server-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dot-state { width: 9px; height: 9px; border-radius: 50%; background: #3b464e; flex: none; }
.dot-state.ok { background: var(--hud-accent); box-shadow: 0 0 8px var(--hud-accent); }
.dot-state.warn { background: var(--warn); }
.dot-state.bad { background: var(--bad); }
.field { display: grid; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.field select { background: #0f1418; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--fg); font-size: 14px; }
.pin-row { display: flex; gap: 6px; margin-top: 8px; }
.pin-row input { flex: 1; min-width: 0; background: #0f1418; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--fg); font-size: 16px; letter-spacing: .3em; }
.pin-row button { background: #1d3a2d; border: 1px solid #2f6f52; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.keypad button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 0; font-size: 16px; cursor: pointer; }
.keypad button[data-k="ok"] { background: #1d3a2d; border-color: #2f6f52; color: var(--hud-accent); }
.who { margin: 6px 0 0; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0 0 0 8px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.h-hello { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2cqw; padding-left: 2cqw; }
.h-hello .hi { font-size: 2.6cqw; color: var(--hud-accent); font-weight: 600; }
.h-hello .name { font-size: 6.4cqw; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.h-hello .sum { font-size: 2.3cqw; color: #c8d6cf; }
.h-hello .done-state { color: var(--hud-accent); margin-top: 1.2cqh; }
.h-hello .done-state.bad { color: #ff8a8a; }
.h-hello .blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: .2; } }
.h-pin { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6cqw; }
.h-pin .dots { display: flex; gap: 1.6cqw; }
.h-pin .dots i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: .25cqw solid var(--hud-dim); }
.h-pin .dots i.on { background: var(--hud-accent); border-color: var(--hud-accent); }
.h-pin .msg { font-size: 2.1cqw; color: #c8d6cf; }
.h-pin .msg.bad { color: var(--bad); }
.sync-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.sync-row span { flex: 1 1 100%; color: var(--muted); }
.sync-row button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.sync-row button:disabled { opacity: .45; cursor: not-allowed; }
.radios { display: grid; gap: 6px; font-size: 14px; }
.radios label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.radios input { accent-color: var(--hud-accent); }

/* ───── admin ───── */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.admin-head h2, .help-grid h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; text-wrap: balance; }
.admin-head p { margin: 2px 0 0; }
.danger { color: var(--bad); }
.danger.armed { background: #3a1717; border-color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.stat b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--hud-accent); }
.sec { font-size: 13px; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; }
.fac-table th, .fac-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.fac-table th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel); }
.fac-table tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 20px; border: 1px solid currentColor; }
.tag.ok { color: var(--hud-accent); }
.tag.warn { color: var(--warn); }
.tag.bad { color: var(--bad); }
.tag.todo { color: var(--muted); }
.history { display: grid; gap: 12px; }
.rec { display: grid; grid-template-columns: 1fr auto; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rec h4 { margin: 0; font-size: 16px; }
.rec .meta { font-size: 13px; color: var(--muted); }
.rec dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 14px; }
.rec dt { color: var(--muted); }
.rec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rec .photos { display: flex; gap: 8px; }
.rec .photos button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: zoom-in; width: 150px; }
.rec .photos img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.rec .photos small { display: block; font-size: 11px; color: var(--muted); padding: 2px 6px; text-align: left; }
.apply { margin-left: 6px; background: #1d3a2d; border: 1px solid #2f6f52; border-radius: 6px; padding: 1px 10px; font-size: 12px; cursor: pointer; }
.empty-state { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
dialog { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-width: min(92vw, 960px); }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog img { display: block; max-width: 100%; border-radius: 8px; }
dialog form { text-align: right; margin-top: 8px; }

/* ───── help ───── */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.help-grid h3 { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.help-grid h3:not(:first-child) { margin-top: 24px; }
.steps-list { padding-left: 1.3em; display: grid; gap: 10px; max-width: 62ch; }
.steps-list b { color: var(--hud-accent); margin-right: 6px; }
.cmd-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.cmd-table td:first-child { color: var(--hud-accent); white-space: nowrap; }

/* 좁은 화면: 글래스 위, 패널 아래로 쌓음 */
@media (max-width: 980px) {
  .glass-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .stage { container-type: inline-size; }
  .hud { width: 100%; }
  .console { overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .panel-wide { order: 0; grid-column: 1 / -1; }
}
/* 가로로 눕힌 휴대폰: 글래스가 화면을 채우도록 */
@media (orientation: landscape) and (max-height: 560px) {
  .topbar { padding: 4px 12px; }
  .brand-sub { display: none; }
  main { padding: 6px 12px; }
  .glass-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 10px; height: calc(100dvh - 56px); min-height: 0; }
  .stage { container-type: size; }
  .hud { width: min(100cqw, (100cqh - 4px) * 16 / 9); }
  .hud-caption { display: none; }
  .console { display: flex; overflow-y: auto; }
}
@media (orientation: portrait) and (max-width: 640px) {
  .rotate-note { display: block; font-size: 13px; color: var(--warn); text-align: center; padding: 6px 0 2px; }
}
@media (max-width: 640px) {
  main { padding: 14px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .hud { border-radius: 10px; box-shadow: 0 0 0 1px #222; }
  .rec { grid-template-columns: 1fr; }
  .rec .photos button { width: 50%; }
}
/* ───── 현장 모드 (실제 글래스 도메인): HUD 만 전체 화면, 시연용 패널 없음 ───── */
body.field-mode .console, body.field-mode .tabs, body.field-mode .hud-caption, body.field-mode .rotate-note, body.field-mode .brand-sub { display: none !important; }
body.field-mode .topbar { padding: 6px 14px; }
body.field-mode main { max-width: none; padding: 8px; }
body.field-mode .glass-layout { grid-template-columns: 1fr; gap: 0; height: calc(100dvh - var(--topbar-h, 44px) - 16px); min-height: 0; }
body.field-mode .stage { container-type: size; }
body.field-mode .hud { width: min(100cqw, 100cqh * 16 / 9); border-radius: 10px; box-shadow: 0 0 0 1px #222; }
/* 전체 화면을 덮는 시작 오버레이. Chrome74(글래스)는 inset 축약을 모르므로 top/right/bottom/left 로 명시한다.
   fixed + 네 변 0 이면 어떤 브라우저에서도 뷰포트를 꽉 채워, 뒤의 일반/데모 레이아웃을 가린다. */
.field-start { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 100; background: #000; display: grid; place-items: center; }
.field-start button { background: none; border: 0; color: var(--hud-fg); display: grid; justify-items: center; gap: 14px; cursor: pointer; padding: 40px; }
.field-start b { font-size: 28px; letter-spacing: -.01em; }
.field-start span:last-child { font-size: 16px; color: var(--hud-accent); border: 1px solid var(--hud-accent); border-radius: 30px; padding: 10px 22px; }
.fs-logo { width: 72px; height: 42px; border: 3px solid var(--hud-accent); border-radius: 20px 20px 26px 26px; position: relative; }
.fs-logo::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 18px; background: var(--hud-accent); transform: translateX(-50%); }
.field-tag { font-size: 11px; color: var(--hud-accent); border: 1px solid #2f6f52; border-radius: 10px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
/* ───── 네이티브 카메라(INMO 글래스): 뒤의 CameraX 프리뷰가 비치도록 배경을 투명하게,
   웹 <video>/가상 canvas 는 숨긴다(네이티브가 뒤에서 보임). 점선 프레임(.cam-frame)은 유지. ───── */
/* 네이티브(INMO) 카메라: 라이브 프리뷰가 투명 WebView 뒤에서 보이려면
   카메라가 보여야 하는 영역의 불투명(검정) 배경을 전부 투명화해야 한다.
   기존 규칙은 body/.hud/.hud-cam 만 투명화해서 html(루트, var(--bg))·메인·스테이지가 여전히 화면을 덮어 프리뷰를 가렸다.
   단, 헤더 바·토스트·상태칸 등 UI 요소의 배경은 가독성 때문에 그대로 둔다. */
html.native-cam, body.native-cam,
body.native-cam main, body.native-cam .glass-layout, body.native-cam .stage,
body.native-cam .hud, body.native-cam .hud-cam { background: transparent !important; }
body.native-cam .hud { box-shadow: none !important; } /* 검정 테두리 링이 카메라를 가리지 않게 */
body.native-cam .hud-cam video, body.native-cam .hud-cam canvas { display: none !important; }
/* 카메라 위에서도 HUD 문구가 읽히도록 그림자 */
body.native-cam .hud-layer { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* 현장 모드: 들은 말 표시 + 화면 전체가 터치패드 */
.field-heard { display: none; }
body.field-mode .stage { touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; position: relative; }
body.field-mode .field-heard { display: block; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: 90%; font-size: 15px; color: var(--hud-accent); background: rgba(0,0,0,.7); border: 1px solid #2f6f52; border-radius: 20px; padding: 4px 14px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.field-mode .field-heard.show { opacity: 1; }
