:root {
  --jade: #123c35;
  --deep: #0b2c27;
  --ivory: #f6f1e7;
  --paper: #fffdf8;
  --celadon: #a8c4b9;
  --mint: #e3eee9;
  --action: #c44737;
  --action-hover: #a83b31;
  --action-pressed: #8f3028;
  --text: #14211e;
  --muted: #5e6b66;
  --border: #d9e0da;
  --focus: #9a7330;
  --shadow-sm: 0 6px 24px rgba(11, 44, 39, 0.1);
  --shadow-md: 0 18px 56px rgba(11, 44, 39, 0.14);
  --display: "Songti SC", "Songti TC", STSong, serif;
  --sans: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

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

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

.container {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid #e9e4db;
  background: rgba(255, 253, 248, 0.98);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  width: min(1200px, calc(100% - 80px));
  height: 100%;
  margin-inline: auto;
}

.brand {
  color: var(--jade);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin: 0;
  padding: 0 24px;
  list-style: none;
}

.desktop-nav a {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--action);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease,
    box-shadow 120ms ease, transform 120ms ease;
}

.btn img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

.btn-primary {
  color: #fff;
  background: var(--action);
}

.btn-primary img {
  filter: brightness(0) invert(1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--action-hover);
  box-shadow: var(--shadow-sm);
}

.btn-primary:active,
.btn-primary.is-started {
  transform: translateY(0) scale(0.985);
  background: var(--action-pressed);
}

.btn-secondary {
  border-color: var(--jade);
  color: var(--jade);
  background: var(--paper);
}

.btn-secondary:hover {
  background: var(--mint);
}

.btn-secondary:active {
  background: #d4e4de;
}

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

.header-cta {
  min-width: 142px;
  font-size: 15px;
}

.mobile-controls,
.mobile-menu,
.mobile-only {
  display: none;
}

.hero-surface,
.error-page {
  background-color: var(--ivory);
  background-image: radial-gradient(circle at 12px 12px, rgba(196, 71, 55, 0.12) 1.5px, transparent 1.8px),
    linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(246, 241, 231, 0.97) 62%, rgba(227, 238, 233, 0.96));
  background-size: 72px 72px, 100% 100%;
}

.home-hero {
  min-height: 770px;
}

.home-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  min-height: 770px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 105px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--action);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.home-hero h1,
.download-hero h1 {
  margin: 0;
  color: var(--jade);
  font-family: var(--display);
  font-size: 62px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.225;
}

.hero-lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}

.hero-actions .btn {
  min-height: 58px;
}

.platform-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  padding-top: 32px;
}

.hero-media img {
  width: 550px;
  height: 690px;
  object-fit: contain;
}

