:root {
  --black: #050505;
  --dark: #0B0B0B;
  --panel: rgba(15, 15, 15, 0.82);
  --gold: #D8B76A;
  --gold-strong: #C99A3D;
  --gold-light: #FFE8A3;
  --bronze: #8A5B22;
  --text: #F6E8C8;
  --muted: #AFA38C;
  --line: rgba(216, 183, 106, 0.34);
  --glass: rgba(12, 12, 12, 0.72);
  --shadow-gold: 0 0 34px rgba(216, 183, 106, 0.22);
  --container: 1180px;
  --header-height: 76px;
  --font-body: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 50% -10%, rgba(216, 183, 106, 0.2), transparent 34rem),
    radial-gradient(circle at 14% 22%, rgba(138, 91, 34, 0.18), transparent 26rem),
    linear-gradient(180deg, var(--black), var(--dark) 42%, #030303);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
  padding: 0 clamp(18px, 4vw, 68px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(216, 183, 106, 0.26));
}

.brand__text {
  display: grid;
  gap: 0;
}

.brand strong,
.footer-brand strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand small,
.footer-brand small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.28em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.desktop-nav a {
  transition: color 160ms ease, text-shadow 160ms ease;
}

.desktop-nav a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(216, 183, 106, 0.28);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  color: #180f04;
  border-color: rgba(255, 232, 163, 0.52);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 48%, var(--gold-strong));
  box-shadow: 0 12px 30px rgba(201, 154, 61, 0.2);
  font-weight: 700;
}

.btn--gold:hover,
.promo-card:hover .btn--gold {
  box-shadow: 0 0 0 1px rgba(255, 232, 163, 0.42), var(--shadow-gold);
}

.btn--ghost,
.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.btn--outline:hover,
.btn--ghost:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.btn--large {
  min-height: 48px;
  padding-inline: 26px;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.hamburger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold-light);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 12px auto;
  z-index: 90;
  display: none;
  padding: 16px;
  background: rgba(5, 5, 5, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(216, 183, 106, 0.12);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - var(--header-height));
  padding: clamp(72px, 8vw, 128px) clamp(18px, 5vw, 84px) 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% 8% auto;
  height: 74%;
  opacity: 0.72;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(216, 183, 106, 0.13), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 128px, rgba(216, 183, 106, 0.12) 129px 130px),
    linear-gradient(180deg, transparent 0 14%, rgba(216, 183, 106, 0.12) 15% 15.4%, transparent 16%);
  mask-image: radial-gradient(ellipse at center, black 0 56%, transparent 72%);
}

.hero__ornament {
  position: absolute;
  top: 18%;
  width: min(19vw, 260px);
  height: min(46vw, 640px);
  border: 1px solid rgba(216, 183, 106, 0.2);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.74;
}

.hero__ornament--left {
  left: -5%;
}

.hero__ornament--right {
  right: -5%;
}

.hero__content,
.hero__stage {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.hero__logo {
  width: clamp(86px, 10vw, 132px);
  margin-bottom: 22px;
  filter: drop-shadow(0 0 24px rgba(216, 183, 106, 0.34));
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 1.04;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-shadow: 0 0 34px rgba(216, 183, 106, 0.22);
}

.hero__subtitle {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.42em;
}

.hero__tagline {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero-dots button {
  width: 36px;
  height: 6px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 183, 106, 0.28);
}

.hero-dots button.is-active {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.hero__stage {
  align-self: center;
  min-height: 390px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 232, 163, 0.08), transparent 42%),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 163, 0.04), 0 28px 80px rgba(0, 0, 0, 0.4);
}

.hero-slide {
  position: absolute;
  inset: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100% - 56px);
  padding: 34px;
  opacity: 0;
  transform: translateY(16px);
  border: 1px solid rgba(216, 183, 106, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 232, 163, 0.16), transparent 13rem),
    linear-gradient(145deg, rgba(18, 18, 18, 0.72), rgba(5, 5, 5, 0.9));
  transition: opacity 260ms ease, transform 260ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide span {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.18em;
}

