﻿:root {
  --sky: #70a9a1;
  --grass: #7aa451;
  --grass-dark: #4c7338;
  --soil: #8a5a36;
  --wood: #6b3f24;
  --paper: #f7e3ad;
  --paper-light: #fff2c9;
  --ink: #3b2114;
  --muted: #7b5d3f;
  --gold: #f4c24d;
  --red: #ad3d2e;
  --line: #5a371f;
  --shadow: rgba(48, 27, 13, .28);
  --max: 1040px;
  --pixel-line: #6a4e32;
  --pixel-paper: #f7f2e8;
  --pixel-gold: #d4a857;
  --pixel-red: #a62c26;
  --pixel-ink: #2f2924;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 32px) 0 0 / 32px 32px,
    linear-gradient(180deg, var(--sky) 0 260px, var(--grass) 260px 620px, #5a3622 620px);
  min-height: 100vh;
}
body:not(.is-ready) .site-header,
body:not(.is-ready) .hero-logo-layer,
body:not(.is-ready) .social-rail {
  opacity: 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 8px clamp(16px, 4vw, 42px);
  background: rgba(61, 35, 20, .94);
  border-bottom: 4px solid #2a170d;
  box-shadow: 0 5px 0 rgba(0,0,0,.14);
  transition: min-height .24s ease, padding .24s ease, box-shadow .24s ease, background .24s ease;
}
.site-header.is-compact {
  min-height: 58px;
  padding-top: 5px;
  padding-bottom: 5px;
  background:
    linear-gradient(180deg, rgba(61, 28, 16, .98), rgba(31, 15, 9, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 18px);
  box-shadow:
    0 3px 0 #8d5a24,
    0 6px 0 #1d0f08,
    0 12px 24px rgba(0,0,0,.34);
}
.brand img {
  width: 172px;
  max-height: 48px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.22));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffe8a4;
  font-weight: 900;
}
.main-nav a {
  min-width: 76px;
  min-height: 42px;
  padding: 12px 16px 10px;
  justify-content: center;
  color: #3b2114;
  background: url("../assets/img/ui/nav-plaque.png") center / 100% 100% no-repeat;
  text-shadow: 1px 1px 0 #fff2c9;
  image-rendering: pixelated;
  transition: transform .16s ease, filter .16s ease;
}
.main-nav a:hover {
  color: #7e251d;
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-1px);
}
.main-nav .nav-pixel-icon { display: none; }
.main-nav .download-link {
  display: none;
  padding: 10px 18px;
  color: #2f1a0e;
  background: var(--gold);
  border: 3px solid #2f1a0e;
  box-shadow: 4px 4px 0 rgba(0,0,0,.28);
}
.header-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(35, 19, 10, .38);
  border: 3px solid rgba(255, 211, 95, .75);
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
}
.header-qr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 4px;
  color: #ffe8a4;
  background: rgba(0,0,0,.22);
  border: 2px solid rgba(255,232,164,.42);
  font-size: 13px;
  white-space: nowrap;
}
.mini-qr {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  color: #2f1a0e;
  background:
    linear-gradient(90deg, #fff 50%, transparent 0) 0 0 / 8px 8px,
    linear-gradient(#fff 50%, transparent 0) 0 0 / 8px 8px,
    #2f1a0e;
  border: 3px solid #fff5cf;
}
.mini-qr span {
  padding: 2px;
  color: #fff5cf;
  background: #7e251d;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}
.header-store-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-download .store-button {
  min-width: 106px;
  min-height: 40px;
  gap: 6px;
  padding: 6px 8px;
  border-width: 3px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.28);
  font-size: 13px;
}
.header-download .store-button:nth-child(2) {
  background: linear-gradient(180deg, #f4fbff, #83d9f2 55%, #30a9d2);
}
.header-download .store-button:nth-child(3) {
  color: #fff7df;
  background: linear-gradient(180deg, #7ec9ff, #1676d2);
  text-shadow: 0 2px 0 rgba(0,0,0,.26);
}
.menu-btn {
  display: none;
  width: 42px;
  height: 38px;
  border: 3px solid #2f1a0e;
  background: var(--gold);
  color: #2f1a0e;
  font-size: 22px;
  font-weight: 900;
}
.mobile-nav {
  position: fixed;
  top: 78px;
  left: 12px;
  right: 12px;
  z-index: 29;
  display: none;
  background: #6b3f24;
  border: 4px solid #2f1a0e;
  box-shadow: 8px 8px 0 rgba(0,0,0,.24);
}
.mobile-nav.open { display: grid; }
.mobile-nav a {
  padding: 14px;
  color: #ffe8a4;
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
}

.hero-parallax {
  position: relative;
  height: calc(100svh - 74px);
  min-height: 640px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  image-rendering: pixelated;
  --pointer-x: 0px;
  --pointer-y: 0px;
}
.hero-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 235, 145, 0) 0%, rgba(255, 235, 145, .14) 48%, rgba(255, 235, 145, 0) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translateX(-28%);
}
body.is-ready .hero-parallax::before {
  animation: hero-sweep 1150ms ease-out 220ms both;
}
.parallax-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #caedf0;
  transform: translate3d(var(--pointer-x-scene, 0px), var(--pointer-y-scene, 0px), 0);
  transition: transform .18s ease-out;
}
.scene-layer {
  position: absolute;
  left: 0;
  right: 0;
  background-repeat: repeat-x;
  image-rendering: pixelated;
  will-change: background-position;
}
.scene-sky {
  inset: 0 0 auto;
  height: 100%;
  background-color: #caedf0;
  background-image: url("../assets/img/hero-scene/sky-extended.png");
  background-size: auto 720px;
  background-position: 0 top;
  animation: scene-scroll-slow 36s linear infinite;
}
.sky-cycle {
  position: absolute;
  pointer-events: none;
  image-rendering: pixelated;
  transform: translate3d(0, var(--scroll-y, 0px), 0);
}
.sky-cycle {
  inset: 0;
  z-index: 1;
}
.sky-day-glow {
  background: linear-gradient(180deg, rgba(255, 240, 172, .14), rgba(255,255,255,0) 58%);
  animation: day-glow-cycle 36s linear infinite;
}
.sky-night-glow {
  background: linear-gradient(180deg, rgba(18, 38, 84, .46), rgba(20, 44, 88, .18) 62%, rgba(255,255,255,0) 100%);
  opacity: 0;
  animation: night-glow-cycle 36s linear infinite;
}
.scene-mountains {
  bottom: 218px;
  height: 274px;
  background-image: url("../assets/img/hero-scene/mountains.png");
  background-size: auto 274px;
  background-position: 0 bottom;
  animation: scene-scroll-mountains 28s linear infinite;
  transform: translate3d(var(--pointer-x-far, 0px), var(--pointer-y-far, 0px), 0);
}
.scene-near-mountains {
  bottom: 206px;
  height: 170px;
  z-index: 2;
  background-image: url("../assets/img/hero-scene/tileset07-near-mountains.png");
  background-size: 1024px 170px;
  background-position: 0 bottom;
  animation: scene-scroll-near-mountains 40s linear infinite;
  pointer-events: none;
  transform: translate3d(var(--pointer-x-mid, 0px), var(--pointer-y-mid, 0px), 0);
}
.scene-village {
  bottom: 66px;
  height: 274px;
  z-index: 4;
  background-image: url("../assets/img/hero-scene/village.png");
  background-size: auto 274px;
  background-position: 0 bottom;
  animation: scene-scroll-village 18s linear infinite;
  transform: translate3d(var(--pointer-x-front, 0px), var(--pointer-y-front, 0px), 0);
}
.scene-back-buildings {
  bottom: 132px;
  height: 300px;
  z-index: 4;
  background-image: url("../assets/img/hero-scene/tileset07-backbuildings.png?v=3");
  background-size: 1024px 300px;
  background-position: 0 bottom;
  animation: scene-scroll-back-buildings 18s linear infinite;
  pointer-events: none;
  display: none;
}
.scene-back-trees {
  bottom: 86px;
  height: 380px;
  z-index: 3;
  background-image: url("../assets/img/hero-scene/tileset07-back-trees.png?v=7");
  background-size: 1024px 380px;
  background-position: 0 bottom;
  animation: scene-scroll-back-buildings 18s linear infinite;
  pointer-events: none;
  transform: translate3d(var(--pointer-x-mid, 0px), var(--pointer-y-mid, 0px), 0);
}
.scene-grass-fill {
  bottom: 86px;
  height: 184px;
  z-index: 2;
  background-color: #6a9f44;
  background-image: url("../assets/img/hero-scene/grass-fill.png");
  background-size: 174px 138px;
  background-position: 0 bottom;
  animation: scene-scroll-grass-fill 18s linear infinite;
}
.scene-grass-details {
  bottom: 86px;
  height: 184px;
  z-index: 3;
  background-image: url("../assets/img/hero-scene/tileset07-grass-details.png");
  background-size: 1024px 184px;
  background-position: 0 bottom;
  animation: scene-scroll-grass-details 18s linear infinite;
  pointer-events: none;
}
.scene-ground {
  bottom: 48px;
  height: 38px;
  z-index: 4;
  background-color: #302320;
  background-image: url("../assets/img/hero-scene/ground.png");
  background-size: auto 38px;
  background-position: 0 top;
  animation: scene-scroll-ground 9s linear infinite;
  box-shadow: 0 38px 0 #302320;
  transform: translate3d(var(--pointer-x-ground, 0px), 0, 0);
}
.walker {
  position: absolute;
  bottom: 78px;
  z-index: 5;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: auto 100%;
  image-rendering: pixelated;
  transform: translateX(-50%) scale(1.45);
  transform-origin: 50% 100%;
  animation: walk-cycle 920ms steps(4) infinite;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .28));
}
.walker-liubei {
  left: calc(50% + 88px);
  width: 72px;
  height: 67px;
  --walk-shift: -288px;
  background-image: url("../assets/img/hero-scene/liubei_right_strip.png");
}
.walker-guanyu {
  left: calc(50% + 8px);
  width: 86px;
  height: 75px;
  --walk-shift: -344px;
  background-image: url("../assets/img/hero-scene/guanyu_right_strip.png");
  animation-delay: -230ms;
}
.walker-zhangfei {
  left: calc(50% - 78px);
  width: 88px;
  height: 73px;
  --walk-shift: -352px;
  background-image: url("../assets/img/hero-scene/zhangfei_right_strip.png");
  animation-delay: -460ms;
}
.parallax-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 12, 8, 0) 0 58%, rgba(22, 12, 8, .08) 72%, rgba(22, 12, 8, .35) 100%),
    radial-gradient(ellipse at 50% 46%, rgba(255, 244, 200, .18), transparent 34%);
}
@keyframes scene-scroll-slow {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes scene-scroll-mountains {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes scene-scroll-near-mountains {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes scene-scroll-village {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes scene-scroll-back-buildings {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes scene-scroll-grass-fill {
  from { background-position-x: 0; }
  to { background-position-x: -1044px; }
}
@keyframes scene-scroll-grass-details {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes scene-scroll-ground {
  from { background-position-x: 0; }
  to { background-position-x: -1024px; }
}
@keyframes header-drop-in {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-sweep {
  0% { opacity: 0; transform: translateX(-36%); }
  28% { opacity: .72; }
  100% { opacity: 0; transform: translateX(36%); }
}
@keyframes hero-title-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1); }
}
@keyframes hero-logo-pulse {
  0% { transform: translateY(-10px) scale(.94); filter: drop-shadow(0 6px 0 rgba(40,18,8,.16)) drop-shadow(0 8px 14px rgba(0,0,0,.20)); }
  58% { transform: translateY(0) scale(1.025); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes cta-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes social-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@keyframes walk-cycle {
  from { background-position-x: 0; }
  to { background-position-x: var(--walk-shift); }
}
@keyframes day-glow-cycle {
  0%, 32% { opacity: 1; }
  48%, 82% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes night-glow-cycle {
  0%, 42% { opacity: 0; }
  60%, 90% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .section,
  body:not(.is-ready) .site-header,
  body:not(.is-ready) .hero-logo-layer,
  body:not(.is-ready) .social-rail {
    opacity: 1;
    transform: none;
  }
}

/* Final urgent-launch lock: float the logo directly over the hero so legacy
   navigation rules cannot recreate the dark bar or shrink the brand mark. */
.hero-brand {
  position: fixed;
  top: clamp(18px, 3vh, 34px);
  left: clamp(22px, 3.5vw, 64px);
  z-index: 80;
  display: block;
  width: min(570px, 48vw);
  line-height: 0;
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 7px 0 rgba(45, 24, 12, .18));
}

@media (max-width: 900px) {
  .hero-brand {
    top: 14px;
    left: 14px;
    width: min(396px, 72vw);
  }
}

@media (max-width: 560px) {
  .hero-brand {
    width: min(372px, 72vw);
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .hero-brand {
    width: min(570px, 48vw);
  }
}

/* Urgent launch layout: one full-screen hero, no navigation chrome. */
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

main,
.hero-parallax {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

.site-header,
.site-header.is-compact {
  position: absolute;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.site-header .brand {
  position: absolute;
  top: clamp(18px, 3vh, 34px);
  left: clamp(22px, 3.5vw, 64px);
  display: block;
  pointer-events: auto;
}

.site-header .brand img {
  width: min(570px, 38vw);
  max-width: none;
  max-height: none;
  filter: drop-shadow(0 7px 0 rgba(45, 24, 12, .18));
}

.social-rail {
  top: 49%;
  right: clamp(24px, 3.2vw, 64px);
  gap: 14px;
}

.social-button {
  animation: none;
}

.social-button:nth-child(1),
.social-button:nth-child(2) {
  width: 118px;
  height: 132px;
  margin: 0;
  background: url("../assets/img/ui/hanging-plaque-transparent.png") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(6px 8px 0 rgba(42, 20, 11, .22));
}

.social-button:nth-child(1)::before,
.social-button:nth-child(1)::after,
.social-button:nth-child(2)::before,
.social-button:nth-child(2)::after {
  display: none;
}

.social-button:nth-child(1) .social-icon,
.social-button:nth-child(2) .social-icon {
  width: 56px;
  height: 56px;
  transform: translateY(21px);
}

.social-button:nth-child(1) .social-icon img,
.social-button:nth-child(1) .social-icon svg,
.social-button:nth-child(2) .social-icon img,
.social-button:nth-child(2) .social-icon svg {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.social-button:nth-child(3) {
  width: 86px;
  height: 86px;
  margin-left: auto;
  margin-right: auto;
}

.social-button:nth-child(3) .social-icon,
.social-button:nth-child(3) .social-icon img,
.social-button:nth-child(3) .social-icon svg {
  width: 42px;
  height: 42px;
}

.social-button:nth-child(1):hover,
.social-button:nth-child(2):hover {
  transform: translateX(-5px);
  background: url("../assets/img/ui/hanging-plaque-transparent.png") center / 100% 100% no-repeat;
  filter: brightness(1.05) drop-shadow(8px 10px 0 rgba(42, 20, 11, .2));
}

@media (max-width: 900px) {
  .site-header,
  .site-header.is-compact {
    height: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .brand {
    top: 14px;
    left: 14px;
  }

  .site-header .brand img {
    width: min(372px, 72vw);
    max-width: none;
    max-height: none;
  }

  .social-rail {
    top: 47%;
    right: 6px;
    gap: 8px;
  }

  .social-button:nth-child(1),
  .social-button:nth-child(2) {
    width: 88px;
    height: 99px;
  }

  .social-button:nth-child(1) .social-icon,
  .social-button:nth-child(2) .social-icon {
    width: 42px;
    height: 42px;
    transform: translateY(16px);
  }

  .social-button:nth-child(1) .social-icon img,
  .social-button:nth-child(1) .social-icon svg,
  .social-button:nth-child(2) .social-icon img,
  .social-button:nth-child(2) .social-icon svg {
    width: 40px;
    height: 40px;
  }

  .social-button:nth-child(3) {
    width: 68px;
    height: 68px;
  }

  .social-button:nth-child(3) .social-icon,
  .social-button:nth-child(3) .social-icon img,
  .social-button:nth-child(3) .social-icon svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 560px) {
  .site-header .brand img {
    width: min(330px, 72vw);
  }

  .hero-download {
    bottom: 54px;
  }
}

@media (max-height: 720px) {
  .site-header .brand img {
    width: min(420px, 64vw);
  }

  .social-rail {
    top: 49%;
    transform: translateY(-50%) scale(.82);
    transform-origin: right center;
  }

  .hero-download {
    bottom: 30px;
  }
}
.hero-logo-layer {
  position: absolute;
  top: clamp(18px, 4.2vh, 34px);
  left: 0;
  right: 0;
  z-index: 10;
  width: min(700px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
  padding: 0;
  will-change: transform, opacity;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
body.is-ready .site-header {
  animation: header-drop-in 520ms cubic-bezier(.16, 1, .3, 1) both;
}
body.is-ready .hero-logo-layer {
  animation: hero-title-in 780ms cubic-bezier(.16, 1, .3, 1) 120ms both;
}
.paper-card {
  background: var(--paper);
  border: 6px solid var(--line);
  box-shadow: 0 0 0 6px rgba(255,242,201,.75) inset, 12px 12px 0 var(--shadow);
}
.hero-logo {
  width: min(460px, 72vw);
  max-width: 100%;
  filter: drop-shadow(0 12px 0 rgba(40,18,8,.22)) drop-shadow(0 22px 26px rgba(0,0,0,.32));
}
body.is-ready .hero-logo {
  animation: hero-logo-pulse 1300ms cubic-bezier(.16, 1, .3, 1) 340ms both;
}
.hero-logo-layer h1 {
  display: inline-block;
  margin: 8px 0 0;
  padding: 5px 18px 7px;
  font-size: clamp(26px, 3.8vw, 40px);
  color: #fff4c8;
  background: rgba(70, 34, 18, .34);
  border: 3px solid rgba(255, 226, 128, .46);
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
  text-shadow: 4px 4px 0 #7e251d, 0 4px 14px rgba(0,0,0,.32);
}
.lead {
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: #fff4c8;
  text-shadow: 0 3px 10px rgba(0,0,0,.48);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.store-button, .platform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 18px;
  color: #2f1a0e;
  background: linear-gradient(180deg, #ffe28b, var(--gold));
  border: 4px solid #2f1a0e;
  box-shadow: 5px 5px 0 rgba(0,0,0,.24);
  font-weight: 900;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.store-button:hover, .platform-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.store-button:active, .platform-button:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,.28);
}
.store-button::after,
.platform-button::after {
  content: "";
  position: absolute;
  inset: -45% -35%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.42) 48%, transparent 62%);
  transform: translateX(-120%);
}
.store-button:hover::after,
.platform-button:hover::after {
  animation: cta-shine 780ms ease;
}

.download-dock {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 18;
  display: grid;
  grid-template-columns: 136px minmax(320px, 1fr);
  gap: 14px;
  width: min(720px, calc(100% - 132px));
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,235,164,.9), rgba(169,92,43,.88)),
    repeating-linear-gradient(90deg, rgba(90,55,31,.28) 0 2px, transparent 2px 18px);
  border: 5px solid #2f1a0e;
  box-shadow:
    0 0 0 5px rgba(255,244,200,.32) inset,
    8px 8px 0 rgba(0,0,0,.28);
  transform: translateX(-50%);
}
.download-dock::before,
.download-dock::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  width: 5px;
  background: #2f1a0e;
}
.download-dock::before { left: 24px; }
.download-dock::after { right: 24px; }
.dock-qr {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px;
  min-height: 126px;
  color: #fff2c9;
  text-align: center;
  background: rgba(54,29,15,.78);
  border: 4px solid #2f1a0e;
  box-shadow: 4px 4px 0 rgba(0,0,0,.22);
}
.qr-code {
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  color: #2f1a0e;
  background:
    linear-gradient(90deg, #fff 50%, transparent 0) 0 0 / 14px 14px,
    linear-gradient(#fff 50%, transparent 0) 0 0 / 14px 14px,
    #2f1a0e;
  border: 6px solid #fff5cf;
  box-shadow: 0 0 0 4px #2f1a0e;
}
.qr-code span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff5cf;
  background: #7e251d;
  border: 3px solid #2f1a0e;
  font-weight: 900;
}
.dock-buttons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  align-content: center;
}
.download-dock .store-button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  gap: 8px;
  font-size: 17px;
  background:
    linear-gradient(180deg, #ffeaa3, #f4bd48 52%, #d7832e);
  box-shadow:
    0 -4px 0 rgba(255,255,255,.18) inset,
    5px 5px 0 rgba(0,0,0,.3);
}
.download-dock .store-button:nth-child(2) {
  background: linear-gradient(180deg, #dfffd8, #7fd46a 52%, #3a923f);
}
.download-dock .store-button:nth-child(3) {
  background: linear-gradient(180deg, #f3e4ff, #bd7be8 52%, #7843b4);
  color: #fff7df;
  text-shadow: 0 2px 0 rgba(0,0,0,.26);
}
.download-dock .store-button:nth-child(4) {
  background: linear-gradient(180deg, #ffefc0, #ed9560 52%, #b84d31);
}
.store-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.store-icon:empty { display: none; }
.store-icon img,
.store-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.social-rail {
  position: absolute;
  top: 50%;
  right: clamp(14px, 3vw, 42px);
  z-index: 20;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}
.social-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff7d6;
  background:
    linear-gradient(180deg, rgba(255,225,126,.96), rgba(188,94,43,.94));
  clip-path: polygon(24% 0, 76% 0, 100% 24%, 100% 76%, 76% 100%, 24% 100%, 0 76%, 0 24%);
  filter: drop-shadow(5px 5px 0 rgba(0,0,0,.28));
}
.social-button::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: rgba(255,247,214,.95);
  clip-path: inherit;
}
.social-button:hover {
  transform: translateX(-4px);
  filter: brightness(1.08) drop-shadow(7px 7px 0 rgba(0,0,0,.24));
}
.social-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-weight: 900;
}
.social-icon img,
.social-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.24));
}
.social-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  min-width: max-content;
  padding: 6px 10px;
  color: #fff2c9;
  background: rgba(47,26,14,.9);
  border: 3px solid #f4c24d;
  box-shadow: 3px 3px 0 rgba(0,0,0,.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(8px);
  transition: opacity .18s ease, transform .18s ease;
  font-size: 13px;
  font-weight: 900;
}
.social-button:hover .social-label,
.social-button:focus-visible .social-label {
  opacity: 1;
  transform: translateY(-50%);
}

/* Three Kingdoms pixel skin for header downloads and social plaques. */
.site-header {
  background:
    linear-gradient(180deg, rgba(86, 39, 22, .98), rgba(50, 25, 15, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px);
  border-bottom-color: #1d0f08;
  box-shadow:
    0 4px 0 #8d5a24,
    0 8px 0 #1d0f08,
    0 14px 22px rgba(0,0,0,.28);
}
.main-nav a {
  text-shadow: 1px 1px 0 #fff2c9;
}
.header-download {
  position: relative;
  padding: 8px 10px;
  background:
    linear-gradient(180deg, #7b4424 0, #4a2414 100%),
    repeating-linear-gradient(90deg, rgba(255,225,142,.12) 0 2px, transparent 2px 20px);
  border: 4px solid #2a140b;
  box-shadow:
    0 0 0 3px #d7a344 inset,
    0 0 0 6px rgba(62,31,17,.72) inset,
    5px 5px 0 rgba(0,0,0,.32);
}
.header-download::before,
.header-download::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #f2c963;
  border: 2px solid #2a140b;
  box-shadow: 0 0 0 2px rgba(255,246,196,.18);
  transform: translateY(-50%);
}
.header-download::before { left: -7px; }
.header-download::after { right: -7px; }
.header-qr {
  color: #fff0b8;
  background:
    linear-gradient(180deg, #472112, #2b150c);
  border: 3px solid #d7a344;
  box-shadow: 3px 3px 0 rgba(0,0,0,.22);
}
.mini-qr {
  border-color: #f8e7b7;
  box-shadow: 0 0 0 2px #2a140b;
}
.mini-qr span {
  background: #9b2d1e;
  border: 1px solid #2a140b;
}
.header-download .store-button {
  position: relative;
  color: #fff3bf;
  background:
    linear-gradient(180deg, #9f3424 0, #772515 52%, #4b1d11 100%);
  border-color: #2a140b;
  box-shadow:
    0 0 0 2px #e6b84c inset,
    0 -3px 0 rgba(0,0,0,.22) inset,
    3px 3px 0 rgba(0,0,0,.32);
  text-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.header-download .store-button:nth-child(2),
.header-download .store-button:nth-child(3) {
  color: #fff3bf;
  background:
    linear-gradient(180deg, #9f3424 0, #772515 52%, #4b1d11 100%);
}
.header-download .store-button:hover {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-1px);
}
.header-download .store-button::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,226,128,.45);
  pointer-events: none;
}
.store-icon {
  padding: 3px;
  background: #fff2c9;
  border: 2px solid #2a140b;
  box-shadow: 2px 2px 0 rgba(0,0,0,.24);
}
.store-icon img,
.store-icon svg {
  object-fit: contain;
}
.social-rail {
  right: clamp(16px, 2.5vw, 34px);
  gap: 10px;
}
.social-button {
  width: 56px;
  height: 64px;
  background:
    linear-gradient(180deg, #b9422d 0, #7b2819 58%, #4b1d11 100%);
  border: 4px solid #2a140b;
  clip-path: none;
  box-shadow:
    0 0 0 3px #e3b24e inset,
    0 -5px 0 rgba(0,0,0,.2) inset,
    5px 5px 0 rgba(0,0,0,.28);
  filter: none;
  animation: social-breathe 2400ms ease-in-out infinite;
}
.social-button:nth-child(2) { animation-delay: 180ms; }
.social-button:nth-child(3) { animation-delay: 360ms; }
.social-button::before {
  inset: 8px 7px;
  background: #fff2c9;
  border: 3px solid #2a140b;
  clip-path: none;
  box-shadow: 2px 2px 0 rgba(0,0,0,.22);
}
.social-button::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 10px;
  background: #d7a344;
  border: 3px solid #2a140b;
  transform: translateX(-50%);
}
.social-button:hover {
  transform: translateX(-3px);
  filter: brightness(1.08);
}
.social-icon {
  width: 26px;
  height: 26px;
}
.social-icon img,
.social-icon svg {
  width: 26px;
  height: 26px;
  filter: none;
}

/* Unified pixel Three Kingdoms icon language. */
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-pixel-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  image-rendering: pixelated;
}
.nav-pixel-home {
  background:
    linear-gradient(var(--pixel-red), var(--pixel-red)) 4px 7px / 6px 5px no-repeat,
    linear-gradient(var(--pixel-line), var(--pixel-line)) 2px 6px / 10px 2px no-repeat,
    linear-gradient(var(--pixel-gold), var(--pixel-gold)) 3px 4px / 8px 2px no-repeat,
    linear-gradient(45deg, transparent 45%, var(--pixel-line) 46% 62%, transparent 63%) 1px 1px / 12px 6px no-repeat;
}
.nav-pixel-media {
  background:
    linear-gradient(var(--pixel-line), var(--pixel-line)) 2px 3px / 10px 2px no-repeat,
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 3px 5px / 8px 6px no-repeat,
    linear-gradient(var(--pixel-line), var(--pixel-line)) 2px 11px / 10px 2px no-repeat,
    linear-gradient(var(--pixel-red), var(--pixel-red)) 5px 7px / 4px 2px no-repeat;
}
.nav-pixel-features {
  background:
    linear-gradient(45deg, transparent 45%, var(--pixel-line) 46% 58%, transparent 59%) 2px 1px / 10px 10px no-repeat,
    linear-gradient(var(--pixel-gold), var(--pixel-gold)) 8px 2px / 2px 4px no-repeat,
    linear-gradient(var(--pixel-red), var(--pixel-red)) 3px 9px / 5px 3px no-repeat;
}
.nav-pixel-warriors {
  background:
    linear-gradient(var(--pixel-gold), var(--pixel-gold)) 4px 1px / 6px 3px no-repeat,
    linear-gradient(var(--pixel-line), var(--pixel-line)) 3px 5px / 8px 7px no-repeat,
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 5px 6px / 4px 3px no-repeat,
    linear-gradient(var(--pixel-red), var(--pixel-red)) 2px 10px / 10px 3px no-repeat;
}
.nav-pixel-news {
  background:
    linear-gradient(var(--pixel-line), var(--pixel-line)) 2px 2px / 2px 10px no-repeat,
    linear-gradient(var(--pixel-line), var(--pixel-line)) 10px 2px / 2px 10px no-repeat,
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 4px 3px / 6px 8px no-repeat,
    linear-gradient(var(--pixel-red), var(--pixel-red)) 5px 5px / 4px 1px no-repeat,
    linear-gradient(var(--pixel-gold), var(--pixel-gold)) 5px 8px / 4px 1px no-repeat;
}
.menu-btn {
  border: 2px solid var(--pixel-line);
  background:
    linear-gradient(180deg, #ffe28b, var(--pixel-gold));
  box-shadow:
    0 0 0 1px rgba(247,242,232,.35) inset,
    0 2px 0 rgba(0,0,0,.32);
  line-height: 1;
}

.header-download {
  gap: 7px;
  padding: 7px 8px;
  background:
    linear-gradient(180deg, rgba(86, 48, 28, .92), rgba(48, 28, 18, .92)),
    repeating-linear-gradient(90deg, rgba(212,168,87,.12) 0 1px, transparent 1px 12px);
  border: 2px solid var(--pixel-line);
  box-shadow:
    0 0 0 1px rgba(247,242,232,.22) inset,
    0 2px 0 rgba(0,0,0,.32);
}
.header-download::before,
.header-download::after {
  width: 5px;
  height: 5px;
  border-width: 1px;
  background: var(--pixel-gold);
  box-shadow: none;
}
.header-download::before { left: -4px; }
.header-download::after { right: -4px; }
.header-qr {
  position: relative;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  color: var(--pixel-paper);
  background: rgba(247,242,232,.08);
  border: 2px solid var(--pixel-gold);
  box-shadow:
    0 0 0 1px var(--pixel-line),
    0 2px 0 rgba(0,0,0,.32);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
}
.header-qr::before,
.header-qr::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background:
    linear-gradient(var(--pixel-red), var(--pixel-red)) 2px 0 / 1px 5px no-repeat,
    linear-gradient(var(--pixel-red), var(--pixel-red)) 0 2px / 5px 1px no-repeat,
    var(--pixel-paper);
  image-rendering: pixelated;
}
.header-qr::before { left: 2px; bottom: 2px; }
.header-qr::after { right: 2px; top: 2px; }
.mini-qr {
  width: 30px;
  border: 2px solid var(--pixel-paper);
  box-shadow: 0 0 0 1px var(--pixel-line);
}
.mini-qr span {
  background: var(--pixel-red);
  color: var(--pixel-paper);
}
.header-store-buttons {
  gap: 5px;
}
.header-download .store-button {
  min-width: 92px;
  min-height: 34px;
  padding: 5px 8px;
  gap: 5px;
  color: var(--pixel-paper);
  background:
    linear-gradient(180deg, rgba(138, 67, 39, .92), rgba(74, 36, 24, .96));
  border: 2px solid var(--pixel-line);
  box-shadow:
    0 0 0 1px rgba(247,242,232,.22) inset,
    0 2px 0 rgba(0,0,0,.32);
  text-shadow: 1px 1px 0 rgba(0,0,0,.45);
}
.header-download .store-button:nth-child(2),
.header-download .store-button:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(138, 67, 39, .92), rgba(74, 36, 24, .96));
}
.header-download .store-button::before {
  inset: 3px;
  border-color: rgba(212,168,87,.32);
}
.header-download .store-button::after,
.social-button::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 13px;
  height: 13px;
  left: auto;
  right: -5px;
  top: -5px;
  border: 0;
  opacity: 0;
  background:
    linear-gradient(var(--pixel-gold), var(--pixel-gold)) 6px 0 / 1px 13px no-repeat,
    linear-gradient(var(--pixel-gold), var(--pixel-gold)) 0 6px / 13px 1px no-repeat,
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 6px 6px / 1px 1px no-repeat;
  transform: none;
  pointer-events: none;
  image-rendering: pixelated;
}
.header-download .store-button:hover {
  border-color: var(--pixel-gold);
  box-shadow:
    0 0 0 1px rgba(247,242,232,.28) inset,
    0 0 0 2px rgba(212,168,87,.34),
    0 2px 0 rgba(0,0,0,.32);
}
.header-download .store-button:hover::after,
.social-button:hover::after {
  animation: pixel-spark 760ms steps(2) infinite;
}
.store-icon {
  width: 22px;
  height: 22px;
  padding: 2px;
  background: var(--pixel-paper);
  border: 1px solid var(--pixel-line);
  box-shadow: 1px 1px 0 rgba(0,0,0,.24);
}
.store-icon img,
.store-icon svg {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.social-rail {
  gap: 9px;
  right: clamp(14px, 2.3vw, 30px);
}
.social-rail::after {
  content: "";
  justify-self: center;
  width: 44px;
  height: 7px;
  opacity: .7;
  background:
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 5px 3px / 8px 1px no-repeat,
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 14px 2px / 12px 1px no-repeat,
    linear-gradient(var(--pixel-paper), var(--pixel-paper)) 27px 3px / 10px 1px no-repeat;
}
.social-button {
  width: 52px;
  height: 52px;
  justify-self: end;
  background: var(--pixel-paper);
  border: 2px solid var(--pixel-line);
  box-shadow:
    0 0 0 1px rgba(212,168,87,.45) inset,
    0 3px 0 rgba(47,41,36,.36);
  filter: none;
}
.social-button:nth-child(1) {
  width: 56px;
  height: 56px;
}
.social-button:nth-child(2) {
  width: 51px;
  height: 51px;
  margin-right: 5px;
}
.social-button:nth-child(3) {
  width: 47px;
  height: 47px;
  margin-right: 10px;
}
.social-button::before {
  inset: 5px;
  background:
    linear-gradient(180deg, rgba(247,242,232,.96), rgba(229,214,178,.96));
  border: 1px solid rgba(106,78,50,.5);
  box-shadow: none;
}
.social-button:hover {
  transform: translateY(-2px);
  border-color: var(--pixel-gold);
  filter: none;
  box-shadow:
    0 0 0 1px rgba(212,168,87,.7) inset,
    0 0 0 2px rgba(212,168,87,.24),
    0 4px 0 rgba(47,41,36,.34);
}
.social-icon {
  width: 32px;
  height: 32px;
}
.social-button:nth-child(2) .social-icon {
  width: 29px;
  height: 29px;
}
.social-button:nth-child(3) .social-icon {
  width: 27px;
  height: 27px;
}
.social-icon img,
.social-icon svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.social-label {
  color: var(--pixel-paper);
  background: rgba(47,41,36,.94);
  border: 2px solid var(--pixel-gold);
  box-shadow: 2px 2px 0 rgba(0,0,0,.24);
}

@keyframes pixel-spark {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  35%, 75% { opacity: 1; transform: translate(-1px, 1px); }
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto;
  padding: clamp(26px, 5vw, 44px);
  background: var(--paper-light);
  border: 6px solid var(--line);
  box-shadow: 12px 12px 0 var(--shadow);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}
.section.is-visible {
  opacity: 1;
  transform: none;
}
.section h2 {
  margin: 0 0 16px;
  color: #7e251d;
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
}
.section-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
  line-height: 1.8;
  color: var(--muted);
}

.media-video-section {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 58px);
  margin: 0 auto 34px;
  padding: clamp(64px, 9vh, 96px) clamp(18px, 6vw, 84px) clamp(28px, 6vh, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff2c9;
  background:
    linear-gradient(90deg, rgba(31, 16, 8, .7), rgba(31, 16, 8, .28)),
    linear-gradient(180deg, rgba(31, 16, 8, .18), rgba(31, 16, 8, .7)),
    url("../assets/img/hero-scene/village.png") center bottom / auto 300px repeat-x,
    url("../assets/img/hero-scene/mountains.png") center top / auto 280px repeat-x,
    #1f120b;
  border: 0;
  border-top: 6px solid #2f1a0e;
  border-bottom: 6px solid #2f1a0e;
  box-shadow: none;
  opacity: 1;
  transform: none;
}
.media-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.06) brightness(.94);
}
.media-video-section.video-unavailable .media-bg-video {
  display: none;
}
.media-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 16, 8, .7) 0%, rgba(31, 16, 8, .34) 42%, rgba(31, 16, 8, .08) 100%),
    linear-gradient(180deg, rgba(31, 16, 8, .14), rgba(31, 16, 8, .34)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
}
.media-content,
.media-video-section .screenshot-grid {
  position: relative;
  z-index: 2;
}
.media-content {
  width: min(560px, 100%);
  text-align: left;
  text-shadow: 0 4px 16px rgba(0,0,0,.52);
}
.media-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 12px;
  color: #2f1a0e;
  background: var(--gold);
  border: 3px solid #2f1a0e;
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.media-video-section h2 {
  margin: 0 0 14px;
  color: #fff2c9;
  text-align: left;
  font-size: clamp(34px, 5vw, 64px);
  text-shadow: 4px 4px 0 #7e251d, 0 8px 24px rgba(0,0,0,.48);
}
.media-video-section .section-intro {
  max-width: 520px;
  margin: 0 0 24px;
  color: #fff3c0;
  text-align: left;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
}
.media-play-button {
  min-width: 170px;
  padding: 13px 20px;
  color: #2f1a0e;
  background: linear-gradient(180deg, #ffe28b, var(--gold));
  border: 4px solid #2f1a0e;
  box-shadow: 5px 5px 0 rgba(0,0,0,.32);
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.media-play-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.media-play-button:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,.32);
}
.media-video-section .screenshot-grid {
  align-self: flex-end;
  width: min(560px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.media-video-section .shot {
  min-height: 104px;
  border-width: 4px;
  background: rgba(47,26,14,.72);
  box-shadow: 4px 4px 0 rgba(0,0,0,.32);
}
.media-video-section .shot img {
  opacity: .9;
  transition: transform .18s ease, opacity .18s ease;
}
.media-video-section .shot:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}
.shot {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  background: #2f1a0e;
  border: 5px solid #2f1a0e;
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
}
.shot-video {
  grid-row: span 2;
  border: 0;
  cursor: pointer;
}
.shot img, .shot video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.shot-video span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  color: #2f1a0e;
  background: var(--gold);
  border: 3px solid #2f1a0e;
  font-weight: 900;
}

