:root {
  --bg: #0f1720;
  --panel: #ffffff;
  --ink: #18202b;
  --muted: #5d6b7c;
  --line: #e3e7ec;
  --brand: #1d4ed8;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #047857;
  --top-h: 56px;
  --panel-w: 400px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(10, 20, 35, .25);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
button { font: inherit; cursor: pointer; }

/* ---------- 상단 바 ---------- */
#topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(10, 16, 24, .78), rgba(10, 16, 24, 0));
  color: #fff; pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; padding: 4px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 24V13l6 4v-4l6 4v-4l8 5v6z' fill='white'/%3E%3C/svg%3E") center/80% no-repeat; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.brand-text b { font-size: 15px; }
.brand-text small { font-size: 11px; opacity: .75; }
#crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
#crumbs button { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 999px; padding: 4px 10px; }
#crumbs button:hover { background: rgba(255,255,255,.24); }
#crumbs .sep { opacity: .5; }
#crumbs .cur { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.chip { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.chip:hover { background: rgba(255,255,255,.26); }

/* ---------- 무대(전경/내부) ---------- */
.stage { position: fixed; inset: 0; visibility: hidden; opacity: 0; transition: opacity .4s; }
.stage.active { visibility: visible; opacity: 1; }
#overview-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
#overview-labels { position: absolute; inset: 0; pointer-events: none; }
.flying .hint { opacity: 0; }
.hint { transition: opacity .3s; }
.b-label {
  position: absolute; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 12px 9px; min-width: 120px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 12px; line-height: 1.35; transition: transform .15s, box-shadow .15s;
  border-top: 4px solid var(--accent, var(--brand));
}
.b-label::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.b-label b { display: block; font-size: 16px; }
.b-label .tag { display: inline-block; margin-top: 4px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #eef2ff; color: var(--brand); }
.b-label .tag.wait { background: #f1f5f9; color: var(--muted); }
.b-label.hover { transform: translate(-50%, -100%) scale(1.06); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.b-label.hidden { opacity: 0; pointer-events: none; }
.hint {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(10,16,24,.7); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; white-space: nowrap;
}
#toast {
  position: absolute; left: 50%; top: calc(var(--top-h) + 16px); transform: translate(-50%, -10px);
  background: #111827; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#fade { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 40; transition: opacity .6s ease; }
#fade.on { opacity: 1; }

/* ---------- 360 뷰어 ---------- */
#viewer { position: absolute; inset: 0; }
#scene-list, #scene-list-3d {
  position: absolute; left: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; gap: 8px; max-width: calc(100% - 24px); overflow-x: auto; padding: 4px;
}
.scene-thumb {
  flex: 0 0 auto; width: 118px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0;
  background: #111; color: #fff; font-size: 11px; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.scene-thumb img { display: block; width: 100%; height: 56px; object-fit: cover; }
.scene-thumb span { display: block; padding: 4px 7px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-thumb.cur { border-color: #60a5fa; }

/* 설비 마커 */
.eq-marker { display: flex; align-items: center; gap: 8px; cursor: pointer; transform: translateX(-11px); }
.eq-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.eq-dot::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #93c5fd; animation: pulse 1.8s ease-out infinite; }
.eq-marker.wait .eq-dot { background: #64748b; }
.eq-marker.wait .eq-dot::before { display: none; }
.eq-name { background: rgba(255,255,255,.95); color: var(--ink); font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.35); white-space: nowrap; }
.eq-marker:hover .eq-name { background: var(--brand); color: #fff; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

#edit-readout {
  position: absolute; right: 12px; bottom: 70px; z-index: 30; background: #111827ee; color: #a7f3d0;
  font: 12px/1.5 ui-monospace, Consolas, monospace; padding: 10px 12px; border-radius: 8px; white-space: pre; user-select: all;
}

/* ---------- 설비 상세 (패널/팝업 공용) ---------- */
#detail {
  position: fixed; z-index: 60; background: var(--panel); color: var(--ink);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
#detail-body { overflow-y: auto; padding: 22px 22px 28px; flex: 1; }
#detail-close {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #f1f5f9; font-size: 22px; line-height: 1; color: var(--muted); z-index: 2;
}
#detail-close:hover { background: #e2e8f0; }
#detail-backdrop { position: fixed; inset: 0; background: rgba(8,12,20,.45); z-index: 55; }

/* 우측 패널 모드 */
body.mode-panel #detail {
  top: calc(var(--top-h) + 6px); right: 10px; bottom: 10px; width: min(var(--panel-w), calc(100vw - 20px));
  transform: translateX(calc(100% + 20px)); border-radius: var(--radius);
}
body.mode-panel #detail.open { transform: none; }
/* 팝업 모드 */
body.mode-popup #detail {
  left: 50%; top: 50%; width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 760px);
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; border-radius: var(--radius);
}
body.mode-popup #detail.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
/* 모바일 팝업 = 하단 시트 */
@media (max-width: 720px) {
  body.mode-popup #detail {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 82vh;
    transform: translateY(100%); opacity: 1; border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body.mode-popup #detail.open { transform: none; }
  .brand-text small { display: none; }
  .b-label { min-width: 0; padding: 6px 10px 7px; }
  .b-label .desc { display: none; }
  .b-label b { font-size: 14px; }
  .hint { font-size: 12px; }
}

.d-head .type { font-size: 12px; color: var(--muted); }
.d-head h2 { margin: 2px 40px 6px 0; font-size: 22px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #ecfdf5; color: var(--ok); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.wait { background: #f1f5f9; color: var(--muted); }
.d-sec { margin-top: 22px; }
.d-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 10px; letter-spacing: .02em; }
.d-sec h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people { display: grid; gap: 10px; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: #64748b; object-fit: cover; }
.person b { font-size: 15px; }
.person .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { padding: 9px 12px; border-radius: 10px; background: #f8fafc; font-size: 14px; }
.list li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; margin: 4px 4px 0 0; background: #fef3c7; color: var(--warn); font-weight: 600; }
.badge.red { background: #fee2e2; color: var(--danger); }
.list a { font-size: 12px; color: var(--brand); }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th { text-align: left; color: var(--muted); font-weight: 500; width: 40%; padding: 6px 0; border-bottom: 1px solid var(--line); }
.specs td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.safety { border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; padding: 12px 14px; font-size: 14px; }
.safety .row { margin-bottom: 10px; }
.safety .row:last-child { margin-bottom: 0; }
.safety .lbl { font-size: 12px; font-weight: 700; color: var(--warn); margin-bottom: 4px; }
.safety ul { margin: 0; padding-left: 18px; }
.safety .emg { color: var(--danger); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { font-size: 12px; background: #fff; border: 1px solid #fcd34d; border-radius: 999px; padding: 3px 10px; }
.empty { color: var(--muted); font-size: 13px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.notice { margin-top: 24px; font-size: 11px; color: var(--muted); }

/* PSV 기본 UI 미세 조정 */
.psv-navbar { background: rgba(10,16,24,.6); }
body.mode-panel.detail-open .psv-navbar { width: calc(100% - min(var(--panel-w), 100vw) - 20px); }

/* JS 실행 전에는 상세 패널 숨김 */
body:not(.mode-panel):not(.mode-popup) #detail { display: none; }
/* 실행 오류 안내 */
#boot-error {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 100;
  width: min(560px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.6; border-top: 5px solid var(--danger);
}
#boot-error b { font-size: 17px; }
#boot-error p { margin: 8px 0 0; }
#boot-error code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; }
#boot-error[hidden] { display: none; }

.top-actions { display: flex; gap: 8px; }
.chip.on { background: #fff; color: var(--ink); }

/* 장면 이동 표시 (건물·출입문) */
.go-marker {
  display: flex; align-items: center; gap: 10px; cursor: pointer; transform: translateZ(0);
  background: rgba(17, 24, 39, .82); color: #fff; padding: 8px 16px 8px 8px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 6px 22px rgba(0,0,0,.45); white-space: nowrap;
  animation: bob 2.4s ease-in-out infinite; transition: background .15s, transform .15s;
}
.go-marker:hover { background: var(--brand); animation-play-state: paused; transform: scale(1.06); }
.go-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: 0 0 auto; position: relative; }
.go-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #93c5fd; animation: pulse 1.8s ease-out infinite; }
.go-icon svg { width: 20px; height: 20px; }
.go-text { display: flex; flex-direction: column; line-height: 1.2; }
.go-text b { font-size: 15px; }
.go-text small { font-size: 11px; opacity: .8; margin-top: 1px; }
.go-marker.building { padding: 10px 20px 10px 10px; }
.go-marker.building .go-text b { font-size: 20px; }
.go-marker.building .go-icon { width: 40px; height: 40px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 720px) {
  .top-actions .chip { padding: 5px 9px; font-size: 11px; }
  .go-text b { font-size: 13px; }
  .go-marker.building .go-text b { font-size: 16px; }
}
.scene-thumb { width: 132px; }

/* 장면 이동(걸어가기) 화면 */
.travel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 15; display: block; opacity: 0; pointer-events: none; }
.travel-canvas.on { opacity: 1; pointer-events: auto; }
#viewer.traveling .psv-marker, #viewer.traveling [class*="psv-virtual-tour-arrow"], #viewer.traveling .psv-virtual-tour-link { visibility: hidden; }

/* 이동 표시: 도착 지점 바닥에 놓인 원형 발판 */
.floor-spot {
  position: relative; width: 96px; height: 96px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff;
  transform: scale(var(--s, 1)); display: grid; place-items: center;
}
.floor-spot .ring {
  position: absolute; inset: 22px 6px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), rgba(255,255,255,.12) 70%, transparent);
  border: 3px solid rgba(255,255,255,.95); box-shadow: 0 0 0 2px rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.45);
  transition: background .15s, border-color .15s;
}
.floor-spot svg { position: relative; width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); transform: scaleY(.75); }
.floor-spot:hover .ring { background: radial-gradient(closest-side, rgba(29,78,216,.85), rgba(29,78,216,.55) 70%, transparent); border-color: #fff; }
.floor-spot::after { content: ""; position: absolute; inset: 22px 6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: spot 2s ease-out infinite; pointer-events: none; }
@keyframes spot { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* 항공뷰 오버레이 */
#aerial { position: absolute; inset: 0; z-index: 30; overflow: hidden; background: #000; }
#aerial[hidden] { display: none; }
#aerial .aerial-stage { position: absolute; inset: 0; background: transparent; }
#aerial .aerial-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 50%; will-change: transform, opacity; opacity: 0;
}
#aerial .aerial-white { position: absolute; inset: 0; background: #eaf3ff; opacity: 0; pointer-events: none; }
#aerial .aerial-alt { position: absolute; right: 16px; top: 50%; height: 180px; width: 6px; margin-top: -90px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; display: flex; align-items: flex-end; }
#aerial .aerial-alt span { display: block; width: 100%; background: linear-gradient(to top, #fbbf24, #fff); border-radius: 3px; }
#aerial .aerial-credit { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px #000; }
#aerial .aerial-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 우주에서 한반도 위에 놓이는 작은 '공장 전경' 표시 */
#aerial .aerial-return {
  position: absolute; transform: translate(-7px, -7px); display: flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s;
}
#aerial .aerial-return .pin { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.3); flex: 0 0 auto; }
#aerial .aerial-return .pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid #93c5fd; animation: pulse 1.8s ease-out infinite; }
#aerial .aerial-return .label { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: rgba(17,24,39,.8); border: 1px solid rgba(255,255,255,.6); white-space: nowrap; }
#aerial .aerial-return:hover .label { background: var(--brand); }
#aerial.space .aerial-return { opacity: 1; pointer-events: auto; }
body.aerial-on #scene-list, body.aerial-on .psv-navbar { visibility: hidden; }

/* 작은 이동 표시 (세계시장) */
.go-marker.small { gap: 7px; padding: 5px 13px 5px 5px; border-width: 1.5px; }
.go-marker.small .go-icon { width: 26px; height: 26px; }
.go-marker.small .go-icon svg { width: 16px; height: 16px; }
.go-marker.small .go-icon::after { inset: -4px; }
.go-marker.small .go-text b { font-size: 13px; }

/* 항공뷰로 시작할 때: 지구가 그려질 때까지 360° 화면을 가림 */
html.boot-aerial body { background: #000; }
html.boot-aerial #tour, html.boot-aerial #overview, html.boot-aerial #scene-list { visibility: hidden; }
html.boot-aerial #aerial { visibility: visible; }

/* 발판 화살표 방향 (site.json link.rotate) */
.floor-spot .ring, .floor-spot::after { rotate: var(--r, 0deg); }
.floor-spot svg { rotate: var(--r, 0deg); }

/* 3D그래픽: 지도 이름표 (마을·논·주차장 등) */
.map-label { position: absolute; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: #fff7c2; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.5); }
.map-label.strong { background: rgba(17,24,39,.75); color: #fff; padding: 3px 9px; border-radius: 6px; text-shadow: none; font-size: 12px; }
.map-label.hidden { opacity: 0; }
/* 3D그래픽 건물 이름표는 짧게 (설명 숨김) — 건물이 붙어 있어 겹치지 않도록 */
.b-label { min-width: 0; padding: 6px 11px 7px; }
.b-label .desc { display: none; }

/* 3D그래픽 건물 내부 */
#inside .interior-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#inside-labels { position: absolute; inset: 0; pointer-events: none; }
#inside-labels > * { position: absolute; pointer-events: auto; }
#inside-labels .eq-marker.in3d { transform: translate(-11px, -50%) scale(var(--s, 1)); transform-origin: 11px 50%; transition: opacity .15s; }
#inside-labels .eq-marker.in3d:hover, #inside-labels .eq-marker.in3d.hover { opacity: 1 !important; }
#inside-labels .eq-marker.hover .eq-name { background: var(--brand); color: #fff; }
#inside-labels .map-label { pointer-events: none; }
#inside .hint { bottom: calc(22px + env(safe-area-inset-bottom)); }

/* 3D그래픽 지면 시점(실사에서 넘어온 자리) */
#overview.ground #overview-hint { font-size: 0; }
#overview.ground #overview-hint::after { content: '실사 사진을 찍은 자리에서 보는 중 · 드래그로 둘러보기 · 휠을 뒤로 돌리면 전체 배치도'; font-size: 12px; }

/* 3D그래픽 모드 장소 목록: 실사 투어와 같은 모양, 3D 화면(배치도·건물 내부)에서만 */
#scene-list-3d { display: none; position: fixed; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 25; }
body.stage-3d #scene-list-3d { display: flex; }
body.aerial-on #scene-list-3d, html.boot-aerial #scene-list-3d, .flying ~ #scene-list-3d { visibility: hidden; }

/* 3D그래픽 지면 시점의 출입문 표시(실사 투어의 건물·문 버튼과 같은 모양) */
.g-mark { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.g-mark.hidden { display: none; }

/* 아직 촬영 전(준비 중) 문 버튼: 회색 */
.go-marker.wait { background: rgba(71,85,105,.85); }
.go-marker.wait .go-icon { background: #64748b; }

/* 위험성평가(타라 안전관리 시스템) */
.d-sec h3 small { font-weight: 500; color: #64748b; font-size: 11px; margin-left: 4px; }
.risk-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.risk-sum div { background: #f1f5f9; border-radius: 10px; padding: 8px 6px; text-align: center; }
.risk-sum b { display: block; font-size: 18px; color: #0f172a; }
.risk-sum b.r { color: #b91c1c; }
.risk-sum span { font-size: 10.5px; color: #64748b; }
.risk-grp { border: 1px solid #e2e8f0; border-radius: 10px; margin: 8px 0; background: #fff; }
.risk-grp > summary { cursor: pointer; padding: 9px 12px; font-weight: 700; font-size: 13px; list-style: none; }
.risk-grp > summary::-webkit-details-marker { display: none; }
.risk-grp > summary::before { content: '▸ '; color: #94a3b8; }
.risk-grp[open] > summary::before { content: '▾ '; }
.risk-grp > summary em { font-style: normal; color: #64748b; font-weight: 500; margin-left: 4px; }
.risks { list-style: none; margin: 0; padding: 0 10px 8px; }
.risk { border-top: 1px solid #f1f5f9; padding: 9px 2px; font-size: 12.5px; line-height: 1.5; }
.risk p { margin: 3px 0; color: #1e293b; }
.risk-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sev { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fff; }
.sev.s5 { background: #b91c1c; } .sev.s4 { background: #ea580c; } .sev.s3 { background: #ca8a04; } .sev.s2 { background: #0d9488; } .sev.s1 { background: #64748b; }
.rtype { font-size: 11px; color: #475569; background: #f1f5f9; padding: 1px 7px; border-radius: 999px; }
.rst { font-size: 11px; margin-left: auto; padding: 1px 7px; border-radius: 6px; border: 1px solid; }
.st-n { color: #c2410c; border-color: #fdba74; } .st-u { color: #fff; background: #dc2626; border-color: #dc2626; } .st-ok { color: #15803d; border-color: #86efac; } .st-none { color: #94a3b8; border-color: #e2e8f0; }
.rtitle { margin-top: 3px; } .rtitle small { color: #94a3b8; margin-left: 4px; }
.measure { background: #f8fafc; border-left: 3px solid #2563eb; padding: 5px 8px; margin-top: 4px; font-size: 12px; color: #334155; }
.measure span { display: block; font-size: 10.5px; font-weight: 700; color: #2563eb; }
.risk.w .measure { border-left-color: #0d9488; } .risk.w .measure span { color: #0d9488; }
.risk-src { font-size: 11px; color: #94a3b8; margin: 6px 2px 0; }

/* 부서 위치 표시(사무실) — 설비와 구분되는 청록색 */
.eq-marker.team .eq-dot { background: #0d9488; }
.eq-marker.team .eq-dot::before { border-color: #5eead4; }
.eq-marker.team:hover .eq-name { background: #0d9488; color: #fff; }

/* 위험요인 현장 사진(커튼처럼 내려옴) */
.photo-btn { margin: 2px 0 6px; font-size: 11.5px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.photo-btn:hover, .photo-btn[aria-expanded="true"] { background: #2563eb; color: #fff; border-color: #2563eb; }
.photo-curtain { height: 0; overflow: hidden; transition: height .45s cubic-bezier(.2,.8,.2,1); }
.photo-curtain img { display: block; width: 100%; border-radius: 8px; margin-top: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.photo-none { margin-top: 7px; font-size: 12px; color: #94a3b8; background: #f8fafc; border-radius: 8px; padding: 14px; text-align: center; }

/* ---------- 게임 모드 ---------- */
#btn-game { display: none; background: #f59e0b; border-color: #fbbf24; color: #111827; font-weight: 700; }
#btn-game:hover { background: #fbbf24; }
body.stage-3d #btn-game { display: inline-block; }
@media (hover: none) and (pointer: coarse) { body.stage-3d #btn-game { display: none; } } /* 키보드·마우스가 있는 PC 전용 */
body.gaming #topbar, body.gaming #scene-list-3d, body.gaming #overview-labels, body.gaming #inside-labels { display: none !important; }
#game { position: fixed; inset: 0; z-index: 35; display: none; background: #000; user-select: none; font-family: inherit; }
#game.on { display: block; }
#game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
#game kbd { display: inline-block; min-width: 20px; padding: 1px 6px; margin: 0 1px; border-radius: 5px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-bottom-width: 2px; font: 600 11px/16px inherit; text-align: center; color: #fff; }
#game .game-cross { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
#game .game-loc { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(17,24,39,.62); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
#game .game-esc { position: absolute; top: 14px; right: 14px; padding: 7px 12px; border-radius: 10px; background: rgba(17,24,39,.7); color: #e5e7eb; font-size: 12.5px; pointer-events: none; }
#game .game-esc b { color: #fde68a; }
#game .game-help { position: absolute; z-index: 3; right: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; width: 300px; padding: 14px 16px; border-radius: 16px; background: rgba(17,24,39,.94); color: #e5e7eb; font-size: 13px; pointer-events: none; transition: opacity .8s; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
#game .game-help.dim { opacity: .6; }
#game .game-help kbd { transition: background .1s, color .1s, transform .1s; }
#game .game-help kbd.on { background: #fbbf24; color: #111827; border-color: #fde68a; transform: translateY(1px); }
#game .gh-move, #game .gh-run { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
#game .gh-run { background: rgba(245,158,11,.14); border-color: rgba(251,191,36,.45); }
#game .gh-pad { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: 34px 34px; gap: 4px; flex: none; }
#game .gh-pad kbd { width: 34px; height: 34px; display: grid; place-items: center; font-size: 15px; font-weight: 800; border-radius: 7px; border-bottom-width: 3px; margin: 0; }
#game .gh-pad kbd:nth-child(1) { grid-column: 2; grid-row: 1; }
#game .gh-pad kbd:nth-child(2) { grid-column: 1; grid-row: 2; }
#game .gh-pad kbd:nth-child(3) { grid-column: 2; grid-row: 2; }
#game .gh-pad kbd:nth-child(4) { grid-column: 3; grid-row: 2; }
#game .gh-combo { display: flex; align-items: center; gap: 5px; flex: none; }
#game .gh-combo kbd { height: 34px; min-width: 34px; display: grid; place-items: center; font-size: 15px; font-weight: 800; border-radius: 7px; border-bottom-width: 3px; margin: 0; }
#game .gh-combo kbd.wide { min-width: 64px; }
#game .gh-combo .plus { font-size: 18px; font-weight: 800; color: #fde68a; }
#game .gh-txt { display: grid; gap: 2px; }
#game .gh-txt b { font-size: 18px; color: #fff; }
#game .gh-run .gh-txt b { color: #fde68a; }
#game .gh-txt small { font-size: 12px; color: #cbd5e1; line-height: 1.35; }
#game .gh-txt u { text-decoration-color: #fbbf24; text-decoration-thickness: 2px; text-underline-offset: 3px; color: #fff; font-weight: 700; }
#game .gh-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12px; color: #cbd5e1; padding: 0 4px; }
/* 처음 해 보는 사람 안내 (화면 아래 가운데) */
#game .game-coach { position: absolute; z-index: 3; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(10px); padding: 12px 22px; border-radius: 999px; background: rgba(17,24,39,.85); color: #fff; font-size: 17px; white-space: nowrap; opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
#game .game-coach.on { opacity: 1; transform: translateX(-50%); animation: coach-pulse 1.6s ease-in-out infinite; }
#game .game-coach kbd { font-size: 15px; padding: 2px 9px; background: #fbbf24; color: #111827; border-color: #fde68a; }
#game .game-coach b { color: #fde68a; }
@keyframes coach-pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(251,191,36,.5); } 50% { box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 8px rgba(251,191,36,0); } }
#game .game-tip { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(6,95,70,.8); color: #ecfdf5; font-size: 13px; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; }
#game .game-tip.on { opacity: 1; }
#game .game-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 16px 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(17,24,39,.78); color: #fff; font-size: 16px; cursor: pointer; }
#game .game-lock small { font-size: 12px; color: #cbd5e1; }
#game.locked .game-lock { display: none; }
#game .game-fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .22s; }
#game .game-fade.on { opacity: 1; }
#game .game-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#game .game-labels > * { position: absolute; pointer-events: none; }
#game .game-labels .eq-marker.in3d { transform: translate(-11px, -50%) scale(var(--s, 1)); transform-origin: 11px 50%; }
#game .game-labels .game-door { transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; padding: 6px 14px 7px; border-radius: 10px; background: #1d4ed8; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; line-height: 1.25; }
#game .game-labels .game-door b { font-size: 15px; }
#game .game-labels .game-door small { font-size: 11px; opacity: .8; }
#game .game-labels .game-door::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #1d4ed8; }

/* 실사 모드의 "3D그래픽으로" 버튼: 눈에 잘 띄게 (크게 + 색) */
body:not(.stage-3d) .top-actions #btn-map { background: #f59e0b; border-color: #fbbf24; color: #111827; font-weight: 800; font-size: 14px; padding: 8px 18px; box-shadow: 0 0 0 0 rgba(245,158,11,.6); animation: btn-map-glow 2.4s ease-out infinite; }
body:not(.stage-3d) .top-actions #btn-map:hover { background: #fbbf24; }
@keyframes btn-map-glow { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,.65); } 70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
@media (max-width: 640px) { body:not(.stage-3d) .top-actions #btn-map { font-size: 12.5px; padding: 6px 12px; } }

/* 3D 모드의 "게임하기" 버튼도 크게 + 빛 번짐 */
body.stage-3d .top-actions #btn-game { font-size: 14px; font-weight: 800; padding: 8px 18px; animation: btn-map-glow 2.4s ease-out infinite; }
@media (max-width: 640px) { body.stage-3d .top-actions #btn-game { font-size: 12.5px; padding: 6px 12px; } }
/* 고양이·부엉이 미니게임 */
#game .game-target { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: none; pointer-events: none; }
#game .game-target svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); transition: transform .12s; }
#game .game-target .dot { fill: #fff; stroke: none; }
#game.hunt .game-target { display: block; }
#game.hunt .game-cross { display: none; }
#game.lockon .game-target svg { stroke: #ff3b30; transform: scale(.85); }
#game.lockon .game-target .dot { fill: #ff3b30; }
#game.miss .game-target svg { transform: scale(1.25); }
#game .game-msg { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(17,24,39,.78); color: #fff; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
#game .game-msg.on { opacity: 1; }
#game .game-msg b { color: #fde68a; }
#game .game-score { position: absolute; top: 56px; left: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(17,24,39,.62); color: #e5e7eb; font-size: 12.5px; pointer-events: none; }
#game .game-score b { color: #fde68a; font-size: 14px; }
#game.owlface .game-labels { opacity: 0; transition: opacity .2s; }
/* 표시 방식(우측 패널/팝업) 전환 버튼은 당분간 숨김 — 필요하면 이 줄만 지우면 다시 나옴 */
#btn-detail-mode { display: none !important; }
/* CMYK 잉크캔 퀘스트 */
#game .game-msg { top: 96px; max-width: calc(100% - 40px); white-space: normal; text-align: center; }
#game .quest-track { position: absolute; top: 58px; right: 14px; width: 230px; padding: 10px 12px; border-radius: 12px; background: rgba(17,24,39,.72); color: #e5e7eb; font-size: 12px; pointer-events: none; }
#game .qt-title { font-weight: 700; margin-bottom: 7px; display: flex; justify-content: space-between; }
#game .qt-title b { color: #fde68a; }
#game .qt-chips { display: grid; gap: 5px; }
#game .qt-chip { display: flex; align-items: center; gap: 8px; opacity: .92; }
#game .qt-sw { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--ink-t); font-weight: 900; display: grid; place-items: center; font-size: 13px; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
#game .qt-name { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; }
#game .qt-name small { font-weight: 400; color: #9ca3af; font-size: 10.5px; }
#game .qt-chip.got .qt-name small { color: #86efac; }
#game .qt-ok { margin-left: auto; color: #4ade80; font-weight: 900; font-size: 15px; }
#game .qt-key { margin-top: 7px; color: #9ca3af; font-size: 11px; }
#game.quest-done .quest-track { box-shadow: 0 0 0 2px #4ade80; }
#game .quest-compass { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); display: none; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(17,24,39,.75); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; }
#game .quest-compass.on { display: flex; }
#game .qc-arrow { width: 24px; height: 24px; border-radius: 50%; background: #fbbf24; color: #111827; display: grid; place-items: center; font-size: 13px; line-height: 1; }
#game .qc-ink { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 12px; text-shadow: 0 0 2px #000; }
#game .quest-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); width: min(560px, calc(100% - 40px)); padding: 20px 24px; border-radius: 16px; background: rgba(255,255,255,.97); color: #111827; box-shadow: 0 20px 60px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; }
#game .quest-intro.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#game .qi-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f59e0b; color: #111827; font-weight: 800; font-size: 12px; }
#game .quest-intro h3 { margin: 8px 0 6px; font-size: 20px; }
#game .quest-intro h3 b { background: linear-gradient(90deg, #00a0e9, #e4007f, #e6b800, #1a1a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
#game .quest-intro p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: #374151; }
#game .quest-intro ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
#game .quest-intro li { display: grid; grid-template-columns: 34px auto auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: #f3f4f6; border-left: 5px solid var(--ink); }
#game .qi-sw { grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--ink-t); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
#game .quest-intro li b { font-size: 15px; }
#game .quest-intro li em { font-style: normal; color: #6b7280; font-size: 12.5px; }
#game .qi-fact { grid-column: 2 / 5; font-size: 12px; color: #4b5563; }
#game .qi-where { grid-column: 4; grid-row: 1; justify-self: end; font-size: 11.5px; color: #2563eb; }
#game .qi-hint { font-size: 12.5px !important; color: #b45309 !important; margin: 0 !important; }
/* 게임 인트로 영상 */
#game-intro { position: fixed; inset: 0; z-index: 90; background: #000; display: none; cursor: pointer; }
#game-intro.on { display: block; }
#game-intro video { width: 100%; height: 100%; object-fit: contain; display: block; }
#game-intro .gi-skip { position: absolute; top: 14px; right: 16px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.85); font-size: 12px; pointer-events: none; }
#game-intro kbd, #game .qi-close kbd { display: inline-block; padding: 0 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,.45); font: 600 11px/17px inherit; }
#game .qi-close { margin-top: 10px; padding-top: 9px; border-top: 1px solid #e5e7eb; text-align: center; font-size: 12px; color: #6b7280; }
#game .qi-close kbd { border-color: #9ca3af; background: #f3f4f6; color: #374151; }
/* 인트로 준비 화면: 영상이 나오기 전 CMYK 점이 통통 */
#game-intro .gi-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #cbd5e1; font-size: 14px; letter-spacing: .05em; pointer-events: none; transition: opacity .3s; }
#game-intro.playing .gi-load { opacity: 0; }
#game-intro .gi-dots { display: flex; gap: 12px; }
#game-intro .gi-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); animation: gi-bounce 0.9s ease-in-out infinite; }
#game-intro .gi-dots i:nth-child(2) { animation-delay: .12s; } #game-intro .gi-dots i:nth-child(3) { animation-delay: .24s; } #game-intro .gi-dots i:nth-child(4) { animation-delay: .36s; }
@keyframes gi-bounce { 0%, 100% { transform: translateY(0); opacity: .6; } 40% { transform: translateY(-14px); opacity: 1; } }
#game-intro video { opacity: 0; transition: opacity .3s; }
#game-intro.playing video { opacity: 1; }
/* 설비 현장 소리 */
.snd { margin: 10px 0 4px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #eef4ff, #f5f3ff); border: 1px solid #dbe4f5; display: grid; gap: 8px; }
.snd-play { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid #c7d4ee; background: #fff; color: #1e293b; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.snd-play:hover { border-color: #1d4ed8; }
.snd-row.on .snd-play { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.snd-hp { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e0e7ff; }
.snd-hp svg { width: 17px; height: 17px; fill: #1d4ed8; }
.snd-row.on .snd-hp { background: rgba(255,255,255,.2); } .snd-row.on .snd-hp svg { fill: #fff; }
.snd-label { flex: 1; }
.snd-bars { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.snd-bars i { width: 3px; background: #fff; border-radius: 2px; animation: snd-eq .9s ease-in-out infinite; }
.snd-bars i:nth-child(2) { animation-delay: .2s; } .snd-bars i:nth-child(3) { animation-delay: .4s; } .snd-bars i:nth-child(4) { animation-delay: .1s; }
@keyframes snd-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.snd-vol { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.snd-mute { border: 0; background: none; cursor: pointer; padding: 0; width: 26px; height: 26px; display: grid; place-items: center; }
.snd-mute svg { width: 20px; height: 20px; fill: #1d4ed8; stroke: #1d4ed8; stroke-linecap: round; }
.snd-vol input { flex: 1; accent-color: #1d4ed8; }
.snd-pct { width: 38px; text-align: right; font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.snd-row.on .snd-bars { display: flex; }
/* 재생 ▶ / 재생 중에는 네모 정지 버튼 ■ */
.snd-state { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e0e7ff; }
.snd-state::before { content: ''; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #1d4ed8; }
.snd-row.on .snd-state { background: #fff; }
.snd-row.on .snd-state::before { margin: 0; width: 11px; height: 11px; border: 0; border-radius: 2px; background: #1d4ed8; }
/* ---------- 로그인 ---------- */
html.locked #topbar, html.locked #scene-list, html.locked #scene-list-3d, html.locked #toast:empty { display: none !important; }
html.locked #aerial .aerial-return { display: none; }
.chip.logout { background: transparent; border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); font-size: 11.5px; padding: 4px 10px; }
.chip.logout:hover { background: rgba(255,255,255,.15); color: #fff; }
/* 로그인 칸: 지구본의 공장 전경(한반도) 자리에 핀 + 카드 */
#aerial .login-card {
  position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); transform: translate(22px, -50%);
  width: 270px; padding: 18px 18px 16px; border-radius: 16px; background: rgba(255,255,255,.96); color: #111827;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.4); display: grid; gap: 10px; z-index: 5;
  transition: opacity .5s, transform .5s;
}
#aerial .login-card::before { /* 핀(공장 전경 자리)에서 카드로 잇는 선 */
  content: ''; position: absolute; left: -22px; top: 50%; width: 22px; height: 2px; background: rgba(255,255,255,.85);
}
#aerial .login-card::after { /* 공장 전경 자리 표시 핀 */
  content: ''; position: absolute; left: -29px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(147,197,253,.35);
}
#aerial .login-card.done { opacity: 0; transform: translate(22px, -50%) scale(.96); pointer-events: none; }
#aerial .login-card.shake { animation: lc-shake .4s; }
@keyframes lc-shake { 20%, 60% { margin-left: -8px; } 40%, 80% { margin-left: 8px; } }
#aerial .lc-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
#aerial .lc-brand .logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
#aerial .lc-brand b { display: block; font-size: 16px; }
#aerial .lc-brand small { color: #64748b; font-size: 12px; }
#aerial .login-card label { display: grid; gap: 4px; font-size: 12px; color: #475569; font-weight: 600; }
#aerial .login-card input { padding: 9px 11px; border-radius: 9px; border: 1px solid #cbd5e1; font-size: 14px; outline: none; }
#aerial .login-card input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.18); }
#aerial .lc-err { min-height: 16px; font-size: 12px; color: #dc2626; }
#aerial .login-card button { padding: 10px; border: 0; border-radius: 10px; background: #1d4ed8; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
#aerial .login-card button:disabled { opacity: .7; cursor: default; }
@media (max-width: 640px) { #aerial .login-card { left: 50% !important; top: auto; bottom: 24px; transform: translateX(-50%); width: calc(100% - 40px); max-width: 320px; } #aerial .login-card::before, #aerial .login-card::after { display: none; } #aerial .login-card.done { transform: translateX(-50%); } }
/* 면접자: 실사 투어만 (3D그래픽·게임 버튼 숨김) */
body[data-role="interview"] #btn-map, body[data-role="interview"] #btn-game { display: none !important; }
/* 부엉이 롤지 배달 */
#game .dlv-ask { position: absolute; z-index: 4; left: 50%; top: 22%; transform: translate(-50%, -10px); display: flex; gap: 16px; align-items: center; max-width: min(560px, calc(100% - 40px)); padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.97); color: #111827; box-shadow: 0 18px 50px rgba(0,0,0,.45); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
#game .dlv-ask.on { opacity: 1; transform: translate(-50%, 0); }
#game .dlv-owl { font-size: 48px; line-height: 1; flex: none; width: 70px; height: 70px; border-radius: 50%; background: #1599a6; display: grid; place-items: center; }
#game .dlv-ask b { font-size: 15px; color: #0e7a86; }
#game .dlv-ask p { margin: 4px 0 6px; font-size: 18px; line-height: 1.5; font-weight: 700; }
#game .dlv-ask em { font-style: normal; color: #1d4ed8; }
#game .dlv-ask small { color: #6b7280; font-size: 12.5px; }
#game .dlv-ask kbd { background: #fbbf24; color: #111827; border-color: #f59e0b; font-size: 13px; }
#game .dlv-win { position: absolute; z-index: 4; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.9); padding: 26px 40px 24px; border-radius: 20px; background: linear-gradient(135deg, #ffffff, #f1f5f9); color: #111827; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.45); opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none; overflow: hidden; }
#game .dlv-win.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#game .dlv-win b { display: block; font-size: 32px; background: linear-gradient(90deg, #00a0e9, #e4007f, #e6b800, #1a1a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
#game .dlv-win p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }
#game .dlv-confetti { position: absolute; inset: 0; pointer-events: none; }
#game .dlv-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; background: var(--c); border-radius: 2px; animation: dlv-fall 2.2s var(--d) ease-in infinite; }
@keyframes dlv-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(220px) rotate(540deg); opacity: 0; } }
#game .game-labels .game-bubble { transform: translate(-50%, -100%); }
#game .ok-bubble { display: inline-block; padding: 6px 12px; border-radius: 14px; background: #fff; color: #065f46; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,.3); white-space: nowrap; animation: ok-bob 1.2s ease-in-out infinite; }
@keyframes ok-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