.hero-slide strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.1;
}

.hero-slide small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.section {
  width: min(100% - 36px, var(--container));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 104px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: 0.08em;
}

.feature-grid,
.promo-grid,
.game-grid {
  display: grid;
  gap: 18px;
}

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

.glass-card,
.promo-card,
.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.glass-card:hover,
.promo-card:hover,
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 232, 163, 0.72);
  box-shadow: var(--shadow-gold);
}

.glass-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 22px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(216, 183, 106, 0.08);
  font-weight: 800;
}

.glass-card h3,
.promo-card h3,
.game-card h3 {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 22px;
}

.glass-card p,
.promo-card p,
.game-card p {
  margin: 0;
  color: var(--muted);
}

.announcement {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 36px, var(--container));
  margin: 0 auto;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
}

.announcement strong {
  flex: 0 0 auto;
  color: var(--gold-light);
}

.ticker {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
}

.ticker p {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}

.announcement:hover .ticker p {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

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

.promo-card {
  min-height: 330px;
  padding: 30px;
  border-radius: 26px;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: -30% -25% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(216, 183, 106, 0.12);
}

.promo-card__label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.promo-card strong {
  display: block;
  margin: 12px 0 14px;
  color: var(--gold-light);
  font-size: 34px;
  line-height: 1.1;
}

.promo-card .btn {
  margin-top: 28px;
}

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

.game-card {
  min-height: 188px;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(216, 183, 106, 0.1), transparent 42%),
    var(--glass);
}

.game-card span {
  display: block;
  margin-bottom: 24px;
  color: rgba(255, 232, 163, 0.36);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.game-card p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(100% - 36px, var(--container));
  margin: 0 auto clamp(62px, 7vw, 96px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 5, 5, 0.68);
}

.trust span {
  padding: 10px 18px;
  border: 1px solid rgba(216, 183, 106, 0.22);
  border-radius: 999px;
  color: var(--gold-light);
}

.site-footer {
  padding: 42px clamp(18px, 5vw, 84px);
  border-top: 1px solid var(--line);
  background: #030303;
}

.footer-brand img {
  width: 52px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 24px 0;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.site-footer p {
  margin: 0;
  color: rgba(175, 163, 140, 0.76);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }

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

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    min-height: 320px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 12px;
    gap: 10px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .hamburger {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .hero {
    min-height: auto;
    padding: 56px 16px 42px;
  }

  .hero__logo {
    width: 88px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero__subtitle {
    letter-spacing: 0.3em;
  }

  .hero__tagline {
    font-size: 22px;
  }

  .hero__actions {
    display: grid;
  }

  .btn--large {
    width: 100%;
  }

  .hero__stage {
    min-height: 280px;
    padding: 18px;
    border-radius: 22px;
  }

  .hero-slide {
    inset: 18px;
    padding: 22px;
  }

  .section {
    width: min(100% - 28px, var(--container));
    padding: 54px 0;
  }

  .section-heading {
    display: block;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .announcement {
    width: min(100% - 28px, var(--container));
    border-radius: 18px;
  }

  .promo-card {
    min-height: 0;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card {
    min-height: 154px;
    padding: 18px;
    border-radius: 18px;
  }

  .game-card span {
    margin-bottom: 18px;
    font-size: 30px;
  }

  .game-card h3 {
    font-size: 18px;
  }

  .game-card p {
    font-size: 11px;
  }

  .trust {
    width: min(100% - 28px, var(--container));
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 8px;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .brand small {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .header-actions .btn {
    padding-inline: 8px;
  }

  .hero h1 {
    letter-spacing: 0.04em;
  }
}

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

@media (min-width: 1440px) {
  .hero {
    padding-inline: max(84px, calc((100vw - 1440px) / 2 + 84px));
  }
}
