:root {
  --site-bg: #f6f8fb;
  --site-surface: #ffffff;
  --site-ink: #10131a;
  --site-muted: #5b6575;
  --site-line: rgba(16, 19, 26, .12);
  --site-accent: #09aeea;
  --site-accent-dark: #0478a9;
  --site-radius: 28px;
  --site-ease: cubic-bezier(.16, 1, .3, 1);
  --site-topbar-bg: rgba(255, 255, 255, .92);
  --site-topbar-text: var(--site-ink);
  --site-topbar-muted: #667085;
  --site-topbar-line: rgba(16, 19, 26, .12);
  --site-topbar-accent: var(--site-accent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body:not(.home-page) {
  margin: 0;
  color: var(--site-ink) !important;
  background: var(--site-bg) !important;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif !important;
  line-height: 1.72;
  overflow-x: hidden;
}

body:not(.home-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 19, 26, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 26, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .68), transparent 72%);
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--site-topbar-text);
  background: var(--site-topbar-bg);
  border-bottom: 1px solid var(--site-topbar-line);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(31, 45, 68, .07);
}

.site-topbar__inner {
  width: min(1220px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-topbar__brand {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 950;
}

.site-topbar__mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #111827, #09aeea);
  box-shadow: 0 18px 40px rgba(9, 174, 234, .2);
}

.site-topbar__title {
  display: block;
  line-height: 1.08;
  letter-spacing: .03em;
}

.site-topbar__sub {
  display: block;
  margin-top: 3px;
  color: var(--site-topbar-muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
}

.site-topbar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-topbar__links a,
.site-topbar__brand,
.btn,
.nav-links a,
.langbar a,
header.hero nav a {
  -webkit-tap-highlight-color: transparent;
}

.site-topbar__links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--site-topbar-line);
  border-radius: 999px;
  color: var(--site-topbar-text);
  background: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .28s var(--site-ease), border-color .28s var(--site-ease), background .28s var(--site-ease);
}

.site-topbar__links a:hover,
.site-topbar__links a:focus-visible {
  border-color: var(--site-topbar-accent);
  background: rgba(9, 174, 234, .08);
  outline: none;
  transform: translateY(-1px);
}

body > nav.nav {
  display: none !important;
}

body:not(.home-page) .container,
body > .wrap {
  width: min(1220px, calc(100% - 36px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

body:not(.home-page) header.hero,
body:not(.home-page) > .wrap {
  padding: clamp(54px, 8vw, 92px) 0 48px !important;
}

body:not(.home-page) header.hero .container,
body:not(.home-page) > .wrap > header.hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(30px, 5vw, 58px) !important;
  background:
    radial-gradient(circle at 90% 12%, rgba(9, 174, 234, .22), transparent 34%),
    linear-gradient(135deg, #ffffff, #eaf3fb);
  border: 1px solid var(--site-line);
  box-shadow: 0 24px 70px rgba(31, 45, 68, .08);
}

body:not(.home-page) .eyebrow,
body:not(.home-page) .game-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 14px;
  color: var(--site-accent-dark) !important;
  border: 1px solid rgba(9, 174, 234, .24) !important;
  background: rgba(9, 174, 234, .08) !important;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: none !important;
}

body:not(.home-page) h1,
body:not(.home-page) h2,
body:not(.home-page) h3 {
  color: var(--site-ink) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body:not(.home-page) h1 {
  max-width: 980px;
  margin: 12px 0 18px !important;
  font-size: clamp(42px, 7vw, 88px) !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
}

body:not(.home-page) .title-en {
  display: block;
  margin-top: 10px;
  color: var(--site-muted) !important;
  font-size: clamp(16px, 2.2vw, 28px) !important;
  letter-spacing: .08em !important;
}

body:not(.home-page) .lead,
body:not(.home-page) p,
body:not(.home-page) li,
body:not(.home-page) dd {
  color: var(--site-muted) !important;
}

body:not(.home-page) .lead {
  max-width: 820px;
  font-size: clamp(16px, 1.6vw, 20px) !important;
}

body:not(.home-page) section {
  padding: clamp(44px, 6vw, 74px) 0 !important;
}

body:not(.home-page) .section-head {
  display: grid !important;
  grid-template-columns: minmax(260px, 520px) minmax(260px, 620px);
  gap: 34px;
  align-items: end;
  margin-bottom: 26px !important;
}

body:not(.home-page) .section-head h2,
body:not(.home-page) .download h2,
body:not(.home-page) .legal h2 {
  margin: 0 0 12px !important;
  font-size: clamp(30px, 4.5vw, 58px) !important;
  line-height: 1.06 !important;
  font-weight: 950 !important;
}

body:not(.home-page) .cards,
body:not(.home-page) .works-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px !important;
}

body:not(.home-page) .split {
  display: grid !important;
  grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr);
  gap: 22px !important;
  align-items: center;
}

body:not(.home-page) .card,
body:not(.home-page) .panel,
body:not(.home-page) .download,
body:not(.home-page) .notice,
body:not(.home-page) .feature-item {
  color: var(--site-ink) !important;
  background: var(--site-surface) !important;
  border: 1px solid var(--site-line) !important;
  border-radius: var(--site-radius) !important;
  box-shadow: 0 22px 58px rgba(31, 45, 68, .08) !important;
}

body:not(.home-page) .card,
body:not(.home-page) .panel {
  padding: clamp(22px, 3vw, 34px) !important;
}

body:not(.home-page) .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #06121a !important;
  background: var(--site-accent) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 32px rgba(9, 174, 234, .2) !important;
}

