/* ============================================================
   EYES ONLY - Post-Run Summary Screen
   Green accent for success, red for failure.
   ============================================================ */

.rs-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  z-index: 5000;
  animation: rs-fade-in 0.5s ease-out;
  font-family: 'Courier New', monospace;
  padding: 2rem 1rem;
}

@keyframes rs-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rs-overlay.rs-fade-out {
  animation: rs-fade-out 0.4s ease-in forwards;
}

@keyframes rs-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ---- Outcome ---- */

.rs-outcome {
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  font-weight: bold;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  animation: rs-el-in 0.4s ease-out 0.1s both;
}

.rs-success {
  color: #1cff9b;
  text-shadow: 0 0 20px rgba(28, 255, 155, 0.4);
}

.rs-failure {
  color: #ff1c4a;
  text-shadow: 0 0 20px rgba(255, 28, 74, 0.4);
}

/* ---- Identity ---- */

.rs-identity {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: #ccc;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 0.8em;
  animation: rs-el-in 0.4s ease-out 0.2s both;
}

/* ---- Dividers ---- */

.rs-divider {
  font-size: 0.7rem;
  color: #333;
  letter-spacing: 0.05em;
  margin-bottom: 1em;
  animation: rs-el-in 0.3s ease-out 0.3s both;
}

.rs-divider-thin {
  color: #1a1a1a;
  margin-top: 1em;
}

/* ---- Stats grid ---- */

.rs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em 2.5em;
  margin-bottom: 0.8em;
  animation: rs-el-in 0.5s ease-out 0.4s both;
}

.rs-stat {
  text-align: center;
}

.rs-stat-value {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: #ccc;
  font-weight: bold;
}

.rs-stat-label {
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  color: #444;
  letter-spacing: 0.15em;
  margin-top: 0.1em;
}

/* ---- Score ---- */

.rs-score {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: #ffaa00;
  letter-spacing: 0.15em;
  margin-top: 0.3em;
  margin-bottom: 0.5em;
  text-shadow: 0 0 12px rgba(255, 170, 0, 0.3);
  animation: rs-el-in 0.4s ease-out 0.6s both;
}

/* ---- Lifetime ---- */

.rs-lifetime {
  animation: rs-el-in 0.4s ease-out 0.7s both;
}

.rs-lifetime-stat {
  font-size: clamp(0.6rem, 1.4vw, 0.72rem);
  color: #555;
  letter-spacing: 0.1em;
}

/* ---- Tier-up callout ---- */

.rs-tier-up {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: #ffaa00;
  letter-spacing: 0.12em;
  margin-top: 1em;
  padding: 0.4em 1em;
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: 3px;
  text-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
  animation: rs-tier-pulse 1s ease-in-out infinite alternate, rs-el-in 0.4s ease-out 0.9s both;
}

@keyframes rs-tier-pulse {
  from { border-color: rgba(255, 170, 0, 0.2); }
  to   { border-color: rgba(255, 170, 0, 0.5); }
}

/* ---- Hint ---- */

.rs-hint {
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  color: #333;
  letter-spacing: 0.08em;
  margin-top: 1.5em;
  animation: rs-el-in 0.3s ease-out 1.2s both;
}

/* ---- Shared entrance ---- */

@keyframes rs-el-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
