:root {
  color-scheme: dark;
  --dark: #091f26;
  --deep: #07191f;
  --gold: #e2c99a;
  --ink: #152e31;
  --cream: #f4ead6;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.65 var(--sans); color: #f5ecdd; background: var(--deep); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #00d9c5; outline-offset: 4px; }
.wrap { width: min(calc(100% - 4rem), 1160px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 1rem; left: 1rem; background: #fff; color: #042529; padding: .6rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { z-index: 2; position: absolute; inset: 0 0 auto; background: #071c25ab; border-bottom: 1px solid #d0c2a335; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--serif); font-weight: 800; font-size: 1.13rem; color: #f8e6c5; white-space: nowrap; }
.brand img { border-radius: 5px; outline: 1px solid #d6b88069; }
nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.8rem); font-size: .94rem; white-space: nowrap; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-download { color: #f8deac; }

.hero { position: relative; min-height: min(760px, 90svh); isolation: isolate; display: grid; align-items: stretch; overflow: hidden; }
.hero-art, .hero-art img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 62% center; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #071b26ed, #0a2431bc 23%, #0b243267 45%, transparent 73%), linear-gradient(0deg, #0a212bd9, transparent 25%); }
.hero-inner { min-height: 700px; display: flex; align-items: center; padding-block: 6.4rem 4.5rem; }
.hero-content { max-width: 550px; }
.hero h1 { margin: 0 0 .2rem -2.2rem; }
.hero h1 img { width: min(100%, 490px); height: auto; filter: drop-shadow(0 12px 25px #06151bd4); }
.hero-intro { max-width: 27em; margin: .35rem 0 1.75rem; font-size: clamp(1.04rem, 1.65vw, 1.23rem); color: #fff4da; text-shadow: 0 2px 12px #081e29; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; align-items: center; }
.tap-action, .tap-client, .trailer-action { min-height: 53px; display: inline-flex; align-items: center; justify-content: center; }
.tap-action { border-radius: 8px; flex: 0 0 auto; }
.tap-client { gap: .66rem; border-radius: 8px; padding: .67rem .95rem; background: #f4fff9; color: #0e3435; font-weight: 720; box-shadow: 0 4px 24px #071b2059; }
.tap-client img { width: 88px; height: auto; object-fit: contain; }
.tap-client:hover { background: #dff8ee; }
.tap-badge { height: 54px; width: auto; display: block; }
.trailer-action { gap: .65rem; padding: .6rem 1rem; border: 1px solid #f9e0b499; border-radius: 8px; background: #071c2978; color: #fff1d4; }
.trailer-action:hover { background: #163c49b5; }
.play-mark { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.section { scroll-margin-top: 1rem; }
.gameplay { background: radial-gradient(ellipse at 80% 32%, #fff8e9 4%, #f0e5cc 68%, #e5d8ba); color: var(--ink); padding-block: clamp(3.1rem, 7vw, 6.6rem); }
.section-heading h2, .download h2, .game-story h3 { margin: 0; line-height: 1.25; font-family: var(--serif); font-weight: 900; }
.section-heading h2 { font-size: clamp(2.1rem, 5vw, 3.65rem); }
.section-heading p { margin: 1rem 0 0; color: #3e5551; max-width: 42em; }
.game-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .5rem; border-bottom: 1px solid #7d775864; margin-block: 2.6rem 2rem; }
.game-tabs button { position: relative; cursor: pointer; padding: .95rem .35rem; background: none; border: 0; color: #435a54; font-weight: 680; border-radius: 4px 4px 0 0; white-space: nowrap; }
.game-tabs button:hover { background: #41686515; }
.game-tabs [aria-selected="true"] { color: #174c49; }
.game-tabs [aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: #23716a; }
.game-tabs button:focus-visible { outline-color: #20716a; outline-offset: -3px; }
.game-panel { display: grid; grid-template-columns: minmax(250px, 380px) 1fr; align-items: center; gap: clamp(2rem, 9vw, 7rem); max-width: 980px; margin-inline: auto; }
.game-capture { margin: 0; width: 100%; max-width: 380px; justify-self: center; }
.game-capture img { width: 100%; height: auto; border-radius: 11px; box-shadow: 0 18px 42px #273a3654; outline: 1px solid #8169409c; }
.game-story h3 { font-size: clamp(1.9rem, 3.7vw, 3rem); }
.game-story p { margin-block: 1.2rem 1.5rem; max-width: 34em; color: #334b48; }
.game-story ul { margin: 0; padding: .85rem 0 0; list-style: none; border-top: 1px solid #97825255; color: #405b54; }
.game-story li { margin: .6rem 0; padding-left: 1.25rem; position: relative; }
.game-story li::before { position: absolute; content: ""; width: 6px; height: 6px; top: .65em; left: .15rem; transform: rotate(45deg); background: #a5712e; }

.download { border-block: 1px solid #b9a77a30; background: linear-gradient(122deg, #193d40, #102d35 72%); padding-block: clamp(2.5rem, 6vw, 5rem); }
.download-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem; }
.download-icon { width: clamp(68px, 10vw, 106px); height: auto; border-radius: 13px; outline: 1px solid #d5af6860; }
.download h2 { color: #fff0ce; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.download p { margin: .45rem 0 0; color: #d8e6df; }
.footer { background: var(--deep); color: #c5d2cc; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.35rem; font-size: .93rem; }

dialog { max-width: calc(100vw - 2rem); width: min(420px, 100%); max-height: calc(100dvh - 2rem); border: 1px solid #d7b97a82; border-radius: 12px; padding: .85rem; background: #0e272e; color: #f7e5bb; }
dialog::backdrop { background: #031017d9; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .15rem .65rem; }
.dialog-heading h2 { margin: 0; font: 800 1.25rem/1.2 var(--serif); }
.dialog-heading button { cursor: pointer; padding: .3rem .7rem; color: #f8edd5; border: 1px solid #dcc89387; border-radius: 5px; background: #233d40; }
dialog video { display: block; height: min(72dvh, 680px); width: 100%; border-radius: 6px; background: #08161a; }

@media (max-width: 800px) {
  .wrap { width: min(calc(100% - 2.5rem), 1160px); }
  .hero-inner { min-height: 615px; }
  .game-panel { gap: 2rem; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 62px; }
  .brand { font-size: 1rem; gap: .45rem; }
  .brand img { width: 30px; height: 30px; }
  nav { font-size: .88rem; gap: .85rem; }
  .hero { min-height: 710px; min-height: min(780px, 100svh); }
  .hero-art img { object-position: center 30%; }
  .hero::after { background: linear-gradient(0deg, #061c27f5 0%, #0b2532e0 24%, #0a202c6f 48%, transparent 73%); }
  .hero-inner { min-height: min(780px, 100svh); padding-block: 6rem 2.65rem; align-items: end; }
  .hero-content { width: 100%; margin-inline: auto; text-align: center; }
  .hero h1 { margin: 0 auto; width: min(88%, 360px); }
  .hero h1 img { width: 100%; }
  .hero-intro { max-width: 21em; margin: .3rem auto 1.25rem; }
  .hero-actions { justify-content: center; }
  .game-tabs { margin-block: 1.6rem 1.45rem; gap: .1rem; }
  .game-tabs button { font-size: .92rem; }
  .game-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .game-capture { max-width: min(100%, 355px); }
  .game-story { max-width: 32rem; margin-inline: auto; }
  .game-story p { margin-block: .7rem 1.1rem; }
  .download-inner { grid-template-columns: auto 1fr; gap: .9rem 1rem; }
  .download-inner .tap-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 1.5rem); }
  nav { gap: .65rem; }
  .tap-client { padding-inline: .65rem; }
  .trailer-action { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
