@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("assets/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("assets/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f4f0e5;
  --ink: #152b31;
  --muted: #4a5d5d;
  --rule: #c8ccc1;
  --accent: #f7c953;
  --display: "Unbounded", "Arial Black", sans-serif;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #08718d; outline-offset: 4px; }
section, footer { scroll-margin-top: 24px; }

.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 10px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.wordmark strong { font-family: var(--display); font-size: 25px; font-weight: 900; letter-spacing: -.09em; }
.wordmark span { font-size: 11px; font-weight: 800; letter-spacing: .12em; border-left: 1px solid currentColor; padding-left: 8px; }
nav { display: flex; gap: clamp(16px, 2.6vw, 38px); font-size: 14px; font-weight: 600; }
nav a { padding-block: 14px; }
nav a:hover, .support-link:hover, .video-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.catalog-page { min-height: 100vh; display: flex; flex-direction: column; }
.catalog { flex: 1; padding-block: clamp(40px, 6.5vw, 84px); }
.catalog-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; padding-block: 14px; }
.catalog-footer h2 { font-size: 17px; }
.catalog h1 { font: 800 clamp(44px, 7vw, 82px)/1.1 var(--display); letter-spacing: -.045em; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 160px));
  gap: 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.game-tile { display: grid; gap: 11px; font-weight: 700; font-size: 1.125rem; }
.game-tile img { width: 100%; height: auto; border-radius: 21%; transition: transform .2s ease-out; }
.game-tile:hover img { transform: translateY(-3px); }
.game-tile:hover span { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5.3vw, 76px);
  padding-block: 55px 60px;
}
.hero h1 { font: 850 clamp(74px, 8.5vw, 130px)/1 var(--display); letter-spacing: -.038em; margin-left: -.07em; }
.hero-line { max-width: 14em; margin-top: 26px; font-size: clamp(24px, 2.35vw, 34px); font-weight: 750; line-height: 1.14; letter-spacing: -.04em; }
.hero-description { max-width: 390px; margin-top: 20px; font-size: 17px; line-height: 1.58; color: var(--muted); }
.play-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 6px; font-size: 14px; font-weight: 700; }
.button span, .support-link span { font-size: 17px; font-family: Arial, sans-serif; }
.button-primary { background: var(--accent); }
.button-primary:hover { background: #ffdb78; }
.button-secondary:hover { background: #e5e9de; }
.hero-art { aspect-ratio: 1200 / 944; overflow: hidden; background: #075ba8; border-radius: 9px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.gameplay { border-top: 1px solid var(--rule); padding-block: 37px 70px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.section-top h2 { font: 760 clamp(27px, 3.1vw, 43px)/1.18 var(--display); letter-spacing: -.045em; }
.video-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; white-space: nowrap; font-size: 14px; font-weight: 750; }
.play-symbol { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); }
.play-symbol::before { content: ""; width: 0; height: 0; margin-left: 2px; border-block: 5px solid transparent; border-left: 7px solid var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { position: relative; display: block; overflow: hidden; border-radius: 7px; background: #1f647c; }
.shot img { width: 100%; height: auto; transition: transform .24s ease-out; }
.shot:hover img { transform: scale(1.035); }
.shot span { position: absolute; bottom: 9px; right: 9px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 4px; color: white; background: #152b31; }
figcaption { margin-top: 10px; color: var(--ink); font-size: 14px; font-weight: 650; }
.field-note { max-width: 540px; margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.55; }

footer { background: var(--ink); color: var(--paper); }
.footer-row { display: grid; grid-template-columns: .75fr 1.3fr auto; align-items: center; gap: 30px; padding-block: 40px; }
.support-copy h2 { font-size: 17px; }
.support-copy p { max-width: 340px; margin-top: 8px; color: #c6d6d4; font-size: 14px; line-height: 1.5; }
.support-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 650; }
a.support-link[href^="mailto:"] { text-decoration: underline; text-underline-offset: 4px; }
a.support-link[href^="mailto:"]:hover { color: var(--accent); }
footer :focus-visible, dialog :focus-visible { outline-color: var(--accent); }

.media-dialog { width: min(1060px, calc(100% - 36px)); max-height: calc(100dvh - 36px); padding: 14px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); }
.media-dialog::backdrop { background: #081b20d8; }
.media-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.media-heading h2 { padding-left: 4px; font-size: 17px; }
.media-body img, .media-body video { width: 100%; max-height: min(74dvh, 720px); object-fit: contain; background: #09191f; border-radius: 5px; }
.icon-button { min-width: 44px; min-height: 44px; padding: 4px 8px; border: 1px solid #6b8182; border-radius: 5px; color: var(--paper); background: transparent; font-family: Arial, sans-serif; font-size: 23px; cursor: pointer; }
.icon-button:hover { background: #2c484f; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 7px; margin-top: 12px; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 56px); }
  .hero { padding-block: 40px; gap: 30px; }
  .hero h1 { font-size: clamp(66px, 10vw, 92px); }
  .hero-description { font-size: 16px; }
  .footer-row { gap: 22px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 63px; gap: 12px; }
  .wordmark strong { font-size: 21px; }
  .wordmark span { font-size: 9px; padding-left: 5px; }
  .wordmark { gap: 5px; }
  nav { gap: 13px; font-size: 12px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(114px, 132px)); gap: 20px; margin-top: 24px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 36px; }
  .hero h1 { font-size: clamp(68px, 14vw, 103px); }
  .hero-line { margin-top: 15px; }
  .hero-description { margin-top: 13px; }
  .play-links { margin-top: 18px; }
  .hero-art { aspect-ratio: 1.42; }
  .gameplay { padding-block: 28px 42px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .footer-row { grid-template-columns: 1fr; align-items: start; gap: 18px; padding-block: 27px; }
  .support-link { min-height: 33px; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  nav { gap: 9px; }
  .button { justify-content: center; }
  .hero h1 { font-size: 63px; }
  .section-top h2 { font-size: 24px; }
  .video-link { gap: 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .game-tile img { transition: none; }
  .game-tile:hover img { transform: none; }
}