.section {
  position: relative;
  scroll-margin-top: 96px;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2,
.split-copy h2,
.operation h2,
.download-final h2 {
  margin: 0;
  color: var(--jade);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.24;
}

.section-intro {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.76;
}

.features {
  min-height: 930px;
  padding: 90px 0 100px;
  background: var(--paper);
}

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

.feature-card {
  position: relative;
  min-height: 236px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.icon-box {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: var(--mint);
}

.icon-box.small {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.icon-box img {
  width: 24px;
  height: 24px;
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: var(--action);
  font-size: 13px;
  font-weight: 700;
}

.feature-card h3,
.mode-card h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.feature-card p,
.mode-card p,
.scene-card p,
.guide-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.games {
  min-height: 1510px;
  padding: 96px 0 70px;
  background: var(--ivory);
}

.game-list {
  display: grid;
  gap: 30px;
}

.game-story {
  position: relative;
  display: grid;
  min-height: 270px;
  grid-template-columns: minmax(0, 4fr) minmax(240px, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper);
}

.game-story.dark {
  border-color: transparent;
  color: #fff;
  background: var(--jade);
}

.game-story h3 {
  margin: 0 0 16px;
  color: var(--jade);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.35;
}

.game-story.dark h3 {
  color: #fff;
}

.game-story p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.game-story.dark p {
  color: #d6e4df;
}

.story-focus {
  display: inline-flex;
  margin-top: 24px;
  padding: 7px 18px;
  border-radius: 999px;
  color: var(--jade);
  background: var(--mint);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.game-story.dark .story-focus {
  color: var(--ivory);
  background: #1f5249;
}

.story-art {
  position: relative;
  align-self: stretch;
  min-height: 190px;
}

.tile-card {
  position: absolute;
  top: 8px;
  width: 102px;
  height: 150px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--ivory);
  box-shadow: 0 8px 24px rgba(11, 44, 39, 0.1);
}

.tile-card:first-child {
  right: 110px;
  transform: rotate(-7deg);
}

.tile-card:nth-child(2) {
  top: 34px;
  right: 8px;
  display: grid;
  place-items: center;
  transform: rotate(6deg);
  color: var(--jade);
  background: var(--mint);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
}

.modes {
  min-height: 700px;
  padding: 96px 0 70px;
  background: var(--paper);
}

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

.mode-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

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

.wide-scene {
  width: 100%;
  height: 180px;
  margin-top: 40px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 55%;
}

.social {
  min-height: 610px;
  padding: 100px 0;
  background: var(--ivory);
}

.split-layout {
  display: grid;
  grid-template-columns: 560px 1fr;
  align-items: center;
  gap: 80px;
}

.split-layout > img {
  width: 560px;
  height: 390px;
  border-radius: 26px;
  object-fit: cover;
}

.split-copy .eyebrow {
  margin-bottom: 22px;
}

.split-copy p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.76;
}

.pill-list {
  display: grid;
  grid-template-columns: repeat(2, 188px);
  gap: 18px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 999px;
  color: var(--jade);
  background: var(--mint);
  font-size: 14px;
  font-weight: 700;
}

.operation {
  min-height: 590px;
  padding: 96px 0 80px;
  color: #fff;
  background: var(--jade);
}

.operation .eyebrow {
  margin-bottom: 22px;
  color: #e0b6ad;
}

.operation h2 {
  color: #fff;
  font-size: 44px;
}

.operation-copy {
  max-width: 1120px;
  margin: 28px 0 0;
  color: #d6e4df;
  font-size: 17px;
  line-height: 1.76;
}

.operation-copy + .operation-copy {
  margin-top: 10px;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 42px;
  padding: 26px 24px;
  border-radius: 22px;
  background: #1c4a42;
}

.operation-item {
  display: grid;
  min-height: 98px;
  place-items: center;
  border-radius: 16px;
  background: #24584f;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.scenes {
  min-height: 610px;
  padding: 96px 0;
  background: var(--paper);
}

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

.scene-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.scene-card .icon-box {
  margin-bottom: 22px;
}

.scene-card p {
  padding-right: 20px;
  color: var(--text);
  font-size: 16px;
}

.guide {
  min-height: 610px;
  padding: 96px 0;
  background: var(--ivory);
}

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

.guide-card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
}

.step-number {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--jade);
  font-size: 15px;
  font-weight: 700;
}

.guide-card p {
  color: var(--text);
  font-size: 15px;
}

.download-cta {
  min-height: 420px;
  padding: 92px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--jade), var(--deep));
}

.download-cta h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.3;
}

.download-cta p {
  margin: 18px 0 0;
  color: #d6e4df;
  font-size: 17px;
}

.download-cta .cta-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}

.download-cta .platform-note {
  margin: 0;
  color: #b7cbc4;
}

.site-footer {
  min-height: 320px;
  padding: 72px 0 40px;
  color: #fff;
  background: var(--deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1fr;
  gap: 80px;
}

.footer-brand {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.footer-copy {
  margin: 16px 0 0;
  color: #c5d5cf;
  font-size: 14px;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #c5d5cf;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid #31544d;
  color: #9eb5ae;
  font-size: 12px;
}

/* Download page */
.download-hero {
  min-height: 850px;
}

.download-hero .hero-inner {
  display: grid;
  min-height: 850px;
  grid-template-columns: 6fr 6fr;
}

.download-hero .hero-copy {
  padding-top: 42px;
}

.breadcrumbs {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--jade);
}

.download-hero h1 {
  font-size: 58px;
}

.download-hero .hero-lead {
  max-width: 690px;
  font-size: 17px;
  line-height: 1.7;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 70px;
  padding: 5px 16px;
  border-radius: 999px;
  color: var(--jade);
  background: var(--mint);
  font-size: 14px;
  font-weight: 700;
}

.platform-badge img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.download-hero .hero-media {
  align-items: flex-end;
  padding: 0 30px 18px 0;
}

.download-hero .hero-media img {
  width: 500px;
  height: 500px;
}

.before-download {
  min-height: 520px;
  padding: 88px 0;
  background: var(--paper);
}

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

.info-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--ivory);
}

