:root {
  --white: #ffffff;
  --nav: #dfe8f3;
  --blue: #203a63;
  --navy: #14233f;
  --navy-2: #0b1730;
  --gold: #f6c453;
  --orange: #e95016;
  --orange-dark: #c93f0f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #d7dde6;
  --shadow: 0 18px 46px rgba(20, 35, 63, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: var(--nav);
  border-bottom: 1px solid rgba(20, 35, 63, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 112px;
  height: 72px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  flex: 1;
}

.main-nav a,
.secondary-link {
  color: #07101f;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--orange);
  content: "";
  transition: width 160ms ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta,
.primary-cta,
.card-cta,
.submit-btn,
.back-btn,
.mobile-sticky-cta {
  border: 0;
  color: var(--white);
  font-weight: 900;
  background: var(--orange);
  box-shadow: 0 10px 20px rgba(233, 80, 22, 0.25);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.header-cta:hover,
.primary-cta:hover,
.card-cta:hover,
.submit-btn:hover,
.back-btn:hover,
.mobile-sticky-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(233, 80, 22, 0.28);
}

.header-cta {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  white-space: nowrap;
}

.notice-bar {
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  color: var(--gold);
  background: var(--blue);
  font-weight: 900;
  text-align: center;
}

.hero {
  position: relative;
  min-height: clamp(520px, 62vw, 720px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 23, 48, 0.9) 0%, rgba(11, 23, 48, 0.68) 43%, rgba(11, 23, 48, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 23, 48, 0.1), rgba(11, 23, 48, 0.54));
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  color: var(--white);
  padding: 78px 0 96px;
}

.eyebrow,
.section-kicker,
.modal-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
}

.section-kicker,
.modal-kicker {
  color: #b86f00;
}

.hero .eyebrow,
.bonus-band .section-kicker {
  color: var(--gold);
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-cta {
  min-height: 58px;
  padding: 0 34px;
  border-radius: 8px;
  font-size: 18px;
}

.secondary-link {
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.bonus-inner h2,
.modal h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.highlight-grid,
.game-grid {
  display: grid;
  gap: 22px;
}

.highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 35, 63, 0.08);
}

.highlight-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffe6a6, var(--gold));
  font-weight: 900;
}

.highlight-item h3,
.game-body h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: 0;
}

.highlight-item p,
.game-body p,
.bonus-inner p,
.faq-list p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 600;
}

.games {
  padding-top: 30px;
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-body {
  padding: 22px;
}

.card-cta {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 8px;
}

.bonus-band {
  margin: 20px 0;
  padding: 70px 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(20, 35, 63, 0.97), rgba(32, 58, 99, 0.9)),
    radial-gradient(circle at 76% 20%, rgba(246, 196, 83, 0.34), transparent 34%);
}

.bonus-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.bonus-inner h2,
.bonus-inner p {
  color: var(--white);
}

.bonus-inner p {
  max-width: 720px;
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 35, 63, 0.06);
}

.faq-list summary {
  padding: 20px 22px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  padding: 0 22px 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 38px 18px 110px;
  color: var(--white);
  background: var(--navy-2);
}

.site-footer img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.mobile-sticky-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 25;
  display: none;
  min-height: 54px;
  border-radius: 8px;
  font-size: 17px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 16, 31, 0.72);
}

.modal-backdrop.is-open {
  display: grid;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.modal h2 {
  margin-bottom: 22px;
  font-size: 32px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: #eef3f8;
  font-size: 28px;
  line-height: 1;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cdd6e3;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
  transition:
    border 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(32, 58, 99, 0.14);
}

.phone-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 50px;
  border: 1px solid #cdd6e3;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  transition:
    border 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.phone-field:focus-within {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(32, 58, 99, 0.14);
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 122px;
  padding: 0 14px;
  color: var(--navy);
  background: #eef3f8;
  border-right: 1px solid #cdd6e3;
  font-weight: 900;
  white-space: nowrap;
}

.whatsapp-prefix {
  min-width: 156px;
}

.flag-img {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(20, 35, 63, 0.12);
}

.whatsapp-prefix-img {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(20, 35, 63, 0.18);
}

.phone-field input[type="tel"] {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone-field input[type="tel"]:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  font-size: 15px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.field-hint {
  min-height: 20px;
  color: #8a1f11;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.field-hint.is-valid {
  color: #15803d;
}

.form-error {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #8a1f11;
  background: #ffe8df;
  font-weight: 800;
  line-height: 1.5;
}

.form-error.is-visible {
  display: block;
}

.submit-btn {
  min-height: 52px;
  border-radius: 8px;
}

.back-btn {
  min-height: 52px;
  border-radius: 8px;
  color: var(--navy);
  background: #e8eef6;
  box-shadow: none;
}

.back-btn:hover {
  color: var(--white);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.success-modal {
  text-align: center;
}

.confirm-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 18px;
}

.confirm-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.confirm-list span {
  color: var(--muted);
  font-weight: 800;
}

.confirm-list strong {
  color: var(--navy);
  font-size: 18px;
  text-align: right;
  word-break: break-word;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 999px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffe9a8, var(--gold));
  font-size: 34px;
  font-weight: 900;
}

.success-modal p {
  margin: 8px 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

.success-modal .submit-btn {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 82px;
    gap: 14px;
  }

  .main-nav {
    display: none;
  }

  .brand img {
    width: 92px;
    height: 58px;
  }

  .header-cta {
    margin-left: auto;
  }

  .highlight-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .bonus-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    min-height: 74px;
    padding: 8px 14px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .notice-bar {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(11, 23, 48, 0.88) 0%, rgba(11, 23, 48, 0.72) 58%, rgba(11, 23, 48, 0.28) 100%),
      linear-gradient(90deg, rgba(11, 23, 48, 0.44), rgba(11, 23, 48, 0.16));
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 42px 0 160px;
  }

  .hero h1 {
    font-size: 43px;
    max-width: 440px;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.7;
  }

  .primary-cta {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    font-size: 16px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 54px 0;
  }

  .section-heading h2,
  .bonus-inner h2 {
    font-size: 32px;
  }

  .highlight-item,
  .game-body {
    padding: 20px;
  }

  .bonus-band {
    padding: 54px 14px;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 100px;
  }

  .mobile-sticky-cta {
    display: block;
  }

  .modal {
    padding: 26px 18px;
  }

  .phone-prefix {
    min-width: 108px;
    padding: 0 10px;
  }

  .whatsapp-prefix {
    min-width: 138px;
  }

  .confirm-list div,
  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .confirm-list div {
    align-items: flex-start;
  }

  .confirm-list strong {
    text-align: left;
  }
}
