/* TAPsignal · METAGAME UI · v95.53
 * Mounts inside the .intro overlay (main menu) and as a small HUD
 * chip during gameplay. No-box, glow-forward design that matches
 * the cymatic / sonar identity established in the rest of the UI.
 *
 * Three primitives:
 *   .meta-strip       · intro-overlay panel · Echoes + Daily Signal + streak
 *   .echoes-hud-chip  · small HUD counter during gameplay (top-left)
 *   .echoes-toast     · floating "+N ECHOES" pop after run-end
 */

/* ─── INTRO OVERLAY · meta strip ──────────────────────────────────── */
.meta-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  width: 100%;
  max-width: 320px;
  font-family: var(--mono);
  color: #4EFFB0;
  text-shadow: 0 0 10px rgba(78, 255, 176, 0.55), 0 0 20px rgba(78, 255, 176, 0.35);
  position: relative;
  z-index: 5;
}

.meta-strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.meta-echoes {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
}
.meta-echoes-balance {
  display: block;
  font-size: 22px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  color: #4EFFB0;
}
.meta-echoes-label {
  font-size: 9px;
  opacity: 0.75;
  color: #87B8A0;
  text-shadow: none;
}

.meta-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFC56E;
  background: rgba(40, 22, 6, 0.4);
  border: 1px solid rgba(255, 197, 110, 0.35);
  border-radius: 4px;
  text-shadow: 0 0 8px rgba(255, 197, 110, 0.55);
}
.meta-streak.is-zero { display: none; }

.meta-daily {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  background: linear-gradient(135deg, rgba(11, 95, 184, 0.18), rgba(26, 229, 197, 0.12));
  border: 1px solid rgba(26, 229, 197, 0.45);
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms, border-color 160ms, box-shadow 160ms;
  box-shadow: 0 0 18px rgba(26, 229, 197, 0.18);
}
.meta-daily:active { transform: scale(0.98); }
.meta-daily:hover, .meta-daily:focus-visible {
  border-color: rgba(26, 229, 197, 0.85);
  box-shadow: 0 0 28px rgba(26, 229, 197, 0.4);
  outline: none;
}
.meta-daily.claimed { opacity: 0.6; cursor: default; }
.meta-daily.claimed:hover { border-color: rgba(26, 229, 197, 0.45); box-shadow: 0 0 18px rgba(26, 229, 197, 0.18); }

.meta-daily-icon {
  font-size: 24px;
  line-height: 1;
  color: #1AE5C5;
  text-shadow: 0 0 10px #1AE5C5, 0 0 22px rgba(26, 229, 197, 0.6);
}
.meta-daily-text { flex: 1; text-align: left; }
.meta-daily-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4EFFB0;
}
.meta-daily-modifier {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #1AE5C5;
  text-shadow: 0 0 8px #1AE5C5;
}
.meta-daily-reward {
  font-size: 9px;
  font-weight: 700;
  color: #FFC56E;
  letter-spacing: 0.16em;
  text-shadow: 0 0 6px rgba(255, 197, 110, 0.5);
}

/* ─── HUD chip · in-game (top-left next to score) ─────────────────── */
.echoes-hud-chip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4EFFB0;
  background: rgba(2, 5, 7, 0.55);
  border: 1px solid rgba(78, 255, 176, 0.35);
  border-radius: 12px;
  text-shadow: 0 0 6px rgba(78, 255, 176, 0.6);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ─── Run-end "+N ECHOES" floating toast ──────────────────────────── */
.echoes-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4EFFB0;
  text-shadow:
    0 0 8px  #4EFFB0,
    0 0 18px #4EFFB0,
    0 0 36px rgba(78, 255, 176, 0.7);
  pointer-events: none;
  opacity: 0;
  animation: echoes-toast-pop 1800ms cubic-bezier(.16, .84, .24, 1) forwards;
}
@keyframes echoes-toast-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  20%  { opacity: 1; transform: translate(-50%, -80%) scale(1.08); }
  80%  { opacity: 1; transform: translate(-50%, -120%) scale(1.00); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .echoes-toast { animation-duration: 600ms; }
}

@media (max-width: 380px) {
  .meta-strip { gap: 10px; padding: 10px 14px; }
  .meta-echoes-balance { font-size: 20px; }
  .meta-daily { padding: 10px 14px; }
  .meta-daily-modifier { font-size: 12px; }
}