.info-card p {
  margin-top: 26px;
}

.quick-start {
  min-height: 700px;
  padding: 92px 0 70px;
  background: var(--ivory);
}

.quick-start .guide-grid {
  gap: 40px;
}

.quick-start .guide-card {
  min-height: 190px;
}

.quick-start .wide-scene {
  height: 150px;
}

.game-overview {
  min-height: 750px;
  padding: 88px 0;
  background: var(--paper);
}

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

.overview-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper);
}

.overview-card.dark {
  border-color: transparent;
  color: #fff;
  background: var(--jade);
}

.overview-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: var(--jade);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.3;
}

.overview-card.dark h3 {
  color: #fff;
}

.overview-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.overview-card.dark p {
  color: #d6e4df;
}

.overview-card .story-art {
  position: absolute;
  right: -85px;
  bottom: -42px;
  width: 210px;
  opacity: 0.55;
}

.download-final {
  min-height: 330px;
  padding: 88px 0 58px;
  color: #fff;
  background: linear-gradient(135deg, var(--jade), var(--deep));
}

.download-final h2 {
  color: #fff;
  font-size: 40px;
}

.download-final p {
  margin: 18px 0 32px;
  color: #d6e4df;
  font-size: 15px;
}

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h));
}

.error-main {
  display: flex;
  min-height: calc(100vh - var(--header-h));
  align-items: flex-start;
  justify-content: center;
  padding: 40px 40px 80px;
}

.error-content {
  width: min(760px, 100%);
  text-align: center;
}

.error-visual {
  width: 650px;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  border-radius: 28px;
  object-fit: cover;
  animation: errorIn 320ms ease-out both;
}

.error-content h1 {
  margin: -2px 0 0;
  color: var(--jade);
  font-family: var(--display);
  font-size: 50px;
  line-height: 1.3;
}

.error-content p {
  max-width: 690px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 52px;
}

.error-actions .btn {
  min-width: 180px;
  min-height: 56px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 26px;
  color: var(--jade);
  font-size: 14px;
  font-weight: 700;
}

.text-link img {
  width: 18px;
  height: 18px;
  margin-left: 6px;
}

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

.reveal.is-visible {
  animation: revealIn 280ms ease-out both;
  animation-delay: var(--reveal-delay, 0ms);
}

.hero-copy {
  animation: heroTextIn 360ms ease-out both;
}

