
/* ══════════════════════════════════
   🪄  WAND DESIGNER
══════════════════════════════════ */
.wand-designer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 16px;
}
@media (max-width: 700px) { .wand-designer { grid-template-columns: 1fr; } }

.wand-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.wand-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wand-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  text-align: right;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.wand-choice-btn:hover {
  border-color: var(--gold);
  background: rgba(251,191,36,0.07);
  transform: translateX(-3px);
}
.wand-choice-btn.selected {
  border-color: var(--gold);
  background: rgba(251,191,36,0.15);
  box-shadow: 0 0 12px rgba(251,191,36,0.25);
}
.wand-choice-btn .wand-emoji { font-size: 1.5rem; flex-shrink: 0; }
.wand-choice-btn strong { display: block; color: var(--text-bright); font-size: 0.95rem; }
.wand-choice-btn span { font-size: 0.78rem; color: var(--muted); }

.wand-preview {
  grid-column: 1 / -1;
  margin-top: 4px;
  animation: fadeIn 0.4s ease;
}

.wand-display {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wand-icon-big {
  font-size: 2.8rem;
  animation: wandFloat 2s ease-in-out infinite;
}
@keyframes wandFloat {
  0%,100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-6px); }
}

.wand-power {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wand-power-badge {
  padding: 4px 10px;
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--gold);
}

.wand-ready-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wand-ready-btn:not(:disabled) { animation: pulseGlow 1.5s ease-in-out infinite; }

/* ══════════════════════════════════
   🐍  VOLDEMORT BATTLE PANEL
══════════════════════════════════ */
.voldemort-panel {
  border: 1.5px solid rgba(220, 38, 38, 0.5);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,0,0,0.6), rgba(15,0,0,0.8));
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.voldemort-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(220,38,38,0.03) 8px,
    rgba(220,38,38,0.03) 16px
  );
  pointer-events: none;
}

.voldemort-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.voldemort-avatar {
  font-size: 1.8rem;
  animation: voldemortBreath 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes voldemortBreath {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(220,38,38,0.5)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(220,38,38,0.9)); }
}

.voldemort-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vol-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: #f87171;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.vol-score {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.voldemort-speech {
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
}
.voldemort-speech .panel-kicker {
  color: #f87171 !important;
  font-size: 0.65rem;
  margin-bottom: 4px;
}
.voldemort-speech #voldemortClaim {
  font-size: 0.88rem;
  color: var(--text-bright);
  line-height: 1.5;
  font-style: italic;
}

.voldemort-result {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  animation: fadeIn 0.3s ease;
}
.vol-result-win   { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.5); color: #6ee7b7; }
.vol-result-tie   { background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.4); color: var(--gold); }
.vol-result-lose  { background: rgba(220,38,38,0.2); border: 1px solid rgba(220,38,38,0.5); color: #fca5a5; }

/* Voldemort panel hidden/visible animation */
.voldemort-panel:not(.hidden) { animation: slideInRight 0.35s ease; }
@keyframes slideInRight {
  from { opacity:0; transform: translateX(20px); }
  to   { opacity:1; transform: translateX(0); }
}

/* ══════════════════════════════════
   🏆  BOSS DEFEAT CARD  (in summary)
══════════════════════════════════ */
.boss-defeat-card {
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
  animation: bossDefeatPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
@keyframes bossDefeatPop {
  from { opacity:0; transform: scale(0.85); }
  to   { opacity:1; transform: scale(1); }
}

.boss-defeat-card.victory {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.1));
  border: 1.5px solid rgba(16,185,129,0.5);
}
.boss-defeat-card.defeat {
  background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(150,0,0,0.1));
  border: 1.5px solid rgba(220,38,38,0.4);
}
.boss-defeat-card.tie {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(200,140,0,0.1));
  border: 1.5px solid rgba(251,191,36,0.4);
}

.boss-defeat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.boss-defeat-header > span:first-child {
  font-size: 2.4rem;
  animation: bossIconSpin 0.6s ease 0.3s both;
}
@keyframes bossIconSpin {
  from { transform: rotate(-30deg) scale(0.5); opacity:0; }
  to   { transform: rotate(0) scale(1); opacity:1; }
}
.boss-defeat-header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
}

/* wand upgrade card */
.wand-upgrade-card {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(124,58,237,0.1));
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 10px;
  padding: 14px;
  animation: wandUpgradeGlow 2s ease-in-out infinite;
}
@keyframes wandUpgradeGlow {
  0%,100% { box-shadow: 0 0 8px rgba(251,191,36,0.2); }
  50%      { box-shadow: 0 0 20px rgba(251,191,36,0.5); }
}
.wand-upgrade-card .panel-kicker { color: var(--gold) !important; }
.wand-upgrade-card p:last-child {
  font-size: 0.9rem;
  color: var(--text-bright);
  margin-top: 6px;
  line-height: 1.6;
}
