.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(40, 30, 80, 0.92), rgba(6, 8, 20, 0.97));
  backdrop-filter: blur(4px);
}

.logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #7fd6ff, #ff8fe8 60%, #ffd35c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(127, 214, 255, 0.35);
}
.subtitle { font-size: 14px; opacity: 0.75; margin-bottom: 6px; }

.stat-row {
  display: flex;
  gap: 18px;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.stat-row b { color: #ffd35c; font-size: 15px; display: block; }

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-height: 44px;
  min-width: 160px;
  transition: transform 0.12s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(120deg, #7fd6ff, #5a6dff);
  color: #04101f;
  box-shadow: 0 8px 24px rgba(90, 109, 255, 0.45);
}
.btn-secondary {
  background: rgba(234, 243, 255, 0.08);
  color: #eaf3ff;
  border: 1px solid rgba(234, 243, 255, 0.25);
}
.btn-ghost {
  background: transparent;
  color: rgba(234, 243, 255, 0.6);
  border: 1px solid rgba(234, 243, 255, 0.15);
  min-width: 120px;
  padding: 10px 20px;
  font-size: 13px;
}

.countdown-num {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 40px rgba(127, 214, 255, 0.8);
}
.countdown-num.pop { animation: countdown-pop 0.55s ease-out; }
@keyframes countdown-pop {
  0% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.overlay.new-best .go-title::after { content: ' 🏆 NEW BEST!'; color: #ffd35c; }

.go-title { font-size: 22px; font-weight: 800; }
.go-score { font-size: 40px; font-weight: 900; color: #bfe9ff; text-shadow: 0 0 20px rgba(127, 214, 255, 0.6); }

.go-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  font-size: 12px;
  opacity: 0.85;
  margin: 6px 0 10px;
}
.go-grid b { display: block; font-size: 15px; color: #eaf3ff; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 260px;
}
.field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(234, 243, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3ff;
  font-size: 15px;
  text-align: center;
}
.field-error { color: #ff8296; font-size: 12px; min-height: 16px; }

.lb-panel {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 243, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  max-height: 60%;
  display: flex;
  flex-direction: column;
}
.lb-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.lb-tab {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(234, 243, 255, 0.15);
  background: transparent;
  color: rgba(234, 243, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lb-tab.active { background: rgba(127, 214, 255, 0.18); color: #bfe9ff; border-color: rgba(127, 214, 255, 0.4); }
.lb-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.lb-rank { width: 32px; opacity: 0.6; font-weight: 700; }
.lb-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 800; color: #ffd35c; }
.lb-loading, .lb-empty { padding: 20px; opacity: 0.6; font-size: 13px; }
