body {
  min-height: 100vh;
  background: linear-gradient(135deg, #19142e 80%, #261750 100%);
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.game-header {
  text-align: center;
  padding-top: 44px;
  padding-bottom: 12px;
}
.game-header h2 {
  font-size: 2.2rem;
  color: #f3f3fc;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 28px #7c3aed, 0 1px 0 #0009;
}
.game-header p {
  color: #bcbbe3;
  font-size: 1.14rem;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 12px #15063b, 0 2px 0 #fff1;
}
.level-bar-bg {
  width: 340px;
  max-width: 85vw;
  margin: 18px auto 0 auto;
  height: 10px;
  background: #22203e;
  border-radius: 6px;
  box-shadow: 0 0 18px #7c3aed44;
  overflow: hidden;
}
.level-bar {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #7c3aed 60%, #22d3ee 100%);
  border-radius: 6px;
  box-shadow: 0 0 16px #7c3aed55;
  transition: width .4s;
}
.level-label {
  color: #a78bfa;
  margin-top: 2px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1rem;
}
.missions-board {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 36px 8px 0 8px;
  flex-wrap: wrap;
}
.mission-card {
  background: linear-gradient(135deg, #1a1744 50%, #191029 100%);
  border-radius: 18px;
  border: 2.5px solid #312e81;
  box-shadow:
    0 8px 48px 0 #7c3aed66,
    0 0 0 3px #7c3aed50 inset;
  width: 295px;
  min-height: 334px;
  padding: 32px 20px 18px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: box-shadow .22s, border-color .18s, transform .13s;
  overflow: hidden;
}
.mission-card.selected, .mission-card:focus, .mission-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 0 60px 10px #7c3aed80, 0 0 8px #7c3aed;
  background: linear-gradient(120deg, #211666 55%, #21153e 100%);
  transform: scale(1.045) translateY(-4px);
  z-index: 2;
}
.mission-label {
  color: #a78bfa;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: .97rem;
  margin-bottom: 4px;
}
.mission-title {
  font-size: 1.24rem;
  font-weight: 900;
  color: #f3f3fc;
  margin: 11px 0 3px 0;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 14px #7c3aed99, 0 1px 0 #fff1;
}
.mission-desc {
  font-size: 1.08rem;
  color: #c9c6f7;
  margin-bottom: 20px;
  line-height: 1.48;
  font-weight: 500;
  text-shadow: 0 1px 8px #21113b;
}
.mission-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #18123d 60%, #7c3aed 170%);
  box-shadow: 0 0 24px #7c3aed70, 0 2px 8px #7c3aed44;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #a78bfa;
  position: relative;
  z-index: 2;
}
.mission-icon svg {
  display: block;
  margin: auto;
  stroke: #7c3aed;
  stroke-width: 2.1;
}
.progress-bar-bg {
  width: 90%;
  height: 12px;
  background: #242043;
  border-radius: 7px;
  margin: 18px auto 0 auto;
  overflow: hidden;
  box-shadow: 0 1px 6px #7c3aed33, 0 0 4px #232031;
  border: 2px solid #312e81;
  position: relative;
}
.progress-bar {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, #7c3aed 60%, #22d3ee 100%);
  box-shadow: 0 2px 10px #a78bfa22;
  width: 22%;
  transition: width 0.3s;
  position: relative;
}
.mission-xp {
  margin-top: 4px;
  font-size: .96rem;
  color: #a78bfa;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 8px #23203b;
}
@media (max-width: 1050px) {
  .missions-board { gap: 16px; }
  .mission-card { width: 98%; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .missions-board { flex-direction: column; align-items: center; }
  .game-header { padding-top: 20px; }
}
