:root {
  --bg: #0f1711;
  --bg-2: #162219;
  --panel: #f5f0e4;
  --panel-2: #fffaf0;
  --text: #152116;
  --muted: #566151;
  --light: #f8f4e8;
  --green: #2f8d4a;
  --green-dark: #1f6335;
  --grass: #74b94e;
  --earth: #7a5236;
  --stone: #66706a;
  --gold: #e0b84b;
  --red: #c94c38;
  --border: rgba(21, 33, 22, 0.14);
  --shadow: 0 18px 50px rgba(5, 12, 7, 0.18);
  --shadow-hover: 0 24px 58px rgba(5, 12, 7, 0.24);
  --ring: 0 0 0 4px rgba(224, 184, 75, 0.22);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(116, 185, 78, 0.1), transparent 30%),
    linear-gradient(180deg, #fffaf0 0, var(--panel) 420px);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

strong {
  color: var(--green-dark);
  font-weight: 900;
}

.text-accent,
.mode-keyword {
  color: #b98511;
  font-weight: 900;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 6px;
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 32px, 880px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 17, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 19, 14, 0.94);
  border-bottom-color: rgba(224, 184, 75, 0.22);
  box-shadow: 0 10px 32px rgba(4, 9, 5, 0.24);
}

.nav-wrap {
  width: min(100% - 28px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand {
  color: #fff;
  font-size: 18px;
  transition: transform 180ms ease, color 180ms ease;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
  image-rendering: auto;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover,
.brand:focus-visible,
.footer-brand:hover,
.footer-brand:focus-visible {
  color: #f1d46a;
  transform: translateY(-1px);
}

.brand:hover img,
.brand:focus-visible img,
.footer-brand:hover img,
.footer-brand:focus-visible img {
  transform: rotate(-3deg) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav .nav-download {
  color: #122015;
  background: var(--gold);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(224, 184, 75, 0.24);
}

.site-nav .nav-download:hover,
.site-nav .nav-download:focus-visible {
  color: #10180f;
  background: #f0c95a;
  box-shadow: 0 12px 28px rgba(224, 184, 75, 0.34);
}

.site-nav .nav-download::after {
  background: rgba(18, 32, 21, 0.45);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--bg);
}

.hero-bg,
.hero-bg img,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 13, 9, 0.9), rgba(8, 13, 9, 0.52) 46%, rgba(8, 13, 9, 0.28)),
    linear-gradient(180deg, rgba(8, 13, 9, 0.15), rgba(8, 13, 9, 0.92));
}

.hero-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 85%, transparent);
  animation: gridFloat 18s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
  gap: 40px;
  align-items: end;
  padding: 160px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #95d957;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

h2 {
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-subtitle strong {
  color: #f1d46a;
}

.hero-actions,
.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0 32%, rgba(255, 255, 255, 0.42) 45%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}

