/* 登录页转盘 — 与 login-bg 共用背景，无独立主背景 */
.login-page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.login-wheel-area {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 4px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.login-wallet-area {
  flex: 0 0 auto;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(10, 14, 26, 0.92) 65%, transparent);
}

.login-wallet-card {
  min-width: auto !important;
  width: 100%;
  margin: 0 !important;
  padding: 20px 18px 22px !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.login-wallet-card .login-logo { font-size: 24px; margin-bottom: 4px; }
.login-wallet-card .login-subtitle { font-size: 13px; margin-bottom: 16px; }
.login-wallet-card .login-status { margin-bottom: 12px; }
.login-wallet-card .login-info { margin-top: 12px; font-size: 11px; line-height: 1.5; }

.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 12px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  width: 100%;
}

.wheel-title-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(130, 71, 229, 0.35);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary, #e8e8f0);
  outline: none;
  transition: border-color 0.3s;
  background: rgba(255, 255, 255, 0.06);
}

.wheel-title-input:focus { border-color: rgba(155, 109, 255, 0.7); }

.wheel-action-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.wheel-action-btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(245, 87, 108, 0.55);
  border-radius: 10px;
  background: rgba(245, 87, 108, 0.12);
  color: #ff8fa3;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wheel-action-btn:active {
  background: rgba(245, 87, 108, 0.85);
  color: #fff;
}

.wheel-wrapper {
  position: relative;
  width: min(calc(100vw - 32px), 340px);
  height: min(calc(100vw - 32px), 340px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wheel-pointer-wrapper {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.wheel-pointer-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #ff4757;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.wheel-pointer-dot {
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wheel-canvas-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#wheelCanvas {
  width: 100%;
  height: 100%;
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wheel-center-btn:active { transform: translate(-50%, -50%) scale(0.95); }

.wheel-center-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.wheel-center-btn span {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wheel-result-display {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.85) 0%, rgba(245, 87, 108, 0.85) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
  box-shadow: 0 4px 16px rgba(245, 87, 108, 0.25);
  width: 100%;
}

.wheel-result-display.show {
  opacity: 1;
  transform: translateY(0);
}

.wheel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.wheel-modal-overlay.show { display: flex; }

.wheel-modal-content {
  background: var(--bg-card, #1a1f35);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 20px;
  max-width: 460px;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: wheelModalIn 0.3s ease;
}

@keyframes wheelModalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.wheel-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wheel-modal-header h2 {
  font-size: 18px;
  color: var(--text-primary, #e8e8f0);
}

.wheel-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #aaa);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wheel-theme-card {
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wheel-theme-card:active {
  border-color: #f5576c;
  background: rgba(245, 87, 108, 0.15);
}

.wheel-theme-card .wheel-theme-icon { font-size: 28px; margin-bottom: 6px; }
.wheel-theme-card .wheel-theme-name { font-size: 13px; font-weight: 600; color: var(--text-primary, #e8e8f0); }
.wheel-theme-card .wheel-theme-desc { font-size: 11px; color: var(--text-secondary, #888); margin-top: 4px; }

.wheel-custom-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.wheel-custom-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wheel-custom-option-row input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary, #e8e8f0);
}

.wheel-custom-option-row input[type="color"] {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

.wheel-custom-delete-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-custom-add-btn {
  width: 100%;
  padding: 10px;
  border: 1px dashed rgba(245, 87, 108, 0.6);
  border-radius: 10px;
  background: rgba(245, 87, 108, 0.08);
  color: #ff8fa3;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .login-wheel-area { padding: 8px 12px 2px; }
  .login-wallet-area { padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .login-wallet-card { padding: 16px 14px 18px !important; }
  .login-wallet-card .login-logo { font-size: 22px; }
  .wheel-title-input { font-size: 15px; padding: 9px 12px; }
  .wheel-action-btn { font-size: 13px; padding: 9px 8px; }
}
