:root {
  --sky: #71c2ee;
  --sky-deep: #1786cf;
  --cloud: #f8fcff;
  --ink: #17364b;
  --muted: #527080;
  --green: #2e8560;
  --green-dark: #1d654a;
  --gold: #ffbd31;
  --paper: #fffdf4;
  --line: rgba(23, 54, 75, .12);
  --shadow: 0 28px 80px rgba(16, 73, 111, .23);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #eef8ee;
  font-family: Inter, ui-rounded, "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.lang-zh { display: none !important; }

html[data-lang="zh"] .lang-en { display: none !important; }
html[data-lang="zh"] .lang-zh { display: revert !important; }

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

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--green-dark);
  border-radius: 999px;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #143c52;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(29, 101, 74, .18);
}

nav { display: flex; gap: 1.65rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: #234e62;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover { color: var(--green-dark); }

.language-toggle {
  min-width: 3.2rem;
  min-height: 2.3rem;
  padding: .35rem .72rem;
  color: #234e62;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(23, 54, 75, .09);
}

.language-toggle:hover { background: rgba(255,255,255,.86); }

a:focus-visible {
  outline: 3px solid rgba(255, 189, 49, .82);
  outline-offset: 4px;
  border-radius: .35rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 47rem;
  overflow: hidden;
  grid-template-columns: minmax(0, .88fr) minmax(30rem, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: 8rem max(1.25rem, calc((100vw - 1180px) / 2)) 6rem;
  background: linear-gradient(150deg, #c8edff 0%, #8fd1ef 42%, #e6f4cf 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8vw;
  bottom: -13rem;
  left: -8vw;
  height: 22rem;
  background: #77b96e;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -2rem 0 rgba(242, 241, 183, .48);
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .26;
  background:
    radial-gradient(circle at 76% 34%, rgba(255,255,255,.92) 0 6rem, transparent 6.1rem),
    radial-gradient(circle at 12% 38%, rgba(255,255,255,.68) 0 8rem, transparent 8.1rem);
}

.hero-cloud {
  position: absolute;
  z-index: -1;
  width: 12rem;
  height: 4rem;
  background: rgba(255,255,255,.48);
  border-radius: 999px;
  filter: blur(1px);
}

.hero-cloud::before,
.hero-cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 5.5rem;
  height: 5.5rem;
  background: inherit;
  border-radius: 50%;
}

.hero-cloud::before { left: 1.5rem; }
.hero-cloud::after { right: 1.5rem; width: 7rem; height: 7rem; }
.cloud-one { top: 10rem; left: -5rem; }
.cloud-two { right: 8%; bottom: 3rem; transform: scale(.72); }

.hero-content { position: relative; z-index: 2; max-width: 35rem; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #17435a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.65rem, 7vw, 6.8rem);
  line-height: .88;
  letter-spacing: -.065em;
  text-wrap: balance;
}

h1 span {
  color: var(--green-dark);
  text-shadow: 0 3px 0 rgba(255,255,255,.48);
}

.hero-copy {
  max-width: 34rem;
  margin: 1.65rem 0 0;
  color: #365d6d;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.2rem;
  border: 2px solid transparent;
  border-radius: .9rem;
  font-size: .93rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.button-primary {
  color: white;
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(29, 101, 74, .26);
}

.button-primary:hover { background: #174f3b; }

.google-play-link {
  display: inline-block;
  width: 11rem;
  line-height: 0;
  text-decoration: none;
}

.google-play-link img {
  width: 100%;
  height: auto;
}

.button-secondary {
  color: var(--green-dark);
  background: rgba(255,255,255,.52);
  border-color: rgba(255,255,255,.82);
}

.hero-facts {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: .78rem;
}

.hero-facts li { max-width: 6.5rem; }

.hero-facts strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1;
  text-shadow: 0 1px 0 #9f6819;
}

.hero-visual { position: relative; z-index: 1; }

.game-frame {
  overflow: hidden;
  border: .55rem solid rgba(255,255,255,.88);
  border-radius: clamp(1.25rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.game-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.hero-icon {
  position: absolute;
  right: -2.25rem;
  bottom: -3.4rem;
  width: clamp(7rem, 14vw, 11rem);
  border: .35rem solid white;
  border-radius: 2rem;
  box-shadow: 0 18px 38px rgba(19, 67, 90, .28);
  transform: rotate(5deg);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section-heading { max-width: 42rem; }

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

h2 {
  margin: 0;
  color: #173f54;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

h3 {
  margin: 1.35rem 0 .5rem;
  color: #204e5c;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 1.45rem;
  line-height: 1.2;
}

.adventure {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 2.5rem 6rem;
  align-items: end;
}

.adventure-copy {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.adventure-copy p { margin: 0 0 1rem; }

.adventure-image {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 1.5rem 0 0;
  border: .5rem solid white;
  border-radius: 2rem;
  box-shadow: 0 25px 70px rgba(31, 75, 87, .18);
}

.adventure-image img {
  width: 100%;
  max-height: 39rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.adventure-image figcaption,
.gallery-item figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: .85rem 1rem;
  color: white;
  background: rgba(16, 51, 65, .7);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .85rem;
  font-size: .87rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.features {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(rgba(255,253,244,.96), rgba(255,253,244,.96)),
    repeating-linear-gradient(0deg, transparent 0 2.5rem, rgba(38,83,69,.06) 2.5rem calc(2.5rem + 1px));
  border-block: 1px solid rgba(37, 84, 72, .1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 3.25rem;
}

.feature-card {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  padding: 1.65rem;
  background: #f4f7e7;
  border: 1px solid #dfe6c9;
  border-radius: 1.45rem;
}

.featured-card {
  color: #e5f3eb;
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1rem);
  box-shadow: 0 20px 45px rgba(29, 101, 74, .2);
}

.featured-card h3 { color: white; }

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.featured-card p { color: #c6ded3; }

.feature-number {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  color: rgba(32, 78, 92, .25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.featured-card .feature-number { color: rgba(255,255,255,.25); }

.feature-symbol {
  display: grid;
  width: 7.5rem;
  height: 7.5rem;
  margin-top: 2.2rem;
  place-items: center;
}

.feature-roll {
  width: 6.5rem;
  height: 6.5rem;
  background: radial-gradient(circle at 34% 28%, white 0 .55rem, transparent .62rem), linear-gradient(145deg, #fff, #d9e7e5);
  border: .22rem solid #285264;
  border-radius: 50%;
  box-shadow: inset -.55rem -.55rem 0 rgba(43, 103, 111, .09), 0 10px 20px rgba(31, 75, 87, .12);
}

.feature-puzzle {
  position: relative;
  width: 6.4rem;
  height: 6.4rem;
  background: #da8e42;
  border: .3rem solid #61432f;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 .75rem #b56a35, 0 12px 22px rgba(9, 49, 36, .24);
  transform: rotate(-8deg);
}

.feature-puzzle::after {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  background: var(--gold);
  border: .2rem solid #7d5115;
  border-radius: 50%;
}

.feature-star {
  color: var(--gold);
  font-size: 7rem;
  line-height: 1;
  text-shadow: 0 .12rem 0 #b26c16, 0 12px 24px rgba(178,108,22,.22);
  transform: rotate(7deg);
}

.mechanics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: white;
  background: #173f54;
  border-block: 1px solid rgba(255,255,255,.1);
}

.mechanic {
  display: flex;
  min-height: 9rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(255,255,255,.12);
  text-align: left;
}

.mechanic:last-child { border-right: 0; }

.mechanic strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.mechanic span { max-width: 7rem; color: #d5e4e8; font-size: .85rem; font-weight: 800; }

.gallery { padding-bottom: clamp(6rem, 11vw, 10rem); }

.gallery-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.gallery-intro > p {
  max-width: 31rem;
  margin: 0 0 .4rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.gallery-grid {
  display: grid;
  grid-auto-rows: 15rem;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  margin: 0;
  background: #d8e8e0;
  border: .32rem solid white;
  border-radius: 1.2rem;
  box-shadow: 0 14px 34px rgba(22, 66, 78, .13);
}

.gallery-item.gallery-wide { grid-column: span 8; }
.gallery-item.gallery-tall { grid-column: span 4; grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item:hover img { transform: scale(1.035); }

.gallery-item figcaption {
  right: .7rem;
  bottom: .7rem;
  left: .7rem;
  padding: .65rem .8rem;
  font-size: .76rem;
  opacity: 0;
  transform: translateY(.5rem);
  transition: opacity .25s ease, transform .25s ease;
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { opacity: 1; transform: translateY(0); }

.final-cta {
  display: grid;
  min-height: 33rem;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 23% 12%, rgba(255,255,255,.18), transparent 22rem),
    linear-gradient(135deg, #1768a0, #174c65 60%, #173f54);
}

.cta-art {
  position: relative;
  min-height: 33rem;
  background:
    radial-gradient(circle at 50% 52%, rgba(255,189,49,.22) 0 10rem, transparent 10.2rem),
    radial-gradient(circle at 50% 100%, #72b96b 0 15rem, transparent 15.2rem);
}

.cta-art::before,
.cta-art::after {
  content: "★";
  position: absolute;
  color: rgba(255, 208, 78, .68);
  font-size: 2.25rem;
}

.cta-art::before { top: 17%; left: 20%; transform: rotate(-12deg); }
.cta-art::after { right: 18%; bottom: 22%; transform: rotate(10deg) scale(.7); }

.cta-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(19rem, 62%);
  border: .45rem solid rgba(255,255,255,.9);
  border-radius: 3rem;
  box-shadow: 0 25px 60px rgba(7, 37, 51, .32);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.cta-copy { max-width: 35rem; padding: 4rem clamp(2rem, 7vw, 8rem) 4rem 1rem; }
.cta-copy .eyebrow { color: #a5e6bf; }
.cta-copy h2 { color: white; }
.cta-copy p:not(.eyebrow) { margin: 1rem 0 1.75rem; color: #d3e6ec; font-size: 1.08rem; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem max(1rem, calc((100vw - 1120px) / 2));
  color: #58707b;
  background: #f7f7ed;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand img { width: 2.75rem; height: 2.75rem; border-radius: .85rem; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--ink); font-size: .95rem; }
.footer-links { display: flex; gap: 1.35rem; }
.footer-links a { color: #466270; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--green-dark); }
footer > p { margin: 0; text-align: right; }

@media (max-width: 900px) {
  .site-header nav a:not(:last-child) { display: none; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 7.5rem;
    text-align: center;
  }
  .hero-content { max-width: 46rem; margin: 0 auto; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-visual { width: min(47rem, 94%); margin: 0 auto; }
  .adventure { grid-template-columns: 1fr; }
  .adventure-copy { max-width: 44rem; }
  .feature-grid { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; }
  .featured-card { transform: none; }
  .feature-card { min-height: 18rem; }
  .mechanics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mechanic:nth-child(2) { border-right: 0; }
  .mechanic:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .gallery-intro { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.gallery-wide, .gallery-item.gallery-tall { grid-column: span 6; grid-row: span 1; }
  .final-cta { grid-template-columns: 1fr; text-align: center; }
  .cta-art { min-height: 26rem; }
  .cta-copy { max-width: 44rem; padding: 4rem 1.5rem 5rem; margin-inline: auto; }
  .cta-copy .google-play-link { margin-inline: auto; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer > p { text-align: center; }
}

@media (max-width: 560px) {
  .site-header { min-height: 4.75rem; }
  .brand img { width: 2.65rem; height: 2.65rem; }
  nav { gap: 1rem; }
  .hero { padding-top: 6.5rem; padding-bottom: 5rem; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { gap: .8rem; }
  .game-frame { border-width: .35rem; }
  .hero-icon { right: -1.25rem; bottom: -2.4rem; border-radius: 1.3rem; }
  .header-actions { gap: .65rem; }
  .adventure-image { border-width: .3rem; border-radius: 1.25rem; }
  .mechanics-band { grid-template-columns: 1fr; }
  .mechanic { min-height: 6.5rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: .8rem;
    padding: 0 1rem 1rem;
    margin-inline: -1rem;
    scroll-snap-type: x mandatory;
  }
  .gallery-item,
  .gallery-item.gallery-wide,
  .gallery-item.gallery-tall {
    min-width: 82vw;
    height: 14rem;
    scroll-snap-align: center;
  }
  .gallery-item figcaption { opacity: 1; transform: none; }
  .cta-art { min-height: 22rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .gallery-item img, .gallery-item figcaption { transition: none; }
}
