/* ==================== CSS 变量系统 ==================== */
:root {
  /* 颜色系统 */
  --color-primary: #ffd700;
  --color-yellow: #ffeb3b;
  --color-bg-dark: #0a0a0a;
  --color-bg-light: #1a1a1a;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.75);
  --color-overlay: rgba(0, 0, 0, 0.6);

  /* 字体系统 */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xl: clamp(2.2rem, 8vw, 4rem);
  --font-size-lg: clamp(1.5rem, 5vw, 2.5rem);
  --font-size-md: clamp(1rem, 3vw, 1.25rem);
  --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);

  /* 间距系统 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 11rem;

  /* 动画时长 */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;

  /* 层级 */
  --z-navbar: 1000;
  --z-cta: 999;
  --z-indicator: 998;
}

/* ==================== 全局重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: #000000;
  color: var(--color-text-primary);
  overflow: hidden;
  position: relative;
  height: 100vh;
  width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  outline: none;
}

/* ==================== 固定顶部导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  padding: var(--spacing-sm) var(--spacing-md);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  color: var(--color-text-primary);
}

.logo-highlight {
  color: var(--color-yellow);
}

.menu-btn {
  background: transparent;
  padding: var(--spacing-xs);
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal);
}

.menu-btn:active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn:active span:nth-child(2) {
  opacity: 0;
}

.menu-btn:active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== 全屏滑动容器 ==================== */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条 */
.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==================== 页面通用样式 ==================== */
.page {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(60px + var(--spacing-md)) var(--spacing-md) calc(100px + var(--spacing-md));
  overflow: hidden;
}

.page-content {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) ease-out, transform var(--duration-slow) ease-out;
}

.page-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 文字内容样式 ==================== */
.text-content {
  text-align: left;
  margin: var(--spacing-lg) 0;
}

.text-top {
  margin-bottom: var(--spacing-md);
}

.text-bottom {
  margin-top: var(--spacing-md);
}

.headline {
  font-size: var(--font-size-xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.highlight {
  color: var(--color-yellow);
  position: relative;
  display: inline-block;
}

.subheadline {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: 1.5;
}

/* ==================== Page 01 样式 ==================== */
.page-01 {
  position: relative;
  justify-content: flex-end;
  /* 调整标题距底部约1/2位置 */
  padding-bottom: 32vh;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-bg .hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.5) 65%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 2; /* Above images, below content */
  pointer-events: none;
}

.page-01 .page-content {
  position: relative;
  z-index: 3; /* Above images (1) and overlay (2) */
  width: 100%;
  max-width: 500px;
}

/* ==================== Page 02 样式 ==================== */
.page-02 {
  justify-content: space-between;
}

.drama-grid {
  width: 100%;
  max-width: 450px;
  margin: 0 auto var(--spacing-lg);
  border-radius: 16px;
  overflow: hidden;
}

.drama-grid img {
  width: 100%;
  height: auto;
}

/* ==================== Page 03 样式 ==================== */
.page-03 {
  position: relative;
  justify-content: space-between;
}

.page-03 .poster-wall {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-03 .poster-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.page-03 .page-content {
  position: relative;
  z-index: 2;
}

/* ==================== Page 04 样式 ==================== */
.page-04 {
  position: relative;
  justify-content: flex-start;
  align-items: flex-start;
  /* 调整标题距顶部约1/5位置 */
  padding-top: 20vh;
}

.page-04 .page-content {
  position: relative;
  z-index: 2;
}

.app-icons {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.app-icons img {
  width: 120%;
  max-width: none;
  height: auto;
  display: block;
}

.page-mask-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* Increased height */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%); /* Simpler gradient */
  z-index: 10; /* Force on top of icons */
  pointer-events: none;
}

/* ==================== Page 05 样式 ==================== */
.page-05 {
  align-items: flex-start;
  padding-top: 12vh;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
}

.feature-item {
  text-align: left;
}

.feature-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  line-height: 1.3;
}