.btn-primary {
  color: #142015;
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(224, 184, 75, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #f0c95a;
  box-shadow: 0 16px 34px rgba(224, 184, 75, 0.38);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.hero-panel {
  padding: 20px;
  background: rgba(16, 28, 18, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-panel:hover,
.hero-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(224, 184, 75, 0.46);
  background: rgba(16, 28, 18, 0.86);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

.pixel-sprite {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 8px;
  margin-bottom: 18px;
}

.sprite-block,
.card-icon {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  box-shadow: inset 0 -6px rgba(0, 0, 0, 0.16), inset 0 6px rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease;
}

.hero-panel:hover .sprite-block,
.feature-card:hover .card-icon {
  transform: translateY(-2px) rotate(-2deg);
}

.grass {
  background: linear-gradient(#76b947 0 38%, #744b2d 38%);
}

.stone {
  background: linear-gradient(135deg, #77817b, #4e5752);
}

.ore {
  background:
    radial-gradient(circle at 70% 30%, #69d5ef 0 12%, transparent 13%),
    radial-gradient(circle at 35% 65%, #69d5ef 0 10%, transparent 11%),
    linear-gradient(135deg, #69726d, #46504b);
}

.wood {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 12%, transparent 12% 24%, rgba(0, 0, 0, 0.1) 24% 36%, transparent 36%),
    linear-gradient(#9b6940, #684124);
}

.stat-list {
  margin: 0;
}

.stat-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-list dt {
  color: var(--gold);
  font-weight: 900;
}

.stat-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p:last-child,
.section-copy p {
  color: var(--muted);
}

.two-column,
.world-layout,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 44px;
  align-items: center;
}

.media-card,
.wide-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.media-card::after,
.wide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 0;
  transition: opacity 220ms ease;
}

.media-card:hover,
.media-card:focus-within,
.wide-media:hover,
.wide-media:focus-within {
  transform: translateY(-5px);
  border-color: rgba(47, 141, 74, 0.28);
  box-shadow: var(--shadow-hover);
}

.media-card:hover::after,
.media-card:focus-within::after,
.wide-media:hover::after,
.wide-media:focus-within::after {
  opacity: 1;
}

.media-card img,
.wide-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.media-card:hover img,
.wide-media:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.media-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.check-list,
.mode-list ul,
.tips-grid p,
.feature-card p,
.world-copy p,
.timeline-item p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.check-list li:hover::before {
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg) scale(1.05);
}

.feature-band,
.guide-section {
  background:
    linear-gradient(180deg, rgba(47, 141, 74, 0.05), rgba(47, 141, 74, 0)),
    #fffaf0;
}

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

.feature-card,
.tip-card {
  position: relative;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 42, 29, 0.08);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.feature-card::before,
.tip-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.feature-card:hover,
.feature-card:focus-within,
.tip-card:hover,
.tip-card:focus-within {
  transform: translateY(-6px);
  background: #fffdf6;
  border-color: rgba(47, 141, 74, 0.28);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before,
.feature-card:focus-within::before,
.tip-card:hover::before,
.tip-card:focus-within::before {
  transform: scaleX(1);
}

.card-icon {
  margin-bottom: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 34px;
}

.wide-media img {
  height: 100%;
  min-height: 380px;
}

.mode-list,
.version-panel,
.timeline-item {
  padding: 26px;
  background: var(--bg-2);
  color: #fff;
  border-radius: var(--radius);
}

.mode-list,
.version-panel {
  box-shadow: 0 18px 44px rgba(5, 12, 7, 0.16);
}

.mode-list strong,
.version-panel strong,
.timeline-item strong {
  color: #95d957;
}

.mode-list ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.mode-list li + li {
  margin-top: 12px;
}

.worlds-section {
  background: var(--panel);
}

.world-layout {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--green-dark);
  font-weight: 900;
  border-bottom: 2px solid rgba(47, 141, 74, 0.32);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.text-link::after {
  content: ">";
  font-weight: 900;
  transition: transform 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #b98511;
  border-color: rgba(185, 133, 17, 0.48);
  transform: translateX(2px);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

.version-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
  background:
    linear-gradient(135deg, rgba(116, 185, 78, 0.16), transparent 42%),
    var(--bg-2);
}

.version-panel > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.version-panel > div:hover,
.version-panel > div:focus-within {
  transform: translateY(-3px);
  border-color: rgba(224, 184, 75, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.version-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.guide-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
}

.guide-steps {
  display: grid;
  gap: 14px;
}

.guide-steps article {
  position: relative;
  padding: 18px 18px 18px 72px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.guide-steps article:hover,
.guide-steps article:focus-within {
  transform: translateX(4px);
  background: #fffdf6;
  border-color: rgba(47, 141, 74, 0.28);
  box-shadow: 0 14px 32px rgba(29, 42, 29, 0.1);
}

.guide-steps span {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.guide-steps article:hover span {
  background: var(--gold);
  transform: rotate(-3deg) scale(1.04);
}

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

.guide-media img {
  min-height: 520px;
}

.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.update-section {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 23, 17, 0.88), rgba(15, 23, 17, 0.94)),
    url("img/tu5.jpeg") center/cover fixed;
}

.update-section .section-head p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.update-section h2,
.cta-section h2 {
  color: #95d957;
}

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

.timeline-item {
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 28, 18, 0.78);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.timeline-item:hover,
.timeline-item:focus-within {
  transform: translateY(-5px);
  border-color: rgba(224, 184, 75, 0.42);
  background: rgba(16, 28, 18, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.timeline-item time {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 900;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.78);
}

.update-media {
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.12);
}

.update-media img {
  max-height: 420px;
}

.faq-section {
  background: var(--panel);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(29, 42, 29, 0.06);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(47, 141, 74, 0.28);
  box-shadow: 0 16px 34px rgba(29, 42, 29, 0.1);
}

.faq-list details:hover {
  transform: translateY(-2px);
}

.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 900;
  transition: color 180ms ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 5px;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.faq-list details[open] summary,
.faq-list summary:hover {
  color: var(--green-dark);
}

.faq-list details[open] summary::after {
  content: "-";
  background: var(--gold);
  transform: translateY(-50%) rotate(180deg);
}

.faq-list p {
  padding: 0 20px 20px;
  margin-bottom: 0;
}

.cta-section {
  padding: 58px 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(224, 184, 75, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(47, 141, 74, 0.92), rgba(22, 34, 25, 0.96)),
    var(--green-dark);
}

.cta-wrap {
  justify-content: space-between;
  gap: 24px;
}

.cta-wrap p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-wrap h2 {
  margin-bottom: 10px;
}

.site-footer {
  padding: 48px 0 24px;
  color: rgba(255, 255, 255, 0.84);
  background: #0b110d;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.5fr) minmax(0, 1fr);
  gap: 38px;
}

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

.site-footer h2 {
  margin-bottom: 14px;
  color: #95d957;
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:not(.footer-brand):hover,
.site-footer a:not(.footer-brand):focus-visible {
  color: var(--gold);
  transform: translateX(3px);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.back-top {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.back-top:hover,
.back-top:focus-visible {
  color: #111c13;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.4%, -1%, 0);
  }
}

@keyframes gridFloat {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 42px 42px;
  }
}

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

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(15, 23, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content,
  .two-column,
  .world-layout,
  .guide-layout,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 130px;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-panel,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .guide-media img {
    min-height: 360px;
  }

  .update-section {
    background-attachment: scroll;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container,
  .narrow {
    width: min(100% - 24px, var(--container));
  }

  .nav-wrap {
    width: min(100% - 24px, var(--container));
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
    left: 12px;
    right: 12px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    gap: 24px;
    padding: 112px 0 44px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .guide-steps article {
    padding-left: 18px;
  }

  .guide-steps span {
    position: static;
    margin-bottom: 12px;
  }

  .wide-media img,
  .guide-media img {
    min-height: 260px;
  }

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