body.astrology-game-page {
  --radius: 14px;
  --astro-gap: 10px;
  --primary: #e6007a;
  background: #ffcc99 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal !important;
  padding: 0 var(--astro-gap) !important;
  overflow-x: hidden;
}

body.astrology-game-page .logo {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.astro-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.astro-box {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  margin-bottom: 10px;
  padding: 14px 12px;
  text-align: center;
}

.astro-box.astro-hero-box {
  margin-top: 10px;
}

.astro-hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #e6007a;
}

.astro-hero-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.45;
}

.astro-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.astro-cal-icon {
  font-size: 18px;
  line-height: 1;
}

.astro-date-text {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.astro-date-hint {
  margin: 0;
  font-size: 11px;
  color: #222;
  font-weight: 500;
}

.astro-sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.astro-sign-card {
  width: 100%;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffdfc4 0%, #fff8f1 100%);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s ease;
}

.astro-sign-card.is-revealed {
  background: linear-gradient(180deg, #ffdfc4 0%, #fff8f1 100%);
  cursor: default;
  transform: scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 20px rgba(230, 0, 122, 0.14);
}

.astro-sign-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.astro-sign-card.is-revealed .astro-sign-icon {
  animation: astroSignIconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.astro-sign-name {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.astro-sign-hindi {
  font-weight: 800;
  color: #111;
}

.astro-sign-slash {
  font-weight: 500;
  color: #666;
}

.astro-sign-english {
  font-size: 13px;
  font-weight: 500;
  color: #777;
}

.astro-sign-hint {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  line-height: 1.35;
  max-height: 36px;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.28s ease, margin 0.28s ease;
}

.astro-sign-card.is-revealed .astro-sign-hint {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.astro-sign-result {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.32s ease 0.06s,
    margin-top 0.32s ease;
}

.astro-sign-result[hidden] {
  display: none !important;
}

.astro-sign-card.is-revealed .astro-sign-result {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
  padding: 8px;
}

.astro-sign-result-row {
  display: flex;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.astro-lucky-box {
  flex: 1 1 50%;
  background: #f8f0ff;
  border: 1px solid #ead1f0;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
}

.astro-sign-card.is-revealed .astro-lucky-box {
  animation: astroLuckyBoxReveal 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.astro-sign-card.is-revealed .astro-lucky-box:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes astroSignIconPop {
  0% {
    transform: scale(0.82) rotate(-8deg);
  }

  60% {
    transform: scale(1.12) rotate(4deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes astroLuckyBoxReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.astro-lucky-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.astro-lucky-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #e6007a;
  line-height: 1.15;
}

.astro-numerology-box {
  text-align: center;
}

.astro-numerology-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4f8cff 0%, #2563eb 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.astro-numerology-icon span {
  display: block;
}

.astro-numerology-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.astro-numerology-sub {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  text-align: center;
  line-height: 1.45;
}

.astro-numerology-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.astro-name-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 29, 29, 0.25);
  border-radius: 999px;
  background: #fff8f1;
  padding: 12px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  outline: none;
  text-align: center;
}

.astro-name-input::placeholder {
  color: #888;
}

.astro-reveal-name-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5f8 0%, #ffe3ea 100%);
  color: #e6007a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 0, 122, 0.12);
}

.astro-name-result {
  margin-top: 16px;
  padding-top: 4px;
}

.astro-name-result-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #666;
}

.astro-lucky-circle {
  position: relative;
  overflow: hidden;
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #d8008c 0%, #8e2de2 100%);
  color: #fff;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(142, 45, 226, 0.35);
  transition: transform 0.2s ease;
}

.astro-lucky-circle::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.08) 56%,
    transparent 65%
  );
  transform: translateX(-130%) rotate(18deg);
  animation: astroLuckyShine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.astro-lucky-number {
  position: relative;
  z-index: 2;
}

@keyframes astroLuckyShine {
  0% {
    transform: translateX(-130%) rotate(18deg);
  }

  45%,
  100% {
    transform: translateX(130%) rotate(18deg);
  }
}

.astro-lucky-circle.is-spinning {
  animation: astroLuckySpinPulse 0.16s ease-in-out infinite alternate;
}

.astro-lucky-circle.is-final {
  animation: astroLuckyFinalPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes astroLuckySpinPulse {
  from {
    transform: scale(0.96);
    box-shadow: 0 6px 18px rgba(142, 45, 226, 0.28);
  }

  to {
    transform: scale(1.03);
    box-shadow: 0 10px 26px rgba(142, 45, 226, 0.42);
  }
}

@keyframes astroLuckyFinalPop {
  0% {
    transform: scale(0.75);
    opacity: 0.7;
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.astro-reveal-name-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.astro-name-result-text {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.55;
}

.astro-name-result-text strong {
  color: #111;
  font-weight: 800;
}

.astro-footer {
  margin: 10px 0 100px;
}

.astro-footer-info {
  text-align: left;
}

.astro-footer-info-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.astro-footer-info p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}

.astro-footer-info p:last-child {
  margin-bottom: 0;
}

.astro-footer-zone {
  text-align: center;
}

.astro-footer-zone-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.astro-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.astro-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.astro-footer-zone-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

body.astrology-game-page .astro-refresh-btn,
body.astrology-game-page .vip-zone-btn {
  position: fixed;
  bottom: 12px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 29, 29, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.astrology-game-page .astro-refresh-btn {
  right: 12px;
  left: auto;
  transform: none;
  background: #fff8f1;
  color: #111;
}

body.astrology-game-page .vip-zone-btn {
  left: 12px;
  right: auto;
  transform: none;
  background: #ff0016;
  color: #fff;
  border-color: #ff0016;
}

@media (prefers-reduced-motion: reduce) {
  .astro-sign-card,
  .astro-sign-result,
  .astro-sign-hint,
  .astro-sign-icon,
  .astro-lucky-box {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .astro-sign-card.is-revealed .astro-lucky-box {
    opacity: 1;
  }
}

@media screen and (max-width: 480px) {
  .astro-hero-title {
    font-size: 18px;
  }

  .astro-sign-name {
    font-size: 13px;
  }

  .astro-sign-grid {
    gap: 8px;
  }
}
