/* ===================== RESET / BASE ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  font-family: "Tahoma", "Segoe UI", Verdana, Arial, sans-serif;
  overflow: hidden;
  background: #000;
  color: #222;
}
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.screen {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
}

/* ===================== FULLSCREEN PROMPT ===================== */
#fullscreen-prompt {
  background: radial-gradient(circle at 50% 30%, #0b2a1f 0%, #04140e 60%, #000 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: "Consolas", "Courier New", monospace;
  color: #5dffb0;
  z-index: 100;
}
.fullscreen-box {
  width: 460px;
  border: 1px solid #2f8f63;
  background: rgba(0, 20, 12, 0.85);
  box-shadow: 0 0 30px rgba(60, 255, 170, 0.25), inset 0 0 40px rgba(0,255,150,0.05);
  padding: 28px 32px;
  text-align: center;
}
.fullscreen-message {
  margin: 18px 0 22px;
  font-size: 12px; line-height: 1.6; color: #c9ffe4;
}
.fullscreen-actions { display: flex; flex-direction: column; gap: 10px; }
.fullscreen-actions button {
  font-family: inherit; font-size: 12px; letter-spacing: 1px; padding: 10px;
}
#fullscreen-enter-btn {
  background: #134a32; border: 1px solid #5dffb0; color: #c9ffe4; font-weight: bold;
}
#fullscreen-enter-btn:hover { background: #1d6b48; }
#fullscreen-skip-btn {
  background: transparent; border: 1px solid #2f8f63; color: #2f8f63;
}
#fullscreen-skip-btn:hover { color: #5dffb0; border-color: #5dffb0; }

