#jogo-enigma { width: 100%; max-width: 900px; }
#enigma-start-screen .difficulty-options { display: flex; flex-direction: column; gap: 10px; }
.enigma-painel { width: 100%; background-color: #34495e; border: 5px solid #2c3e50; border-radius: 10px; padding: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 0 15px rgba(0,0,0,0.4); transition: all 0.2s; }
.enigma-painel.error-shake { animation: shake-horizontal 0.4s; }
@keyframes shake-horizontal { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.enigma-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #4a637b; }
.enigma-timer { font-family: 'Courier New', Courier, monospace; font-size: 2.5rem; color: #e74c3c; background-color: #000; padding: 5px 15px; border-radius: 5px; text-shadow: 0 0 10px #e74c3c; }
.enigma-erros { font-size: 1.2rem; font-weight: 600; color: #ecf0f1; }
.enigma-erros span { color: #e74c3c; font-size: 1.5rem; }
.modulos-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.modulo { background-color: #bdc3c7; border-radius: 8px; padding: 1rem; border: 2px solid #95a5a6; box-shadow: inset 0 0 10px rgba(0,0,0,0.2); }
.modulo.resolvido { border-color: var(--cor-sucesso); background-color: #a7d7c5; }
.modulo-titulo { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #95a5a6; }
.modulo-instrucao { font-size: 0.9rem; color: #2c3e50; margin-bottom: 1rem; }
.fios-display { background-color: #2c3e50; color: #2ecc71; font-family: 'Courier New', Courier, monospace; font-size: 1.1rem; padding: 10px; border-radius: 4px; text-align: center; margin-bottom: 1rem; letter-spacing: 1px; }
.fios-container { display: flex; flex-direction: column; gap: 10px; }
.fio { width: 100%; height: 25px; border-radius: 5px; cursor: pointer; transition: transform 0.1s; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.fio:active { transform: scale(0.98); }
.fio.vermelho { background-color: #c0392b; } .fio.azul { background-color: #2980b9; } .fio.verde { background-color: #27ae60; } .fio.amarelo { background-color: #f1c40f; } .fio.preto { background-color: #34495e;}
.fio.desativado { background-image: linear-gradient(90deg, #7f8c8d 50%, transparent 50%); background-size: 10px 10px; opacity: 0.5; cursor: not-allowed; }
.codigo-display { font-size: 1.5rem; font-weight: 600; color: #2c3e50; margin-bottom: 1rem; }
.codigo-input { width: 100%; padding: 10px; font-size: 1.2rem; text-align: center; border: 2px solid #7f8c8d; border-radius: 4px; }
.codigo-btn { width: 100%; padding: 10px; margin-top: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 4px; background-color: #2c3e50; color: white; border: none; }
.codigo-btn:disabled { background-color: #7f8c8d; }
.sincronia-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.sincronia-display { width: 100%; background-color: #2c3e50; padding: 10px; border-radius: 4px; display: flex; justify-content: space-around; }
.sincronia-luz { width: 20px; height: 20px; background-color: #7f8c8d; border-radius: 50%; }
.sincronia-luz.ativa { background-color: #f1c40f; box-shadow: 0 0 15px #f1c40f; }
.sincronia-botao { width: 80px; height: 80px; border-radius: 50%; background-color: #e74c3c; border: 5px solid #c0392b; cursor: pointer; box-shadow: 0 5px 10px rgba(0,0,0,0.3); transition: all 0.1s; }
.sincronia-botao:active { transform: scale(0.95); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.interruptores-container { display: flex; justify-content: space-around; padding: 20px 10px; }
.interruptor { width: 40px; height: 70px; background-color: #7f8c8d; border-radius: 20px; position: relative; cursor: pointer; border: 2px solid #2c3e50; }
.interruptor-pino { width: 30px; height: 30px; background-color: #ecf0f1; border-radius: 50%; position: absolute; left: 5px; transition: top 0.2s ease-in-out; }
.interruptor.on .interruptor-pino { top: 5px; }
.interruptor.off .interruptor-pino { top: 35px; }
.popup-container { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.6); display: none; justify-content: center; align-items: center; z-index: 100; }
.popup-container.show { display: flex; }
.popup { background: var(--cor-fundo); padding: 30px; border-radius: 20px; text-align: center; }