/* ── Modifiers: draft overlay, active badges, effects ── */

/* ── Opportunity Selection ──────────────────────── */
.opp-card {
  max-width: min(520px, calc(100vw - 24px));
  text-align: center;
}
.opp-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.opp-choice {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #0f3460;
  border-radius: 12px;
  padding: 14px 12px;
  width: 140px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.opp-choice:hover { border-color: #3b82f6; transform: scale(1.03); }
.opp-choice:active { transform: scale(0.97); }
.opp-choice-icon { font-size: 28px; }
.opp-choice-name { font-size: 13px; font-weight: 700; color: #e0e0e0; }
.opp-choice-desc { font-size: 9px; color: #94a3b8; line-height: 1.3; }
.opp-choice-risk {
  display: flex; gap: 6px; font-size: 8px; color: #64748b;
  margin-top: 4px;
}
.opp-risk-tag {
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.opp-risk-low { background: rgba(34,197,94,0.15); color: #4ade80; }
.opp-risk-medium { background: rgba(251,191,36,0.15); color: #fbbf24; }
.opp-risk-high { background: rgba(239,68,68,0.15); color: #f87171; }

@media (max-width: 480px) {
  .opp-grid { flex-direction: column; align-items: center; }
  .opp-choice { width: 90%; max-width: 260px; flex-direction: row; text-align: left; padding: 12px; }
  .opp-choice-icon { font-size: 24px; flex-shrink: 0; }
}

/* ── Modifier Draft ─────────────────────────────── */
.mod-draft-card {
  max-width: min(520px, calc(100vw - 24px));
  text-align: center;
}
.mod-draft-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.mod-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #0f3460;
  border-radius: 12px;
  padding: 20px 14px;
  width: 140px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mod-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}
.mod-card-icon { font-size: 32px; }
.mod-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading, #a0c4ff);
  letter-spacing: 0.3px;
}
.mod-card-desc {
  font-size: 11px;
  color: var(--text-dim, #94a3b8);
  line-height: 1.4;
}
.mod-card-selected {
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34,197,94,0.4) !important;
  transform: scale(1.05);
}
.mod-card-dimmed {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.95);
}
/* Active modifier badges in HUD */
.mod-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  animation: modBadgePulse 2s ease-in-out infinite;
}
.mod-badge-bet { background: rgba(251,191,36,0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.mod-badge-vol { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
@keyframes modBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@media (max-width: 480px) {
  .mod-draft-grid { flex-direction: column; align-items: center; }
  .mod-card { width: 90%; max-width: 260px; flex-direction: row; text-align: left; padding: 14px; }
  .mod-card-icon { font-size: 28px; flex-shrink: 0; }
}

/* Modifier card enhancements — rare glow via animation now, hover override kept */
.mod-card-rare:hover {
  box-shadow: 0 8px 24px rgba(251,191,36,0.3) !important;
}
.mod-card-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.mod-card-rarity {
  font-size: 9px;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ── Active Modifier Strip (inside theme-missions-row) ── */
.mod-active-strip {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 0;
  flex-shrink: 0;
  border-left: 1px solid var(--border, rgba(100,140,200,0.15));
  margin-left: auto;
}
.mod-active-strip.hidden { display: none; }
.mod-active-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(30,40,60,0.8);
  border: 1px solid rgba(100,140,200,0.25);
  cursor: default;
  transition: box-shadow 0.2s;
}
.mod-active-icon:hover {
  box-shadow: 0 0 8px rgba(96,165,250,0.4);
}
.mod-active-icon .mod-tip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid rgba(100,140,200,0.3);
  z-index: 300;
  pointer-events: none;
  margin-bottom: 4px;
}
.mod-active-icon:hover .mod-tip { display: block; }

/* Rare modifier glow */
.mod-active-icon.mod-rare-glow {
  border-color: rgba(251,191,36,0.5);
  animation: rareGlow 2s ease-in-out infinite;
}
@keyframes rareGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(251,191,36,0.2); }
  50% { box-shadow: 0 0 12px rgba(251,191,36,0.5), 0 0 4px rgba(251,191,36,0.3); }
}

/* Modifier effect flash */
.mod-effect-flash {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 4px 0;
  min-height: 0;
  overflow: hidden;
}
.mod-effect-flash.hidden { display: none; }
.mod-flash-item {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,0.6);
  animation: flashPop 1.5s ease-out forwards;
}
@keyframes flashPop {
  0% { opacity: 0; transform: translateY(6px) scale(0.8); }
  15% { opacity: 1; transform: translateY(-2px) scale(1.1); }
  30% { transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* Rare card draft glow enhancement */
.mod-card-rare {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(251,191,36,0.15);
  animation: rareCardGlow 2.5s ease-in-out infinite;
}
@keyframes rareCardGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(251,191,36,0.15); }
  50% { box-shadow: 0 0 20px rgba(251,191,36,0.4), 0 0 8px rgba(251,191,36,0.2); }
}