/* ===================== LOGIN SCREEN ===================== */
#login-screen {
  background: radial-gradient(circle at 50% 30%, #0b2a1f 0%, #04140e 60%, #000 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: "Consolas", "Courier New", monospace;
  color: #5dffb0;
}
.crt-overlay {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,255,150,0.03) 3px);
  pointer-events: none;
}
.login-box {
  width: 460px;
  border: 1px solid #2f8f63;
  background: rgba(0, 20, 12, 0.85);
  box-shadow: 0 0 30px rgba(60, 255, 170, 0.25), inset 0 0 40px rgba(0,255,150,0.05);
  padding: 28px 32px;
  z-index: 1;
}
.login-logo {
  font-size: 22px; font-weight: bold; letter-spacing: 2px;
  margin-bottom: 4px; text-shadow: 0 0 8px rgba(93,255,176,0.6);
}
.login-logo .logo-mark { color: #ffd24d; margin-right: 4px; }
.login-logo small {
  display: block; font-size: 11px; letter-spacing: 1px; color: #2f8f63; margin-top: 4px;
}
.boot-log {
  margin: 14px 0; font-size: 11px; line-height: 1.6; min-height: 90px;
  color: #2f8f63; white-space: pre-line;
}
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.login-form label {
  display: flex; flex-direction: column; font-size: 11px; letter-spacing: 1px; gap: 4px;
}
.login-form input {
  background: #04140e; border: 1px solid #2f8f63; color: #5dffb0;
  padding: 8px 10px; font-family: inherit; font-size: 13px; outline: none;
}
.login-form input:focus { border-color: #5dffb0; box-shadow: 0 0 6px rgba(93,255,176,0.5); }
#login-btn {
  margin-top: 6px; background: transparent; border: 1px solid #2f8f63; color: #2f8f63;
  padding: 10px; letter-spacing: 1px; font-weight: bold; font-size: 11px;
}
#login-btn:hover { color: #5dffb0; border-color: #5dffb0; }
.login-status { font-size: 11px; color: #2f8f63; min-height: 14px; }
.login-footer {
  margin-top: 18px; font-size: 9px; letter-spacing: 1px; color: #1d5e3f; text-align: center;
}

/* ===================== STORY MODE OVERLAYS ===================== */
#story-mode-btn {
  margin-top: 6px; background: #5a3d00; border: 1px solid #ffd24d; color: #ffe9b0;
  padding: 11px; letter-spacing: 1px; font-weight: bold; font-family: inherit; font-size: 12px;
  box-shadow: 0 0 12px rgba(255, 210, 77, 0.25);
}
#story-mode-btn:hover { background: #714e00; }

.story-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  font-family: "Consolas", "Courier New", monospace;
}
.story-box {
  width: 520px;
  border: 1px solid #2f8f63;
  background: #04140e;
  box-shadow: 0 0 30px rgba(60, 255, 170, 0.25);
  padding: 28px 32px;
  text-align: center;
}
.story-box-title {
  font-size: 18px; font-weight: bold; letter-spacing: 2px; color: #ffd24d;
  margin-bottom: 16px; text-shadow: 0 0 8px rgba(255,210,77,0.5);
}
.story-box-body {
  font-size: 12px; line-height: 1.7; color: #c9ffe4; margin-bottom: 22px; text-align: left;
}
.story-box button {
  font-family: inherit; font-size: 12px; letter-spacing: 1px; padding: 10px 18px;
  background: #134a32; border: 1px solid #5dffb0; color: #c9ffe4; font-weight: bold;
}
.story-box button:hover { background: #1d6b48; }

/* ===================== STORY BRIEFING ===================== */
.briefing-box {
  width: 580px; text-align: left;
  background: linear-gradient(160deg, #061a12 0%, #04140e 100%);
  box-shadow: 0 0 40px rgba(60, 255, 170, 0.18), inset 0 0 60px rgba(0, 255, 150, 0.04);
}
.briefing-daytag {
  font-size: 11px; letter-spacing: 4px; color: #2f8f63; font-weight: bold; margin-bottom: 8px;
}
.briefing-title {
  text-align: left; font-size: 22px; letter-spacing: 1px; margin-bottom: 0;
}
.briefing-divider {
  height: 1px; margin: 14px 0 16px; background: linear-gradient(to right, #2f8f63, rgba(47,143,99,0));
}
.briefing-body {
  font-size: 13px; line-height: 1.85; color: #d6ffe9; margin-bottom: 24px;
}
.briefing-btn { letter-spacing: 2px; padding: 11px 24px; }
.briefing-mechanic {
  background: rgba(255, 210, 77, 0.1); border: 1px solid #c9a233; border-left: 4px solid #ffd24d;
  border-radius: 4px; padding: 10px 13px; margin-bottom: 22px;
  font-size: 12px; line-height: 1.55; color: #ffe9b0; font-weight: bold;
}

/* ===================== DESKTOP ===================== */
#desktop-screen {
  background: linear-gradient(135deg, #1a6e8c 0%, #134f66 50%, #0d3a4d 100%);
  position: relative;
}

/* ===================== STORY MODE GLITCH ===================== */
@keyframes glitch-flash {
  0% { filter: none; }
  20% { filter: invert(1) hue-rotate(180deg); transform: translateX(-4px); }
  40% { filter: brightness(2) saturate(3); transform: translateX(4px); }
  60% { filter: invert(1); transform: translateX(-2px); }
  80% { filter: brightness(1.5); transform: translateX(2px); }
  100% { filter: none; transform: none; }
}
.glitch-flash { animation: glitch-flash 0.5s steps(2, end); }

@keyframes breach-corruption {
  0%, 100% { text-shadow: 2px 0 #ff2d55, -2px 0 #00fff5; transform: translateX(0); }
  25% { text-shadow: -3px 0 #ff2d55, 3px 0 #00fff5; transform: translateX(-2px); }
  50% { text-shadow: 3px 0 #ff2d55, -3px 0 #00fff5; transform: translateX(2px); }
  75% { text-shadow: -2px 0 #ff2d55, 2px 0 #00fff5; transform: translateX(-1px); }
}
#end-screen.breach-glitch #end-title { animation: breach-corruption 0.4s steps(2, end) infinite; color: #ff5566; }
#end-screen.breach-glitch { background: radial-gradient(circle at 50% 30%, #2a0b0b 0%, #140404 60%, #000 100%); }

/* Windows visually corrupted for a few seconds (high-severity fake approved) */
@keyframes window-glitch-loop {
  0%, 100% { filter: none; transform: translate(0, 0); }
  20% { filter: hue-rotate(120deg) saturate(4) contrast(1.4); transform: translate(-3px, 1px); }
  40% { filter: invert(0.8) hue-rotate(200deg); transform: translate(3px, -1px); }
  60% { filter: hue-rotate(280deg) saturate(3); transform: translate(-2px, 2px); }
  80% { filter: brightness(1.6) contrast(1.6); transform: translate(2px, -2px); }
}
.window-glitched { animation: window-glitch-loop 0.25s steps(2, end) infinite; }

/* Mega glitch on the whole desktop right before a system "crash" */
@keyframes mega-glitch {
  0%, 100% { filter: none; transform: translate(0, 0); }
  10% { filter: invert(1) hue-rotate(90deg); transform: translate(-8px, 4px); }
  25% { filter: brightness(2.4) saturate(4); transform: translate(8px, -4px); }
  40% { filter: invert(1) hue-rotate(260deg); transform: translate(-6px, -6px); }
  55% { filter: contrast(2) hue-rotate(40deg); transform: translate(6px, 6px); }
  70% { filter: brightness(0.3); transform: translate(-10px, 2px); }
  85% { filter: invert(0.6) saturate(6); transform: translate(10px, -2px); }
}
.mega-glitch { animation: mega-glitch 0.18s steps(2, end) infinite; }

#crash-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
#crash-overlay .crash-text {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 28px; font-weight: bold; letter-spacing: 4px; color: #ff3344;
  animation: breach-corruption 0.25s steps(2, end) infinite;
}

/* Live intrusion mini-event */
#intrusion-overlay {
  position: fixed; inset: 0; z-index: 480;
  background: rgba(20, 0, 0, 0.82);
  display: flex; align-items: center; justify-content: center;
  font-family: "Consolas", "Courier New", monospace;
}
.intrusion-box {
  width: 480px; background: #15090a; border: 2px solid #ff3344; border-radius: 6px;
  padding: 24px 28px; text-align: center;
  box-shadow: 0 0 40px rgba(255, 51, 68, 0.5);
  animation: popup-flash 0.7s steps(2, end) infinite;
}
.intrusion-header {
  color: #ff5566; font-weight: bold; font-size: 15px; letter-spacing: 2px; margin-bottom: 10px;
}
.intrusion-timer {
  font-size: 40px; font-weight: bold; color: #ffd24d; margin-bottom: 12px; letter-spacing: 2px;
}
.intrusion-timer-low { color: #ff3344; }
.intrusion-prompt { font-size: 12.5px; line-height: 1.6; color: #ffd9d3; margin-bottom: 18px; text-align: left; }
.intrusion-options { display: flex; flex-direction: column; gap: 8px; }
.intrusion-opt {
  font-family: inherit; font-size: 13px; padding: 10px 12px; cursor: pointer;
  background: #0c1117; border: 1px solid #3a4a5a; color: #cdd6e0; border-radius: 4px;
  word-break: break-all; transition: background 0.1s ease;
}
.intrusion-opt:hover { background: #1a2330; border-color: #5a6b7c; }
.intrusion-opt.correct { background: #134a32; border-color: #5dffb0; color: #c9ffe4; }
.intrusion-opt.wrong { background: #4a1010; border-color: #ff3344; color: #ffd9d9; }
.intrusion-opt:disabled { cursor: default; }
.intrusion-result { margin-top: 16px; font-size: 13px; font-weight: bold; letter-spacing: 1px; }
.intrusion-result.ok { color: #5dffb0; }
.intrusion-result.bad { color: #ff5566; }

/* Flashy intrusion popups the player must close */
#intrusion-popup-layer { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
.intrusion-popup {
  position: absolute; width: 220px; pointer-events: auto;
  background: #2a0b0b; border: 2px solid #ff3344; border-radius: 4px;
  padding: 12px 14px; color: #ffd9d9; font-size: 11px; line-height: 1.5;
  box-shadow: 0 0 24px rgba(255, 51, 68, 0.6);
  animation: popup-flash 0.6s steps(2, end) infinite;
}
@keyframes popup-flash {
  0%, 100% { border-color: #ff3344; box-shadow: 0 0 24px rgba(255, 51, 68, 0.6); }
  50% { border-color: #ffd24d; box-shadow: 0 0 24px rgba(255, 210, 77, 0.6); }
}
.intrusion-popup-title { font-weight: bold; color: #ff6b6b; margin-bottom: 6px; letter-spacing: 1px; }
.intrusion-popup-close {
  margin-top: 10px; width: 100%; background: #4a1010; border: 1px solid #ff3344; color: #ffd9d9;
  font-size: 10.5px; font-weight: bold; letter-spacing: 1px; padding: 6px;
}
.intrusion-popup-close:hover { background: #6a1616; }

/* ===================== SHAKE REMINDER ===================== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px) rotate(-3deg); }
  30% { transform: translateX(6px) rotate(3deg); }
  45% { transform: translateX(-6px) rotate(-2deg); }
  60% { transform: translateX(6px) rotate(2deg); }
  75% { transform: translateX(-3px); }
}
.shake { animation: shake 0.5s ease; }

/* Desktop icons */
#desktop-icons {
  position: absolute; top: 58px; left: 14px;
  display: flex; flex-direction: column; gap: 16px;
  z-index: 5;
}
.desktop-icon {
  position: relative;
  width: 78px; background: transparent; border: 1px solid transparent; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 4px; font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.icon-badge {
  position: absolute; top: 2px; right: 12px; z-index: 2;
  background: #e23b2e; color: #fff; border: 2px solid #134f66; border-radius: 11px;
  min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; font-weight: bold;
  display: inline-flex; align-items: center; justify-content: center; text-shadow: none;
}
.desktop-icon:hover, .desktop-icon:focus { background: rgba(255,255,255,0.15); border: 1px dotted rgba(255,255,255,0.5); }
.icon-glyph {
  width: 42px; height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 16px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.icon-linkedin { background: #0a66c2; }
.icon-email { background: #c5221f; font-size: 20px; }
.icon-text { background: #2dbe5c; font-size: 18px; }
.icon-application { background: #7b2ff7; font-size: 20px; }
.icon-secops { background: #c0392b; font-size: 19px; font-weight: 900; }
.icon-tips { background: #f5a623; font-size: 20px; font-weight: 900; }
.desktop-icon.intel-alert .icon-glyph { animation: shake 0.5s ease; box-shadow: 0 0 0 2px #ffd24d, 0 2px 6px rgba(0,0,0,0.4); }

/* ===================== GENERIC WINDOW ===================== */
.window {
  position: absolute;
  width: 480px; height: 420px;
  min-width: 280px; min-height: 220px;
  background: #ece9d8;
  border: 1px solid #2a5b8a;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
  z-index: 10;
  resize: both;
  overflow: hidden;
}
.window.focused { z-index: 30; box-shadow: 0 12px 36px rgba(0,0,0,0.6); }
.window.minimized { display: none; }
.window-titlebar {
  height: 30px; flex: 0 0 30px;
  background: linear-gradient(to bottom, #3f8de0, #1c5fae);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; font-size: 12.5px; font-weight: bold; cursor: grab;
  user-select: none;
}
.window.focused .window-titlebar { background: linear-gradient(to bottom, #4fa3ff, #1666c2); }
.window-controls { display: flex; gap: 4px; }
.win-btn {
  width: 20px; height: 20px; border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.win-btn:hover { background: rgba(255,255,255,0.35); }
.win-close:hover { background: #d8413a; }
.window-body {
  flex: 1; overflow-y: auto; background: #fff; font-size: 13px; color: #222;
}

/* Decorative buttons that don't trigger real actions still get a hover/active feel */
.fx-btn { transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; }
.fx-btn:hover { filter: brightness(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.fx-btn:active { transform: scale(0.97); filter: brightness(0.95); }

/* ===================== LINKEDIN WINDOW ===================== */
.window-linkedin { width: 480px; height: 480px; top: 30px; left: 140px; }
.li-body { padding: 0; }
.li-empty { color: #888; font-style: italic; font-size: 13px; text-align: center; margin-top: 40px; }
.li-cover { height: 60px; background: linear-gradient(120deg, #0a66c2, #5fb1ff); }
.li-header {
  display: flex; align-items: flex-end; gap: 14px; padding: 0 18px 12px;
  margin-top: -34px; position: relative;
}
.li-pfp {
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff;
  object-fit: cover; background: #ccc;
}
.li-header-text { flex: 1; padding-top: 38px; }
.li-header-text h2 { font-size: 17px; color: #1a1a1a; }
.li-headline { font-size: 12.5px; color: #444; margin-top: 2px; }
.li-location, .li-mutuals { font-size: 11.5px; color: #767676; margin-top: 1px; }
.li-connect-btn {
  align-self: center; border: 1px solid #0a66c2; color: #0a66c2; background: #fff;
  border-radius: 16px; padding: 6px 16px; font-weight: bold; font-size: 12px; margin-bottom: 8px;
}
#li-bio { font-size: 12.5px; color: #333; line-height: 1.6; padding-left: 12px; border-left: 2px solid #0a66c2; }
.li-meta-row { display: flex; gap: 10px; padding: 0 18px 14px; flex-wrap: wrap; }
.li-meta-chip {
  background: #eef3f8; border: 1px solid #d7e3ee; border-radius: 4px; padding: 4px 10px; font-size: 11.5px;
}
.li-section { padding: 10px 18px; border-top: 1px solid #e4e4e4; }
.li-section h3 { font-size: 13px; color: #1a1a1a; margin-bottom: 8px; }
.li-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.li-section li { font-size: 12.5px; color: #333; padding-left: 12px; border-left: 2px solid #0a66c2; }
#li-education { font-size: 12.5px; color: #333; padding-left: 12px; border-left: 2px solid #0a66c2; min-height: 14px; }

/* ===================== EMAIL WINDOW ===================== */
.window-email { width: 660px; height: 400px; top: 30px; left: 560px; }
.email-body { display: flex; padding: 0; }
.email-inbox {
  width: 210px; flex: 0 0 210px; background: #f6f6f6; border-right: 1px solid #e2e2e2;
  display: flex; flex-direction: column; overflow: hidden;
}
.email-inbox-head {
  font-size: 12px; font-weight: bold; color: #c5221f; padding: 10px 12px;
  border-bottom: 1px solid #e2e2e2; display: flex; align-items: center; gap: 8px;
}
.inbox-badge {
  background: #c5221f; color: #fff; border-radius: 10px; font-size: 10px; font-weight: bold;
  min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
}
.email-inbox-list { flex: 1; overflow-y: auto; }
.email-inbox-row { padding: 8px 12px; border-bottom: 1px solid #ededed; cursor: pointer; }
.email-inbox-row:hover { background: #efefef; }
.email-inbox-row.unread { background: #fff; }
.email-inbox-row.unread .email-inbox-sender { font-weight: bold; color: #111; }
.email-inbox-row.email-inbox-applicant { background: #fbfbfb; }
.email-inbox-sender { font-size: 11.5px; color: #333; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.email-inbox-subject { color: #888; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #c5221f; flex: 0 0 8px; }
.email-reading-pane { flex: 1; padding: 16px 18px; overflow-y: auto; }
.email-boss-content h2 { font-size: 15px; color: #202124; margin-bottom: 6px; }
.email-boss-content hr { border: none; border-top: 1px solid #eee; margin: 10px 0; }
#boss-msg-body { font-family: inherit; white-space: pre-wrap; font-size: 12.5px; line-height: 1.6; color: #222; }
#boss-msg-action {
  margin-top: 16px; background: #1c5fae; color: #fff; border: none; border-radius: 4px;
  padding: 9px 18px; font-weight: bold; font-size: 12px; letter-spacing: 0.5px;
}
#boss-msg-action:hover { background: #2a72c8; }
.email-empty { color: #888; font-style: italic; font-size: 12.5px; margin-top: 30px; text-align: center; }
.email-content h2 { font-size: 15px; color: #202124; margin-bottom: 6px; }
.email-meta { font-size: 12px; color: #444; display: flex; gap: 6px; flex-wrap: wrap; }
.email-meta .email-addr { color: #888; }
.email-applicant-line { font-size: 11.5px; color: #777; margin-top: 4px; }
.email-content hr { border: none; border-top: 1px solid #eee; margin: 10px 0; }
#email-body-text {
  font-family: inherit; white-space: pre-wrap; font-size: 12.5px; line-height: 1.6; color: #222;
}
.scam-link {
  color: #1a0dab; text-decoration: underline; cursor: pointer; word-break: break-all;
}
.scam-link:hover { color: #d8413a; }

/* ===================== TEXT / PHONE WINDOW ===================== */
.window-text { width: 300px; height: 460px; top: 30px; left: 1040px; }
.text-body { display: flex; flex-direction: column; padding: 0; background: #e7ebf0; }
.phone-header {
  background: #f7f7f7; border-bottom: 1px solid #ddd; padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.phone-contact-pfp { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #ccc; }
.phone-header-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#text-contact-name { font-size: 12.5px; font-weight: bold; color: #222; }
.phone-applicant-line { font-size: 10.5px; color: #888; }
.phone-thread { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.text-empty { color: #888; font-style: italic; font-size: 12px; text-align: center; margin-top: 30px; }
.text-content { display: flex; flex-direction: column; height: 100%; }
.bubble-in {
  align-self: flex-start; background: #fff; border: 1px solid #ddd; border-radius: 14px;
  padding: 8px 12px; max-width: 80%; font-size: 12.5px; line-height: 1.4; color: #222;
}
.bubble-link {
  align-self: flex-start; background: #fff3cd; border: 1px solid #e8d090; border-radius: 10px;
  padding: 6px 10px; max-width: 80%; font-size: 11.5px; color: #7a5c00; word-break: break-all;
  cursor: pointer; text-decoration: underline;
}
.bubble-link:hover { background: #ffe9a8; color: #5c4400; }
.bubble-link.clicked { opacity: 0.5; cursor: default; text-decoration: line-through; }
.phone-input-bar {
  display: flex; gap: 6px; padding: 8px; background: #f7f7f7; border-top: 1px solid #ddd;
}
.phone-input-bar input {
  flex: 1; border: 1px solid #ccc; border-radius: 16px; padding: 6px 12px; font-size: 12px;
}
.phone-input-bar button {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: #2dbe5c; color: #fff;
}

/* ===================== TIPS WINDOW ===================== */
.window-tips { width: 760px; height: 320px; top: 100px; left: 100px; }
.tips-body { padding: 20px 28px; }
.tips-body h2 { font-size: 16px; color: #1a1a1a; margin-bottom: 10px; }
.tips-body p { font-size: 12.5px; line-height: 1.6; margin-bottom: 12px; color: #333; }
.tips-body ul { margin: 0 0 14px 18px; font-size: 12.5px; line-height: 1.8; color: #222; }
.tips-body li { white-space: nowrap; }
.tips-reminder { font-style: italic; color: #555; }

/* ===================== CASE FILE ===================== */
.window-application { width: 600px; height: 460px; top: 40px; left: 260px; }
.application-body { display: flex; flex-direction: column; padding: 0; }
.app-main { flex: 1; display: flex; overflow: hidden; }
.app-sidebar {
  width: 130px; flex: 0 0 130px; background: #f6f6f6; border-right: 1px solid #e2e2e2;
  display: flex; flex-direction: column; padding: 10px 8px; gap: 6px;
}
.app-nav-btn {
  border: none; background: transparent; text-align: left; padding: 8px 10px; font-size: 12px;
  border-radius: 4px; color: #444;
}
.app-nav-btn:hover { background: #eee; }
.app-nav-btn.active { background: #1c5fae; color: #fff; font-weight: bold; }
.app-pages { flex: 1; overflow-y: auto; position: relative; }
.app-page { display: none; padding: 14px 18px; }
.app-page.active { display: block; }
.app-page h3 { font-size: 13px; color: #1a1a1a; margin-bottom: 10px; }
.app-candidates { display: flex; flex-direction: column; gap: 10px; }
.app-candidate-card {
  display: flex; align-items: center; gap: 10px; border: 1px solid #ddd; border-radius: 6px;
  padding: 8px 10px; background: #fafafa;
}
.app-candidate-card img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #ccc; }
.app-candidate-info { flex: 1; }
.app-candidate-name { font-weight: bold; font-size: 12.5px; color: #1a1a1a; }
.app-candidate-platform { font-size: 10.5px; color: #888; }
.app-candidate-actions { display: flex; gap: 6px; }
.app-btn {
  border: none; padding: 7px 14px; font-weight: bold; letter-spacing: 0.5px; font-size: 11.5px;
  border-radius: 4px; color: #fff;
}
.app-btn-deny { background: #b3332c; }
.app-btn-deny:hover { background: #d8413a; }
.app-btn-approve { background: #2a8a4e; }
.app-btn-approve:hover { background: #34a85f; }
.app-candidate-card.decided { opacity: 0.55; }
.app-history-row {
  display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px;
  padding: 5px 0; border-bottom: 1px solid #eee; color: #333;
}
.app-history-row .hist-correct { color: #2a8a4e; font-weight: bold; }
.app-history-row .hist-wrong { color: #b3332c; font-weight: bold; }
.app-history-empty { color: #888; font-style: italic; font-size: 12px; text-align: center; margin-top: 10px; }
.app-history-heading { margin-top: 18px; }
.app-history-details {
  margin: -2px 0 6px 0; padding: 6px 10px; background: #fff8e6; border-left: 3px solid #e0a82e;
  font-size: 11px; color: #5a4a1f;
}
.app-history-details summary { cursor: pointer; font-weight: bold; color: #8a6d1f; }
.app-history-details p { margin-top: 5px; line-height: 1.5; }
.app-highscores { display: flex; flex-direction: column; gap: 6px; }
.app-highscore-row {
  display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #333;
  padding: 6px 10px; border: 1px solid #eee; border-radius: 4px; background: #fafafa;
}
.app-highscore-rank { font-weight: bold; color: #1c5fae; width: 22px; }
.app-highscore-score { font-weight: bold; color: #1a1a1a; flex: 1; }
.app-highscore-meta { color: #888; }
.app-stats-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #eef0f2; border-bottom: 1px solid #c8c8c8;
  padding: 10px 16px; color: #333; font-size: 11px; flex: 0 0 auto;
}
.app-stats-bar.story-minimal .app-stat { display: none; }
.app-stats-bar.story-minimal .app-stat-case { display: flex; }
.app-stat { display: flex; align-items: center; gap: 6px; }
.app-stat-label { color: #777; font-size: 9.5px; letter-spacing: 1px; }
.app-stat-value { font-weight: bold; color: #1a1a1a; }
.health-bar {
  width: 110px; height: 10px; background: #ddd; border: 1px solid #bbb;
}
.health-bar-fill {
  height: 100%; width: 100%; background: linear-gradient(to right, #3ddc6a, #7ee787);
  transition: width 0.4s ease, background 0.4s ease;
}
.health-bar-fill.warn { background: linear-gradient(to right, #e0a82e, #f4cf5b); }
.health-bar-fill.danger { background: linear-gradient(to right, #d8413a, #ff6b62); }

/* ===================== SECOPS CONSOLE ===================== */
.window-secops { width: 540px; height: 420px; top: 60px; left: 380px; }
.secops-body { display: flex; padding: 0; background: #11161c; color: #cdd6e0; }
.secops-nav {
  width: 130px; flex: 0 0 130px; background: #0c1117; border-right: 1px solid #232b34;
  display: flex; flex-direction: column; padding: 10px 8px; gap: 6px;
}
.secops-nav-btn {
  border: none; background: transparent; text-align: left; padding: 8px 10px; font-size: 12px;
  border-radius: 4px; color: #9aa7b4; font-family: inherit; cursor: pointer;
}
.secops-nav-btn:hover { background: #1a212a; color: #cdd6e0; }
.secops-nav-btn.active { background: #c0392b; color: #fff; font-weight: bold; }
.secops-nav-btn .nav-new { color: #ffd24d; font-weight: bold; margin-left: 4px; }
.secops-pages { flex: 1; overflow-y: auto; }
.secops-page { display: none; padding: 14px 16px; }
.secops-page.active { display: block; }
.secops-page h3 { font-size: 13px; color: #fff; margin-bottom: 12px; letter-spacing: 0.5px; }
.secops-locked { color: #6b7785; font-style: italic; font-size: 12px; text-align: center; margin-top: 30px; line-height: 1.6; }
.secops-directive-box {
  background: #2a0b0b; border: 1px solid #c0392b; border-left: 4px solid #c0392b; border-radius: 4px;
  padding: 12px 14px;
}
.secops-directive-title { color: #ff7a6b; font-weight: bold; font-size: 12.5px; letter-spacing: 1px; margin-bottom: 8px; }
.secops-directive-rule { font-size: 12px; line-height: 1.6; color: #ffd9d3; }
.secops-dir-note { font-size: 11.5px; line-height: 1.55; color: #9aa7b4; margin-bottom: 12px; }
.secops-dir-domain {
  font-family: "Consolas", monospace; font-size: 13px; color: #6dffb0; font-weight: bold;
  background: #0c1117; border: 1px solid #234; border-radius: 4px; padding: 6px 10px; margin-bottom: 10px; display: inline-block;
}
.secops-emp-row {
  display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border: 1px solid #232b34;
  border-radius: 4px; background: #0e141a; margin-bottom: 6px;
}
.secops-emp-name { font-size: 12px; color: #e6edf3; font-weight: bold; }
.secops-emp-meta { font-size: 11px; color: #8b98a5; font-family: "Consolas", monospace; }
.secops-bulletin-item {
  border: 1px solid #3a2410; border-left: 4px solid #e0a82e; background: #1d160a; border-radius: 4px;
  padding: 8px 11px; margin-bottom: 8px;
}
.secops-bulletin-kind {
  display: inline-block; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: bold;
  color: #11161c; background: #e0a82e; border-radius: 3px; padding: 1px 6px; margin-bottom: 5px;
}
.secops-bulletin-value { font-size: 12px; color: #ffe6b0; font-family: "Consolas", monospace; margin-bottom: 3px; word-break: break-all; }
.secops-bulletin-note { font-size: 11px; color: #b6a98c; line-height: 1.5; }

/* ===================== TASKBAR ===================== */
#taskbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(to bottom, #2a2a2a, #101010);
  border-top: 2px solid #444; display: flex; align-items: center; gap: 10px; padding: 0 10px;
  z-index: 45;
}
#taskbar-fullscreen-btn {
  width: 30px; height: 30px; flex: 0 0 auto;
  background: #333; color: #ddd; border: 1px solid #555; border-radius: 3px;
  font-size: 15px; display: flex; align-items: center; justify-content: center;
}
#taskbar-fullscreen-btn:hover { background: #444; color: #fff; border-color: #777; }
#taskbar-windows { flex: 1; display: flex; gap: 6px; }
.taskbar-item {
  background: #333; color: #ddd; border: 1px solid #555; font-size: 11.5px;
  padding: 6px 12px; border-radius: 3px;
}
.taskbar-item.active { background: #4a4a4a; color: #fff; border-color: #777; }
#taskbar-logout-btn {
  background: #3a2222; color: #ffb3b3; border: 1px solid #6a3a3a; border-radius: 3px;
  font-size: 10.5px; font-weight: bold; letter-spacing: 0.5px; padding: 6px 10px; flex: 0 0 auto;
}
#taskbar-logout-btn:hover { background: #552c2c; color: #fff; border-color: #884444; }
#taskbar-date { color: #aaa; font-size: 11.5px; }
#taskbar-clock { color: #ddd; font-size: 12px; }

/* ===================== FEEDBACK TOAST ===================== */
#feedback-toast {
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%);
  padding: 12px 22px; border-radius: 6px; font-weight: bold; font-size: 13px; color: #fff;
  z-index: 60; box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  animation: toast-in 0.25s ease;
}
#feedback-toast.correct { background: #2a8a4e; }
#feedback-toast.wrong { background: #b3332c; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===================== END SCREEN ===================== */
#end-screen {
  background: radial-gradient(circle at 50% 30%, #1a1a1a 0%, #000 100%);
  display: flex; align-items: center; justify-content: center; color: #eee;
}
.end-box { text-align: center; width: 420px; }
.end-box h1 { font-size: 30px; letter-spacing: 2px; margin-bottom: 8px; }
.end-box p { color: #aaa; margin-bottom: 24px; font-size: 13px; }
.end-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.end-stats div { display: flex; flex-direction: column; }
.end-stats span { font-size: 26px; font-weight: bold; }
.end-stats small { color: #888; font-size: 10px; letter-spacing: 1px; margin-top: 4px; }
.end-actions { display: flex; gap: 12px; justify-content: center; }
#restart-btn {
  background: #2a8a4e; color: #fff; border: none; padding: 12px 26px; font-weight: bold;
  letter-spacing: 1px; border-radius: 4px;
}
#restart-btn:hover { background: #34a85f; }
#view-history-btn {
  background: transparent; color: #ccc; border: 1px solid #555; padding: 12px 22px; font-weight: bold;
  letter-spacing: 1px; border-radius: 4px;
}
#view-history-btn:hover { background: #2a2a2a; color: #fff; border-color: #888; }

/* ===================== DEBRIEF / DETAILED HISTORY ===================== */
#debrief-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  font-family: "Tahoma", "Segoe UI", Verdana, Arial, sans-serif;
}
.debrief-box {
  width: 640px; max-height: 80vh; overflow-y: auto;
  background: #fff; color: #222; border-radius: 6px;
  padding: 22px 26px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.debrief-title { font-size: 16px; font-weight: bold; color: #1a1a1a; margin-bottom: 14px; }
.debrief-history { margin-bottom: 18px; }
#debrief-close-btn {
  background: #1c5fae; color: #fff; border: none; padding: 9px 20px; font-weight: bold;
  letter-spacing: 1px; border-radius: 4px; font-family: inherit;
}
#debrief-close-btn:hover { background: #2a72c8; }

.history-artifact-btns { display: flex; gap: 6px; margin-top: 8px; }
.history-artifact-btn {
  background: #fff; border: 1px solid #c9a233; color: #8a6d1f; font-size: 10.5px; font-weight: bold;
  padding: 5px 10px; border-radius: 3px;
}
.history-artifact-btn:hover { background: #fff3d6; }
.history-artifact-preview {
  margin-top: 8px; padding: 8px 10px; background: #fff; border: 1px solid #e2d6a8; border-radius: 4px;
  font-size: 11px; line-height: 1.5; color: #333;
}
.history-artifact-preview pre { white-space: pre-wrap; font-family: inherit; margin-top: 4px; }
.history-artifact-preview ul { margin: 4px 0 4px 16px; }
.history-artifact-preview .artifact-link { color: #1c5fae; word-break: break-all; }

/* ===================== BOSS NOTIFICATIONS ===================== */
#boss-notification-layer {
  position: absolute; top: 14px; right: 14px; z-index: 460;
  display: flex; flex-direction: column; gap: 10px; width: 280px;
}
.boss-notification {
  background: #fffaf0; border: 1px solid #c9a233; border-left: 4px solid #c9a233;
  border-radius: 4px; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; color: #4a3a10;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  animation: boss-notif-in 0.3s ease;
}
.boss-notification.boss-notification-strong {
  background: #2a0b0b; border-color: #ff3344; border-left-color: #ff3344; color: #ffd9d9;
}
.boss-notification-title { font-weight: bold; margin-bottom: 4px; display: block; }
.boss-notification-shiftend {
  cursor: pointer; background: #eef4fc; border-color: #1c5fae; border-left-color: #1c5fae; color: #1a3a5c;
}
.boss-notification-shiftend:hover { background: #dceafa; }
.boss-notification-hint { display: block; margin-top: 6px; font-size: 10px; color: #1c5fae; font-weight: bold; }
@keyframes boss-notif-in {
  0% { transform: translateX(30px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
