:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --paper: #f8fafc;
  --paper-deep: #e2e8f0;
  --white: #ffffff;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  --radius: 28px;
  --content: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 84% 4%, rgba(37, 99, 235, 0.08), transparent 34%);
  opacity: 1;
  content: "";
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.en {
  display: none !important;
}

html[data-lang="en"] .zh {
  display: none !important;
}

html[data-lang="en"] .en {
  display: revert !important;
}

.container {
  width: var(--content);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav,
.header-tools {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-tools {
  gap: 8px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.language-switcher button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  font-size: 19px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 76px 0 64px;
}

.hero::before {
  position: absolute;
  top: -190px;
  right: -130px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 62%);
  opacity: 0.8;
  content: "";
  transform: rotate(10deg);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.72fr;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(54px, 7vw, 94px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.hero h1 em {
  display: inline-block;
  color: var(--brand);
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

.button.primary:hover {
  border-color: var(--brand-dark);
  color: #fff;
  background: var(--brand-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.42);
}

.arrow {
  font-size: 18px;
  line-height: 1;
}

.hero-orbit {
  position: relative;
  width: min(100%, 370px);
  aspect-ratio: 1;
  justify-self: end;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 32%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(219, 234, 254, 0.72));
  box-shadow: 0 32px 80px rgba(37, 99, 235, 0.12);
  transform: rotate(8deg);
}

.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit-ring::before {
  top: 4%;
  left: 18%;
  width: 12px;
  height: 12px;
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.orbit-ring::after {
  right: 3%;
  bottom: 25%;
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 32px rgba(15, 23, 42, 0.16));
}

.orbit-label {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(23, 23, 25, 0.1);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.orbit-label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.orbit-label.one {
  top: 12%;
  right: -2%;
}

.orbit-label.two {
  bottom: 12%;
  left: -2%;
}

.orbit-label.two::before {
  background: var(--ink);
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.studio-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.25);
}

.studio-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.studio-fact {
  padding: 26px 30px;
  border-left: 1px solid var(--line);
}

.studio-fact:first-child {
  border-left: 0;
}

.studio-fact strong,
.studio-fact span {
  display: block;
}

.studio-fact strong {
  font-size: 16px;
}

.studio-fact span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.game-card::after {
  display: none;
}

.game-card.idiom {
  color: #fff;
  background: linear-gradient(145deg, #172554, #0f172a);
}

.game-card.nopule {
  color: var(--ink);
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
}

.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.game-index {
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  opacity: 0.65;
}

.game-art {
  position: relative;
  overflow: hidden;
  height: 230px;
  margin: 24px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.game-card.nopule .game-art {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover .game-art img {
  transform: scale(1.025);
}

.characters {
  position: absolute;
  inset: 0;
}

.characters span {
  position: absolute;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 18px 40px rgba(0, 0, 0, 0.12);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 33px;
  backdrop-filter: blur(8px);
}

.characters span:nth-child(1) {
  top: 12px;
  left: 12%;
  transform: rotate(-7deg);
}

.characters span:nth-child(2) {
  top: 74px;
  left: 39%;
  transform: rotate(5deg);
}

.characters span:nth-child(3) {
  top: 6px;
  right: 11%;
  transform: rotate(8deg);
}

.characters span:nth-child(4) {
  right: 25%;
  bottom: 2px;
  transform: rotate(-4deg);
}

.characters::before,
.characters::after {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
  transform-origin: left;
}

.characters::before {
  top: 80px;
  left: 24%;
  width: 42%;
  transform: rotate(14deg);
}

.characters::after {
  top: 140px;
  left: 47%;
  width: 32%;
  transform: rotate(39deg);
}

.number-board {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 228px;
  height: 228px;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.number-board span {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.1);
  font-size: 20px;
  font-weight: 850;
}

.number-board span:nth-child(3n) {
  color: #fff;
  background: #0f172a;
}

.number-board span:nth-child(5n) {
  background: #bfdbfe;
}

.game-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.game-content h3 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.game-content p {
  max-width: 470px;
  margin: 12px 0 20px;
  font-size: 15px;
  opacity: 0.84;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-size: 13px;
  font-weight: 800;
}

.game-card:hover .game-link .arrow {
  transform: translateX(3px);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 8vw;
}

.story-sticky {
  position: sticky;
  top: 120px;
  align-self: start;
}

.story-sticky img {
  width: 112px;
  margin-bottom: 30px;
}

.story-sticky h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.story-copy {
  border-top: 1px solid var(--line);
}

.story-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.story-item span {
  color: var(--brand-dark);
  font-family: Georgia, serif;
  font-style: italic;
}

.story-item h3 {
  margin: 0 0 8px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.story-item p {
  margin: 0;
  color: var(--muted);
}

.contact-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 210px;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  border-radius: var(--radius);
  padding: 44px;
  color: #fff;
  background: var(--ink);
}

.contact-banner::before {
  position: absolute;
  top: -170px;
  right: 90px;
  width: 310px;
  height: 460px;
  background: url("logo.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.1;
  content: "";
  transform: rotate(18deg);
}

.contact-banner > * {
  position: relative;
  z-index: 1;
}

.contact-banner h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.contact-banner p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.contact-banner .button {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.page-hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-hero p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 80px;
  padding: 72px 0 120px;
}

.content-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.content-aside p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-aside time {
  font-size: 14px;
}

.prose h2 {
  margin: 52px 0 16px;
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 19px;
}

.prose p,
.prose li {
  color: #475569;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 10px;
}

.prose a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notice {
  margin: 28px 0;
  border-left: 4px solid var(--brand);
  border-radius: 0 16px 16px 0;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.72);
}

.notice p:last-child {
  margin-bottom: 0;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 42px;
}

.support-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.support-card h3 {
  margin-top: 0;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 46px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px 40px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  :root {
    --content: min(100% - 36px, 720px);
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav a::after {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 72px 0;
  }

  .hero-grid,
  .section-heading,
  .story-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 60px;
  }

  .hero-orbit {
    width: min(64vw, 320px);
    justify-self: center;
  }

  .section-heading {
    align-items: start;
    gap: 20px;
  }

  .story-grid {
    gap: 46px;
  }

  .story-sticky,
  .content-aside {
    position: static;
  }

  .content-layout {
    gap: 34px;
  }

  .content-aside {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 70px;
  }

  .brand {
    font-size: 16px;
  }

  .header-tools {
    gap: 5px;
  }

  .language-switcher button {
    min-width: 34px;
    padding-inline: 8px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-orbit {
    display: none;
  }

  .studio-strip-inner,
  .game-grid,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .studio-fact {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-inline: 0;
  }

  .studio-fact:first-child {
    border-top: 0;
  }

  .section {
    padding: 72px 0;
  }

  .game-card {
    min-height: 500px;
    padding: 26px;
  }

  .game-content {
    right: 26px;
    bottom: 26px;
    left: 26px;
  }

  .story-item {
    grid-template-columns: 45px 1fr;
  }

  .contact-banner {
    min-height: 220px;
    grid-template-columns: 1fr;
    align-items: end;
    padding: 34px;
  }

  .contact-banner .button {
    justify-self: start;
  }

  .page-hero {
    padding: 64px 0 52px;
  }

  .content-layout {
    padding: 50px 0 84px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
