/* ===== 보안사고 연출 (유료판) ===== */
.incident-overlay {
  position: fixed;
  inset: 0;
  z-index: 16500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #e6edf3;
}

.ic-run { width: 380px; padding: 18px 22px; background: #fff; color: #222; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.ic-run-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ic-run-title svg { width: 22px; height: 22px; }
.ic-run-text { font-size: 12px; color: #555; margin: 10px 0 8px; }
.ic-run-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.ic-run-fill { height: 100%; width: 0; background: #0067c0; animation: ic-fill 1.4s ease-out forwards; }
@keyframes ic-fill { to { width: 100%; } }

.ic-gate { width: 520px; padding: 26px 30px; background: #1a0f0f; border: 2px solid #ef4444; border-radius: 10px; box-shadow: 0 0 0 6px rgba(239,68,68,0.15), 0 20px 60px rgba(0,0,0,0.6); }
.ic-gate-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #fca5a5; font-weight: 700; letter-spacing: 1px; }
.ic-gate-head svg { width: 18px; height: 18px; }
.ic-gate-title { font-size: 26px; font-weight: 800; margin: 10px 0 12px; color: #fff; }
.ic-gate-lines { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.8; color: #fecaca; min-height: 90px; }

/* 감염 연출 중: 바탕화면이 흔들리고 어두워진다 */
html.is-incident .desktop { filter: saturate(0.4) brightness(0.7); animation: ic-shake 0.5s linear 3; }
html.is-incident .desktop-icon-label { color: #fecaca; }
@keyframes ic-shake { 0%, 100% { transform: translate(0,0); } 25% { transform: translate(3px,-2px); } 50% { transform: translate(-3px,2px); } 75% { transform: translate(2px,3px); } }

/* 보고서 */
.ic-report { max-width: 640px; text-align: left; }
.ic-report .ending-title { text-align: center; }
.ic-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.ic-table th { width: 90px; text-align: left; color: #9ca3af; font-weight: 600; padding: 6px 8px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ic-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.1); line-height: 1.5; }
.ic-quote { font-size: 13px; line-height: 1.6; padding: 8px 12px; margin: 8px 0; border-left: 3px solid #ef4444; background: rgba(255,255,255,0.05); }
.ic-report .ending-note { text-align: center; color: #fca5a5; }

/* 잠금 화면 (게임 속 가짜 랜섬웨어 화면) */
.incident-overlay:has(.ic-ransom) {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.25) 0 2px, transparent 2px 5px),
    #6f6f6f;
  animation: ic-noise 0.25s steps(2) infinite;
}
@keyframes ic-noise { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 3px, 5px 0; } }
.ic-ransom { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: Consolas, "Courier New", monospace; }
.ic-ransom-box { max-width: 92vw; text-align: center; background: #b00000; color: #fff; padding: 8px 18px; font-size: 15px; letter-spacing: 0.5px; box-shadow: 0 2px 0 #600; }
.ic-ransom-title { font-size: 22px; font-weight: 700; letter-spacing: 4px; margin-bottom: 10px; }
.ic-ransom-count span { font-weight: 700; }
.ic-ransom-small { font-size: 12.5px; background: #8a0000; }
