@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --tinta: #1c3144;
  --suave: #56707e;
  --teal: #1fa6b8;
  --teal-e: #137482;
  --teal-c: #daf3f5;
  --creme: #fbf8f0;
  --papel: #ffffff;
  --linha: #cde5e8;
  --amarelo: #f9c742;
  --amarelo-e: #c8961e;
  --verde: #4bb56b;
  --verde-e: #31824a;
  --coral: #f28649;
  --coral-e: #bd5d26;
  --vermelho: #e5534b;
  --vermelho-e: #ad342d;
  --roxo: #8c6fd1;
  --roxo-e: #6246a8;
  --azul: #3b82f6;
  --navy: #0f2533;
  --raio: 22px;
}

* {
  box-sizing: border-box;
  user-select: none;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- TOPBAR / HUD ---------- */
.topbar {
  background: linear-gradient(135deg, #1aa2b3 0%, #12798a 100%);
  color: #fff;
  padding: 8px 16px;
  box-shadow: 0 4px 0 #0d5966, 0 8px 20px rgba(15, 37, 51, 0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--creme);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 #0b4f5b;
}

.brand-badge {
  font-size: 11px;
  background: var(--amarelo);
  color: #4f3905;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 2px 0 var(--amarelo-e);
}

/* ---------- CONTROLES DE SESSÃO E CÓDIGO DA SALA ---------- */
.session-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(9, 52, 61, 0.48);
  padding: 4px 8px;
  border-radius: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
}

.mode-switch-group { display: flex; gap: 4px; }

.mode-pill {
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #d7f5f8;
  transition: all 0.15s;
}

.mode-pill.active {
  background: var(--amarelo);
  color: #4f3905;
  box-shadow: 0 3px 0 var(--amarelo-e);
}

.room-code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1.5px solid rgba(255,255,255,0.22);
  flex-wrap: wrap;
}

.room-code-bar.hidden { display: none; }

.room-code-label {
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(0,0,0,0.25);
  padding: 3px 9px;
  border-radius: 8px;
}

.room-code-label b {
  color: var(--amarelo);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

#input-join-code {
  width: 118px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 2px solid #9fd6dc;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--tinta);
}

.hud-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(12, 65, 76, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 13px;
}

.stat-pill b {
  color: #fff3c4;
  font-size: 14px;
}

.stat-pill.in-debt {
  background: #991b1b;
  border-color: #fca5a5;
  animation: pulseDebt 1s infinite alternate;
}

@keyframes pulseDebt {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* ---------- BARRA DE REPUTAÇÃO DA LOJA (HUD + SIDEBAR) ---------- */
.rep-hud-box {
  background: rgba(12, 65, 76, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 4px 11px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 145px;
}

.rep-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 900;
}

.rep-hud-top b {
  color: var(--amarelo);
  font-size: 12.5px;
}

.rep-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(15, 37, 51, 0.65);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.rep-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4bb56b, #68f0ae);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.sidebar-rep-track {
  width: 100%;
  height: 13px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #cbd5e1;
}

