:root {
  --display-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ink: #211e1b;
  --muted: #665f58;
  --paper: #fffaf3;
  --surface: #ffffff;
  --soft: #f6f1e9;
  --line: #e9e0d5;
  --orange: #ff971f;
  --orange-strong: #f47d00;
  --orange-pale: #fff0d9;
  --dark: #29231f;
  --header-height: 76px;
}
* { box-sizing: border-box; }
html {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, .interface-grid:focus-visible {
  outline: 3px solid var(--orange-strong);
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
.container { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid rgba(33, 30, 27, .08);
  background: rgba(255, 250, 243, .96);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 23px; font-weight: 750; letter-spacing: -.035em; }
.brand { flex: none; }
.brand img, .footer-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); margin-left: auto; white-space: nowrap; font-size: 14px; font-weight: 650; }
.desktop-nav a, .site-footer nav a { transition: color .2s ease; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--orange-strong); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: 36px; padding: 0 18px; border-radius: 100px;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.header-cta:hover, .button-primary:hover { background: var(--orange-strong); transform: translateY(-2px); }

.hero { overflow: hidden; background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 89px;
  padding-block: 95px 0;
}
.hero-copy { max-width: 1050px; text-align: center; }
.hero h1 {
  margin: 0; font-family: var(--display-font); font-size: clamp(64px, 6.2vw, 94px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.065em;
}
.hero-tagline {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px;
  font-size: clamp(30px, 3vw, 44px); font-weight: 650; font-style: normal; line-height: 1.35;
  letter-spacing: -.025em;
}
.hero-tagline em, .hero-tagline strong { font-style: normal; font-weight: inherit; white-space: nowrap; }
.hero-tagline em { color: var(--orange-strong); }
.hero-description { max-width: 620px; margin: 29px auto 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 31px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border: 1px solid transparent;
  border-radius: 100px; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.button-primary { width: 260px; max-width: 100%; background: var(--orange); color: #fff; font-size: 18px; }
.hero-media {
  position: relative; width: min(1130px, 100%); height: 270px; overflow: hidden;
  background: transparent;
}
.hero-media::before {
  content: ""; position: absolute; left: 50%; bottom: -20px; width: min(680px, 80%); height: 100px;
  border-radius: 50%; background: rgba(91, 51, 17, .28); filter: blur(34px); transform: translateX(-50%);
}
.hero-screen {
  position: absolute; z-index: 1; left: 50%; top: 45px; width: 430px;
  overflow: hidden; border: 9px solid #24211e; border-radius: 40px;
  background: #fff; box-shadow: 0 18px 35px rgba(72, 40, 8, .22), 0 55px 90px rgba(72, 40, 8, .24);
  transform: translateX(-50%);
}
.hero-screen img { width: 100%; height: auto; }

.section { padding: 110px 0; }
.section-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 390px);
  align-items: end; gap: 35px; margin-bottom: 43px;
}
.section-heading h2, .faq-grid h2, .download-inner h2 {
  margin: 0; font-family: var(--display-font);
  font-size: clamp(39px, 4vw, 58px); font-weight: 800; line-height: 1.14; letter-spacing: -.06em;
}
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.game-wall, .feature-grid, .interface-grid { display: grid; gap: 16px; }

.games-section { padding-block: 121px 103px; background: #f7f3ec; }
.games-section .section-heading { grid-template-columns: 1fr; justify-items: center; gap: 8px; text-align: center; margin-bottom: 59px; }
.games-section .section-heading > p { max-width: none; }
.game-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.wall-tile {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-width: 0; min-height: 204px; overflow: hidden; padding: 24px;
  border-radius: 20px; background: var(--tile-bg); color: var(--tile-fg, var(--ink));
  transition: transform .22s ease;
}
.wall-tile:hover { transform: translateY(-4px); }
.wall-tile h3 { position: relative; z-index: 1; margin: 0; font-family: var(--display-font); font-size: 25px; font-weight: 800; line-height: 1.2; }
.wall-art {
  position: absolute; top: -26px; right: 5px; color: var(--tile-art, rgba(255, 255, 255, .3));
  font-family: var(--display-font); font-size: 150px; font-weight: 800; line-height: 1; pointer-events: none;
}
.wall-tile-wide { grid-column: span 3; min-height: 280px; }
.wall-tile-wide h3 { font-size: clamp(36px, 3.6vw, 51px); }
.wall-tile-wide .wall-art { right: 25px; font-size: 220px; }
.wall-tile:nth-child(1) { --tile-bg: #ff9b27; --tile-art: rgba(255, 255, 255, .23); }
.wall-tile:nth-child(2) { --tile-bg: #2d2926; --tile-fg: #fff9ee; --tile-art: rgba(255, 255, 255, .1); grid-column: span 2; }
.wall-tile:nth-child(3) { --tile-bg: #f3ddd0; --tile-art: rgba(255, 255, 255, .35); }
.wall-tile:nth-child(4) { --tile-bg: #e9e4dc; --tile-art: rgba(255, 255, 255, .42); grid-column: span 2; }
.wall-tile:nth-child(5) { --tile-bg: #f9dcae; --tile-art: rgba(255, 255, 255, .38); }
.wall-tile:nth-child(6) { --tile-bg: #e1e6dc; --tile-art: rgba(255, 255, 255, .45); grid-column: span 2; }
.wall-tile:nth-child(7) { --tile-bg: #eeae84; --tile-art: rgba(255, 255, 255, .34); }
.wall-tile:nth-child(8) { --tile-bg: #e8e0d3; --tile-art: rgba(255, 255, 255, .4); grid-column: span 2; }
.wall-tile:nth-child(9) { --tile-bg: #38312d; --tile-fg: #fff8ed; --tile-art: rgba(255, 255, 255, .1); grid-column: span 3; }

.features-section { padding-block: 105px 120px; background: var(--paper); }
.features-section .section-heading h2 { max-width: 11em; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card {
  display: flex; flex-direction: column; min-width: 0; padding: 30px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.feature-card:nth-child(1), .feature-card:nth-child(4) {
  position: relative; min-height: 400px; overflow: hidden; padding: 44px 46px;
}
.feature-card:nth-child(1) { color: #fff9ef; border-color: var(--dark); background: var(--dark); }
.feature-card:nth-child(4) { border-color: #f4dbb4; background: #ffefd5; }
.feature-card:nth-child(2), .feature-card:nth-child(3) { position: relative; justify-content: flex-end; min-height: 255px; padding: 38px 40px; }
.feature-card h3 { position: relative; z-index: 1; margin: 0 0 12px; font-family: var(--display-font); font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.feature-card p { position: relative; z-index: 1; max-width: 18em; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.feature-card:nth-child(1) p { color: #e2d7cb; }
.feature-visual { position: absolute; right: 36px; top: 45px; width: 35%; height: 440px; overflow: hidden; border: 7px solid #29231f; border-radius: 31px; box-shadow: 0 20px 45px rgba(0, 0, 0, .16); }
.feature-visual img { width: 100%; height: auto; }
.feature-card:nth-child(1) > :not(.feature-visual), .feature-card:nth-child(4) > :not(.feature-visual) { max-width: 53%; }
.feature-card:nth-child(4) .feature-visual { border-color: #28231e; }

.interface-section { padding-block: 116px 130px; background: #f4f0e9; }
.interface-grid {
  grid-auto-flow: column; grid-auto-columns: max(255px, calc((100% - 54px) / 4));
  grid-template-columns: none; gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #ddad6d transparent;
  padding-bottom: 15px;
}
.interface-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  scroll-snap-align: start; border: 1px solid #e7ddd1; border-radius: 21px; background: var(--surface);
}
.screen-preview { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 316 / 536; background: #ffe8c8; }
.interface-card:nth-child(2) .screen-preview { background: #eeeae4; }
.interface-card:nth-child(3) .screen-preview { background: #f5e4dc; }
.interface-card:nth-child(4) .screen-preview { background: #e7e6df; }
.screen-preview img { position: absolute; top: 50%; left: 50%; width: auto; height: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px); object-fit: contain; border-radius: 9px; box-shadow: 0 14px 32px rgba(50, 42, 30, .15); transform: translate(-50%, -50%); }
.screen-preview--poster img { border-radius: 4px; }
.interface-copy { padding: 22px 22px 25px; }
.interface-copy h3 { margin: 0 0 7px; font-family: var(--display-font); font-size: 23px; font-weight: 800; line-height: 1.26; }
.interface-copy p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }


.faq-section { padding-block: 106px 126px; background: #f7f3ec; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(46px, 7vw, 112px); }
.faq-grid h2 { max-width: 7em; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { padding: 22px 0; border-bottom: 1px solid #d9d0c5; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--orange-strong); font-size: 27px; font-weight: 500; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 620px; margin: 15px 36px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.download-section { padding-block: 110px; background: var(--orange); }
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.download-inner > div:first-child { width: 100%; }
.download-inner h2 { max-width: 850px; margin: 0 auto 16px; }
.download-inner p:last-child { margin: 0; color: #4f371b; font-size: 15px; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.download-actions .button-primary { background: var(--dark); }
.download-actions .button-primary:hover { background: #423832; }

.site-footer { padding: 55px 0 25px; background: #fffaf3; }
.footer-main { display: flex; justify-content: space-between; gap: 34px; }
.footer-main p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 15px 26px; max-width: 610px; font-size: 14px; font-weight: 700; }
.footer-bottom { margin-top: 73px; padding-top: 19px; border-top: 1px solid var(--line); color: #8a8178; font-size: 12px; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid { gap: 74px; }
  .game-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall-tile:nth-child(2), .wall-tile:nth-child(4), .wall-tile:nth-child(6), .wall-tile:nth-child(8) { grid-column: span 2; }
  .wall-tile:nth-child(9) { grid-column: span 3; }
}
@media (max-width: 900px) {
  .hero-grid { gap: 60px; padding-block: 74px 0; }
  .hero-copy { max-width: 730px; }
  .hero h1 { font-size: clamp(58px, 8vw, 76px); }
  .hero-media { width: min(100%, 730px); height: 235px; }
  .hero-screen { top: 34px; width: 315px; }
  .section-heading { grid-template-columns: 1fr; gap: 13px; }
  .section-heading > p { max-width: 600px; }
  .games-section, .features-section, .interface-section, .faq-section { padding-block: 88px 96px; }
  .feature-card:nth-child(1), .feature-card:nth-child(4), .feature-card:nth-child(2), .feature-card:nth-child(3) { min-height: 0; padding: 30px; }
  .feature-card:nth-child(1) > :not(.feature-visual), .feature-card:nth-child(4) > :not(.feature-visual) { max-width: none; }
  .feature-card:nth-child(2), .feature-card:nth-child(3) { justify-content: flex-start; }
  .feature-visual { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 650px) {
  :root { --header-height: 68px; }
  .container { width: min(100% - 32px, 1320px); }
  .brand { font-size: 20px; }
  .brand img { width: 37px; height: 37px; }
  .header-cta { min-height: 32px; padding: 0 13px; font-size: 12px; }
  .hero-grid { gap: 46px; padding-block: 54px 0; }
  .hero h1 { font-size: clamp(48px, 12vw, 68px); }
  .hero-tagline { margin-top: 12px; gap: 6px 12px; font-size: clamp(22px, 5.6vw, 30px); }
  .hero-description { margin-top: 23px; font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 27px; }
  .hero-actions .button { width: 100%; min-width: 0; }
  .hero-media { height: 185px; }
  .hero-media::before { width: 85%; height: 65px; filter: blur(24px); }
  .hero-screen { top: 23px; width: min(62%, 240px); border-width: 6px; border-radius: 25px; }
  .games-section, .features-section, .interface-section, .faq-section { padding-block: 74px 83px; }
  .section-heading { gap: 10px; margin-bottom: 29px; }
  .section-heading h2, .faq-grid h2, .download-inner h2 { font-size: clamp(31px, 7.8vw, 43px); }
  .section-heading > p { font-size: 14px; }
  .game-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wall-tile { min-height: 148px; padding: 17px; border-radius: 15px; }
  .wall-tile-wide { min-height: 204px; }
  .wall-tile h3 { font-size: 19px; }
  .wall-tile-wide h3 { font-size: 30px; }
  .wall-art { top: -10px; right: 0; font-size: 105px; }
  .wall-tile-wide .wall-art { right: 12px; font-size: 155px; }
  .wall-tile:nth-child(n) { grid-column: auto; }
  .wall-tile:nth-child(1) { grid-column: span 2; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature-card:nth-child(n) { padding: 18px 15px; border-radius: 15px; }
  .feature-card h3 { font-size: 19px; }
  .feature-card p { font-size: 12px; line-height: 1.55; }
  .interface-grid { grid-auto-columns: 258px; gap: 12px; }
  .interface-card { border-radius: 16px; }
  .screen-preview img { max-width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .interface-copy { padding: 17px; }
  .interface-copy h3 { font-size: 20px; }
  .faq-list details { padding: 19px 0; }
  .faq-list summary { font-size: 15px; }
  .download-section { padding-block: 84px; }
  .download-inner { gap: 24px; }
  .download-actions { display: grid; grid-template-columns: 1fr; gap: 9px; width: 100%; }
  .download-actions .button { width: 100%; }
  .site-footer { padding-top: 44px; }
  .footer-main { display: block; }
  .site-footer nav { margin-top: 31px; }
  .footer-bottom { margin-top: 53px; }
}
@media (max-width: 380px) {
  .feature-card { padding-inline: 12px; }
  .feature-card h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-cta, .button, .desktop-nav a, .site-footer nav a, .wall-tile { transition: none; }
  .header-cta:hover, .button-primary:hover, .wall-tile:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
