* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a1a;
  color: #e0e0e0;
  direction: rtl;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #e74c3c;
  text-align: center;
}

h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #3498db;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f39c12;
}

.subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 30px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  text-align: right;
}

.input-field:focus {
  outline: none;
  border-color: #3498db;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #555;
  color: white;
}

.btn-secondary:hover {
  background: #666;
}

.timer {
  font-size: 36px;
  font-weight: bold;
  color: #e74c3c;
  text-align: center;
  margin: 15px 0;
  font-family: monospace;
}

.score {
  font-size: 24px;
  color: #2ecc71;
  text-align: center;
  margin: 10px 0;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.game-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.game-info .timer {
  font-size: 20px;
  margin: 0;
}

.game-info .score {
  font-size: 18px;
  margin: 0;
}

.clue-card {
  background: #1a1a2e;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border-right: 3px solid #3498db;
}

.teammate-card {
  background: #1a1a2e;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teammate-card.confirmed {
  border-right: 3px solid #2ecc71;
}

.teammate-card.pending {
  border-right: 3px solid #f39c12;
}

.status-message {
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  text-align: center;
}

.status-message.success {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.status-message.error {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.puzzle-section {
  background: #1a1a2e;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
}

.evidence-card {
  background: #0d1117;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
  border: 1px solid #333;
}

.evidence-title {
  color: #f39c12;
  font-weight: bold;
  margin-bottom: 5px;
}

.option-btn {
  width: 100%;
  padding: 12px;
  margin: 6px 0;
  background: #16213e;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  text-align: right;
  cursor: pointer;
  font-size: 14px;
}

.option-btn:hover {
  background: #1a1a3e;
}

.option-btn.selected {
  border-color: #3498db;
  background: #1a2a4e;
}

.code-input {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}

.code-input input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  background: #0d1117;
  border: 2px solid #333;
  border-radius: 8px;
  color: white;
}

.code-input input:focus {
  border-color: #3498db;
  outline: none;
}

.topology-board {
  background: #0d1117;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
}

.node {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background: #1a1a2e;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
}

.node.selected {
  border-color: #3498db;
}

.node.compromised {
  border-color: #e74c3c;
  background: #2c1a1a;
}

.sequence-slot {
  display: inline-block;
  width: 120px;
  height: 50px;
  margin: 5px;
  background: #0d1117;
  border: 2px dashed #333;
  border-radius: 8px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
}

.sequence-slot.filled {
  border-style: solid;
  border-color: #3498db;
}

.case-history-entry {
  background: #0d1117;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border-right: 3px solid #f39c12;
}

.case-history-entry .entry-title {
  color: #f39c12;
  font-weight: bold;
  margin-bottom: 5px;
}

.case-history-entry .entry-content {
  font-family: monospace;
  font-size: 13px;
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
}

.hint-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

.hint-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hint-btn {
  flex: 1;
  padding: 8px;
  background: #2c3e50;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

.hint-btn:hover {
  background: #34495e;
}

.hint-display {
  background: #2c3e50;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border-right: 3px solid #f39c12;
}
