:root {
  --bg: #080706;
  --bg-soft: #11100d;
  --panel: #17130e;
  --panel-2: #201811;
  --gold: #d6a958;
  --gold-bright: #f2cf82;
  --gold-muted: #8f713c;
  --red: #5f1710;
  --ink: #f4ead4;
  --muted: #b6a78c;
  --line: rgba(214, 169, 88, 0.24);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(214, 169, 88, 0.08), transparent 34rem),
    radial-gradient(circle at 88% 34%, rgba(95, 23, 16, 0.16), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(214, 169, 88, 0.16);
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.86), rgba(8, 7, 6, 0.36));
  backdrop-filter: blur(14px);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 7, 6, 0.94);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-name {
  color: var(--gold-bright);
  font-size: 21px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.1vw, 28px);
  color: #d8c9a8;
  font-size: 15px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-bright);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(23, 19, 14, 0.8);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: calc(var(--header-h) + 56px) 20px 72px;
  overflow: hidden;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  z-index: -3;
  background: url("../images/hero-poster.svg") center / cover no-repeat;
  filter: saturate(0.84) contrast(1.05);
}

.hero-shade {
  z-index: -2;
  background:
    radial-gradient(circle at center, rgba(214, 169, 88, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(8, 7, 6, 0.84), rgba(8, 7, 6, 0.35), rgba(8, 7, 6, 0.86)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.5), rgba(8, 7, 6, 0.18) 40%, #080706 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  width: min(940px, 100%);
  text-align: center;
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(52px, 10vw, 118px);
  line-height: 1.03;
  font-weight: 900;
  text-shadow:
    0 2px 0 #6d481b,
    0 22px 50px rgba(0, 0, 0, 0.62);
}

.hero-copy {
  max-width: 760px;
  margin: 24px auto 0;
  color: #eadfc7;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 6px;
  padding: 0 28px;
  font-weight: 800;
}

.btn-primary {
  border: 1px solid rgba(242, 207, 130, 0.64);
  color: #20130a;
  background: linear-gradient(180deg, #f3d889, #b87a2e);
  box-shadow:
    0 0 0 4px rgba(214, 169, 88, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.38);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(880px, 100%);
  margin: 34px auto 0;
}

.quick-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(242, 207, 130, 0.1), transparent),
    rgba(17, 16, 13, 0.72);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 207, 130, 0.58);
  background:
    linear-gradient(135deg, rgba(242, 207, 130, 0.16), transparent),
    rgba(23, 19, 14, 0.86);
}

.quick-card span,
.quick-card small {
  display: block;
}

.quick-card span {
  color: var(--gold-bright);
  font-size: 19px;
  font-weight: 800;
}

.quick-card small {
  margin-top: 4px;
  color: var(--muted);
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2,
.assassin-copy h2,
.memory-copy h2,
.site-footer h2,
.info-column h2 {
  margin: 0;
  color: #f2dfb6;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
}

.section-head p:not(.eyebrow),
.assassin-copy p,
.memory-copy p,
.info-column p,
.site-footer p {
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.story-card,
.feature-card,
.download-card,
.info-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(242, 207, 130, 0.06), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.story-card {
  overflow: hidden;
}

.story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0f0d0a;
}

.story-card h3,
.feature-card h3 {
  margin: 18px 18px 6px;
  color: var(--gold-bright);
  font-size: 20px;
}

.story-card p,
.feature-card p {
  margin: 0 18px 20px;
  color: var(--muted);
  font-size: 15px;
}

.assassin-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  width: min(var(--max), calc(100% - 40px));
  margin: 24px auto 0;
  padding: 82px 0;
}

.assassin-media {
  border: 1px solid rgba(214, 169, 88, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(214, 169, 88, 0.18), transparent 38%),
    #0b0907;
  box-shadow: var(--shadow);
}

.assassin-media img {
  width: 100%;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #ddcfb5;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: rgba(214, 169, 88, 0.18);
}

.features-section {
  padding-top: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 210px;
  padding-top: 24px;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(214, 169, 88, 0.16);
  transform: rotate(45deg);
}

.feature-index {
  display: inline-flex;
  margin-left: 18px;
  color: rgba(242, 207, 130, 0.58);
  font-weight: 900;
}

.memory-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.memory-section img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0907;
  box-shadow: var(--shadow);
}

.memory-copy h2 {
  font-size: clamp(30px, 4.2vw, 52px);
}

.download-section {
  padding-top: 54px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 22px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 207, 130, 0.58);
}

.download-card strong {
  color: var(--gold-bright);
  font-size: 22px;
}

.download-card span {
  color: var(--muted);
}

.info-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 44px;
}

.info-column {
  padding: 24px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.info-column h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.news-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(214, 169, 88, 0.14);
}

.news-list a {
  color: #e4d6bd;
}

.news-list a:hover,
.text-link:hover {
  color: var(--gold-bright);
}

.news-list time {
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 800;
}

.site-footer {
  margin-top: 42px;
  padding: 68px clamp(20px, 4vw, 52px) 34px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(95, 23, 16, 0.1), transparent),
    #070604;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.qr-code {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--max), 100%);
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(214, 169, 88, 0.14);
  color: #887b67;
  font-size: 13px;
}

.mobile-tabbar {
  display: none;
}

#story,
#features,
#download,
#guides,
#news,
#community,
#support {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

@media (max-width: 1080px) {
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-grid,
  .info-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    height: 66px;
  }

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 66px 12px auto 12px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 10, 8, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 104px;
  }

  .quick-actions,
  .feature-grid,
  .assassin-section,
  .memory-section,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 76px;
  }

  .assassin-section,
  .memory-section {
    padding: 56px 0;
  }

  .memory-section img {
    order: 2;
  }

  .mobile-tabbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
    border-top: 1px solid var(--line);
    background: rgba(8, 7, 6, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-tabbar a {
    display: grid;
    place-items: center;
    color: #e6d7b8;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-tabbar a.is-active {
    color: var(--gold-bright);
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 66px;
  }

  .section,
  .assassin-section,
  .memory-section {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

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

  .hero-copy {
    font-size: 15px;
  }

  .story-grid,
  .download-grid,
  .info-section {
    grid-template-columns: 1fr;
  }

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

  .news-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-bottom {
    display: grid;
  }
}

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