/* v5.24 — voice prompt and toast styles */

.vfl-audio-prompt {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.vfl-audio-prompt.show {
  opacity: 1;
  pointer-events: auto;
}
.vap-card {
  background: linear-gradient(180deg, #1a2230 0%, #0f1620 100%);
  color: #f4f6fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 24px 20px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: vapPop 220ms ease-out;
}
@keyframes vapPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.vap-icon {
  font-size: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(78, 195, 255, 0.35));
}
.vap-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.vap-body {
  font-size: 14px;
  line-height: 1.5;
  color: #b6becd;
  margin-bottom: 22px;
}
.vap-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.vap-btn {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .12s ease, transform .12s ease;
}
.vap-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.vap-skip {
  background: rgba(255, 255, 255, 0.06);
  color: #cfd6e3;
  border-color: rgba(255, 255, 255, 0.10);
}
.vap-enable {
  background: linear-gradient(180deg, #4ec3ff 0%, #1c8edb 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(78, 195, 255, 0.4);
}

/* Voice watchdog toast */
.vfl-voice-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99997;
  background: linear-gradient(180deg, #ff8a3b 0%, #d65a1f 100%);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(214, 90, 31, 0.45);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.vfl-voice-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.vvt-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vvt-icon { font-size: 16px; }
.vvt-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.vvt-btn:hover { background: rgba(255, 255, 255, 0.32); }

/* Stakes screen (pre-match) — Tier 3C */
.vfl-stakes {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(28,42,68,0.92) 0%, rgba(6,10,18,0.96) 75%);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 280ms ease;
}
.vfl-stakes.show { display: flex; opacity: 1; }
.vs-card {
  text-align: center;
  color: #fff;
  max-width: 540px;
  padding: 0 24px;
  animation: vsRise 480ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vsRise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.vs-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffc857;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.vs-headline {
  font-size: clamp(22px, 4.2vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.vs-headline .vs-team {
  color: #4ec3ff;
}
.vs-sub {
  font-size: 14px;
  color: #b6becd;
  margin-bottom: 24px;
}
.vs-cta {
  display: inline-block;
  background: linear-gradient(180deg, #ffc857 0%, #e8a738 100%);
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 200, 87, 0.35);
  transition: filter .12s ease, transform .12s ease;
}
.vs-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Tactical decision modal — Tier 1A */
.vfl-decision {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  z-index: 5500;
  background: linear-gradient(180deg, rgba(30, 38, 52, 0.97) 0%, rgba(18, 24, 34, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px 18px;
  width: min(380px, calc(100vw - 32px));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  color: #f4f6fb;
}
.vfl-decision.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.vd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.vd-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffc857;
  text-transform: uppercase;
}
.vd-timer {
  font-size: 12px;
  font-weight: 700;
  color: #ff6b6b;
  font-variant-numeric: tabular-nums;
}
.vd-prompt {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.vd-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vd-opt {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f6fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease, border-color .12s ease;
}
.vd-opt:hover {
  background: rgba(78, 195, 255, 0.14);
  border-color: rgba(78, 195, 255, 0.35);
  transform: translateY(-1px);
}
.vd-opt-label {
  font-weight: 800;
  color: #4ec3ff;
  margin-right: 6px;
}
.vd-progress {
  margin-top: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.vd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ec3ff, #ff6b6b);
  width: 100%;
  transition: width 100ms linear;
}

/* Atmosphere meter — Tier 3B */
.vfl-atm {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 4000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 10px/1 monospace;
  color: #b6becd;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.vfl-atm.hidden { opacity: 0; }
.vfl-atm-bar {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.vfl-atm-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ec3ff 0%, #ffc857 50%, #ff5b6e 100%);
  width: 20%;
  transition: width 600ms ease;
}

/* Streak meter — Tier 2A */
.vfl-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.2) 0%, rgba(255, 200, 87, 0.08) 100%);
  border: 1px solid rgba(255, 200, 87, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ffc857;
  letter-spacing: 0.04em;
}
.vfl-streak-chip.cold {
  background: linear-gradient(180deg, rgba(78, 195, 255, 0.15) 0%, rgba(78, 195, 255, 0.05) 100%);
  border-color: rgba(78, 195, 255, 0.4);
  color: #9fd8ff;
}
.vfl-streak-chip.fire {
  background: linear-gradient(180deg, rgba(255, 91, 110, 0.25) 0%, rgba(255, 91, 110, 0.1) 100%);
  border-color: rgba(255, 91, 110, 0.5);
  color: #ffb3b9;
  animation: streakPulse 1.6s ease-in-out infinite;
}
@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 110, 0); }
  50%      { box-shadow: 0 0 14px 0 rgba(255, 91, 110, 0.45); }
}

/* Goal replay overlay — Tier 3A */
.vfl-replay {
  position: fixed;
  inset: 0;
  z-index: 5800;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.vfl-replay.show { display: flex; }
.vfl-replay-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffc857;
  text-shadow: 0 4px 24px rgba(255, 200, 87, 0.7), 0 0 60px rgba(255, 91, 110, 0.5);
  animation: replayFlash 1800ms ease-out;
}
@keyframes replayFlash {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  15%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  85%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

/* Star superpower button — Tier 1B */
.vfl-power {
  position: fixed;
  bottom: 120px;
  right: 12px;
  z-index: 4500;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffc857 0%, #e8a738 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 200, 87, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: powerPulse 2.4s ease-in-out infinite;
  transition: opacity .2s ease, transform .12s ease;
}
.vfl-power:hover { transform: translateY(-2px); }
.vfl-power.spent {
  background: rgba(120, 130, 150, 0.4);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}
@keyframes powerPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 200, 87, 0.4); }
  50%      { box-shadow: 0 6px 28px rgba(255, 200, 87, 0.7); }
}

/* Risk/reward modifier mini-bar — Tier 1C */
.vfl-risk {
  position: fixed;
  top: 56px;
  left: 12px;
  z-index: 4000;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.vfl-risk-btn {
  padding: 5px 10px;
  background: rgba(8, 12, 18, 0.7);
  color: #cfd6e3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all .15s ease;
}
.vfl-risk-btn:hover {
  background: rgba(78, 195, 255, 0.18);
  border-color: rgba(78, 195, 255, 0.45);
  color: #fff;
}
.vfl-risk-btn.active {
  background: linear-gradient(180deg, #ff6b6b 0%, #d8344a 100%);
  border-color: #ff6b6b;
  color: #fff;
}
.vfl-risk-btn.cooldown {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Rivalry chip (shown pre-match) */
.vfl-rivalry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(255, 91, 110, 0.18);
  border: 1px solid rgba(255, 91, 110, 0.45);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #ffb3b9;
  letter-spacing: 0.04em;
}
