:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eee9df;
  background: #071015;
  font-synthesis: none;
  --ink: #071015;
  --ink-soft: #0d1b20;
  --paper: #eee9df;
  --muted: #87979a;
  --line: rgba(218, 224, 216, 0.15);
  --gold: #d9a85f;
  --gold-bright: #f2cb83;
  --sea: #8fb9ae;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(84, 124, 116, 0.13), transparent 30rem),
    var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  z-index: 10;
  position: relative;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(217, 168, 95, 0.75);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  display: block;
  content: "";
}

.brand-mark::before {
  inset: 6px;
  border: 1px solid rgba(217, 168, 95, 0.48);
  border-radius: 50%;
}

.brand-mark::after {
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 1px;
  background: var(--gold);
  transform: rotate(34deg);
}

.brand-mark i {
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(242, 203, 131, 0.75);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.22em;
}

nav {
  display: flex;
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}

nav a {
  color: #aab5b3;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
}

nav .nav-download {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(217, 168, 95, 0.55);
  color: #ead6b3;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  min-height: 760px;
  padding: 84px 0 112px;
}

.hero-copy {
  z-index: 2;
}

.eyebrow,
.game-kicker,
.game-status,
.about-index,
.scroll-note,
.coordinates {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.23em;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 22px;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-weight: 500;
}

h1 {
  max-width: 780px;
  font-size: clamp(52px, 6.2vw, 90px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.hero-intro {
  max-width: 610px;
  margin: 30px 0 38px;
  color: #9daaa8;
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 23px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button:focus-visible,
.text-link:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

.button-primary {
  background: var(--gold);
  box-shadow: 0 14px 42px rgba(217, 168, 95, 0.16);
  color: #12100c;
}

.button-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 18px 48px rgba(217, 168, 95, 0.23);
}

.text-link {
  color: #aab5b3;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.text-link span {
  margin-left: 8px;
  color: var(--gold);
}

.world-stage {
  position: relative;
  min-height: 530px;
  isolation: isolate;
}

.world-stage::before,
.world-stage::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.world-stage::before {
  inset: 4% 2% 8% 5%;
  border: 1px solid rgba(176, 199, 192, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 121, 112, 0.12), transparent 62%);
}

.world-stage::after {
  right: 7%;
  bottom: 14%;
  width: 74%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 168, 95, 0.54), transparent);
  transform: rotate(-11deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(184, 207, 200, 0.18);
  border-radius: 50%;
}

.orbit-outer {
  inset: 1% 0 5% 2%;
  border-style: dashed;
  animation: orbit 70s linear infinite;
}

.orbit-inner {
  inset: 13% 12% 17% 15%;
  border-color: rgba(217, 168, 95, 0.27);
}

.orbit-inner::before,
.orbit-inner::after {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 18px var(--gold);
  content: "";
}

.orbit-inner::before {
  top: 8%;
  left: 22%;
  width: 5px;
  height: 5px;
}

.orbit-inner::after {
  right: 6%;
  bottom: 30%;
  width: 3px;
  height: 3px;
}

.coordinates {
  position: absolute;
  top: 3%;
  right: 14%;
  color: #677b79;
  font-size: 8px;
}

.portal {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 39%;
  height: 60%;
  overflow: hidden;
  border: 1px solid rgba(242, 203, 131, 0.73);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  background:
    linear-gradient(to bottom, rgba(30, 68, 74, 0.74), rgba(8, 20, 23, 0.96)),
    var(--ink-soft);
  box-shadow:
    0 0 0 11px rgba(217, 168, 95, 0.035),
    0 0 70px rgba(217, 168, 95, 0.13),
    inset 0 -40px 60px #071015;
  transform: translateX(-50%);
}

.portal::before {
  position: absolute;
  inset: 12% 11% 0;
  border: 1px solid rgba(217, 168, 95, 0.29);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
  content: "";
}

