:root {
  --navy-950: #04101e;
  --navy-900: #071526;
  --navy-800: #0b2138;
  --navy-700: #123653;
  --teal-500: #21c8a8;
  --teal-600: #12ab91;
  --amber-400: #ffca68;
  --amber-500: #ffb84a;
  --ink-900: #122033;
  --ink-700: #42536a;
  --ink-500: #708097;
  --line: #dfe8ed;
  --surface: #f3f8f8;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 12px 34px rgba(7, 21, 38, 0.08);
  --shadow-lg: 0 26px 70px rgba(4, 16, 30, 0.22);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--amber-400);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 232, 237, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: linear-gradient(145deg, var(--amber-400), var(--amber-500));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(255, 184, 74, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 13px;
  color: var(--ink-700);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-900);
  background: #eaf6f3;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--navy-950);
  background: var(--amber-500);
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(255, 184, 74, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 184, 74, 0.32);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 19px;
  height: 2px;
  display: block;
  background: var(--ink-900);
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle::before {
  transform: translateY(-5px);
}

.menu-toggle::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(33, 200, 168, 0.2), transparent 29%),
    radial-gradient(circle at 83% 22%, rgba(255, 184, 74, 0.12), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.hero::after,
.content-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  padding-block: 80px;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #8ce7d5;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.hero h1,
.content-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--amber-400);
}

.hero-lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: #c8d9e5;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 14px 28px rgba(255, 184, 74, 0.22);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-dark {
  color: var(--white);
  background: var(--navy-900);
}

.button-outline {
  color: var(--navy-900);
  background: transparent;
  border-color: #b8c9d2;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 26px;
  color: #92aabe;
  font-size: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "✓";
  color: var(--teal-500);
  font-weight: 900;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -4% -8% 6%;
  background: radial-gradient(circle, rgba(33, 200, 168, 0.2), transparent 65%);
  filter: blur(12px);
}

.hero-visual img {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.hero-visual-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  z-index: 2;
  min-width: 150px;
  padding: 16px 18px;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-visual-badge strong,
.hero-visual-badge span {
  display: block;
}

.hero-visual-badge strong {
  font-size: 19px;
}

.hero-visual-badge span {
  color: var(--ink-500);
  font-size: 13px;
}

.quick-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: var(--white);
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.quick-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-item {
  padding: 24px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-item:last-child {
  border-right: 0;
}

.quick-item strong,
.quick-item span {
  display: block;
}

.quick-item strong {
  font-size: 18px;
}

.quick-item span {
  color: #8fa8ba;
  font-size: 13px;
}

.section {
  padding-block: 92px;
}

.section-soft {
  background: var(--surface);
}

.section-dark {
  color: var(--white);
  background: var(--navy-950);
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--ink-700);
  font-size: 17px;
}

.section-dark .section-heading p:not(.eyebrow) {
  color: #9bb0c0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.game-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 9px 26px rgba(7, 21, 38, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: #b7dbd4;
  box-shadow: var(--shadow-sm);
}

.game-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), var(--teal-600));
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(18, 171, 145, 0.2);
}

.game-card:nth-child(2n) .game-symbol {
  color: var(--navy-950);
  background: linear-gradient(145deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 10px 22px rgba(255, 184, 74, 0.2);
}

.game-card h3 {
  margin: 0;
  font-size: 20px;
}

.game-card p {
  margin: 8px 0 20px;
  color: var(--ink-500);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--teal-600);
  font-size: 14px;
  font-weight: 900;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

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

.feature-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-index {
  width: 46px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: var(--teal-600);
  background: #e8f7f4;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 0;
  font-size: 21px;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--ink-700);
  font-size: 15px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 76px;
}

.phone-stage {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 25% 18%, rgba(33, 200, 168, 0.28), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-700));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.phone {
  width: min(280px, 84%);
  padding: 11px;
  background: #02070d;
  border: 2px solid #506170;
  border-radius: 38px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  transform: rotate(-4deg);
}

.phone-screen {
  min-height: 470px;
  padding: 20px 16px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 184, 74, 0.22), transparent 30%),
    linear-gradient(var(--navy-800), var(--navy-950));
  border-radius: 28px;
}

.phone-notch {
  width: 78px;
  height: 7px;
  margin: -7px auto 22px;
  background: #02070d;
  border-radius: 99px;
}

.phone-title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

.phone-banner {
  padding: 18px;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--amber-400), #ffe1a9);
  border-radius: 18px;
}

.phone-banner strong,
.phone-banner span {
  display: block;
}

.phone-banner span {
  font-size: 12px;
}

.phone-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.phone-game {
  padding: 16px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 42px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--teal-600);
  background: #e8f7f4;
  border-radius: 9px;
  font-weight: 900;
}

.check-list strong,
.check-list span {
  display: block;
}

.check-list strong {
  font-size: 17px;
}

.check-list span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 14px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 46px 52px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, rgba(33, 200, 168, 0.22), transparent 24%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.download-panel p {
  margin: 12px 0 0;
  color: #b5c8d5;
}

.download-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: #8ce7d5;
  font-size: 14px;
  font-weight: 800;
}

.content-hero {
  position: relative;
  overflow: hidden;
  padding-block: 76px 82px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(33, 200, 168, 0.18), transparent 25%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

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

.content-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.content-hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #b8cbd8;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #8fa8ba;
  font-size: 14px;
}

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

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.52;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 52px;
}

.content-main h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.content-main h2:not(:first-child) {
  margin-top: 54px;
}