body:not(.home-page) .image-card {
  overflow: hidden;
  background: #10131a !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 30px !important;
  box-shadow: 0 24px 70px rgba(31, 45, 68, .12) !important;
}

body:not(.home-page) .image-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #10131a;
  object-fit: contain;
}

body:not(.home-page) .btn,
body:not(.home-page) .langbar a,
body:not(.home-page) header.hero nav a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
  color: var(--site-ink) !important;
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid var(--site-line) !important;
  border-radius: 999px !important;
  text-decoration: none;
  font-weight: 900 !important;
  box-shadow: none !important;
  transition: transform .28s var(--site-ease), border-color .28s var(--site-ease), background .28s var(--site-ease);
}

body:not(.home-page) .btn-primary {
  color: #06121a !important;
  background: var(--site-accent) !important;
  border-color: var(--site-accent) !important;
  box-shadow: 0 18px 42px rgba(9, 174, 234, .24) !important;
}

body:not(.home-page) .btn:hover,
body:not(.home-page) .langbar a:hover,
body:not(.home-page) header.hero nav a:hover {
  transform: translateY(-2px);
  border-color: var(--site-accent) !important;
}

body:not(.home-page) .feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body:not(.home-page) .download {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 22px !important;
  align-items: center;
  padding: clamp(26px, 4vw, 46px) !important;
}

body:not(.home-page) .legal {
  max-width: 920px !important;
  margin-inline: auto !important;
}

body:not(.home-page) .legal h3 {
  margin: 28px 0 8px !important;
  font-size: 22px !important;
}

body:not(.home-page) .legal a,
body:not(.home-page) .footer-links a {
  color: var(--site-accent-dark) !important;
}

body:not(.home-page) footer {
  color: rgba(255, 255, 255, .68) !important;
  background: #10131a !important;
  border-top: 0 !important;
  padding: 30px 0 36px !important;
}

body:not(.home-page) footer strong {
  color: white !important;
}

body:not(.home-page) .footer-inner {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

body:not(.home-page) .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:not(.home-page) .footer-links a {
  color: rgba(255, 255, 255, .82) !important;
  text-decoration: none;
}

body:not(.home-page) .footer-links span {
  color: rgba(255, 255, 255, .28);
}

body:not(.home-page) > .wrap > header.hero > nav[aria-label="Page navigation"] {
  display: none !important;
}

body:not(.home-page) > .wrap > main {
  margin-top: 22px !important;
}

.langbar {
  margin-top: 18px !important;
}

footer a {
  touch-action: manipulation;
}

@media (max-width: 1100px) {
  body:not(.home-page) .cards,
  body:not(.home-page) .works-grid,
  body:not(.home-page) .split,
  body:not(.home-page) .section-head,
  body:not(.home-page) .download {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .site-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-topbar__links {
    justify-content: flex-start;
  }

  body:not(.home-page) header.hero,
  body:not(.home-page) > .wrap {
    padding-top: 36px !important;
  }
}

@media (max-width: 560px) {
  .site-topbar__inner,
  body:not(.home-page) .container,
  body:not(.home-page) .footer-inner,
  body > .wrap {
    width: min(100% - 24px, 1220px) !important;
  }

  .site-topbar__links {
    gap: 7px;
  }

  .site-topbar__links a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
  }

  body:not(.home-page) header.hero .container,
  body:not(.home-page) > .wrap > header.hero {
    border-radius: 24px;
    padding: 24px !important;
  }

  body:not(.home-page) h1 {
    font-size: clamp(36px, 12vw, 54px) !important;
  }

  body:not(.home-page) .image-card,
  body:not(.home-page) .card,
  body:not(.home-page) .panel,
  body:not(.home-page) .download,
  body:not(.home-page) .notice {
    border-radius: 22px !important;
  }
}