.portal::after {
  position: absolute;
  right: 0;
  bottom: 25%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 20px var(--gold);
  content: "";
}

.portal-glow {
  position: absolute;
  right: 13%;
  bottom: 17%;
  left: 13%;
  height: 25%;
  border-radius: 50%;
  background: rgba(217, 168, 95, 0.34);
  filter: blur(24px);
}

.portal-horizon {
  position: absolute;
  right: 19%;
  bottom: 23%;
  left: 19%;
  height: 22%;
  background:
    linear-gradient(139deg, transparent 28%, #58736c 29% 44%, transparent 45%),
    linear-gradient(38deg, transparent 27%, #324f4c 28% 49%, transparent 50%);
  opacity: 0.7;
}

.portal > span {
  position: absolute;
  z-index: 2;
  bottom: 11%;
  left: 14%;
  color: rgba(238, 233, 223, 0.6);
  font-family: Georgia, serif;
  font-size: clamp(11px, 1.2vw, 15px);
  line-height: 1.55;
  letter-spacing: 0.22em;
}

.stage-caption {
  position: absolute;
  right: 3%;
  bottom: 3%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #738583;
  font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-caption span {
  color: var(--gold);
}

.stage-caption p {
  margin: 0;
}

.scroll-note {
  position: absolute;
  bottom: 44px;
  left: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #576967;
  font-size: 8px;
}

.scroll-note span {
  width: 38px;
  height: 1px;
  background: #465957;
}

.principles {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 104px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles p {
  margin: 0;
  color: #7f8e8c;
  font: 10px/1 Georgia, serif;
  letter-spacing: 0.24em;
}

.principles span {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.work-section {
  padding: 138px 0 130px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .eyebrow {
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  min-height: 620px;
  overflow: hidden;
  background: #eee8dc;
  color: #172020;
}

.game-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 47% 48%, rgba(209, 166, 90, 0.2), transparent 26%),
    linear-gradient(135deg, #13282b, #081416 68%);
  isolation: isolate;
}

.game-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(222, 235, 228, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 235, 228, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(58deg) scale(1.5) translateY(16%);
}

.journal-page {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48%, 330px);
  aspect-ratio: 0.72;
  border: 1px solid rgba(235, 217, 178, 0.62);
  background: #15292a;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  transform-origin: center;
}

.page-back {
  background: #aa7d42;
  transform: translate(-38%, -47%) rotate(9deg);
  opacity: 0.72;
}

.page-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-57%, -53%) rotate(-5deg);
}

.page-front::before,
.page-front::after {
  position: absolute;
  content: "";
}

.page-front::before {
  inset: 7%;
  border: 1px solid rgba(217, 168, 95, 0.27);
}

.page-front::after {
  top: 9%;
  bottom: 9%;
  left: 10%;
  width: 1px;
  background: rgba(217, 168, 95, 0.2);
}

.page-front p,
.page-front span {
  z-index: 1;
  margin: 0;
  color: #b9a581;
  font-family: Georgia, serif;
  letter-spacing: 0.22em;
}

.page-front p {
  font-size: 8px;
}

.page-front span {
  font-size: clamp(8px, 1vw, 11px);
  line-height: 1.65;
  text-align: center;
}

.journal-glyph {
  display: grid;
  z-index: 1;
  width: 42%;
  margin: 25% 0 12%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(217, 168, 95, 0.76);
  border-radius: 50%;
  color: var(--gold-bright);
  font: 15px/1 Georgia, serif;
  letter-spacing: 0.15em;
}

.map-line {
  position: absolute;
  height: 1px;
  background: rgba(217, 168, 95, 0.32);
  transform-origin: left center;
}

.line-one {
  top: 25%;
  left: 4%;
  width: 38%;
  transform: rotate(23deg);
}

.line-two {
  right: 1%;
  bottom: 23%;
  width: 37%;
  transform: rotate(-28deg);
}

.map-point {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(217, 168, 95, 0.5);
}

.point-one {
  top: 30%;
  left: 15%;
}

.point-two {
  right: 15%;
  bottom: 28%;
}

.game-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(52px, 7vw, 100px);
}

.game-status {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 38px;
  color: #547068;
  font-size: 9px;
}

.game-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f8c76;
  box-shadow: 0 0 0 4px rgba(79, 140, 118, 0.12);
}

