:root {
  color-scheme: dark;
  --bg: #0d061d;
  --bg-deep: #070310;
  --surface: rgba(35, 17, 66, 0.78);
  --surface-strong: #21103f;
  --purple: #9b54ff;
  --purple-bright: #d6b0ff;
  --gold: #ffd44d;
  --gold-deep: #f49c22;
  --cyan: #4df5ff;
  --text: #fff9ef;
  --muted: #cfc1e6;
  --line: rgba(255, 255, 255, 0.14);
  --content: 1160px;
  --shadow: 0 28px 80px rgba(5, 0, 20, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 18%, rgba(108, 38, 183, 0.35), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #110620;
  background: var(--gold);
  transform: translateY(-180%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 32px), var(--content));
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  transform: translateX(-50%);
  transition: padding 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  width: min(calc(100% - 24px), calc(var(--content) + 24px));
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 6, 29, 0.86);
  box-shadow: 0 14px 40px rgba(3, 0, 12, 0.35);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 212, 77, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(255, 189, 49, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav .nav-cta {
  padding: 10px 18px;
  color: #251030;
  background: linear-gradient(135deg, var(--gold), #ffef91);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 40px), var(--content));
  min-height: 780px;
  margin: 0 auto;
  padding: 132px 0 80px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.hero::before {
  position: absolute;
  inset: 12% -18vw auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  content: "";
}

.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.hero__glow--one {
  top: 16%;
  left: -14%;
  width: 310px;
  height: 310px;
  background: rgba(104, 42, 187, 0.23);
}

.hero__glow--two {
  right: -8%;
  bottom: 16%;
  width: 260px;
  height: 260px;
  background: rgba(45, 217, 230, 0.15);
}

.hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(54px, 6.1vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff2b1 0%, var(--gold) 42%, #ff8b3d 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  min-height: 58px;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-action {
  display: grid;
  min-width: 214px;
  padding: 10px 28px;
  place-items: center;
  color: #2a132f;
  background: linear-gradient(135deg, var(--gold) 0%, #fff0a1 100%);
  box-shadow: 0 16px 34px rgba(244, 156, 34, 0.24);
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
}

.primary-action span {
  font-weight: 900;
}

.primary-action small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.primary-action:hover {
  box-shadow: 0 20px 48px rgba(244, 156, 34, 0.34);
}

.secondary-action:hover {
  border-color: rgba(255, 212, 77, 0.48);
}

.copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--cyan);
  font-size: 13px;
}

.hero__stats {
  display: flex;
  min-width: 0;
  gap: 42px;
  margin: 36px 0 0;
}

.hero__stats div {
  display: grid;
  gap: 4px;
}

.hero__stats dt {
  font-size: 26px;
  font-weight: 950;
}

.hero__stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hero__visual {
  position: relative;
  display: grid;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 360px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 42px;
  background: linear-gradient(145deg, #2f1c47, #0b0518 55%);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.035);
  transform: rotate(2.2deg);
}

.phone-frame::after {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 212, 77, 0.56), transparent 28%, rgba(77, 245, 255, 0.26));
  content: "";
  filter: blur(22px);
  opacity: 0.55;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
}

.phone-frame__speaker {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 20px;
  border-radius: 999px;
  background: #080410;
  transform: translateX(-50%);
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 176px;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(24, 9, 49, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.floating-note strong {
  color: var(--gold);
  font-size: 14px;
}

.floating-note span {
  color: var(--muted);
  font-size: 11px;
}

.floating-note--top {
  top: 20%;
  right: -4%;
}

.floating-note--bottom {
  bottom: 15%;
  left: -9%;
}

.section-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.gameplay-section {
  padding: 104px 0 132px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 52px;
  margin-bottom: 52px;
}

.section-heading h2,
.adventure-section h2,
.play-panel h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p,
.adventure-section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading--center {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  gap: 20px;
  text-align: center;
}

.section-heading--center > p {
  max-width: 660px;
  margin: 0 auto;
}

.gameplay-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 400px;
  border: 1px solid var(--line);
  background: #16092d;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.gameplay-feature::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 212, 77, 0.16);
  content: "";
  pointer-events: none;
}

.gameplay-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameplay-feature > div {
  display: flex;
  padding: clamp(36px, 6vw, 76px);
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(110deg, rgba(28, 10, 59, 0.96), rgba(31, 12, 62, 0.78)),
    radial-gradient(circle at 80% 25%, rgba(155, 84, 255, 0.38), transparent 18rem);
}

.gameplay-feature span,
.adventure-section__art span,
.honor-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.gameplay-feature h3 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.gameplay-feature p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.mode-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mode-card {
  position: relative;
  min-height: 190px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(28, 12, 53, 0.98), rgba(15, 7, 30, 0.98));
  transition: transform 180ms ease, background-color 180ms ease;
}

.mode-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--mode-accent);
  content: "";
  box-shadow: 0 0 18px var(--mode-accent);
}

.mode-card:hover {
  z-index: 2;
  background: #261247;
  transform: translateY(-4px);
}

