* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "inter", system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #0b1020, #05070f);
  color: #e6e8ef;
  overflow: hidden;
}

canvas {
  display: block;
  pointer-events: none;
  filter: none;
  opacity: 1;
}

.hud {
  position: fixed;
  top: 16px;
  left: 16px;

  display: flex;
  align-items: center;
  gap: 20px;

  padding: 14px 20px;
  border-radius: 16px;

  background: rgba(20, 24, 50, 0.6);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  z-index: 5;
}

.hud span,
.hud .lives {
  display: flex;
  align-items: center;
}

.hud button {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 25px;
  line-height: 1;

  font-size: 12px;
  padding: 0 14px;

  border-radius: 999px;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;

  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(6px);

  z-index: 20;
}

.hidden {
  display: none;
}

.info-box {
  background: rgba(15, 18, 40, 0.95);
  padding: 36px 42px;
  border-radius: 20px;

  text-align: center;
  width: 460px;
  max-width: calc(100vw - 40px);

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-box h1 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-box h2 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 14px;
  opacity: 0.85;
}

.info-box p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.75;
  line-height: 1.5;
}

.btn {
  margin-top: 16px;
  padding: 10px 22px;

  font-size: 14px;
  font-weight: 500;

  border-radius: 999px;
  border: none;

  background: #6fa8ff;
  color: #05070f;

  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(111, 168, 255, 0.15);
}

.btn.ghost {
  background: transparent;
  color: #cfd6ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn.ghost:hover {
  box-shadow: 0 0 0 4px rgba(207, 214, 255, 0.1);
}

#achievementsOverlay .info-box {
  text-align: left;
  width: 420px;

  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

#achievementsList {
  list-style: none;
  margin-top: 18px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  overflow-y: auto;
  padding-right: 6px;
  flex: 1;

  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

#achievementsList::-webkit-scrollbar {
  width: 6px;
}

#achievementsList::-webkit-scrollbar-track {
  background: transparent;
}

#achievementsList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

#achievementsList li {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.04);
}

.achievement-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.achievement-text strong {
  font-size: 14px;
  font-weight: 500;
}

.achievement-text span {
  font-size: 12px;
  opacity: 0.6;
}

.achievement-status {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
}

.tutorial-sidebar {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 260px;
  background: rgba(15, 18, 40, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  z-index: 25;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tutorial-sidebar h2 {
  font-size: 18px;
  margin-bottom: 6px;
  text-transform: lowercase;
}

.tutorial-sidebar p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
  text-transform: lowercase;
}

.tutorial-sidebar.hidden {
  display: none;
}
