@font-face {
  font-family: Golos;
  src: url("/assets/golos-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Golos;
  src: url("/assets/golos-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122;
}
:root {
  color-scheme: dark;
  --background: #101022;
  --deep: #0c0c1b;
  --panel: #191932;
  --line: #343251;
  --text: #f5f2ff;
  --muted: #bfbed8;
  --mint: #80f2db;
  --lavender: #b7a8ff;
  --ink: #101425;
  --accent: var(--mint);
  font-family: Golos, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--text); }
main { flex: 1; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.container { width: min(100% - 5.5rem, 79rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 5; background: var(--mint); color: var(--ink); border-radius: .35rem; padding: .6rem 1rem; transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--deep); border-bottom: 1px solid #28263f; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.5rem; gap: 1.6rem; }
.brand { display: flex; gap: .68rem; align-items: center; width: fit-content; white-space: nowrap; line-height: 1; font-size: 1.07rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.brand-names { display: grid; gap: .22rem; }
.brand-names small, .brand-subtitle { color: var(--muted); font-size: .74rem; font-weight: 650; letter-spacing: .035em; }
.brand-subtitle { margin-top: .55rem; font-size: 1.05rem; }
.brand-mark {
  display: inline-block;
  flex: 0 0 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .46rem;
  background: var(--mint) url("/assets/favicon.svg") center / 113%;
  box-shadow: 0 0 1.25rem #80f2db2e;
}
.nav nav, .footer-content nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.45rem); }
.nav nav a, .header-about, .footer-content nav a { border-bottom: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.nav nav a { padding-block: 1.43rem; }
.nav nav a:hover, .nav nav [aria-current], .header-about:hover, .footer-content nav a:hover { color: var(--mint); }
.nav nav [aria-current] { border-color: var(--mint); }
.header-about { justify-self: end; }
.site-footer { border-top: 1px solid var(--line); margin-top: 4.75rem; background: var(--deep); }
.footer-content { min-height: 6.7rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.35rem; padding-block: 1.3rem; }
.footer-content nav { flex-wrap: wrap; gap: .7rem 1.6rem; }
.home-hero { overflow: hidden; border-bottom: 1px solid #383054; background: #15132d; }
.hero-inner { min-height: clamp(30rem, 40vw, 37rem); display: flex; align-items: center; isolation: isolate; position: relative; }
.hero-inner::before, .hero-inner::after { content: ""; position: absolute; pointer-events: none; }
.hero-inner::before { inset: 0 -8vw 0 -18vw; z-index: -1; background: linear-gradient(90deg,#15132d 0%,#15132d 21%,#15132df7 33%,#15132db8 42%,transparent 62%), linear-gradient(0deg,#14132b87,transparent 24%); }
.hero-inner::after { z-index: -2; inset: 0 -6vw; background-image: radial-gradient(#b3a6f02a 1px,transparent 1px); background-size: 11px 11px; mask-image: linear-gradient(90deg,#000,transparent 59%); }
.hero-image { position: absolute; z-index: -2; width: 83%; height: 100%; max-width: none; inset: 0 calc((100% - 100vw) / 2) auto auto; object-fit: cover; object-position: center 37%; }
.hero-copy { padding-block: 3.7rem; width: min(35rem, 53%); }
.eyebrow { color: var(--accent); font-size: .83rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: .55rem; }
.hero-copy .eyebrow i { width: .48rem; height: .48rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 .6rem #80f2db; }
.hero-copy h1 { margin-block: .65rem 1.4rem; font-size: clamp(4.1rem, 7.2vw, 7.2rem); line-height: .83; letter-spacing: -.058em; font-weight: 850; text-transform: uppercase; }
.hero-copy h1 em { font-style: normal; color: var(--mint); }
.hero-description { max-width: 27rem; font-size: 1.08rem; color: #ddd9f0; margin-bottom: 1.62rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .58rem 1.05rem;
  background: none;
  border: 1px solid transparent;
  border-radius: .43rem;
  color: inherit;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
}
.button.primary { color: var(--ink); background: var(--mint); box-shadow: 0 .4rem 1.45rem #77eed127; }
.button.primary:hover { background: #b7f9ec; }
.button.secondary { border-color: #504b73; color: var(--text); background: #1b1a30; }
.button.secondary:hover { border-color: var(--lavender); background: #252341; }
.button.large { min-height: 3.4rem; padding-inline: 1.3rem; font-size: 1rem; }
.button.text, .link-button { color: var(--mint); text-decoration: underline; text-underline-offset: .23em; padding: .2rem 0; min-height: 2.75rem; }
.link-button { cursor: pointer; background: transparent; border: 0; font-size: .94rem; font-weight: 700; }
.block-section { margin-top: 3.8rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .95rem; }
.section-heading h2, .home-apk h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.12; }
.section-heading > a, .format-links a { color: var(--mint); font-size: .94rem; font-weight: 650; }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.game-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.game-card:hover { border-color: var(--accent); }
.lavender { --accent: #bbabff; }
.rose { --accent: #f9abcd; }
.amber { --accent: #ffd48c; }
.sky { --accent: #a9dfff; }
.card-image { display: block; aspect-ratio: 16/10; background: #212039; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { display: flex; flex-direction: column; padding: 1rem; flex: 1; }
.game-genre { font-size: .79rem; color: var(--accent); font-weight: 700; }
.card-content h3 { margin-top: .32rem; font-size: 1.28rem; line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.card-content h3 a { text-decoration: none; }
.card-content h3 a:hover { text-decoration: underline; }
.card-description { margin: .6rem 0 1rem; font-size: .925rem; color: var(--muted); }
.card-end { margin-top: auto; padding-top: .65rem; border-top: 1px solid var(--line); min-height: 2.2rem; display: flex; gap: .35rem; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.card-end a { color: var(--accent); padding: .35rem 0; font-weight: 750; }
.home-apk { margin-top: 3.6rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; padding: 1.45rem 1.7rem; border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: .65rem; background: var(--panel); }
.home-apk h2 { font-size: 1.55rem; }
.home-apk p { color: var(--muted); margin-top: .35rem; }
.intro-section { margin-top: 1.9rem; }
.crumbs { margin-bottom: 1.7rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; color: var(--muted); font-size: .875rem; }
.crumbs li:not(:first-child)::before { content: "/"; margin-right: .6rem; color: var(--lavender); }
.crumbs a:hover { color: var(--mint); }
.intro-section h1 { max-width: 22ch; font-size: clamp(2.25rem, 5.5vw, 4.25rem); font-weight: 850; line-height: .98; letter-spacing: -.062em; overflow-wrap: break-word; }
.lede { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--muted); margin: 1.05rem 0 1.5rem; max-width: 62ch; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.7rem; }
.filters a { background: var(--panel); border: 1px solid var(--line); border-radius: .35rem; padding: .5rem .9rem; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 700; }
.filters a:hover, .filters a[aria-current] { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.empty-message { color: var(--muted); padding: 1.2rem; border: 1px solid var(--line); border-radius: .6rem; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.2rem, 5vw, 4rem); }
.game-intro .eyebrow, .about-hero .eyebrow { margin-bottom: .72rem; }
.detail-image { border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; background: var(--panel); }
.detail-image img { width: 100%; height: auto; }
.platforms { color: var(--muted); margin-top: .95rem; font-size: .9rem; }
.feature-grid, .screenshot-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.feature-grid { list-style: none; padding: 0; counter-reset: steps; }
.feature-grid li { counter-increment: steps; padding: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; }
.feature-grid li::before { content: counter(steps); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-bottom: .6rem; border-radius: .3rem; font-size: .86rem; background: #29284a; color: var(--mint); font-weight: 750; }
.feature-grid h3, .controls-grid h3 { font-size: 1.08rem; line-height: 1.25; margin-bottom: .35rem; }
.feature-grid p, .controls-grid p { color: var(--muted); }
.screenshot-grid figure a { display: block; border-radius: .64rem; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.screenshot-grid figure a:hover { border-color: var(--mint); }
.screenshot-grid figure img { width: 100%; }
.screenshot-grid figcaption { margin-top: .42rem; color: var(--muted); font-size: .9rem; }
.gallery-dialog { width: min(70rem, 100% - 2rem); max-height: calc(100dvh - 2rem); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; padding: .75rem; }
.gallery-dialog::backdrop { background: #070713df; }
.gallery-top, .gallery-bottom { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .2rem 0 .7rem; }
.gallery-bottom { padding: .65rem 0 .05rem; }
.gallery-top p { color: var(--muted); }
.gallery-dialog img { width: 100%; max-height: 70dvh; object-fit: contain; background: var(--deep); }
.play-heading h1 { max-width: 32ch; }
.player { --player-aspect: 16 / 9; background: var(--deep); border: 1px solid #514776; border-radius: .75rem; overflow: hidden; }
.player-stage { display: grid; place-items: center; position: relative; min-height: 14rem; width: 100%; aspect-ratio: var(--player-aspect); max-height: 78vh; background: #100f24; }
.player-stage:fullscreen { max-height: none; width: 100%; height: 100%; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-cover { display: grid; place-items: center; position: absolute; inset: 0; background: #1311206b; }
.player-frame { border: 0; width: 100%; height: 100%; position: absolute; inset: 0; background: var(--deep); }
.player-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); padding: .4rem 1rem; }
.player-controls > div { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.player-error { text-align: center; max-width: 38ch; padding: 1rem; }
.player-error .button { margin-top: .7rem; }
.below-player { margin-top: 2rem; }
.controls-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.controls-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); }
.format-links { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.apk-hero { grid-template-columns: 1.15fr .85fr; margin-bottom: 1.7rem; }
.apk-hero .detail-image img { aspect-ratio: 2.35; object-fit: cover; }
.apk-content { max-width: 58rem; }
.info-panel { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: .65rem; padding: 1.3rem; background: var(--panel); }
.info-panel h2, .install-guide h2, .prose h2 { font-size: 1.48rem; letter-spacing: -.04em; margin: .3rem 0; line-height: 1.16; }
.info-panel p:not(.eyebrow) { color: var(--muted); }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pending-panel .button { margin-top: 1rem; }
.build-notes, .install-guide { color: var(--muted); margin-top: 1rem; }
.install-guide h2 { color: var(--text); margin-bottom: .5rem; }
.install-guide ol { padding-left: 1.15rem; }
.install-guide li + li { margin-top: .36rem; }
.hash { margin-top: .8rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--muted); }
.hash summary { cursor: pointer; color: var(--text); }
.hash code { overflow-wrap: anywhere; color: var(--mint); }
.prose { max-width: 47rem; }
.prose p { color: var(--muted); margin: .8rem 0 1.3rem; }
@media (max-width: 68rem) {
  .container { width: calc(100% - 3.8rem); }
  .hero-image { width: 91%; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-image { aspect-ratio: 16 / 8.9; }
}
@media (max-width: 48rem) {
  .container { width: calc(100% - 2.1rem); }
  .nav { min-height: 0; padding-top: .85rem; grid-template-columns: 1fr auto; gap: .15rem .8rem; }
  .nav nav { grid-row: 2; grid-column: 1 / -1; gap: clamp(.7rem, 5vw, 2rem); }
  .nav nav a { padding-block: .72rem; }
  .nav nav a, .header-about { font-size: .82rem; }
  .hero-inner { min-height: 0; display: grid; width: 100%; }
  .hero-inner::before { z-index: -1; inset: 11rem 0 0; background: linear-gradient(0deg,#15132d 84%,transparent); }
  .hero-inner::after { display: none; }
  .hero-image { position: relative; inset: auto; width: 100%; height: clamp(13.5rem, 64vw, 24rem); object-position: 50% 35%; }
  .hero-copy { padding: 0 1.05rem 1.5rem; margin-top: -1.6rem; width: auto; }
  .hero-copy h1 { font-size: clamp(3.25rem, 11vw, 5.4rem); margin-bottom: .95rem; }
  .hero-description { margin-bottom: 1.15rem; }
  .split { grid-template-columns: 1fr; }
  .detail-image { max-width: 41rem; }
  .apk-hero .detail-image img { aspect-ratio: 1.9; }
  .feature-grid, .screenshot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .block-section, .home-apk { margin-top: 2.4rem; }
  .player-stage { min-height: 14rem; }
  .player-stage.is-playing { min-height: min(31rem, 74vh); }
  .player-stage:fullscreen { min-height: 0; }
  .site-footer { margin-top: 3rem; }
}
@media (max-width: 31rem) {
  .feature-grid, .controls-grid { grid-template-columns: 1fr; }
  .card-content { padding: .72rem; }
  .card-description { font-size: .84rem; }
  .card-content h3 { font-size: 1.07rem; }
  .game-genre { font-size: .72rem; }
  .card-end { font-size: .74rem; flex-wrap: wrap; }
  .game-grid, .feature-grid, .screenshot-grid { gap: .65rem; }
  .player-controls { padding-inline: .7rem; }
  .gallery-bottom .button { font-size: .82rem; padding-inline: .65rem; }
}
