@font-face {
  font-family: QihangDisplay;
  src: url("/assets/display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #073348;
  --body: #455a6d;
  --blue: #0068a8;
  --orange: #f47132;
  --cream: #fffaf3;
  --focus: #075dab;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
img {
  display: block;
  max-width: 100%;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2,
.game-name {
  font-family: QihangDisplay, "Songti SC", serif;
}
.container {
  width: min(1034px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 68px;
  background: #f5fbfe;
  position: relative;
  z-index: 2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.brand {
  flex: 0 0 200px;
}
.brand img {
  width: 200px;
  height: 62px;
  object-fit: contain;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.site-header nav a,
.site-header nav button {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0;
}
.site-header nav a:hover,
.site-header nav button:hover {
  color: var(--blue);
}
.site-header .nav-home {
  border-bottom-color: var(--orange);
}
.header-contact .button {
  min-height: 38px;
  padding: 6px 17px;
  font-size: 14px;
  gap: 7px;
}
.header-contact img {
  width: 20px;
  height: 20px;
}
.hero {
  position: relative;
  width: 100%;
  min-height: 545px;
  aspect-ratio: 2.18/1;
  max-height: 760px;
  overflow: hidden;
  background: #d4edf7;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-inner {
  position: relative;
  padding-top: 60px;
  padding-bottom: 68px;
}
.hero-copy {
  max-width: 510px;
}
.eyebrow {
  font-family: QihangDisplay, serif;
  letter-spacing: 0.34em;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
h1 {
  font-size: 82px;
  line-height: 1.13;
  letter-spacing: -3px;
  font-weight: 900;
}
h1 span {
  color: var(--orange);
}
.hero-description {
  font-size: 18px;
  color: var(--body);
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 445px;
  line-height: 1.7;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid transparent;
  border-radius: 40px;
  min-height: 54px;
  padding: 11px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}
.primary {
  background: #be4913;
  color: #fff;
  box-shadow: 0 5px 14px #e57b3040;
}
.primary:hover {
  background: #9e3b0e;
}
.primary img,
.android img,
.ios img {
  filter: invert(1);
}
.telegram {
  background: #f8fcffed;
  border-color: #1386c5;
  color: #006caa;
}
.telegram:hover {
  background: #e0f3ff;
}
.open-app {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: #006a9d;
  font-size: 14px;
  min-height: 36px;
}
.hero .open-app {
  width: fit-content;
  padding-inline: 8px;
  border-radius: 6px;
  background: #f5fbfeeb;
}
.hero .primary {
  min-width: 190px;
}
.open-app a,
.open-app button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: underline;
  text-underline-offset: 5px;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  font-weight: 500;
}
.open-app img {
  width: 14px;
}
.open-app button:hover,
.open-app a:hover {
  color: #034365;
}
.games {
  padding: 38px 0 44px;
  background: var(--cream);
}
.section-heading {
  text-align: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 37px;
  font-weight: 900;
  line-height: 1.5;
}
.section-heading p {
  color: #6d7c87;
  font-size: 14px;
  margin-top: 0;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}
.game-card {
  position: relative;
  text-align: left;
  border: 0;
  background: none;
  padding: 0 0 2px;
  min-width: 0;
}
.game-art {
  border-radius: 13px;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.game-card:hover .game-art {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px #30554820;
}
.game-name {
  font-weight: 900;
  font-size: 20px;
  display: block;
  margin: 8px 46px 0 0;
}
.game-description {
  display: block;
  font-size: 13px;
  color: #6d7b84;
  margin-right: 0;
  line-height: 1.8;
}
.game-arrow {
  position: absolute;
  right: 7px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #faecd8;
  display: grid;
  place-items: center;
}
.game-arrow img {
  width: 21px;
  opacity: 0.7;
}
.game-card .game-description {
  padding-right: 35px;
}
.download-section {
  position: relative;
  min-height: 330px;
  background: #d7eef8;
  overflow: hidden;
}
.download-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-inner {
  position: relative;
  padding-top: 47px;
  padding-bottom: 28px;
}
.download-inner h2 {
  font-size: 39px;
  font-weight: 900;
  line-height: 1.5;
}
.download-inner > p {
  font-size: 17px;
  color: var(--body);
  margin-bottom: 17px;
}
.android {
  background: #27804f;
  color: white;
}
.android:hover {
  background: #1a623b;
}
.ios {
  background: #252a2e;
  color: white;
}
.ios:hover {
  background: #060d13;
}
.download-actions .button {
  padding-inline: 23px;
  min-height: 52px;
  font-size: 16px;
}
.download-inner .download-help {
  font-size: 12px;
  margin: 10px 0 0;
  color: #3f6072;
  max-width: 560px;
}
.site-footer {
  background: #f4fafb;
  padding: 25px 0 15px;
  color: #41646e;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-inner strong {
  font-family: QihangDisplay, serif;
  font-size: 22px;
  color: #15463f;
}
.footer-inner span {
  font-size: 13px;
  margin-left: 18px;
}
.footer-inner .button {
  font-size: 14px;
  min-height: 42px;
  padding: 8px 17px;
}
.healthy-play {
  font-size: 12px;
  color: #5c737b;
  text-align: center;
  margin-top: 13px;
}
dialog {
  width: min(440px, calc(100% - 40px));
  padding: 40px 30px 28px;
  border: 1px solid #d2e6e8;
  border-radius: 20px;
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 24px 100px #092d4560;
}
dialog::backdrop {
  background: #082a3c85;
}
dialog h2 {
  font-size: 27px;
  padding-right: 24px;
  margin-bottom: 13px;
}
dialog p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.85;
  margin-bottom: 24px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
}
.dialog-close:hover {
  background: #eef7f8;
}
.dialog-confirm {
  background: #e4f2f6;
  border-color: #b9d9e4;
  color: #164d66;
}
.dialog-download[hidden],
.dialog-confirm[hidden] {
  display: none;
}
.noscript-note {
  text-align: center;
  font-size: 14px;
  padding: 12px;
}
@media (min-width: 1500px) {
  .hero-inner {
    padding-top: 90px;
  }
  .container {
    width: min(1200px, calc(100% - 100px));
  }
  .hero-copy {
    max-width: 560px;
  }
  h1 {
    font-size: 96px;
  }
  .hero-description {
    font-size: 20px;
    max-width: 490px;
  }
  .games {
    padding-block: 48px 54px;
  }
  .download-section {
    min-height: 380px;
  }
  .download-inner {
    padding-top: 65px;
  }
}
@media (max-width: 1080px) {
  .site-header nav {
    gap: 20px;
  }
  .header-contact {
    display: none;
  }
  .hero-inner {
    padding-top: 58px;
  }
  h1 {
    font-size: 72px;
  }
  .hero-copy {
    max-width: 425px;
  }
  .hero-description {
    font-size: 16px;
    max-width: 390px;
  }
  .hero .button {
    font-size: 16px;
    padding-inline: 20px;
  }
  .hero {
    aspect-ratio: auto;
    min-height: 515px;
  }
  .hero-art {
    object-position: 57% center;
  }
  .game-grid {
    gap: 15px;
  }
  .game-description {
    font-size: 12px;
  }
  .game-card .game-description {
    padding-right: 0;
  }
  .game-arrow {
    bottom: 30px;
    right: 0;
    width: 30px;
    height: 30px;
  }
  .download-art {
    object-position: 57% center;
  }
  .download-inner h2 {
    font-size: 34px;
  }
  .download-actions {
    max-width: 590px;
  }
  .download-actions .button {
    padding-inline: 18px;
    font-size: 15px;
  }
}
@media (max-width: 960px) {
  html {
    scroll-padding-top: 20px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .site-header {
    height: auto;
    min-height: 66px;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding-bottom: 8px;
  }
  .brand {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }
  .brand img {
    width: 176px;
    height: 57px;
  }
  .site-header nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
    font-size: 12px;
  }
  .site-header nav a,
  .site-header nav button {
    min-height: 44px;
  }
  .hero {
    min-height: 680px;
    aspect-ratio: auto;
    display: flex;
    align-items: flex-end;
  }
  .hero-art {
    height: 345px;
    object-fit: cover;
    object-position: 73% top;
  }
  .hero-inner {
    padding: 325px 0 27px;
    text-align: center;
  }
  .hero-copy {
    max-width: none;
  }
  .eyebrow {
    font-size: 14px;
    margin-bottom: 7px;
  }
  h1 {
    font-size: 54px;
    line-height: 1.13;
    letter-spacing: -2px;
  }
  h1 br {
    display: none;
  }
  h1 span {
    display: block;
  }
  .hero-description {
    font-size: 15px;
    max-width: 340px;
    margin: 14px auto 18px;
  }
  .actions {
    justify-content: center;
    gap: 10px;
  }
  .hero .button {
    font-size: 15px;
    padding: 12px 21px;
    min-height: 50px;
  }
  .hero .primary {
    min-width: 0;
  }
  .hero .open-app {
    margin-inline: auto;
    background: none;
  }
  .open-app {
    justify-content: center;
    margin-top: 9px;
  }
  .games {
    padding: 29px 0 33px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 27px;
    line-height: 1.5;
  }
  .section-heading p {
    font-size: 13px;
    margin: 6px auto 0;
    max-width: 300px;
    line-height: 1.8;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .game-art {
    border-radius: 10px;
  }
  .game-name {
    font-size: 18px;
    margin-top: 8px;
  }
  .game-description {
    font-size: 11px;
    line-height: 1.8;
    white-space: nowrap;
  }
  .game-arrow {
    width: 27px;
    height: 27px;
    bottom: 26px;
    right: 1px;
  }
  .game-arrow img {
    width: 17px;
  }
  .download-section {
    min-height: 575px;
  }
  .download-art {
    height: 245px;
    object-position: right top;
    object-fit: cover;
  }
  .download-inner {
    padding: 265px 0 23px;
    text-align: center;
  }
  .download-inner h2 {
    font-size: 29px;
    line-height: 1.5;
  }
  .download-inner > p {
    font-size: 14px;
    margin: 6px 0 18px;
  }
  .download-actions {
    gap: 10px;
    max-width: 440px;
    margin: auto;
  }
  .download-actions .button {
    font-size: 14px;
    padding: 11px 19px;
    min-height: 50px;
  }
  .download-actions .telegram {
    flex-basis: 75%;
    max-width: 270px;
  }
  .download-inner .download-help {
    font-size: 12px;
    max-width: 300px;
    margin: 9px auto 0;
    line-height: 1.7;
  }
  .footer-inner {
    flex-direction: column;
    gap: 14px;
  }
  .footer-inner p {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .footer-inner span {
    margin: 3px 0 0;
  }
  .site-footer {
    padding-top: 23px;
  }
}
@media (max-width: 370px) {
  .site-header nav {
    gap: 15px;
  }
  .hero .button {
    padding-inline: 15px;
    font-size: 14px;
  }
  .game-description {
    font-size: 10px;
  }
  h1 {
    font-size: 49px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .download-actions .button {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
