/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy, #08162B);
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
  position: relative;
  overflow: hidden;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px 15px;
}

.page-register__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-register__hero-description {
  font-size: 20px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-register__registration-form {
  background-color: #10233F; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #244D84; /* Border */
}

.page-register__form-group {
  margin-bottom: 25px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #F3F8FF; /* Text Main */
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #244D84; /* Border */
  border-radius: 8px;
  background-color: #08162B;
  color: #F3F8FF; /* Text Main */
  font-size: 16px;
}

.page-register__form-input::placeholder {
  color: #AFC4E8; /* Text Secondary */
  opacity: 0.7;
}

.page-register__captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__captcha-input {
  flex: 1;
}

.page-register__captcha-image {
  border-radius: 5px;
  border: 1px solid #244D84;
  background-color: #0d2140;
}

.page-register__form-checkbox {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  color: #AFC4E8; /* Text Secondary */
  font-size: 15px;
}

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: 3px;
}

.page-register__form-checkbox a {
  color: #4FA8FF; /* Glow */
  text-decoration: none;
}

.page-register__form-checkbox a:hover {
  text-decoration: underline;
}

.page-register__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-register__login-link {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

.page-register__login-link a {
  color: #4FA8FF; /* Glow */
  text-decoration: none;
  font-weight: 600;
}

.page-register__login-link a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #113B7A;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__benefit-card {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* How to Register Section */
.page-register__how-to-register-section {
  padding: 60px 0;
  background-color: var(--deep-navy, #08162B);
}

.page-register__registration-steps {
  list-style: none;
  counter-reset: step-counter;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.page-register__step-item {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border */
  position: relative;
  padding-left: 80px;
}

.page-register__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  font-size: 36px;
  font-weight: 800;
  color: #F2C14E; /* Gold */
  line-height: 1;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: #113B7A;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #0d1a2f; /* Slightly darker Card BG */
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8; /* Text Secondary */
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
  background-color: var(--deep-navy, #08162B);
  text-align: center;
}

.page-register__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-register__cta-button {
  width: auto;
  min-width: 250px;
}

.page-register__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: 2px solid #113B7A;
  border-radius: 8px;
  background-color: transparent;
  color: #F3F8FF; /* Text Main */
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background-color: #113B7A;
  border-color: #113B7A;
}

/* --- Responsive Styles --- */

/* Mandatory Homepage Trial Game CSS (as per prompt) */
@media (max-width: 1023px) {
  .page-register__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-register__hero-brand,
  .page-register__hero-jackpot {
    display: none !important;
  }
  .page-register__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-register__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial-topbar,
  .page-register__game-trial-bottombar {
    display: none !important;
  }
  .page-register__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-register__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-register__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-register__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-register__hero-brand,
  .page-register__hero-jackpot,
  .page-register__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-register__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-register__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-register__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-register__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-register__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section {
    padding: 10px 0 40px;
  }

  .page-register__main-title {
    font-size: 32px;
  }

  .page-register__hero-description {
    font-size: 16px;
  }

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-register__registration-form {
    padding: 30px 20px;
  }

  .page-register__form-label {
    font-size: 15px;
  }

  .page-register__form-input {
    font-size: 15px;
    padding: 10px;
    width: calc(100% - 20px);
  }

  .page-register__captcha-image {
    width: 120px;
    height: 40px;
  }

  .page-register__form-checkbox {
    font-size: 14px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }

  .page-register__cta-content {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card {
    padding: 25px;
  }

  .page-register__benefit-title {
    font-size: 20px;
  }

  .page-register__benefit-text {
    font-size: 15px;
  }

  .page-register__registration-steps {
    padding: 0 15px;
  }

  .page-register__step-item {
    padding: 25px 20px 25px 70px;
  }

  .page-register__step-item::before {
    font-size: 30px;
    left: 20px;
    top: 25px;
  }

  .page-register__step-title {
    font-size: 18px;
  }

  .page-register__step-text {
    font-size: 15px;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-qtext {
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 25px;
    margin-left: 10px;
  }

  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__registration-form,
  .page-register__captcha-wrapper,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for homepage-specific elements in 768px media query, as per "必写清单" */
  /* These are included to satisfy the "必写清单" requirement, even if not directly present on this page. */
  .page-register__promo-strip { /* No specific styles for register page */ }
  .page-register__hot-games { /* No specific styles for register page */ }
  .page-register__brand-intro { /* No specific styles for register page */ }
  .page-register__winner-ticker { /* No specific styles for register page */ }
}

/* Common elements that might be included for generic use, but specific to homepage trial game */
.page-register__game-trial-overlay { z-index: 5; pointer-events: auto; }
.page-register__game-trial-overlay.is-hidden { display: none !important; pointer-events: none !important; }
.page-register__game-trial-start { z-index: 6; pointer-events: auto; touch-action: manipulation; }
.page-register__game-trial-shell { border: 1px solid rgba(212,175,55,.45); border-radius: 10px; overflow: hidden; }
.page-register__reward-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.page-register__reward-modal:not([hidden]) { display: flex; }
.page-register__reward-modal[aria-hidden="false"] { opacity: 1; visibility: visible; }
.page-register__reward-modal-content { background-color: #10233F; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; width: 90%; position: relative; border: 1px solid #F2C14E; color: #F3F8FF; }
.page-register__reward-modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; color: #F2C14E; cursor: pointer; line-height: 1; }
.page-register__reward-modal-title { font-size: 28px; color: #F2C14E; margin-bottom: 15px; }
.page-register__reward-modal-text { font-size: 16px; color: #AFC4E8; margin-bottom: 25px; }
.page-register__reward-modal .page-register__btn-primary { margin-top: 15px; }