.mode-card__number {
  color: var(--mode-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.mode-card h3 {
  margin: 30px 0 9px;
  font-size: 21px;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.adventure-section {
  display: grid;
  min-height: 780px;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  background: #020d24;
}

.adventure-section__art {
  position: relative;
  overflow: hidden;
  min-height: 720px;
}

.adventure-section__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, #020d24 100%);
  content: "";
}

.adventure-section__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adventure-section__art span {
  position: absolute;
  bottom: 34px;
  left: 34px;
  z-index: 2;
  color: var(--cyan);
}

.adventure-section__content {
  display: flex;
  max-width: 680px;
  padding: 108px clamp(40px, 8vw, 128px) 100px;
  flex-direction: column;
  justify-content: center;
}

.adventure-section h2 {
  font-size: clamp(42px, 5.5vw, 72px);
}

.adventure-section__lead {
  margin-top: 28px;
}

.adventure-list {
  display: grid;
  margin: 42px 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
  counter-reset: adventure-item;
}

.adventure-list li {
  position: relative;
  display: grid;
  padding: 23px 0 23px 60px;
  border-top: 1px solid rgba(114, 214, 255, 0.18);
  gap: 5px;
  counter-increment: adventure-item;
}

.adventure-list li:last-child {
  border-bottom: 1px solid rgba(114, 214, 255, 0.18);
}

.adventure-list li::before {
  position: absolute;
  top: 24px;
  left: 0;
  color: var(--cyan);
  content: "0" counter(adventure-item);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.adventure-list strong {
  font-size: 17px;
}

.adventure-list span {
  color: #aebbd5;
  font-size: 13px;
  line-height: 1.65;
}

.honor-section {
  padding: 132px 0;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.honor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(27, 12, 50, 0.86);
  box-shadow: 0 22px 48px rgba(3, 0, 12, 0.22);
}

.honor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.honor-card:hover img {
  transform: scale(1.035);
}

.honor-card > div {
  padding: 26px 26px 30px;
}

.honor-card h3 {
  margin: 12px 0 9px;
  font-size: 21px;
}

.honor-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.play-section {
  padding-bottom: 132px;
}

.play-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 540px;
  border: 1px solid rgba(255, 212, 77, 0.28);
  background: #1a0b31;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  box-shadow: var(--shadow);
}

.play-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-panel__content {
  display: flex;
  padding: clamp(42px, 7vw, 86px);
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(155, 84, 255, 0.28), transparent 24rem),
    linear-gradient(120deg, rgba(29, 12, 54, 0.98), rgba(18, 7, 35, 0.98));
}

.play-steps {
  display: grid;
  margin: 28px 0 30px;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.play-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 212, 77, 0.46);
  place-items: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.play-steps p {
  margin: 0;
  color: var(--muted);
}

.primary-action--wide {
  width: min(100%, 330px);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.site-footer > div:first-child > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer__meta {
  color: #9487aa;
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}

.site-footer__meta p {
  margin: 3px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__actions,
  .hero__stats {
    justify-content: center;
  }

  .copy-status {
    text-align: center;
  }

  .hero__visual {
    width: min(100%, 480px);
    margin: 0 auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gameplay-feature,
  .play-panel {
    grid-template-columns: 1fr;
  }

  .gameplay-feature img,
  .play-panel > img {
    max-height: 470px;
  }

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

  .adventure-section {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .adventure-section__content {
    padding-right: 40px;
    padding-left: 40px;
  }

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

  .honor-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  }

  .honor-card img {
    height: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 15px;
  }

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

  .main-nav {
    gap: 12px;
  }

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

  .main-nav .nav-cta {
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero {
    width: min(calc(100% - 28px), var(--content));
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(40px, 12.2vw, 54px);
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero__actions {
    flex-direction: column;
  }

  .secondary-action {
    justify-content: center;
  }

  .hero__stats {
    gap: 22px;
    justify-content: space-between;
  }

  .phone-frame {
    width: min(82vw, 330px);
  }

  .floating-note {
    min-width: 148px;
    padding: 11px 13px;
  }

  .floating-note--top {
    right: -1%;
  }

  .floating-note--bottom {
    left: -1%;
  }

  .section-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .gameplay-section,
  .honor-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .gameplay-feature {
    min-height: auto;
  }

  .gameplay-feature > div {
    padding: 34px 26px 42px;
  }

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

  .mode-card {
    min-height: 156px;
  }

  .mode-card h3 {
    margin-top: 22px;
  }

  .adventure-section {
    grid-template-columns: 1fr;
  }

  .adventure-section__art {
    min-height: 520px;
  }

  .adventure-section__art::after {
    background: linear-gradient(180deg, transparent 58%, #020d24 100%);
  }

  .adventure-section__content {
    padding: 34px 24px 80px;
  }

  .honor-card {
    display: block;
  }

  .play-section {
    padding-bottom: 88px;
  }

  .play-panel__content {
    padding: 38px 24px 46px;
  }

  .site-footer {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__meta {
    text-align: left;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
