/* Hyper Spin — draw reveal + pool (no wheel) */

/* Session-complete modal mounts here (outside `#app`) so the surf iframe is not torn down on each draw tick. */
#rtx-game-modal-host {
  position: relative;
  z-index: 11000;
}

.rtx-hyper-slot {
  position: relative;
  border-radius: 18px;
  padding: 18px 16px 20px;
  margin: 0 0 16px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.28) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.rtx-hyper-slot::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(249, 115, 22, 0.35),
    rgba(59, 130, 246, 0.35),
    rgba(249, 115, 22, 0.35)
  );
  opacity: 0;
  animation: rtx-hyper-slot-orbit 2.4s linear infinite;
  pointer-events: none;
}

.rtx-hyper-slot--running::before {
  opacity: 0.45;
}

.rtx-hyper-slot--running {
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.35),
    0 0 32px rgba(249, 115, 22, 0.12),
    0 0 48px rgba(59, 130, 246, 0.08);
}

@keyframes rtx-hyper-slot-orbit {
  to {
    transform: rotate(360deg);
  }
}

.rtx-hyper-slot__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 115, 22, 0.95);
  margin-bottom: 6px;
}

.rtx-hyper-slot__icon {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.45));
  animation: rtx-hyper-bolt 0.85s ease-in-out infinite;
}

.rtx-hyper-slot--idle .rtx-hyper-slot__icon {
  animation: none;
  opacity: 0.75;
}

@keyframes rtx-hyper-bolt {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.rtx-hyper-slot__label {
  position: relative;
  z-index: 1;
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #fff);
  line-height: 1.25;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.12s ease;
}

.rtx-hyper-slot__label--blur {
  filter: blur(0.45px);
  opacity: 0.92;
}

.rtx-hyper-slot__sub {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.rtx-hyper-prize-pool {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 200px;
  overflow-y: auto;
  transition: opacity 0.2s ease;
}

.rtx-hyper-prize-pool--during {
  opacity: 0.88;
}

.rtx-hyper-prize-pool li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.72));
  padding: 8px 10px;
  margin: 2px 0;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background 0.08s ease,
    border-color 0.08s ease,
    color 0.08s ease;
}

.rtx-hyper-prize-row--lit {
  color: var(--text, #fff);
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12) inset;
}

.rtx-hyper-drawing-hint {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--orange, #f97316);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  animation: rtx-hyper-drawing-pulse 1s ease-in-out infinite;
}

@keyframes rtx-hyper-drawing-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.rtx-hyper-result-card {
  margin: 8px 0 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12) inset;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text, #fff);
  text-align: center;
  line-height: 1.4;
}

.rtx-hyper-result-card--pop {
  animation: rtx-hyper-result-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rtx-hyper-result-pop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }
  100% {
    transform: scale(1);
  }
}

.rtx-hyper-modal-overlay.modal-overlay {
  backdrop-filter: blur(10px);
}

.rtx-hyper-modal {
  position: relative;
  max-width: min(480px, 94vw);
  border-radius: 20px;
  padding: 24px 22px 26px;
  background:
    linear-gradient(165deg, rgba(59, 130, 246, 0.08), transparent 42%),
    linear-gradient(-15deg, rgba(249, 115, 22, 0.1), transparent 45%),
    rgba(12, 11, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.15),
    0 28px 90px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
}

.rtx-hyper-modal--celebrate h2,
.rtx-hyper-modal--celebrate .rtx-hyper-modal-sub,
.rtx-hyper-modal--celebrate .rtx-hyper-modal-actions {
  position: relative;
  z-index: 2;
}

.rtx-hyper-modal--celebrate {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.35),
    0 0 48px rgba(249, 115, 22, 0.25),
    0 0 80px rgba(59, 130, 246, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.75);
  animation: rtx-hyper-modal-glow 1.4s ease-in-out infinite alternate;
}

@keyframes rtx-hyper-modal-glow {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.15);
  }
}

.rtx-hyper-win-burst {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42%;
  width: 220%;
  height: 220%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(249, 115, 22, 0.08) 35%, transparent 55%);
  animation: rtx-hyper-burst-fade 1.1s ease-out both;
  z-index: 0;
}

.rtx-hyper-modal--celebrate .rtx-hyper-result-card,
.rtx-hyper-result-card--celebrate {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.35);
}

@keyframes rtx-hyper-burst-fade {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.rtx-hyper-page-root--celebrate .rtx-hyper-panel-glow {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 0 40px rgba(249, 115, 22, 0.15);
}

.rtx-hyper-panel-glow {
  position: relative;
}

.rtx-hyper-panel-glow .rtx-hyper-win-burst {
  top: 38%;
}

.rtx-hyper-page-root .rtx-hyper-slot {
  border-width: 2px;
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.rtx-hyper-page-root .rtx-hyper-slot--running {
  border-color: rgba(59, 130, 246, 0.45);
}

.rtx-hyper-modal h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  letter-spacing: -0.02em;
}

.rtx-hyper-modal-sub {
  color: var(--muted, rgba(255, 255, 255, 0.65));
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rtx-hyper-modal-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.hyperspin-panel .rtx-hyper-prize-pool {
  margin-top: 2px;
}
