/* Oracle widget — shared styles for prediction field + mode pill + jumanji reveal */

.oracle-mode-wrap { text-align: center; margin-bottom: 24px; }
.oracle-mode-pill {
  display: inline-flex;
  background: rgba(18,16,30,0.8);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}
.mode-pill-btn {
  background: transparent;
  border: none;
  color: #a78bca;
  padding: 8px 22px;
  border-radius: 26px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.mode-pill-btn.active {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  color: #fff;
  box-shadow: 0 0 16px rgba(147,51,234,0.5);
}
.mode-pill-btn:not(.active):hover { color: var(--gold); }

.prediction-text.yesno-answer {
  font-size: clamp(3.5rem, 15vw, 6rem);
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 28px 20px;
}

.ball-wrap { text-align: center; }
.prediction-field {
  width: 100%; max-width: 480px;
  min-height: 160px;
  background: #000;
  border: 2px solid rgba(147,51,234,0.5);
  border-radius: 16px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(147,51,234,0.25), inset 0 0 60px rgba(0,0,0,0.8);
}
.prediction-field::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(107,33,168,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.prediction-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #9b59b6;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-shadow: 0 0 20px rgba(147,51,234,0.8);
  position: relative; z-index: 2;
}
.prediction-text.show { opacity: 1; }
.prediction-text.positive { color: #c9f7b0; text-shadow: 0 0 20px rgba(100,255,80,0.5); }
.prediction-text.neutral  { color: #f7e29a; text-shadow: 0 0 20px rgba(255,220,50,0.5); }
.prediction-text.negative { color: #f7a0a0; text-shadow: 0 0 20px rgba(255,80,80,0.5); }

.idle-symbol {
  position: absolute; transition: opacity 0.4s;
  width: 160px; height: 160px;
  pointer-events: none;
}
.idle-symbol img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: idlePulse 3s ease-in-out infinite;
}
@keyframes idlePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.btn-predict {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  border: none;
  color: #fff;
  padding: 14px 40px;
  border-radius: 40px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(147,51,234,0.4);
  position: relative; overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-predict:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(147,51,234,0.7);
}
.btn-predict:active { transform: scale(0.97); }
.btn-predict.spinning { animation: pulse 0.5s ease-in-out; }

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}

.letter {
  display: inline-block;
  opacity: 0;
  animation: letterReveal 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
  white-space: pre;
}
@keyframes letterReveal {
  0%   { opacity: 0; filter: blur(16px) brightness(3); transform: scale(2.2) translateY(-6px); }
  35%  { opacity: 1; filter: blur(2px)  brightness(2); transform: scale(1.15) translateY(-1px); }
  70%  { filter: blur(0px) brightness(1.4); transform: scale(1.02) translateY(0); }
  100% { opacity: 1; filter: blur(0px) brightness(1);  transform: scale(1) translateY(0); }
}

@keyframes fieldPulse {
  0%,100% { box-shadow: 0 0 40px rgba(147,51,234,0.25), inset 0 0 60px rgba(0,0,0,0.8); }
  50%      { box-shadow: 0 0 80px rgba(147,51,234,0.7), inset 0 0 80px rgba(107,33,168,0.3), 0 0 120px rgba(147,51,234,0.3); }
}
.prediction-field.revealing {
  animation: fieldPulse 1.2s ease-in-out infinite;
  border-color: rgba(201,168,76,0.7) !important;
}

#smokeCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  border-radius: 14px;
}