.hero-media img {
  animation: heroImageIn 480ms 80ms ease-out both;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes errorIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .container {
    width: min(730px, calc(100% - 64px));
  }

  .nav-wrap {
    width: calc(100% - 80px);
  }

  .brand {
    font-size: 30px;
  }

  .desktop-nav {
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px;
  }

  .desktop-nav a {
    font-size: 13px;
  }

  .header-cta {
    min-width: 142px;
    padding-inline: 18px;
  }

  .home-hero,
  .home-hero .hero-inner {
    min-height: 1050px;
  }

  .home-hero .hero-inner {
    position: relative;
    display: block;
  }

  .hero-copy {
    padding-top: 80px;
  }

  .home-hero h1,
  .download-hero h1 {
    font-size: 50px;
    line-height: 1.28;
  }

  .home-hero .hero-lead {
    max-width: 590px;
    font-size: 17px;
  }

  .home-hero .hero-media {
    position: absolute;
    right: -8px;
    bottom: 20px;
    width: 460px;
    height: 570px;
    padding: 0;
  }

  .home-hero .hero-media img {
    width: 460px;
    height: 570px;
  }

  .section-heading h2,
  .split-copy h2 {
    font-size: 38px;
  }

  .features {
    min-height: 1610px;
    padding: 96px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 74px 24px;
  }

  .games {
    min-height: 2170px;
    padding: 96px 0;
  }

  .game-story {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .game-list {
    gap: 40px;
  }

  .games .wide-scene {
    height: 490px;
  }

  .modes {
    min-height: 1170px;
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .modes .wide-scene {
    height: 360px;
  }

  .social {
    min-height: 870px;
    padding: 96px 0;
  }

  .split-layout {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 54px;
  }

  .split-layout > img {
    width: 100%;
    height: 400px;
  }

  .pill-list {
    display: none;
  }

  .operation {
    min-height: 830px;
  }

  .operation h2 {
    font-size: 40px;
  }

  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 0;
    background: transparent;
  }

  .operation-item {
    min-height: 92px;
  }

  .scenes {
    min-height: 520px;
  }

  .scene-grid {
    gap: 24px;
  }

  .scene-card {
    min-width: 0;
  }

  .guide {
    min-height: 720px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .download-cta {
    min-height: 380px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 0.6fr 0.8fr;
    gap: 36px;
  }

  .download-hero,
  .download-hero .hero-inner {
    min-height: 1050px;
  }

  .download-hero .hero-inner {
    position: relative;
    display: block;
  }

  .download-hero .hero-copy {
    padding-top: 42px;
  }

  .download-hero .hero-media {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 420px;
    height: 610px;
    padding: 0;
  }

  .download-hero .hero-media img {
    width: 390px;
    height: 610px;
  }

  .before-download {
    min-height: 660px;
  }

  .info-grid {
    gap: 20px;
  }

  .quick-start {
    min-height: 980px;
  }

  .quick-start .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }

  .quick-start .wide-scene {
    height: 160px;
  }

  .game-overview {
    min-height: 1080px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }

  .error-main {
    padding-top: 70px;
  }

  .error-visual {
    width: 620px;
  }

  .error-content h1 {
    font-size: 46px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .site-header,
  .nav-wrap {
    height: 64px;
  }

  .nav-wrap {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
  }

  .brand {
    font-size: 23px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-only {
    display: block;
  }

  .mobile-download {
    min-width: 86px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    place-items: center;
    border-radius: 10px;
    color: var(--jade);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: var(--mint);
  }

  .menu-toggle img {
    width: 24px;
    height: 24px;
  }

  .mobile-menu {
    position: fixed;
    z-index: 99;
    top: 64px;
    right: 0;
    left: 0;
    display: block;
    visibility: hidden;
    padding: 18px 20px 24px;
    transform: translateY(-12px);
    opacity: 0;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    box-shadow: var(--shadow-md);
    transition: visibility 0s linear 220ms, opacity 220ms ease, transform 220ms ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0s;
  }

  .mobile-menu ul {
    display: grid;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
  }

  .mobile-menu a:not(.btn) {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--jade);
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-menu a:not(.btn):hover {
    background: var(--mint);
  }

  .mobile-menu .btn {
    width: 100%;
  }

  .section {
    scroll-margin-top: 80px;
  }

  .home-hero,
  .home-hero .hero-inner {
    min-height: 1040px;
  }

  .home-hero .hero-inner,
  .download-hero .hero-inner {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    padding-top: 60px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .home-hero h1,
  .download-hero h1 {
    font-size: 38px;
    line-height: 1.37;
  }

  .hero-lead,
  .download-hero .hero-lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    gap: 14px;
    margin-top: 32px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 56px;
  }

  .platform-note {
    margin-top: 20px;
    font-size: 13px;
  }

  .hero-media {
    flex: 1;
    justify-content: center;
    padding-top: 28px;
  }

  .hero-media img {
    width: 280px;
    height: 440px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .split-copy h2,
  .operation h2,
  .download-final h2 {
    font-size: 34px;
    line-height: 1.3;
  }

  .section-intro {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.8;
  }

  .features {
    min-height: 2260px;
    padding: 80px 0 88px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .feature-card {
    min-height: 236px;
    padding: 20px;
  }

  .games {
    min-height: 2836px;
    padding: 80px 0;
  }

  .game-list {
    gap: 30px;
  }

  .game-story {
    display: block;
    min-height: 320px;
    padding: 28px 30px;
  }

  .game-story h3 {
    font-size: 28px;
  }

  .game-story p {
    position: relative;
    z-index: 2;
    font-size: 15px;
    line-height: 1.72;
  }

  .story-focus {
    position: relative;
    z-index: 2;
    max-width: 72%;
    margin-top: 18px;
    padding: 7px 14px;
    white-space: normal;
  }

  .story-art {
    position: absolute;
    z-index: 1;
    right: -12px;
    bottom: -34px;
    width: 128px;
    min-height: 170px;
    opacity: 0.75;
  }

  .tile-card {
    width: 76px;
    height: 116px;
  }

  .tile-card:first-child {
    right: 72px;
  }

  .tile-card:nth-child(2) {
    right: -6px;
    font-size: 23px;
  }

  .games .wide-scene {
    height: 620px;
    margin-top: 80px;
    border-radius: 20px;
    object-position: center;
  }

  .modes {
    min-height: 1090px;
    padding: 80px 0;
  }

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

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

  .modes .wide-scene {
    display: none;
  }

  .social {
    min-height: 1220px;
    padding: 92px 0 80px;
  }

  .split-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 42px;
  }

  .split-layout > img {
    width: 100%;
    height: 520px;
    border-radius: 20px;
    object-position: center;
  }

  .split-copy p {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.8;
  }

  .pill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    margin-top: 30px;
  }

  .pill-list li {
    font-size: 13px;
  }

  .operation {
    min-height: 1320px;
    padding: 92px 0 80px;
  }

  .operation-copy {
    font-size: 15px;
    line-height: 1.86;
  }

  .operation-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 68px;
    padding: 0;
    background: transparent;
  }

  .operation-item {
    min-height: 122px;
  }

  .scenes {
    min-height: 1320px;
    padding: 92px 0 80px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .scene-card {
    min-height: 230px;
    padding: 22px;
  }

  .guide {
    min-height: 1370px;
    padding: 92px 0 80px;
  }

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

  .guide-card {
    min-height: 220px;
  }

  .download-cta {
    min-height: 670px;
    padding: 92px 0;
  }

  .download-cta h2 {
    font-size: 34px;
  }

  .download-cta p {
    font-size: 15px;
    line-height: 1.8;
  }

  .download-cta .cta-actions {
    display: grid;
    gap: 20px;
    margin-top: 40px;
  }

  .download-cta .btn {
    width: 100%;
    min-height: 58px;
  }

  .site-footer {
    min-height: 430px;
    padding: 56px 0 30px;
  }

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

  .footer-brand {
    font-size: 27px;
  }

  .footer-copy {
    margin-top: 10px;
  }

  .footer-heading {
    margin-bottom: 6px;
  }

  .footer-links a {
    min-height: 36px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
  }

  .download-hero,
  .download-hero .hero-inner {
    min-height: 1040px;
  }

  .download-hero .hero-copy {
    padding-top: 40px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .download-hero h1 {
    font-size: 40px;
  }

  .platform-badge {
    margin-top: 36px;
  }

  .download-hero .hero-media {
    align-items: flex-start;
    padding: 34px 0 0;
  }

  .download-hero .hero-media img {
    width: 280px;
    height: 390px;
  }

  .before-download {
    min-height: 850px;
    padding: 86px 0 70px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-card {
    min-height: 160px;
  }

  .quick-start {
    min-height: 1350px;
    padding: 92px 0 80px;
  }

  .quick-start .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-start .guide-card {
    min-height: 220px;
  }

  .quick-start .wide-scene {
    display: none;
  }

  .game-overview {
    min-height: 1500px;
    padding: 86px 0 70px;
  }

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

  .overview-card {
    min-height: 270px;
  }

  .download-final {
    min-height: 420px;
    padding: 76px 0 64px;
  }

  .download-final p {
    font-size: 15px;
    line-height: 1.8;
  }

  .download-final .btn {
    width: 100%;
  }

  .error-main {
    min-height: calc(100vh - 64px);
    padding: 42px 20px 70px;
  }

  .error-content {
    width: 100%;
  }

  .error-visual {
    width: min(320px, 100%);
    border-radius: 20px;
  }

  .error-content h1 {
    margin-top: 24px;
    font-size: 30px;
  }

  .error-content p {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.78;
  }

  .error-actions {
    display: grid;
    gap: 14px;
    margin-top: 44px;
  }

  .error-actions .btn {
    width: 100%;
    min-height: 54px;
  }

  .text-link {
    margin-top: 24px;
  }
}

@media (max-width: 359px) {
  .container,
  .nav-wrap {
    width: calc(100% - 32px);
  }

  .home-hero h1,
  .download-hero h1 {
    font-size: 32px;
    line-height: 1.375;
  }

  .mobile-download {
    min-width: 76px;
    padding-inline: 14px;
  }

  .mobile-controls {
    gap: 2px;
  }

  .game-story,
  .overview-card {
    padding-inline: 24px;
  }
}

@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.08s !important;
  }

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