.content-main h3 {
  margin: 30px 0 10px;
  font-size: 21px;
}

.content-main p {
  color: var(--ink-700);
}

.content-main a:not(.button) {
  color: var(--teal-600);
  font-weight: 800;
}

.aside-card {
  position: sticky;
  top: 96px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.aside-card h2 {
  margin: 0;
  font-size: 19px;
}

.aside-links {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.aside-links a {
  padding: 10px 12px;
  color: var(--ink-700);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.aside-links a:hover,
.aside-links a[aria-current="page"] {
  color: var(--teal-600);
  background: var(--white);
}

.aside-download {
  width: 100%;
  margin-top: 18px;
}

.play-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.play-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.play-item .game-symbol {
  margin: 0;
  width: 64px;
  height: 64px;
}

.play-item h3 {
  margin: 0;
}

.play-item p {
  margin: 7px 0 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tag {
  padding: 5px 10px;
  color: var(--teal-600);
  background: #e8f7f4;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
}

.detail-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.detail-table th,
.detail-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.detail-table th {
  width: 32%;
  color: var(--ink-700);
  background: var(--surface);
  font-size: 14px;
}

.detail-table td {
  color: var(--ink-900);
  background: var(--white);
  word-break: break-word;
}

.detail-table tr:last-child th,
.detail-table tr:last-child td {
  border-bottom: 0;
}

.checksum {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.checksum code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--ink-700);
  font-size: 12px;
}

.copy-button {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  position: relative;
  min-height: 74px;
  padding: 0 0 20px 78px;
  counter-increment: steps;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 53px;
  bottom: -4px;
  left: 26px;
  width: 1px;
  background: var(--line);
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: linear-gradient(145deg, var(--amber-400), var(--amber-500));
  border-radius: 16px;
  font-weight: 900;
}

.step-list h3 {
  margin: 0;
}

.step-list p {
  margin: 5px 0 0;
}

.notice-box {
  margin: 26px 0;
  padding: 20px 22px;
  color: #634719;
  background: #fff7e8;
  border: 1px solid #f1d59d;
  border-radius: 14px;
}

.notice-box strong {
  display: block;
  margin-bottom: 4px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq-list details[open] {
  border-color: #b7dbd4;
  box-shadow: 0 12px 28px rgba(7, 21, 38, 0.06);
}

.faq-list summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 21px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--teal-600);
  background: #e8f7f4;
  border-radius: 8px;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 21px;
  color: var(--ink-700);
}

.faq-answer p {
  margin: 0;
}

.site-footer {
  padding: 54px 0 28px;
  color: #a5bac9;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 34px;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #89a2b4;
  font-size: 14px;
}

.footer-column h2 {
  margin: 0 0 13px;
  color: var(--white);
  font-size: 15px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: fit-content;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--teal-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #6f899b;
  font-size: 13px;
}

.mobile-download-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px 11px 16px;
  color: var(--white);
  background: rgba(4, 16, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(4, 16, 30, 0.28);
  backdrop-filter: blur(14px);
}

.mobile-download-bar strong,
.mobile-download-bar span {
  display: block;
}

.mobile-download-bar strong {
  font-size: 14px;
}

.mobile-download-bar span {
  color: #8fa8ba;
  font-size: 11px;
}

.mobile-download-bar .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy-900);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 100;
  padding: 11px 16px;
  color: var(--white);
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid rgba(33, 200, 168, 0.54);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-nav a {
    padding-inline: 9px;
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-layout {
    gap: 48px;
  }
}

@media (max-width: 880px) {
  .menu-toggle {
    display: grid;
  }

  .nav-shell > .nav-download {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    max-height: calc(100vh - 74px);
    display: grid;
    gap: 5px;
    padding: 18px 20px 26px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(7, 21, 38, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
    font-size: 16px;
  }

  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 68px 88px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    max-width: 720px;
  }

  .hero-visual-badge {
    right: 14px;
  }

  .quick-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-item:nth-child(2) {
    border-right: 0;
  }

  .quick-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-stage {
    min-height: 460px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .aside-card {
    position: static;
    order: -1;
  }

  .aside-links {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-shell {
    min-height: 66px;
  }

  .site-nav {
    inset-block-start: 66px;
    max-height: calc(100vh - 66px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-grid {
    gap: 42px;
    padding-block: 54px 70px;
  }

  .hero h1,
  .content-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .hero-visual img {
    border-radius: 18px;
  }

  .hero-visual-badge {
    right: 8px;
    bottom: -28px;
    min-width: 135px;
    padding: 12px 14px;
  }

  .section {
    padding-block: 66px;
  }

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

  .game-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 218px;
  }

  .game-symbol {
    margin-bottom: 25px;
  }

  .phone-stage {
    min-height: 430px;
    padding: 25px;
  }

  .phone-screen {
    min-height: 410px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 24px;
  }

  .download-panel .button {
    width: 100%;
  }

  .content-hero {
    padding-block: 54px 60px;
  }

  .content-grid {
    gap: 36px;
  }

  .aside-links {
    grid-template-columns: 1fr 1fr;
  }

  .play-item {
    grid-template-columns: 1fr;
  }

  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }

  .detail-table th {
    padding-bottom: 6px;
    border-bottom: 0;
  }

  .detail-table td {
    padding-top: 7px;
  }

  .checksum {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .back-to-top {
    display: none;
  }

  .mobile-download-bar {
    display: flex;
  }

  .site-footer {
    padding-bottom: 98px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