.sidebar-rep-fill {
  height: 100%;
  background: linear-gradient(90deg, #4bb56b, #22c55e);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

/* BANNER DE RETORNO FURIOSO (PC QUEIMADO) */
.burnt-alert-banner {
  max-width: 1450px;
  margin: 10px auto 0;
  width: calc(100% - 28px);
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #fff;
  border: 3px solid #fca5a5;
  border-radius: 16px;
  padding: 10px 18px;
  display: none;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 0 #450a0a, 0 12px 30px rgba(185, 28, 28, 0.35);
}

.burnt-alert-banner.visible {
  display: flex;
  animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.queue-status-badge {
  background: #e6f8f9;
  color: var(--teal-e);
  border: 2px solid #9fd6dc;
  font-weight: 900;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- BOTOES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.15s;
  text-decoration: none;
}

.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(3px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-amarelo { background: var(--amarelo); color: #4f3905; box-shadow: 0 4px 0 var(--amarelo-e); }
.btn-amarelo:active:not(:disabled) { box-shadow: 0 1px 0 var(--amarelo-e); }

.btn-verde { background: var(--verde); color: #fff; box-shadow: 0 4px 0 var(--verde-e); }
.btn-verde:active:not(:disabled) { box-shadow: 0 1px 0 var(--verde-e); }

.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-e); }
.btn-teal:active:not(:disabled) { box-shadow: 0 1px 0 var(--teal-e); }

.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-e); }
.btn-coral:active:not(:disabled) { box-shadow: 0 1px 0 var(--coral-e); }

.btn-roxo { background: var(--roxo); color: #fff; box-shadow: 0 4px 0 var(--roxo-e); }
.btn-roxo:active:not(:disabled) { box-shadow: 0 1px 0 var(--roxo-e); }

.btn-vidro {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 11px; }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 8px; }

/* ---------- LAYOUT PRINCIPAL ---------- */
.game-layout {
  max-width: 1480px;
  width: 100%;
  margin: 12px auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr 355px;
  gap: 14px;
  flex: 1;
  align-items: start;
}

@media (max-width: 1080px) {
  .game-layout { grid-template-columns: 1fr; }
}

.card {
  background: var(--papel);
  border: 3px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: 0 7px 0 #c3dfdf, 0 16px 36px rgba(20, 59, 75, 0.08);
  overflow: hidden;
}

.card-header {
  padding: 11px 16px;
  background: linear-gradient(180deg, #effaf9 0%, #e1f4f4 100%);
  border-bottom: 2px solid var(--linha);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card-header h2, .card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 12px 14px; }

/* ---------- CANVAS DO MUNDO ---------- */
.world-wrapper {
  position: relative;
  width: 100%;
  height: 660px;
  background: #10212e;
  overflow: hidden;
}

/* ==========================================================================
   MODO DE TELA AUMENTADA (AUMENTO MODERADO PRESERVANDO RESOLUÇÃO ORIGINAL)
   ========================================================================== */
body.enlarged-screen {
  overflow-x: hidden;
}

body.enlarged-screen .game-layout {
  max-width: 1680px;
  margin: 10px auto;
  padding: 0 14px;
}

body.enlarged-screen .world-wrapper {
  height: 760px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#world-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.world-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 10px;
  flex-wrap: wrap;
}

.location-pill {
  pointer-events: auto;
  background: rgba(15, 37, 51, 0.9);
  color: #fff;
  border: 2px solid #38c3d6;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-teleport-bar {
  pointer-events: auto;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tp-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--tinta);
  border: 2px solid var(--teal);
  padding: 5px 9px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 900;
  font-size: 11.5px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(15, 37, 51, 0.25);
  transition: transform 0.1s;
}

.tp-btn:hover {
  background: var(--amarelo);
  border-color: var(--amarelo-e);
}

/* Barra Flutuante de Peças na Mão */
.inventory-hud-strip {
  position: absolute;
  left: 12px;
  bottom: 54px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 720px;
  pointer-events: auto;
}

.inv-chip {
  background: rgba(15, 37, 51, 0.88);
  color: #9ca3af;
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.inv-chip.has-part {
  background: #14532d;
  color: #86efac;
  border-color: #4ade80;
  box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

.world-overlay-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  gap: 12px;
}

.controls-hint {
  background: rgba(15, 37, 51, 0.88);
  color: #e2f5f7;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.interact-prompt {
  pointer-events: auto;
  display: none;
  animation: popIn 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.interact-prompt.visible { display: inline-flex; }

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- BONEQUINHOS CHIBI SVG ---------- */
.chibi-svg {
  width: 58px;
  height: 66px;
  filter: drop-shadow(0 4px 4px rgba(15, 37, 51, 0.18));
}
.chibi-svg.lg { width: 80px; height: 90px; }
.chibi-svg.sm { width: 42px; height: 48px; }

/* ---------- FILA DE CLIENTES + BARRA DE PACIÊNCIA ---------- */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 245px;
  overflow-y: auto;
  padding-right: 4px;
}

.client-ticket {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 13px;
  background: #f8fcfc;
  border: 2px solid var(--linha);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}

.client-ticket:hover { transform: translateY(-1px); border-color: var(--teal); }
.client-ticket.active { background: #e6f8f9; border-color: var(--teal); box-shadow: 0 3px 0 #a3dfe4; }
.client-ticket.angry { background: #fff1f0; border-color: var(--vermelho); }
.client-ticket.burnt-return {
  background: #450a0a;
  color: #fff;
  border-color: #f97316;
  box-shadow: 0 3px 0 #991b1b;
}
.client-ticket.burnt-return .ticket-Preview { color: #fca5a5; }
.client-ticket.solved { opacity: 0.58; background: #eefaf1; border-color: var(--verde); }

.ticket-info { flex: 1; min-width: 0; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ticket-name { font-weight: 900; font-size: 13px; }
.ticket-tag { font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.tag-urgente { background: #ffe2de; color: #b8322a; }
.tag-normal { background: #dff4f6; color: #126d7a; }
.tag-rede { background: #ece5ff; color: #5b3da6; }
.tag-burnt { background: #f97316; color: #fff; }
.ticket-Preview { font-size: 11px; color: var(--suave); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.patience-bar-wrap {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.patience-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s;
}

/* ---------- MODAL DO ESTOQUE DE PEÇAS ---------- */
.stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .stock-grid { grid-template-columns: 1fr; }
}

.stock-item-card {
  background: #f8fcfc;
  border: 2.5px solid var(--linha);
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stock-item-card.owned {
  background: #eefaf3;
  border-color: var(--verde);
}

/* Chat & Figurinhas */
.chat-feed {
  height: 110px;
  overflow-y: auto;
  background: #f4fafa;
  border: 2px solid var(--linha);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.chat-msg {
  background: #fff;
  border: 1.5px solid #d5eaec;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticker-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sticker-btn {
  background: #fff;
  border: 2px solid var(--linha);
  border-radius: 11px;
  padding: 5px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
  font-weight: 900;
  font-size: 11px;
  color: var(--tinta);
  box-shadow: 0 3px 0 #cde5e8;
  transition: transform 0.12s;
}

.sticker-btn:hover { transform: scale(1.06) rotate(-2deg); border-color: var(--teal); }

/* ---------- MODAIS GERAIS ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 37, 51, 0.68);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 16px;
}

.modal-backdrop.open { display: grid; }

.modal-card {
  background: var(--papel);
  border: 4px solid var(--teal);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 0 #0d5966, 0 24px 60px rgba(0,0,0,0.4);
  padding: 20px 22px;
}

.case-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #e7f8f9 0%, #f7fcfc 100%);
  border: 2.5px solid var(--linha);
  border-radius: 18px;
  margin-bottom: 14px;
}

.case-banner.burnt-mode {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  border-color: #ef4444;
}

.client-complaint-box { flex: 1; }
.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--teal-e);
  background: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--linha);
}

.client-quote {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--tinta);
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #cbe4e7;
}

.mentor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff9e6;
  border: 2.5px solid #f5d47a;
  border-radius: 16px;
  padding: 9px 14px;
  margin-bottom: 14px;
}

.mentor-bar.hidden { display: none; }
.mentor-text { flex: 1; font-size: 13.5px; font-weight: 700; color: #5c4308; }

.step-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 600px) { .step-tabs { grid-template-columns: repeat(2, 1fr); } }

.step-tab {
  background: #f1f8f8;
  border: 2.5px solid var(--linha);
  border-radius: 13px;
  padding: 9px 8px;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  color: var(--suave);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.step-tab .num {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #d3e7e9;
  color: var(--tinta);
  display: grid;
  place-items: center;
  font-size: 11.5px;
}

.step-tab.active {
  background: var(--teal);
  border-color: var(--teal-e);
  color: #fff;
  box-shadow: 0 3px 0 var(--teal-e);
}
.step-tab.active .num { background: #fff; color: var(--teal-e); }
.step-tab.done .num { background: var(--verde); color: #fff; }
.step-tab.locked {
  opacity: 0.6;
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}
.step-tab.locked .num {
  background: #cbd5e1;
  color: #64748b;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.questions-grid, .tools-grid, .diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) { .questions-grid, .tools-grid, .diagnosis-grid { grid-template-columns: 1fr; } }

.action-card {
  background: #f9fdfd;
  border: 2.5px solid var(--linha);
  border-radius: 14px;
  padding: 11px 13px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.action-card:hover { border-color: var(--teal); }
.action-card.revealed { background: #eefaf3; border-color: var(--verde); }
.action-card-title { font-weight: 900; font-size: 14px; color: var(--tinta); display: flex; justify-content: space-between; gap: 6px; }
.action-card-result { font-size: 13px; font-weight: 700; color: var(--suave); }
.action-card.revealed .action-card-result { color: #1f5c32; }

/* ---------- ESTILOS DOS 8 MINI-GAMES ---------- */
.minigame-box {
  background: #0f2533;
  color: #e7f6f8;
  border-radius: 18px;
  padding: 16px;
  border: 3px solid #264a60;
}

.minigame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}

.minigame-header h4 { margin: 0; font-size: 16px; color: var(--amarelo); }
.edu-pill {
  background: rgba(31, 166, 184, 0.25);
  border: 1.5px solid #38c3d6;
  color: #a6f2fc;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.rj45-slots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  background: #19384d;
  padding: 10px;
  border-radius: 12px;
  margin: 10px 0;
}

.rj45-pin {
  height: 70px;
  border-radius: 8px;
  border: 2px dashed rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5px 2px;
  font-size: 11px;
  font-weight: 800;
}

.wire-pool { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.wire-btn {
  padding: 6px 10px;
  border-radius: 9px;
  border: 2px solid rgba(255,255,255,0.4);
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d3b4f;
  color: #fff;
}
.wire-btn:disabled { opacity: 0.3; cursor: default; }
.wire-swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; display: inline-block; }

.mobo-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #163329;
  border: 2px solid #2e6b54;
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
}
@media (max-width: 600px) { .mobo-board { grid-template-columns: 1fr; } }

.cpu-socket-box { background: #214539; border-radius: 12px; padding: 10px; text-align: center; }
.cpu-die {
  width: 100px;
  height: 100px;
  margin: 8px auto;
  background: #8b99a1;
  border: 4px solid #cbd5dc;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ram-slots-box { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.ram-slot {
  padding: 8px 11px;
  border-radius: 8px;
  background: #10241d;
  border: 2px solid #3f7c65;
  color: #c2ebe0;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.ram-slot.installed { background: #226646; border-color: #68f0ae; color: #fff; }

/* Mini-games de Conexão de Fios (Fonte ATX e F_PANEL) */
.wire-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #162a3a;
  padding: 14px;
  border-radius: 14px;
  margin: 10px 0;
  border: 2px solid #2c4c66;
}

.connector-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connector-node {
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f3a4f;
  border: 2px solid #416d8f;
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.12s;
}

.connector-node.selected {
  background: #f9c742;
  color: #4f3905;
  border-color: #fff;
}

.connector-node.connected {
  background: #166534;
  border-color: #4ade80;
  color: #bbf7d0;
  cursor: default;
}

.taskmgr-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.taskmgr-table th, .taskmgr-table td { padding: 7px 9px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.12); }
.taskmgr-table th { color: #93c5fd; font-size: 11.5px; text-transform: uppercase; }
.proc-row.killed { opacity: 0.35; text-decoration: line-through; }

.logic-circuit { display: flex; flex-direction: column; gap: 10px; background: #162c3d; padding: 12px; border-radius: 12px; margin: 10px 0; }
.logic-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bit-toggle { padding: 8px 14px; border-radius: 10px; font-weight: 900; font-size: 14px; border: none; cursor: pointer; background: #334e63; color: #fff; box-shadow: 0 3px 0 #1c2d3b; }
.bit-toggle.on { background: var(--verde); box-shadow: 0 3px 0 var(--verde-e); }
.gate-node { background: #224056; border: 2px solid #4885b0; padding: 7px 12px; border-radius: 10px; font-weight: 900; font-size: 13px; }

.team-list { display: flex; flex-direction: column; gap: 7px; }
.team-member-card { display: flex; align-items: center; gap: 8px; padding: 6px 9px; background: #f8fcfc; border: 2px solid var(--linha); border-radius: 13px; }
.team-member-info { flex: 1; }
.team-member-info h4 { margin: 0; font-size: 13px; font-weight: 900; }
.team-member-info p { margin: 1px 0 0; font-size: 11px; color: var(--suave); font-weight: 700; }

.manual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 600px) { .manual-grid { grid-template-columns: 1fr; } }
.manual-topic { background: #f5fbfb; border: 2px solid var(--linha); border-radius: 14px; padding: 10px 12px; }
.manual-topic h4 { margin: 0 0 4px; color: var(--teal-e); font-size: 14px; }
.manual-topic p { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--tinta); }

.toast-feedback {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 14.5px;
  box-shadow: 0 6px 0 #07131a, 0 14px 30px rgba(0,0,0,0.28);
  z-index: 250;
  transform: translateY(140%);
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.toast-feedback.show { transform: translateY(0); }

/* Seletor Rápido dos 8 Mini-Games e Banners Internos */
.mg-switcher-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  background: #f1f8f8;
  padding: 8px 10px;
  border-radius: 13px;
  border: 2px solid var(--linha);
  align-items: center;
}

.mg-switch-btn {
  font-family: inherit;
  font-weight: 900;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 2px solid var(--linha);
  background: #fff;
  color: var(--tinta);
  cursor: pointer;
  transition: all 0.12s;
}

.mg-switch-btn:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.mg-switch-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal-e);
}

.mg-part-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
}

.mg-part-bar.has-part {
  background: rgba(75, 181, 107, 0.2);
  border: 2px solid #4ade80;
  color: #bbf7d0;
}

.mg-part-bar.missing-part {
  background: rgba(249, 199, 66, 0.16);
  border: 2px solid var(--amarelo);
  color: #fef08a;
}

.mg-complete-banner {
  margin-top: 12px;
  background: rgba(34, 197, 94, 0.22);
  border: 2px solid #4ade80;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-coop {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 0 #4338ca;
}

/* Matriz de Solda SMD 4x3 */
.solder-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #0d2b1d;
  border: 2px solid #2e6b54;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}

.solder-pad {
  background: #173f2c;
  border: 2px solid #3f7c65;
  border-radius: 10px;
  padding: 10px 8px;
  color: #e2f5ec;
  font-family: inherit;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.solder-pad.burnt-smd {
  background: #451212;
  border-color: #f87171;
  color: #fecaca;
}

.solder-pad.fixed-smd {
  background: #14532d;
  border-color: #4ade80;
  color: #bbf7d0;
}

/* Sliders de Calibração (Voltagem / Frequência / Pressão) */
.slider-calib-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #142838;
  padding: 14px;
  border-radius: 12px;
  margin: 10px 0;
  border: 2px solid #2c4c66;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--amarelo);
  cursor: pointer;
}

/* Estações Cooperativas p/ 2, 3 e 4 Jogadores Simultâneos */
.coop-stations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}

@media (max-width: 640px) {
  .coop-stations-grid { grid-template-columns: 1fr; }
}

.coop-station-card {
  background: #162a3d;
  border: 2.5px solid #3b82f6;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coop-station-card.station-done {
  background: #133829;
  border-color: #4ade80;
}

.station-sub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(15, 37, 51, 0.55);
  padding: 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.station-opt-btn {
  flex: 1;
  min-width: 82px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 2px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 900;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.12s;
}

.station-opt-btn:hover {
  border-color: var(--amarelo);
}

.station-opt-btn.selected-correct {
  background: #14532d;
  border-color: #4ade80;
  color: #bbf7d0;
}

/* Barra de Expansão da Sede (5 -> 10 -> 15 -> 20 Salas) */
.hq-tier-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.hq-tier-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--suave);
}

.hq-tier-btn {
  padding: 3px 9px;
  border-radius: 99px;
  border: 2px solid var(--linha);
  background: #f1f8f8;
  color: var(--tinta);
  font-family: inherit;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.12s;
}

.hq-tier-btn:hover {
  border-color: var(--teal);
}

.hq-tier-btn.active {
  background: linear-gradient(135deg, #1fa6b8, #6366f1);
  color: #fff;
  border-color: #137482;
  box-shadow: 0 2px 0 #137482;
}

.team-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(31, 166, 184, 0.12), rgba(99, 102, 241, 0.12));
  border: 1.5px solid var(--teal);
  color: var(--teal-e);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.team-counter-badge b {
  color: var(--tinta);
  font-weight: 900;
}

.team-counter-badge.duo {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.team-counter-badge.trio {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.team-counter-badge.full {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

/* ==========================================================================
   BANNER DE INCIDENTE PERIÓDICO DO RACK CENTRAL
   ========================================================================== */
.rack-incident-banner {
  max-width: 1450px;
  margin: 10px auto 0;
  width: calc(100% - 28px);
  background: linear-gradient(135deg, #ea580c 0%, #b45309 50%, #991b1b 100%);
  color: #fff;
  border: 3px solid #fde047;
  border-radius: 16px;
  padding: 10px 18px;
  display: none;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 0 #7c2d12, 0 12px 30px rgba(234, 88, 12, 0.4);
  animation: pulseIncident 1.2s infinite alternate;
}

.rack-incident-banner.visible {
  display: flex;
}

@keyframes pulseIncident {
  from { box-shadow: 0 6px 0 #7c2d12, 0 0 15px rgba(234, 88, 12, 0.4); }
  to { box-shadow: 0 6px 0 #7c2d12, 0 0 28px rgba(253, 224, 71, 0.75); }
}

/* ==========================================================================
   MODAL DO RACK CENTRAL DE INFRAESTRUTURA & 10 PUZZLES INTERATIVOS C/ MOUSE
   ========================================================================== */
.rack-puzzle-cabinet {
  background: #0f172a;
  border: 3px solid #334155;
  border-radius: 16px;
  padding: 16px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

.rack-cabinet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #475569;
  flex-wrap: wrap;
  gap: 10px;
}

.rack-led-strip {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rack-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.2s;
}

.rack-led.led-green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.rack-led.led-red { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: blinkLed 0.6s infinite alternate; }
.rack-led.led-amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

@keyframes blinkLed {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.rack-puzzle-stage {
  background: #090d16;
  border: 2px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Estilos de Elementos Interativos do Mouse nos Puzzles do Rack */
.rack-click-slot {
  background: #1e293b;
  border: 2px dashed #64748b;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.15s;
  user-select: none;
}

.rack-click-slot:hover {
  border-color: #38bdf8;
  background: #334155;
  transform: translateY(-2px);
}

.rack-click-slot.slot-connected {
  border-style: solid;
  border-color: #22c55e;
  background: #14532d;
  color: #bbf7d0;
}

.rack-click-slot.slot-selected {
  border-color: #f59e0b;
  background: #451a03;
  color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rack-breaker-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  min-width: 80px;
}

.rack-breaker-switch:hover {
  border-color: #f59e0b;
}

.rack-breaker-switch.armed {
  background: #14532d;
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.breaker-handle {
  width: 22px;
  height: 40px;
  background: #dc2626;
  border-radius: 6px;
  margin: 6px 0;
  border: 2px solid #7f1d1d;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

.rack-breaker-switch.armed .breaker-handle {
  background: #22c55e;
  border-color: #14532d;
  transform: translateY(-8px);
}

.rack-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #1e293b;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #334155;
}

.rack-slider-wrap input[type=range] {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.rack-dip-switch {
  width: 44px;
  height: 70px;
  background: #b91c1c;
  border: 2px solid #7f1d1d;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.rack-dip-switch:hover {
  transform: scale(1.05);
}

.rack-dip-switch.dip-on {
  background: #15803d;
  border-color: #166534;
}

.dip-toggle-nub {
  width: 32px;
  height: 24px;
  background: #f8fafc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: transform 0.15s;
}

.rack-dip-switch.dip-on .dip-toggle-nub {
  transform: translateY(-26px);
}

/* ==========================================================================
   ESTILOS DE GAME OVER & FOGO NO RACK CENTRAL
   ========================================================================== */
.game-over-card {
  border: 3.5px solid #ef4444 !important;
  background: radial-gradient(circle at 50% 0%, #3a0a0a 0%, #0f172a 80%) !important;
  animation: fireGlowModal 1.6s infinite alternate !important;
}

@keyframes fireGlowModal {
  0% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.45), 0 8px 30px rgba(0,0,0,0.8); }
  100% { box-shadow: 0 0 65px rgba(249, 115, 22, 0.8), 0 12px 40px rgba(0,0,0,0.95); }
}

.fire-flicker-text {
  animation: fireTextAnim 0.8s infinite alternate;
}

@keyframes fireTextAnim {
  0% { text-shadow: 0 0 10px #ef4444, 0 0 20px #f97316; }
  100% { text-shadow: 0 0 18px #f97316, 0 0 35px #facc15; }
}

/* ==========================================================================
   30 PUZZLES (HARDWARE & SOFTWARE) + CHAMADOS HÍBRIDOS MESTRES
   ========================================================================== */
.hybrid-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6) !important;
  color: #fff !important;
  font-weight: 900 !important;
  border: 1.5px solid #f472b6 !important;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
  animation: hybridPulse 2s infinite alternate;
}

@keyframes hybridPulse {
  0% { filter: drop-shadow(0 0 4px #ec4899); transform: scale(1); }
  100% { filter: drop-shadow(0 0 10px #8b5cf6); transform: scale(1.02); }
}

.hybrid-stage-switcher {
  display: flex;
  gap: 10px;
  background: #0b1a24;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid #294c63;
  margin-bottom: 14px;
}

.stage-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.stage-tab-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.stage-tab-btn.done {
  background: #15803d;
  border-color: #4ade80;
  color: #bbf7d0;
}

/* 1. Soprador de Ar & Pó */
.dust-chassis-board {
  background: #182026;
  border: 3px solid #334155;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  min-height: 200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dust-puff-spot {
  background: radial-gradient(circle, #57534e 20%, #292524 85%);
  border: 2px dashed #78716c;
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.dust-puff-spot:hover {
  transform: scale(1.04);
  border-color: var(--amarelo);
}

.dust-puff-spot.clean {
  background: #14532d;
  border: 2px solid #22c55e;
  opacity: 0.6;
  cursor: default;
}

/* 2. Remoção de Pasta & Espátula */
.crust-die-board {
  background: #1f2937;
  border: 3px solid #4b5563;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.crust-cluster {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.crust-node {
  background: #78350f;
  border: 2px solid #b45309;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fef3c7;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
}

.crust-node.scraped {
  background: #15803d;
  border-color: #4ade80;
  color: #dcfce7;
}

/* 3. Desobstrução de Ventoinhas */
.fans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fan-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.fan-card.spinning {
  border-color: #22c55e;
  background: #064e3b;
}

/* 4. Ninho de Baratas */
.roach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.roach-card {
  background: #451a03;
  border: 2px solid #92400e;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  color: #fef3c7;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.15s;
}

.roach-card:hover { transform: scale(1.05); }

.roach-card.caught {
  background: #1e293b;
  border-color: #475569;
  opacity: 0.45;
  cursor: default;
}

/* 5. Alinhamento de Pinos LGA */
.pins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pin-card {
  background: #1e293b;
  border: 2px solid #ef4444;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  color: #fca5a5;
}

.pin-card.straight {
  background: #14532d;
  border-color: #22c55e;
  color: #bbf7d0;
}

/* 6. Borracha Escolar na RAM */
.ram-contacts-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: #0f172a;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #334155;
}

.contact-pin-gold {
  background: #854d0e;
  border: 2px solid #a16207;
  height: 55px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  font-size: 11px;
  color: #fef08a;
  text-align: center;
}

.contact-pin-gold.shining {
  background: linear-gradient(180deg, #facc15, #eab308);
  border-color: #fef08a;
  color: #422006;
  box-shadow: 0 0 10px #facc15;
}

/* Software Puzzles (Trojans, Popups, Cookies, Defrag, BSOD, DLLs, etc.) */
.trojan-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trojan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #334155;
}

.trojan-item.quarantined {
  background: #14532d;
  border-color: #22c55e;
  opacity: 0.6;
}

.popup-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.popup-window-box {
  background: #1e293b;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.popup-window-box.closed {
  opacity: 0.3;
  border-color: #475569;
}

.defrag-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.defrag-block {
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}

.defrag-block.frag {
  background: #991b1b;
  border-color: #ef4444;
  color: #fecaca;
}

.defrag-block.clean {
  background: #0284c7;
  border-color: #38bdf8;
  color: #e0f2fe;
}

.bsod-card {
  background: #0000aa;
  color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
  border: 3px solid #38bdf8;
}

.cmd-console-box {
  background: #000000;
  color: #22c55e;
  font-family: 'Courier New', Courier, monospace;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #16a34a;
  font-size: 13.5px;
}




