/* Oráculo Sí o No — mystical orb theme */

.page-oraculo-sino {
  background:
    radial-gradient(ellipse at top, #1b1140 0%, #0a0518 60%, #050310 100%);
  color: #e9e4ff;
  min-height: 100vh;
}

.sino-page { padding: 2.5rem 0 4rem; }

.sino-header { text-align: center; margin-bottom: 2rem; }
.sino-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #f3d27e;
  text-shadow: 0 0 24px rgba(243, 210, 126, 0.45);
  margin-bottom: 0.6rem;
}
.sino-intro {
  max-width: 640px; margin: 0 auto;
  color: #cfc8eb; line-height: 1.6;
  font-size: 1.02rem;
}

.sino-app {
  max-width: 720px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(243, 210, 126, 0.18);
  border-radius: 18px;
  padding: 2.4rem 1.8rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45),
              inset 0 0 60px rgba(99, 78, 199, 0.08);
  position: relative;
  overflow: hidden;
}

/* ---------- stage ---------- */
.sino-stage { text-align: center; }
.sino-instruction {
  color: #bdb4dc; margin-bottom: 1.4rem;
  font-size: 1rem;
}
.sino-form {
  display: flex; flex-direction: column; gap: 0.8rem;
  max-width: 480px; margin: 0 auto 2rem;
}
.sino-label {
  font-size: 0.92rem; color: #f3d27e;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.sino-input {
  background: rgba(10, 5, 25, 0.6);
  border: 1px solid rgba(243, 210, 126, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #f3eaff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.sino-input::placeholder { color: rgba(207, 200, 235, 0.45); }
.sino-input:focus {
  outline: none;
  border-color: #f3d27e;
  box-shadow: 0 0 0 3px rgba(243, 210, 126, 0.18);
}
.sino-input:disabled { opacity: 0.6; cursor: not-allowed; }

.sino-ask {
  background: linear-gradient(135deg, #6a4dc4 0%, #b6308f 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 6px 20px rgba(106, 77, 196, 0.4);
}
.sino-ask:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(182, 48, 143, 0.5);
}
.sino-ask:disabled { opacity: 0.55; cursor: wait; }

/* ---------- mystical orb ---------- */
.sino-orb {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.sino-orb-core {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3d27e 0%, #b6308f 55%, #2c0f4e 100%);
  box-shadow: 0 0 50px rgba(243, 210, 126, 0.5),
              0 0 100px rgba(182, 48, 143, 0.35);
  animation: sinoOrbPulse 3.4s ease-in-out infinite;
}
.sino-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(243, 210, 126, 0.25);
  pointer-events: none;
}
.sino-orb-ring--1 { width: 120px; height: 120px; animation: sinoRingSpin 8s linear infinite; }
.sino-orb-ring--2 { width: 150px; height: 150px; animation: sinoRingSpin 12s linear infinite reverse; }
.sino-orb-ring--3 { width: 180px; height: 180px; animation: sinoRingSpin 16s linear infinite; }

@keyframes sinoOrbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.92; }
}
@keyframes sinoRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Loading state — accelerate the orb */
.sino-app[data-state="loading"] .sino-orb-core {
  animation: sinoOrbPulse 0.7s ease-in-out infinite;
  box-shadow: 0 0 80px rgba(243, 210, 126, 0.85),
              0 0 160px rgba(182, 48, 143, 0.6);
}
.sino-app[data-state="loading"] .sino-orb-ring--1 { animation-duration: 2s; }
.sino-app[data-state="loading"] .sino-orb-ring--2 { animation-duration: 3s; }
.sino-app[data-state="loading"] .sino-orb-ring--3 { animation-duration: 4s; }

/* ---------- result ---------- */
.sino-result {
  text-align: center;
  animation: sinoFadeIn 0.6s ease-out;
}
.sino-result-question {
  font-style: italic; color: #cfc8eb;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}
.sino-verdict {
  margin: 0 auto 1.4rem;
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 18px;
  position: relative;
}
.sino-verdict[data-answer="si"] {
  background: linear-gradient(135deg, rgba(102, 200, 120, 0.18), rgba(102, 200, 120, 0.05));
  border: 2px solid rgba(102, 200, 120, 0.6);
  box-shadow: 0 0 40px rgba(102, 200, 120, 0.35);
}
.sino-verdict[data-answer="no"] {
  background: linear-gradient(135deg, rgba(220, 80, 90, 0.18), rgba(220, 80, 90, 0.05));
  border: 2px solid rgba(220, 80, 90, 0.6);
  box-shadow: 0 0 40px rgba(220, 80, 90, 0.35);
}
.sino-verdict-label {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  display: block;
}
.sino-verdict[data-answer="si"] .sino-verdict-label {
  color: #b9f0c2;
  text-shadow: 0 0 30px rgba(102, 200, 120, 0.8);
}
.sino-verdict[data-answer="no"] .sino-verdict-label {
  color: #f7c5c9;
  text-shadow: 0 0 30px rgba(220, 80, 90, 0.8);
}
.sino-result-text {
  max-width: 520px; margin: 0 auto 1.8rem;
  font-size: 1.15rem; line-height: 1.55;
  color: #ece6ff;
}

.sino-restart {
  background: transparent;
  border: 1px solid rgba(243, 210, 126, 0.5);
  color: #f3d27e;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.sino-restart:hover {
  background: rgba(243, 210, 126, 0.12);
  transform: translateY(-1px);
}

.sino-error {
  margin-top: 1rem;
  text-align: center;
  color: #f7c5c9;
  background: rgba(220, 80, 90, 0.15);
  border: 1px solid rgba(220, 80, 90, 0.4);
  border-radius: 8px;
  padding: 0.7rem;
}

@keyframes sinoFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