.game-kicker {
  margin: 0 0 12px;
  color: #9c763e;
  font-size: 9px;
}

.game-copy h3 {
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -0.05em;
}

.game-title-en {
  margin: 8px 0 0;
  color: #70817d;
  font: 10px/1 Georgia, serif;
  letter-spacing: 0.2em;
}

.game-description {
  max-width: 540px;
  margin: 30px 0 25px;
  color: #51615f;
  font-size: 14px;
  line-height: 1.9;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.game-tags li {
  padding: 7px 10px;
  border: 1px solid rgba(23, 32, 32, 0.16);
  color: #5d6b68;
  font-size: 10px;
}

.button-light {
  background: #132326;
  color: #f1e8d8;
}

.button-light:hover {
  background: #1d3335;
}

.download-note {
  margin: 12px 0 0;
  color: #84908e;
  font-size: 10px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.35fr 0.75fr 0.9fr;
  gap: clamp(30px, 6vw, 90px);
  padding: 120px 0 140px;
  border-top: 1px solid var(--line);
}

.about-index {
  margin: 13px 0 0;
  color: #6e817e;
  font-size: 8px;
}

.about-copy {
  padding-top: 8px;
}

.about-copy p {
  margin: 0 0 22px;
  color: #93a19f;
  font-size: 14px;
  line-height: 1.95;
}

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 126px 30px;
  border: 1px solid rgba(217, 168, 95, 0.24);
  background:
    radial-gradient(circle at 50% 120%, rgba(217, 168, 95, 0.22), transparent 34%),
    rgba(18, 35, 38, 0.56);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 42px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  min-height: 150px;
  color: #61716f;
  font-size: 10px;
}

.footer-brand {
  color: #b9c2c0;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  text-decoration: none;
}

footer > p {
  justify-self: end;
  margin: 0;
}

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

@media (max-width: 940px) {
  .site-header,
  main,
  footer {
    width: min(100% - 40px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .world-stage {
    position: absolute;
    z-index: 0;
    top: 42px;
    right: -23%;
    width: 73%;
    opacity: 0.34;
  }

  .hero-copy {
    max-width: 660px;
    min-height: 520px;
  }

  .scroll-note {
    display: none;
  }

  .section-heading,
  .game-card,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 22px;
  }

  .game-visual {
    min-height: 480px;
  }

  .game-copy {
    padding: 58px;
  }

  .about-section {
    gap: 30px;
  }

  .about-copy {
    max-width: 600px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    min-height: 78px;
  }

  .brand-name {
    font-size: 12px;
  }

  nav {
    gap: 10px;
  }

  nav > a:not(.nav-download) {
    display: none;
  }

  nav .nav-download {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero {
    padding: 60px 0 72px;
  }

  .hero-copy {
    min-height: 510px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .hero-intro {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .world-stage {
    top: 168px;
    right: -45%;
    width: 102%;
  }

  .principles {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 26px 0;
  }

  .principles span {
    display: none;
  }

  .work-section {
    padding: 92px 0;
  }

  .game-visual {
    min-height: 390px;
  }

  .journal-page {
    width: 52%;
  }

  .game-copy {
    padding: 44px 24px 48px;
  }

  .game-copy h3 {
    font-size: 43px;
  }

  .about-section {
    padding: 90px 0;
  }

  .cta-section {
    padding: 88px 18px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  footer > p {
    grid-column: auto;
  }
}

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

  .orbit-outer {
    animation: none;
  }

  .button,
  nav a {
    transition: none;
  }
}
