/* Vault Spin Premium v1.3 — Clean, conflict-free CSS */

/* ========== CONTAINER ========== */
.vaultspin-container {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #f6f1ff;
  border-radius: 28px;
  padding: 40px 20px;
  text-align: center;
  max-width: 720px;
  margin: 40px auto;
  box-shadow: 0 12px 36px rgba(80, 50, 200, 0.08);
  position: relative;
}

/* ========== WHEEL WRAPPER ========== */
.vaultspin-wheel-wrapper {
  position: relative;               /* anchor for pointer + center */
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 25px rgba(120, 80, 255, 0.2));
}

/* Canvas (wheel) */
.vaultspin-center {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  width: 85px;   /* smaller */
  height: 85px;  /* smaller */
  background: #fff url('/wp-content/uploads/2025/10/wheel-icon.webp') center/75% no-repeat;
  border: 4px solid #e2d9ff;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 5;    /* under pointer, above wheel */
  pointer-events: none;
}


/* ========== POINTER (ALWAYS DOWN) ========== */
.vaultspin-pointer {
  position: absolute;
  top: -18px; /* attach to top edge of wheel */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #5a2ae8; /* this points DOWN */
  z-index: 10;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}


/* ========== CENTER DISC (logo) ========== */
.vaultspin-center {
  position: absolute;
  inset: 0;                         /* center inside wrapper */
  margin: auto;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background: #fff url('/wp-content/uploads/2025/10/wheel-icon.webp') center/80% no-repeat;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.18);
  border: 4px solid #e2d9ff;
  pointer-events: none;
}

/* ========== UI (button, points, messages) ========== */
#vs_spin {
  background: linear-gradient(135deg, #6a2de8, #854bff);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(106, 45, 232, 0.3);
}
#vs_spin:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(106, 45, 232, 0.45);
}
#vs_spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#vs_points {
  font-weight: 700;
  font-size: 15px;
  color: #341c73;
}
#vs_msg {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #2a0f5f;
}

/* ========== RULES ========== */
.vaultspin-rules {
  font-size: 14px;
  color: #27194b;
  line-height: 1.6;
  text-align: left;
  max-width: 580px;
  margin: 20px auto;
}
.vaultspin-rules strong {
  color: #381a8f;
}

/* ========== HISTORY ========== */
.vaultspin-history {
  margin-top: 30px;
  background: #faf7ff;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.vaultspin-history h3 {
  margin-top: 0;
  font-size: 20px;
  color: #1a0b48;
}
#vs_history {
  list-style: disc;
  margin: 10px 20px;
  text-align: left;
  max-height: 9.6em;                /* ~ 6 lines */
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #b197fc #f4f0ff;
}
#vs_history::-webkit-scrollbar {
  width: 8px;
}
#vs_history::-webkit-scrollbar-thumb {
  background: #b197fc;
  border-radius: 8px;
}

/* Footer line under history (optional) */
.vs-footer-line {
  margin-top: 12px;
  font-size: 12px;
  color: #5b4a86;
  text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .vaultspin-container {
    padding: 24px 12px;
    margin: 20px auto;
  }
  .vaultspin-wheel-wrapper {
    max-width: 100%;
  }
  .vaultspin-pointer {
    top: -12px;                     /* slightly tighter on mobile */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #5a2ae8; /* still DOWN */
  }
  .vaultspin-center {
    width: 70px;
    height: 70px;
  }
  #vs_spin {
    width: 92%;
    font-size: 15px;
  }
  #vs_msg {
    font-size: 14px;
  }
  .vaultspin-history h3 {
    font-size: 18px;
  }
}
/* ========== VAULT LOGIN SCREEN (EpicTCGVault Edition) ========== */

.vaultspin-login-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: radial-gradient(circle at 50% 20%, #fefcf6 0%, #f7f7f9 60%, #eaeaf0 100%);
  padding: 40px 20px;
}

.vaultspin-login-card {
  background: #fff;
  border-radius: 24px;
  padding: 50px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(17, 31, 61, 0.12), 0 0 0 3px rgba(255, 185, 30, 0.05);
  animation: vaultCardFadeUp 0.8s ease forwards;
}

/* Subtle moving light effect around edges */
.vaultspin-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(255, 205, 90, 0.35), rgba(255, 190, 30, 0.1), rgba(255, 205, 90, 0.35));
  opacity: 0.25;
  animation: vaultGlow 5s linear infinite;
  z-index: 0;
}

.vaultspin-logo-wrapper {
  background: radial-gradient(circle at center, #112244 0%, #1b2b52 100%);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 25px rgba(17, 31, 61, 0.25);
  border: 4px solid #ffbe30;
  z-index: 1;
  position: relative;
}

.vaultspin-login-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 6px rgba(255, 190, 30, 0.7));
}

.vaultspin-login-card h2 {
  color: #12213d;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}

.vaultspin-login-card p {
  color: #2c2c35;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  z-index: 1;
  position: relative;
}

.vaultspin-login-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffbe30, #ff9900);
  color: #12213d;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 190, 30, 0.3);
  z-index: 1;
  position: relative;
}
.vaultspin-login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 190, 30, 0.5);
}

.vaultspin-login-note {
  font-size: 14px;
  color: #414a60;
  margin-top: 15px;
  z-index: 1;
  position: relative;
}
.vaultspin-login-note a {
  color: #ffb930;
  font-weight: 700;
  text-decoration: none;
}
.vaultspin-login-note a:hover {
  text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes vaultGlow {
  0% { transform: rotate(0deg); opacity: 0.25; }
  50% { opacity: 0.45; }
  100% { transform: rotate(360deg); opacity: 0.25; }
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .vaultspin-login-card {
    padding: 36px 24px;
  }
  .vaultspin-login-btn {
    width: 100%;
    font-size: 15px;
  }
}

/* Fix label spacing and center logo overlap */
.vault-spin .wheel-label {
  transform: translateY(12px); /* pushes text outward */
  text-align: center;
  font-size: 13px; /* adjust if needed */
}

.vault-spin .wheel-center {
  transform: scale(0.85); /* makes logo slightly smaller */
  z-index: 10;
}

.vault-spin .wheel-label text {
  dominant-baseline: middle;
}