/* ==================== 联系信息样式 ==================== */
.contact-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-xxl) var(--spacing-md); /* Add padding for spacing */
  text-align: left;
  color: var(--color-text-secondary);
  z-index: 10;
}

.contact-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-email {
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  font-family: monospace; /* Optional: makes email look technical/distinct */
}

.contact-links {
  font-size: var(--font-size-sm);
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
  margin-bottom: 4px;
}

.contact-links a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  transition: color var(--duration-fast);
}

.contact-links a:hover {
  color: var(--color-text-primary);
}

.separator {
  color: var(--color-text-secondary);
  font-size: 0.8em;
}

@media (max-width: 375px) {
  .contact-info {
    margin-top: var(--spacing-lg);
  }
}

/* ==================== 固定底部按钮 ==================== */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cta);
  padding: var(--spacing-sm);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.cta-button {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px;
  background: linear-gradient(135deg, #222225 30%, #101011 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

/* Streaming light effect */
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  padding-bottom: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 50%,
    #7a5cff 85%,
    #00ffd5 90%,
    #ff00c8 95%,
    transparent 100%
  );
  filter: blur(6px) drop-shadow(0 0 12px rgba(122, 92, 255, 0.5));
  animation: halo-run 4.6s linear infinite;
  z-index: -2;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: #1a1a1a;
  z-index: -1;
}

