:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0d1117;
  --surface: rgba(17, 22, 30, 0.82);
  --surface-strong: #141a22;
  --surface-raised: #1a212b;
  --text: #f4f1eb;
  --text-soft: #d8d2c8;
  --muted: #9aa4ae;
  --muted-2: #737f8b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --teal: #64d7c8;
  --teal-dark: #2e8d82;
  --amber: #e8c16b;
  --rose: #e07770;
  --green: #8bd38c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius-card: 8px;
  --radius-control: 6px;
  --header-height: 72px;
  --shell: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.24), var(--bg) 680px),
    linear-gradient(135deg, rgba(100, 215, 200, 0.08), transparent 42%),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body.is-nav-open,
body.is-dialog-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

::selection {
  background: rgba(100, 215, 200, 0.32);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-140%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section--quiet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 13, 0.48);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(7, 9, 13, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-link__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
}

.brand-link__text {
  display: grid;
  line-height: 1.18;
}

.brand-link__text span:first-child {
  font-weight: 700;
  color: var(--text);
}

.brand-link__text span:last-child {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 14px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle__line {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    top 180ms ease;
}

.nav-toggle__line:nth-child(1) {
  top: 14px;
}

.nav-toggle__line:nth-child(2) {
  top: 21px;
}

.nav-toggle__line:nth-child(3) {
  top: 28px;
}

body.is-nav-open .nav-toggle__line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

body.is-nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .nav-toggle__line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  min-height: 92svh;
  align-items: center;
  padding: calc(var(--header-height) + 58px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero__image {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.018);
  transition: transform 180ms ease-out;
}

.hero__shade {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.86), rgba(7, 9, 13, 0.44) 48%, rgba(7, 9, 13, 0.76)),
    linear-gradient(180deg, rgba(7, 9, 13, 0.38), rgba(7, 9, 13, 0.82));
}

.hero__motion {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.44;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(100, 215, 200, 0.1) 46%, transparent 52% 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 84px
    );
  animation: hero-scan 18s linear infinite;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.hero__logo {
  width: 88px;
  height: 88px;
  margin: 0 0 26px;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-weight: 740;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: 12px;
  font-size: 72px;
}

h1 span:last-child {
  color: var(--text-soft);
  font-size: 26px;
  font-weight: 620;
}

h2 {
  max-width: 760px;
  font-size: 42px;
}

.hero__slogan {
  margin: 28px 0 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 680;
  line-height: 1.42;
}

.hero__intro {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffffff;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(100, 215, 200, 0.54);
  background: rgba(100, 215, 200, 0.12);
}

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

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 48px;
  margin-bottom: 34px;
}

.section-heading__summary {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-heading--row .section-heading__summary {
  margin: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
}

.about__copy {
  display: grid;
  gap: 18px;
}

.about__copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.principle-item {
  min-height: 136px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
}

.principle-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 17px;
}

.principle-item span {
  color: var(--muted);
  font-size: 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(100, 215, 200, 0.42);
  background: rgba(24, 31, 40, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  transform: translateY(-4px);
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #10151d;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.game-card:hover .game-card__media img,
.game-card:focus-visible .game-card__media img {
  transform: scale(1.045);
}

.game-card__status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-control);
  background: rgba(7, 9, 13, 0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.game-card__body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.game-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.game-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.game-card__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 2px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  margin: 26px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

.contact__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(17, 22, 30, 0.64);
  box-shadow: var(--shadow-soft);
}

.contact-list,
.social-list {
  display: grid;
}

.contact-list {
  border-bottom: 1px solid var(--line);
}

.contact-item,
.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 18px 20px;
  color: var(--text);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.contact-item + .contact-item,
.social-item + .social-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-item:hover,
.contact-item:focus-visible,
.social-item:hover,
.social-item:focus-visible {
  background: rgba(255, 255, 255, 0.045);
}

.contact-item span,
.social-item span {
  color: var(--muted);
  font-size: 14px;
}

.contact-item strong,
.social-item strong {
  text-align: right;
  font-size: 15px;
  line-height: 1.35;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070a;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.site-footer p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px 18px;
  max-width: 560px;
}

.footer-links a,
.footer-links span {
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.game-dialog {
  width: min(1120px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--text);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-dialog::backdrop {
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(8px);
}

.game-dialog__surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  height: min(720px, calc(100dvh - 48px));
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #0d1117;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-control);
  background: rgba(7, 9, 13, 0.74);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.dialog-close span,
.dialog-close span::after {
  position: absolute;
  top: 20px;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.dialog-close span {
  transform: rotate(45deg);
}

.dialog-close span::after {
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.game-dialog__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    #080b10;
}

.game-dialog__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  object-fit: contain;
}

.game-dialog__content {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 48px 56px 48px 48px;
}

.game-dialog__content h2 {
  font-size: 38px;
}

.game-dialog__tagline {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.game-dialog__description {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  margin-top: 28px;
  padding-right: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.game-dialog__description p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.game-dialog__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-size: 13px;
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.download-link:hover,
.download-link:focus-visible {
  border-color: rgba(232, 193, 107, 0.56);
  background: rgba(232, 193, 107, 0.14);
  transform: translateY(-1px);
}

.noscript {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(232, 193, 107, 0.42);
  border-radius: var(--radius-card);
  background: #15110a;
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-scan {
  from {
    background-position: -260px 0, 0 0;
  }

  to {
    background-position: 260px 0, 84px 0;
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 66px;
  }

  .shell {
    width: min(100% - 36px, var(--shell));
  }

  .section {
    padding: 82px 0;
  }

  .brand-link__text span:last-child {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    background: rgba(9, 12, 17, 0.99);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  body.is-nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 14px;
    font-size: 15px;
  }

  .hero {
    min-height: 92svh;
    padding: calc(var(--header-height) + 46px) 0 64px;
  }

  h1 {
    font-size: 52px;
  }

  h1 span:last-child {
    font-size: 21px;
  }

  h2 {
    font-size: 34px;
  }

  .hero__slogan {
    font-size: 21px;
  }

  .hero__intro {
    font-size: 16px;
  }

  .section-heading--row,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    display: grid;
    gap: 28px;
  }

  .section-heading--row .section-heading__summary {
    margin-top: 12px;
  }

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

  .game-dialog__surface {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(820px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    overflow: hidden;
  }

  .game-dialog__media {
    height: auto;
  }

  .game-dialog__media img {
    width: 100%;
    height: auto;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .game-dialog__content {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: 30px;
  }

  .footer-shell {
    display: grid;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero__logo {
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
  }

  h1 {
    gap: 10px;
    font-size: 40px;
  }

  h1 span:last-child {
    font-size: 18px;
  }

  h2 {
    font-size: 28px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .principle-list {
    grid-template-columns: 1fr;
  }

  .game-card__body {
    padding: 18px;
  }

  .game-card h3 {
    font-size: 22px;
  }

  .contact-item,
  .social-item {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .contact-item strong,
  .social-item strong {
    text-align: left;
  }

  .game-dialog {
    width: min(100% - 20px, 1100px);
    max-height: calc(100dvh - 20px);
  }

  .game-dialog__surface {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .game-dialog__content {
    padding: 24px;
  }

  .game-dialog__content h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
