/* ===== Number Sprint ===== */
.ns-wrap {
  font-family: 'Sora', sans-serif;
  width: 100%;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

.ns-screen { display: none; animation: nsFade .22s ease both; }
.ns-screen.is-active { display: block; }
@keyframes nsFade { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* Top bar */
.ns-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.ns-hud-cell { text-align: center; flex: 1; }
.ns-hud-cell__lbl {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: #9D8FBA; display: block; margin-bottom: 2px;
}
.ns-hud-cell__val {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; color: #F6EFE0;
}
.ns-hud-cell--timer.urgent .ns-hud-cell__val { color: #F87171; }

/* Play area */
.ns-arena {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 420px;
  background: radial-gradient(ellipse at 50% 30%, rgba(45,10,107,0.35) 0%, #08021A 70%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245,166,35,0.15);
  margin-bottom: 12px;
}

/* Number circle */
.ns-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #4A2C8F, #2D0A6B 70%);
  border: 1.5px solid rgba(245,166,35,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: #F6EFE0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 8px rgba(45,10,107,0.5);
}
.ns-circle:active { transform: translate(-50%,-50%) scale(0.92); }

.ns-circle.correct {
  animation: nsCorrectPop 0.35s ease forwards;
  pointer-events: none;
}
@keyframes nsCorrectPop {
  0%   { background: radial-gradient(circle at 32% 30%, #FFD700, #F5A623 70%); box-shadow: 0 0 20px rgba(245,166,35,0.8); transform: translate(-50%,-50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0.2); }
}
.ns-circle.wrong {
  animation: nsWrongShake 0.3s ease;
}
@keyframes nsWrongShake {
  0%,100% { transform: translate(-50%,-50%); background: radial-gradient(circle at 32% 30%, #FF6B6B, #CC1111 70%); }
  25%  { transform: translate(calc(-50% - 4px), -50%); }
  75%  { transform: translate(calc(-50% + 4px), -50%); }
}

/* Score float pop */
.ns-score-pop {
  position: absolute;
  pointer-events: none;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  color: #FFD700;
  z-index: 10;
  animation: nsScorePop 0.7s ease forwards;
  transform: translate(-50%, -50%);
}
@keyframes nsScorePop {
  0%   { opacity: 1; transform: translate(-50%,-50%) translateY(0); }
  100% { opacity: 0; transform: translate(-50%,-50%) translateY(-40px); }
}

/* Current target display */
.ns-target-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 12px;
}
.ns-target-bar__lbl { font-size: 11px; color: #9D8FBA; letter-spacing: 0.5px; text-transform: uppercase; }
.ns-target-bar__num {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: #F5A623;
  filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
}

/* Countdown */
.ns-countdown {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,2,26,0.8); border-radius: 16px;
}
.ns-countdown__num {
  font-family: 'Fraunces', serif; font-size: 72px; font-weight: 700; color: #F5A623;
  filter: drop-shadow(0 0 24px rgba(245,166,35,0.6));
  animation: nsCountPulse 1s ease both;
}
@keyframes nsCountPulse { 0%{transform:scale(0.6);opacity:0} 50%{transform:scale(1.1);opacity:1} 100%{transform:scale(1);opacity:1} }

/* Summary cards — shared look */
.ns-summary { text-align: center; padding: 20px 0; }
.ns-summary__score {
  font-family: 'Fraunces', serif; font-size: 48px; font-weight: 700; color: #F5A623;
  filter: drop-shadow(0 0 16px rgba(245,166,35,0.4)); display: block; line-height: 1;
}
.ns-summary__lbl { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9D8FBA; display: block; margin: 6px 0 18px; }
.ns-summary__stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 20px; }
.ns-summary__stat { background: #F9F7FF; border: 1.5px solid #EDE8F5; border-radius: 10px; padding: 12px 8px; }
.ns-summary__stat-val { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: #2D0A6B; display: block; }
.ns-summary__stat-lbl { font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: #9D8FBA; }
.ns-submit-btn {
  background: linear-gradient(180deg, #FFD680, #F5A623);
  color: #08021A; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 28px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(245,166,35,0.5);
}