@keyframes halo-run {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cta-text {
  font-size: 20px;
  color: var(--color-text-primary);
  font-weight: 700;
}

.cta-subtext {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ==================== 页面指示器 ==================== */
.page-indicator {
  position: fixed;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-indicator);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all var(--duration-normal);
  cursor: pointer;
}

.dot.active {
  background-color: var(--color-yellow);
  height: 18px;
  border-radius: 3px;
}

/* ==================== 响应式设计 ==================== */
@media (min-width: 768px) {
  .navbar-content,
  .page-content,
  .cta-button {
    max-width: 600px;
  }

  .hero-image,
  .drama-grid,
  .poster-wall,
  .app-icons {
    max-width: 500px;
  }
}

@media (max-width: 375px) {
  .navbar {
    padding: var(--spacing-sm);
  }

  .page {
    padding: calc(50px + var(--spacing-sm)) var(--spacing-sm) calc(90px + var(--spacing-sm));
  }
}

/* ==================== 性能优化 ==================== */
.page-content,
.cta-button,
.dot {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== 弹窗样式 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: flex-end; /* Changed from center to flex-end */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
  padding: 0; /* Remove padding to flush with bottom */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(180deg, #ebeffe 0%, #ffffff 100%);
  width: 100%;
  max-width: 500px; /* Increased slightly for better desktop view */
  border-radius: 24px 24px 0 0; /* Rounded top only */
  padding: 32px 24px 40px; /* More padding at bottom */
  position: relative;
  transform: translateY(100%); /* Slide from bottom */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth spring-like easing */
  text-align: center;
  margin: 0 auto; /* Center horizontally if max-width applies */
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-title {
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 4px; /* Reduced spacing */
  line-height: 1.2;
  text-align: left; /* Component alignment */
}

.modal-subtitle {
  font-family: var(--font-family);
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px; /* Reduced spacing */
  text-align: left; /* Component alignment */
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background-color: #ffffff;
  font-size: 16px;
  color: #0f172a;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}

.modal-input::placeholder {
  color: #cbd5e1;
}

.modal-input:focus {
  border-color: #1a56db;
}

.modal-submit-btn {
  width: 100%;
  padding: 8px;
  background-color: #1a56db;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 1px;
  transition: background-color 0.2s, transform 0.1s;
}

.modal-submit-btn:active {
  transform: scale(0.98);
}

.modal-submit-btn .btn-text {
  font-size: 18px;
  font-weight: 700;
}

.modal-submit-btn .btn-subtext {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.modal-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  text-align: left;
}

.radio-wrapper {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.radio-wrapper input {
  position: absolute;
  top: -5px; /* Increase hit area */
  left: -5px; /* Increase hit area */
  width: 24px; /* Larger than visual 14px */
  height: 24px; /* Larger than visual 14px */
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.custom-radio {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px; /* Matched 14px */
  height: 14px; /* Matched 14px */
  border: 1.5px solid #94a3b8; /* Slightly thinner border for small size */
  border-radius: 50%;
  z-index: 1;
  background: transparent;
  transition: all 0.2s;
  box-sizing: border-box;
  pointer-events: none; /* Let clicks pass through */
}

.radio-wrapper input:checked ~ .custom-radio {
  border-color: #64748b;
}

.radio-wrapper input:checked ~ .custom-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; /* Adjusted inner size */
  height: 8px; /* Adjusted inner size */
  background-color: #64748b;
  border-radius: 50%;
}

.agreement-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  cursor: pointer;
}

.agreement-text a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.input-error-msg {
  display: none;
  color: #ff0000;
  font-size: 12px;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 8px;
  width: 100%;
}

@media (max-width: 375px) {
  .modal-content {
    padding: 20px;
  }
}

/* ==================== 全屏菜单样式 ==================== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px); /* Add glass effect */
  -webkit-backdrop-filter: blur(10px);
  z-index: 2001; /* Above modal and navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.active .menu-nav {
  transform: translateY(0);
}

.menu-link {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.menu-link:hover,
.menu-link:active {
  color: #fff;
  opacity: 0.8;
}

/* ==================== Legal/Content Pages ==================== */
body.scrolling-page {
  overflow-y: auto;
  height: auto;
  padding-bottom: var(--spacing-xxl);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(60px + var(--spacing-md)) var(--spacing-md) var(--spacing-xl);
}

.legal-container h1 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.legal-container h2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.legal-container p,
.legal-container li {
  font-size: 1rem; /* Standard readable size */
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.legal-container ul {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-container li {
  margin-bottom: var(--spacing-xs);
}

.legal-container a {
  color: var(--color-yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--duration-fast);
}

.legal-container a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .legal-container h1 {
    font-size: 2.5rem; /* Slightly smaller on mobile if needed, but var handles clamps */
  }
}

/* ==================== 转盘弹窗样式 ==================== */
.spin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spin-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spin-modal-overlay.active .spin-content {
  transform: scale(1);
}

.spin-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  letter-spacing: -0.02em;
  text-align: center;
}

.wheel-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 60px rgba(0, 0, 0, 0.6);
}

.wheel-pointer {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #fff;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.3));
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1);
  border: 4px solid #fff;
  background: conic-gradient(
    var(--color-primary) 0deg 40deg,
    #222 40deg 80deg,
    #000 80deg 120deg,
    var(--color-primary) 120deg 160deg,
    #222 160deg 200deg,
    #000 200deg 240deg,
    var(--color-primary) 240deg 280deg,
    #222 280deg 320deg,
    #000 320deg 360deg
  );
}

.wheel-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}

.segment-text {
  position: absolute;
  left: -50px; /* Center text horizontally relative to transform point */
  top: -50px; /* Center text vertically */
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Rotate to angle + offset to center of wedge (20deg) + move out radius + rotate text upright */
  transform: rotate(calc(var(--i) * 40deg + 20deg)) translateY(-110px);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.wheel-segment:nth-child(3n + 1) .segment-text {
  color: #000;
}
.wheel-segment:nth-child(3n + 2) .segment-text {
  color: #fff;
}
.wheel-segment:nth-child(3n + 3) .segment-text {
  color: #fff;
}

.spin-btn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #e0e0e0);
  border: 4px solid #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  z-index: 5;
  font-weight: 900;
  font-size: 16px;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}

.spin-btn-center:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.spin-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