.features ul {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.features li {
  position: relative;
  padding: 12px 0 12px 34px;
  color: #51351f;
  border-bottom: 2px dashed rgba(91, 55, 31, .26);
  font-size: 17px;
  line-height: 1.65;
}
.features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 13px;
  color: #7e251d;
}
.features strong { color: #7e251d; }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cast-card {
  background: #f3d893;
  border: 5px solid var(--line);
  box-shadow: 6px 6px 0 rgba(0,0,0,.17);
  overflow: hidden;
}
.cast-card img {
  width: 100%;
  aspect-ratio: 1 / .86;
  object-fit: cover;
  background: #d4b56b;
}
.cast-card div { padding: 16px; }
.cast-card h3 { margin: 0; color: #7e251d; font-size: 24px; }
.cast-card p { margin: 8px 0 0; color: #563a25; line-height: 1.65; }

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.qr-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qr {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #2f1a0e;
  background:
    linear-gradient(90deg, #2f1a0e 0 8px, transparent 8px 16px) 0 0 / 16px 16px,
    #fff2c9;
  border: 5px solid #2f1a0e;
  font-weight: 900;
}

.news-list {
  display: grid;
  gap: 12px;
}
.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px;
  background: #f3d893;
  border: 4px solid var(--line);
}
.news-date {
  color: #7e251d;
  font-weight: 900;
}
.news-item h3 { margin: 0; color: #3b2114; }
.news-item p { margin: 7px 0 0; color: #65462d; line-height: 1.65; }

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 42px auto 32px;
  padding: 28px;
  text-align: center;
  color: #ffe8a4;
  background: #5a371f;
  border: 5px solid #2f1a0e;
  box-shadow: 10px 10px 0 rgba(0,0,0,.2);
}
.site-footer img { width: 220px; }
.site-footer p { color: #f4d69b; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-weight: 900; }
.compliance-info {
  max-width: 760px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 230, 170, .28);
  font-size: 12px;
  line-height: 1.75;
}
.site-footer .compliance-info p { margin: 3px 0; color: rgba(255, 236, 196, .76); }
.site-footer .compliance-info .health-tip { color: rgba(255, 236, 196, .9); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(31, 17, 9, .78);
}
.modal.open { display: grid; }
.modal-panel {
  position: relative;
  width: min(860px, 100%);
  padding: 22px;
  background: var(--paper-light);
  border: 6px solid var(--line);
  box-shadow: 12px 12px 0 rgba(0,0,0,.28);
}
.modal-panel video {
  width: 100%;
  max-height: 72svh;
  background: #000;
}
.modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 4px solid #2f1a0e;
  color: #2f1a0e;
  background: var(--gold);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .site-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-download {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .header-download .store-button {
    min-width: 98px;
  }
  .download-dock {
    width: min(680px, calc(100% - 94px));
    grid-template-columns: 132px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .dock-qr { min-height: 122px; }
  .qr-code { width: 82px; }
  .download-dock .store-button {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 15px;
  }
  .social-rail {
    right: 12px;
    gap: 8px;
  }
  .social-button {
    width: 48px;
    height: 48px;
  }
  .social-icon,
  .social-icon svg {
    width: 24px;
    height: 24px;
  }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .media-video-section {
    min-height: 720px;
    padding: 56px 22px 32px;
  }
  .media-video-section .screenshot-grid {
    width: min(500px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .media-video-section .shot {
    min-height: 92px;
  }
  .shot-video { grid-row: auto; grid-column: span 2; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Supplied platform artwork is the button itself: keep every entry equal and leave the outer pixels transparent. */
.hero-download .store-button.store-button-art {
  width: 156px;
  min-width: 156px;
  height: 56px;
  min-height: 56px;
  flex: 0 0 156px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-download .store-button.store-button-art:hover,
.hero-download .store-button.store-button-art:focus-visible {
  background: transparent;
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.hero-download .store-button.store-button-art:active {
  transform: translateY(1px) scale(.98);
}

.hero-download .store-button.store-button-art .store-art {
  display: block;
  width: 156px;
  height: 56px;
  object-fit: fill;
}

@media (min-width: 901px) {
  .hero-download .header-store-buttons {
    display: flex;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .hero-download {
    left: 37.5%;
  }

  .hero-download .header-store-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
  }

  .hero-download .store-button.store-button-art,
  .hero-download .store-button.store-button-art .store-art {
    width: min(29vw, 118px);
    min-width: 0;
    height: min(10.4vw, 42px);
    min-height: 0;
  }

  .hero-download .store-button.store-button-art {
    flex: 0 1 min(29vw, 118px);
  }
}

@media (max-width: 560px) {
  body { overflow-x: hidden; }
  .site-header {
    padding: 7px 10px 9px;
    min-height: auto;
  }
  .brand img { width: 132px; }
  .menu-btn {
    position: absolute;
    top: 14px;
    right: 10px;
    z-index: 40;
    width: 38px;
    height: 34px;
    font-size: 18px;
    background: linear-gradient(180deg, #ffe28b, var(--pixel-gold));
    border: 2px solid var(--pixel-line);
    box-shadow:
      0 0 0 1px rgba(247,242,232,.35) inset,
      0 2px 0 rgba(0,0,0,.32);
  }
  .header-download {
    display: block;
    padding: 6px;
    width: min(calc(100vw - 24px), 360px);
    max-width: 360px;
    overflow-x: visible;
    justify-content: stretch;
  }
  .header-qr {
    display: none;
  }
  .header-store-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
    min-width: 0;
    width: 100%;
  }
  .header-download .store-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 4px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
  }
  .header-download .store-button span:last-child { display: none; }
  .store-icon,
  .store-icon img,
  .store-icon svg {
    width: 16px;
    height: 16px;
  }
  .hero-parallax {
    height: auto;
    min-height: 780px;
  }
  .hero-logo-layer {
    top: 28px;
    left: 50%;
    right: auto;
    width: calc(100vw - 28px);
    margin: 0;
    padding: 0;
    overflow: visible;
    translate: -50% 0;
  }
  .paper-card, .section, .site-footer { box-shadow: 6px 6px 0 var(--shadow); }
  .hero-logo { width: 100%; max-width: 250px; }
  .hero-logo-layer h1 {
    display: block;
    width: fit-content;
    max-width: calc(100vw - 52px);
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-top: 6px;
    padding: 5px 10px 7px;
    font-size: clamp(18px, 5.1vw, 20px);
    line-height: 1.18;
    text-shadow: 2px 2px 0 #7e251d, 0 3px 10px rgba(0,0,0,.32);
  }
  .lead {
    width: min(270px, calc(100vw - 64px));
    margin-left: auto;
    margin-right: auto;
    font-size: 11.5px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .download-dock {
    bottom: 16px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }
  .download-dock::before,
  .download-dock::after { display: none; }
  .dock-qr {
    grid-template-columns: 74px 1fr;
    min-height: auto;
    text-align: left;
  }
  .qr-code { width: 62px; border-width: 4px; }
  .qr-code span {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .dock-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .download-dock .store-button {
    min-height: 46px;
    padding: 9px;
    font-size: 14px;
  }
  .social-rail {
    top: 470px;
    left: auto;
    right: 12px;
    bottom: auto;
    grid-auto-flow: column;
    grid-auto-flow: row;
    transform: none;
  }
  .social-button {
    width: 44px;
    height: 50px;
  }
  .social-button::before { inset: 7px 6px; }
  .social-button::after {
    top: -7px;
    width: 13px;
    height: 8px;
  }
  .social-icon,
  .social-icon img,
  .social-icon svg {
    width: 21px;
    height: 21px;
  }
  .social-label { display: none; }
  .platform-grid { display: grid; grid-template-columns: 1fr; }
  .store-button, .platform-button { width: 100%; }
  .media-video-section {
    min-height: 760px;
    padding: 48px 16px 24px;
    justify-content: center;
    gap: 28px;
  }
  .media-video-overlay {
    background:
      linear-gradient(180deg, rgba(31, 16, 8, .62), rgba(31, 16, 8, .42) 42%, rgba(31, 16, 8, .78)),
      repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  }
  .media-content {
    width: 100%;
    text-align: center;
  }
  .media-video-section h2,
  .media-video-section .section-intro {
    text-align: center;
  }
  .media-video-section .section-intro {
    width: min(310px, 100%);
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
  }
  .media-play-button {
    width: auto;
    min-width: 148px;
    padding: 11px 16px;
  }
  .media-video-section .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .media-video-section .shot {
    min-height: 96px;
  }
  .screenshot-grid, .cast-grid { grid-template-columns: 1fr; }
  .media-video-section .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-video { grid-column: auto; }
  .news-item { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .menu-btn {
    position: absolute;
    top: 14px;
    right: 10px;
    z-index: 40;
    display: block;
    width: 38px;
    height: 34px;
    color: #2f1a0e;
    background: linear-gradient(180deg, #ffe28b, var(--pixel-gold));
    border: 2px solid var(--pixel-line);
    box-shadow:
      0 0 0 1px rgba(247,242,232,.35) inset,
      0 2px 0 rgba(0,0,0,.32);
  }
}

/* Keep official social logos proportional inside the pixel plaques. */
.social-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
}

.social-icon img,
.social-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.social-button:nth-child(1) .social-icon {
  width: 40px;
  height: 26px;
}

.social-button:nth-child(1) .social-icon img,
.social-button:nth-child(1) .social-icon svg {
  width: 40px;
  height: 26px;
}

/* Platform panels follow the dark translucent download treatment from the reference. */
@media (min-width: 901px) {
  .hero-download {
    gap: 8px;
  }

  .hero-download .header-store-buttons {
    gap: 8px;
  }

  .hero-download .store-button {
    width: 156px;
    flex: 0 0 156px;
    min-width: 128px;
    height: 48px;
    min-height: 48px;
    padding: 7px 10px;
    gap: 8px;
    color: #f6f7e9;
    background:
      linear-gradient(135deg, rgba(12, 38, 35, .95), rgba(20, 48, 39, .88)),
      repeating-linear-gradient(135deg, rgba(148, 218, 155, .08) 0 2px, transparent 2px 9px);
    border: 2px solid rgba(113, 199, 184, .88);
    box-shadow:
      0 0 0 1px rgba(7, 22, 24, .88) inset,
      0 3px 0 rgba(4, 17, 20, .45);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .62);
  }

  .hero-download .store-button::before {
    inset: 3px;
    border: 1px solid rgba(166, 230, 201, .24);
  }

  .hero-download .store-button:hover {
    border-color: #d6f0bc;
    background:
      linear-gradient(135deg, rgba(19, 60, 51, .98), rgba(30, 74, 57, .94)),
      repeating-linear-gradient(135deg, rgba(184, 237, 180, .1) 0 2px, transparent 2px 9px);
    transform: translateY(-2px);
  }

  .hero-download .store-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 3px;
    background: rgba(238, 250, 226, .94);
    border: 1px solid rgba(13, 42, 37, .9);
    box-shadow: none;
  }

  .hero-download .store-icon img,
  .hero-download .store-icon svg {
    width: 21px;
    height: 21px;
    object-fit: contain;
  }

  .hero-download .store-button:nth-child(3) .store-icon {
    width: 37px;
    height: 28px;
    padding: 2px;
  }

  .hero-download .store-button:nth-child(3) .store-icon img {
    width: 33px;
    height: 22px;
  }

  .hero-download .store-copy {
    display: grid;
    min-width: 0;
    line-height: 1.05;
  }

  .hero-download .store-copy strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-download .store-copy small {
    margin-top: 3px;
    color: rgba(239, 246, 220, .74);
    font-size: 10px;
    white-space: nowrap;
  }

  .hero-download .store-button-art {
    width: 156px;
    min-width: 156px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-download .store-button-art::before,
  .hero-download .store-button-art::after {
    display: none;
  }

  .hero-download .store-art {
    display: block;
    width: 156px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
  }
}

/* Full hanging plaques supplied for the primary navigation. */
@media (min-width: 561px) {
  .site-header {
    min-height: 94px;
    gap: 24px;
    padding: 8px clamp(22px, 3.5vw, 48px) 10px;
  }

  .brand img { width: 142px; }

  .main-nav {
    gap: 24px;
    align-items: flex-start;
  }

  .main-nav a {
    width: 68px;
    min-width: 68px;
    height: 78px;
    min-height: 78px;
    padding: 38px 8px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b2114;
    background: url("../assets/img/ui/hanging-plaque-transparent.png") center / 100% 100% no-repeat;
    text-shadow: 1px 1px 0 #fff2c9;
    image-rendering: pixelated;
  }

  .main-nav a:hover {
    transform: translateY(-3px);
    filter: brightness(1.07) saturate(1.06);
  }

  .header-download {
    gap: 5px;
    padding: 6px;
  }

  .header-qr {
    gap: 5px;
    padding: 4px 6px 4px 4px;
    font-size: 12px;
  }

  .mini-qr { width: 26px; }

  .header-store-buttons { gap: 4px; }

  .header-download .store-button {
    min-width: 78px;
    min-height: 32px;
    padding: 4px 6px;
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 2px;
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 27px;
  }

  .header-download {
    margin-left: auto;
  }
}

/* Move the compact download rail into the open hero space marked in the design. */
@media (min-width: 901px) {
  .site-header {
    justify-content: center;
  }

  .site-header .brand {
    position: absolute;
    left: clamp(22px, 3.5vw, 48px);
  }

  .main-nav {
    margin-left: auto;
    margin-right: 0;
  }

  .hero-download {
    position: absolute;
    top: 66%;
    left: 50%;
    z-index: 19;
    display: flex;
    width: auto;
    padding: 0;
    gap: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translate(-50%, -50%);
  }

  .hero-download::before,
  .hero-download::after {
    display: none;
  }

  .hero-download .header-qr,
  .hero-download .store-button {
    background: rgba(47, 26, 14, .12);
    border-color: rgba(255, 226, 128, .78);
    box-shadow: 0 2px 0 rgba(47, 26, 14, .2);
    backdrop-filter: blur(1px);
  }

  .hero-download .header-qr {
    color: #fff4c8;
  }

.hero-download .store-button:hover,
.hero-download .header-qr:hover {
    background: rgba(47, 26, 14, .28);
  }

  .hero-download .store-button:nth-child(3) .store-icon {
    width: 34px;
    height: 24px;
    padding: 1px;
  }

  .hero-download .store-button:nth-child(3) .store-icon img,
  .hero-download .store-button:nth-child(3) .store-icon svg {
    width: 30px;
    height: 20px;
  }
}

@media (max-width: 900px) {
  .hero-download {
    position: absolute;
    top: 62%;
    left: 50%;
    z-index: 19;
    display: flex !important;
    width: min(calc(100% - 28px), 390px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translate(-50%, -50%);
  }

  .hero-download::before,
  .hero-download::after,
  .hero-download .header-qr {
    display: none;
  }

  .hero-download .header-store-buttons {
    width: 100%;
  }

  .hero-download .store-button {
    background: rgba(47, 26, 14, .16);
    border-color: rgba(255, 226, 128, .72);
    box-shadow: 0 2px 0 rgba(47, 26, 14, .18);
  }
}

/* Narrow screens keep the complete three-button group within the hero frame. */
@media (max-width: 900px) {
  .hero-download .header-store-buttons {
    display: flex !important;
    width: 100%;
    justify-content: center;
    gap: 5px;
  }

  .hero-download .store-button.store-button-art,
  .hero-download .store-button.store-button-art .store-art {
    width: 96px !important;
    min-width: 96px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .hero-download .store-button.store-button-art {
    flex: 0 0 96px !important;
  }
}

@media (max-width: 900px) {
  .hero-download {
    left: 37.5%;
  }
}

/* The primary navigation floats over the first frame of the animated scene. */
.site-header,
.site-header.is-compact {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  min-height: 94px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-parallax {
  height: 100svh;
  min-height: 640px;
}

@media (min-width: 561px) {
  .site-header .brand img {
    width: 220px;
    max-height: 64px;
  }
}

/* The scene itself is the hero now; navigation branding remains in the upper-left corner. */
.hero-logo-layer {
  display: none;
}

@media (min-width: 561px) {
  .site-header .brand img {
    width: 426px;
    max-height: none;
  }
}

@media (min-width: 901px) {
  .site-header .brand {
    top: 14px;
  }
}

/* Compact dark navigation bar: logo on the left, section links aligned to the right. */
.site-header,
.site-header.is-compact {
  min-height: 68px;
  padding: 0 clamp(26px, 4vw, 64px);
  background: rgba(10, 12, 15, .72);
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .24);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@media (min-width: 901px) {
  .site-header {
    justify-content: flex-end;
    min-height: 68px;
  }

  .site-header .brand {
    top: 12px;
    left: clamp(26px, 4vw, 64px);
  }

  .site-header .brand img {
    width: 190px;
    max-height: 50px;
  }

  .main-nav {
    height: 68px;
    margin: 0;
    gap: clamp(22px, 2.5vw, 44px);
    align-items: center;
  }

  .main-nav a {
    width: auto;
    min-width: 0;
    height: 68px;
    min-height: 68px;
    padding: 0;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    color: #fff0a7;
    filter: none;
    transform: none;
  }
}

/* Keep the hanging-plaque UI for the two primary community links. */
.social-button:nth-child(1),
.social-button:nth-child(2) {
  width: 68px;
  height: 78px;
  margin-right: 0;
  background: url("../assets/img/ui/hanging-plaque-transparent.png") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
}

.social-button:nth-child(1)::before,
.social-button:nth-child(1)::after,
.social-button:nth-child(2)::before,
.social-button:nth-child(2)::after {
  display: none;
}

.social-button:nth-child(1) .social-icon,
.social-button:nth-child(2) .social-icon {
  width: 28px;
  height: 28px;
  transform: translateY(10px);
}

.social-button:nth-child(1):hover,
.social-button:nth-child(2):hover {
  transform: translateY(-2px);
  background: url("../assets/img/ui/hanging-plaque-transparent.png") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
}

/* 2026 public-site refinement: progressive enhancement, clearer states and mobile conversion. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #2f1a0e;
  background: #ffe28b;
  border: 3px solid #2f1a0e;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #fff1a8;
  outline-offset: 4px;
}

/* Content stays readable when scripts are unavailable. */
.section {
  opacity: 1;
  transform: none;
}

html.motion-ready .section:not(.is-visible):not(.media-video-section) {
  opacity: 0;
  transform: translateY(22px);
}

.media-video-section .media-content {
  margin-top: clamp(12px, 3vh, 36px);
}

.media-play-button {
  min-height: 48px;
}

a.is-pending {
  cursor: not-allowed;
}

.hero-download .store-button.is-pending {
  position: relative;
}

.hero-download .store-button.is-pending::after {
  content: "敬请期待";
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 2px 5px;
  color: #fff2c9;
  background: rgba(63, 25, 18, .9);
  border: 1px solid rgba(255, 226, 139, .78);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  pointer-events: none;
}

.platform-button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 180px;
  min-height: 64px;
}

.platform-button small {
  color: rgba(47, 26, 14, .72);
  font-size: 11px;
  font-weight: 700;
}

.platform-button.is-pending {
  filter: saturate(.72);
}

.qr.qr-pending {
  background: #fff2c9;
  border-style: dashed;
  line-height: 1.45;
}

.qr.qr-pending small {
  color: #7e251d;
  font-size: 12px;
}

.modal-close {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 900px) {
  .site-header,
  .site-header.is-compact {
    position: absolute;
    min-height: 64px;
    height: 64px;
    padding: 7px 14px;
    flex-wrap: nowrap;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(18, 24, 28, .92), rgba(18, 24, 28, .74));
    border-bottom: 1px solid rgba(255, 241, 168, .38);
    box-shadow: 0 4px 18px rgba(20, 13, 8, .24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .site-header .brand {
    position: static;
    display: block;
  }

  .site-header .brand img {
    width: 132px;
    max-height: 48px;
  }

  .main-nav {
    display: none;
  }

  .menu-btn {
    position: static;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #2f1a0e;
  }

  .mobile-nav {
    top: 72px;
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    background: rgba(53, 31, 19, .98);
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    min-height: 48px;
  }

  .hero-parallax {
    height: 100dvh;
    min-height: 620px;
  }

  .hero-download {
    top: auto;
    left: 50%;
    bottom: 76px;
    z-index: 24;
    width: min(calc(100% - 24px), 360px);
    transform: translateX(-50%);
  }

  .hero-download .header-store-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .hero-download .store-button.store-button-art,
  .hero-download .store-button.store-button-art .store-art {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 156 / 56;
    object-fit: contain;
  }

  .hero-download .store-button.store-button-art {
    flex: none !important;
  }

  .media-video-section {
    min-height: 760px;
  }

  .media-video-section .media-content {
    width: min(520px, 100%);
  }

  .social-rail {
    right: 8px;
  }
}

@media (max-width: 560px) {
  .section {
    width: calc(100% - 20px);
    margin: 20px auto;
    padding: 26px 18px;
    border-width: 4px;
    box-shadow: 6px 6px 0 var(--shadow);
  }

  .section h2 {
    font-size: 32px;
  }

  .site-header .brand img {
    width: 124px;
  }

  .hero-download {
    bottom: 70px;
  }

  .hero-download .store-button.is-pending::after {
    right: 2px;
    bottom: 1px;
    padding: 1px 3px;
    font-size: 8px;
  }

  .social-rail {
    top: 41%;
  }

  .media-video-section {
    width: 100%;
    min-height: 100dvh;
    margin-top: 0;
    padding: 92px 18px 24px;
    border-left: 0;
    border-right: 0;
  }

  .media-video-section h2 {
    font-size: 38px;
    line-height: 1.15;
  }

  .media-video-section .section-intro {
    line-height: 1.65;
  }

  .media-video-section .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast-card img {
    aspect-ratio: 16 / 10;
  }

  .platform-button {
    width: 100%;
  }

  .qr-row {
    gap: 10px;
  }

  .qr {
    width: calc(50% - 5px);
    max-width: 142px;
    height: 116px;
  }
}

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

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

  html.motion-ready .section:not(.is-visible):not(.media-video-section) {
    opacity: 1;
    transform: none;
  }
}

