body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(60,60,100,0.10);
  padding: 32px 32px 24px 32px;
  margin-top: 32px;
  min-width: 340px;
}

#story-blurb {
  text-align: center;
  color: #333;
  font-size: 1.08em;
}

#puzzle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  justify-content: center;
}

.puzzle-btn {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.puzzle-btn:hover {
  background: #4338ca;
}

#grid {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px 0 rgba(60,60,100,0.10);
  background: #e0e7ff;
  border-radius: 12px;
  padding: 8px;
}

.cell {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 6px;
  transition: background 0.2s;
}

.player {
  background: #a7f3d0;
}

.defender {
  background: #fca5a5;
}

.teleporterA {
  background: #c4b5fd;
}

.teleporterB {
  background: #67e8f9;
}

.goal {
  background: #93c5fd;
}

.bonus {
  background: #ffeb3b;
  color: #333;
  font-weight: bold;
}

.wall {
  background: #333;
  border: 1px solid #222;
}

.path {
  border: 2px solid #8bc34a;
  background: #dcedc8;
}

#move-counter, #best-score {
  font-weight: bold;
  color: #6366f1;
}

div[role="alert"], .alert {
  text-align: center;
}

#letter-grid {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px 0 rgba(60,60,100,0.10);
  background: #f1f5f9;
  border-radius: 12px;
  padding: 8px;
  justify-content: center;
}

.letter-cell {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  color: #6366f1;
  border-radius: 6px;
  font-weight: bold;
} 