:root {
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --color-bg: #f1f1f1;
  --color-ink: #111111;
  --color-muted: #9a9a9a;
  --color-accent: #ff875f;
  --color-panel: #0a0a0a;
  --header-h: 78px;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.home-page,
.inner-page,
.game-page,
.guide-page,
.faq-page,
.free-key-page,
.notfound-page {
  overflow-x: clip;
}

.home-page.loader-modal-open {
  overflow: hidden;
}

.home-page * {
  box-sizing: border-box;
}

.home-page,
.home-page .font-body {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.home-page {
  overflow-x: clip;
  background-color: var(--color-bg);
  color: var(--color-ink);
}

.home-page .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

/* Main content */
.home-page #circle {
  pointer-events: none;
  position: fixed;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(145, 145, 145, 0.28);
  background-color: transparent;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(0rad);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, background-color 0.2s ease, border-color 0.2s ease;
  will-change: transform, width, height, background-color, border-color, mix-blend-mode;
}

.home-page #circle.is-ready {
  opacity: 1;
  visibility: visible;
}

.home-page section.main {
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  /* padding: 20px 28px 40px; */
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.home-page section.main .words_line {
  overflow: hidden;
  margin: 0;
  padding: 40px 0px;
  line-height: normal;
}

.home-page section.main .words_line .line {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  padding: 0.2em 0;
}

.home-page section.main .words_line .line p {
  margin: 0 48px 0 0;
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 102px);
  font-weight: 600;
  font-stretch: condensed;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 0.4px rgba(17, 17, 17, 0.452);
  paint-order: stroke fill;
  transform: scaleY(1.18);
  transform-origin: center center;
}

.home-page section.main .home-hero {
  width: min(100%, calc(4 * 300px + 3 * 28px));
  margin: 20px auto 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* padding-left: 5%; */
  box-sizing: border-box;
}

.home-page section.main .home-h1 {
  display: grid;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(20px, 3vh, 32px);
  justify-items: start;
  text-align: left;
}

.home-page section.main .home-h1-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 148px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.home-page section.main .description {
  width: fit-content;
  max-width: min(54ch, 100%);
  margin: 0;
  text-align: left;
}

.home-page section.main .home-description {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.75;
  letter-spacing: 0.06em;
}

.home-page section.main .home-hero-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}

.home-page section.main .home-hero-actions .site-footer-btn {
  flex: 0 0 auto;
  width: auto;
}

.home-page section.main .home-hero-actions .site-footer-btn-content {
  padding-left: 20px;
  padding-right: 20px;
}

html[lang="ru"] .home-page section.main .home-h1-line {
  font-size: clamp(52px, 11.5vw, 128px);
  letter-spacing: -0.03em;
}

/* Games section — continues first hero composition */
.games-section {
  width: 100%;
  margin-top: clamp(36px, 6vh, 64px);
  padding: 0 0 clamp(72px, 10vh, 120px);
  border-top: none;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.games-section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  justify-items: center;
}

.games-section-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.games-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 98px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.games-section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--color-accent);
}

.games-section-subtitle {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.72);
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 28px;
  width: min(100%, calc(4 * 300px + 3 * 28px));
  margin-left: auto;
  margin-right: auto;
}

.game-card {
  flex: 0 1 300px;
  width: 100%;
  max-width: 300px;
  min-width: 0;
}

.game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card-media {
  height: 368px;
  position: relative;
  padding: 5px;
  background: transparent;
  border: 1px solid var(--color-ink);
  overflow: hidden;
  transition: border-color 0.35s ease;
  display: flex;
    align-items: flex-end;
    justify-content: center;
}

.game-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform: scale3d(0, 1, 1);
  transform-origin: 100% 50%;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.game-card-image {
  position: relative;
  z-index: 1;
  height: 96%;
  display: block;
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  transform: scale(1.04);
}

.game-card-overlay {
  position: absolute;
  inset: 5px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.game-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 15px 2px 0;
}

.game-card-index {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  transition: color 0.25s ease;
}

.game-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-ink);
  transition: color 0.25s ease;
}

.game-card-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.25s ease;
}

.game-card-tag::after {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--color-accent);
}

@media (hover: hover) {
  .game-card-link:hover .game-card-media::before {
    transform: scale3d(1, 1, 1);
    transform-origin: 0 50%;
  }

  .game-card-link:hover .game-card-media {
    border-color: var(--color-ink);
  }
}

/* Gallery */
.gallery-section {
  width: 100%;
  margin-top: clamp(72px, 5vh, 120px);
  padding: clamp(64px, 6vh, 100px) 0 clamp(88px, 10vh, 128px);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.gallery-section-head {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  justify-items: center;
}

.gallery-section-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.gallery-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.gallery-section-subtitle {
  margin: 0;
  max-width: 420px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.58);
}

.gallery-stage {
  display: grid;
  gap: 18px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.gallery-stage-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 24px;
  align-items: end;
  min-width: 0;
}

.gallery-board-index {
  display: inline-flex;
  align-items: center;
  gap: 0.02em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.gallery-index-bracket {
  flex-shrink: 0;
  color: var(--color-ink);
}

.gallery-index-reel {
  position: relative;
  display: inline-block;
  height: 0.92em;
  min-width: 1.15em;
  overflow: hidden;
  vertical-align: top;
}

.gallery-index-digit {
  display: block;
  line-height: 0.92em;
  text-align: center;
  will-change: transform, opacity;
}

.gallery-index-digit.is-current {
  position: relative;
}

.gallery-index-digit.is-leave {
  position: absolute;
  inset: 0;
  animation: gallery-index-leave 0.34s cubic-bezier(0.55, 0.08, 0.4, 1) forwards;
}

.gallery-index-digit.is-enter {
  position: absolute;
  inset: 0;
  animation: gallery-index-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

@keyframes gallery-index-leave {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(120%);
    opacity: 0;
  }
}

@keyframes gallery-index-enter {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-index-digit.is-leave,
  .gallery-index-digit.is-enter {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }
}

.gallery-stage-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-bottom: 4px;
}

.gallery-board-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.gallery-board-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}

.gallery-board-count-sep {
  margin: 0 4px;
  opacity: 0.45;
}

.gallery-stage-nav {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
}

.gallery-stage-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  height: min(58vh, 560px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: #0c0c0c;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.gallery-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  transform: scale(1.01);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-main.is-switching .gallery-main-image {
  opacity: 0;
  transform: scale(1.03);
}

.gallery-film {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}

.gallery-film-cell {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 10;
  border: none;
  border-bottom: 2px solid transparent;
  background: #111;
  overflow: hidden;
  opacity: 0.38;
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.gallery-film-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.4);
  transition: filter 0.3s ease, transform 0.45s ease;
}

.gallery-film-cell.is-active {
  opacity: 1;
  border-bottom-color: var(--color-accent);
}

.gallery-film-cell.is-active img {
  filter: none;
  transform: scale(1.03);
}

@media (hover: hover) {
  .gallery-stage-btn:hover {
    border-color: var(--color-ink);
    color: var(--color-accent);
  }

  .gallery-main:hover .gallery-main-image {
    transform: scale(1.02);
  }

  .gallery-film-cell:hover {
    opacity: 0.75;
  }
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.about-section {
  width: 100%;
  margin-top: clamp(56px, 8vh, 96px);
  padding: clamp(56px, 8vh, 96px) 0 clamp(72px, 10vh, 120px);
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.about-section-head {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto 8px;
  text-align: center;
  justify-items: center;
}

.about-section-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.about-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.about-section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--color-accent);
}

.about-section-lead {
  margin: 0;
  max-width: 860px;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.78);
}

.about-section-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  text-align: center;
}

.about-section-subtitle {
  margin: 0 auto 18px;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-section-text {
  margin: 0 auto 14px;
  max-width: 860px;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.78);
}

.about-section-text:last-child {
  margin-bottom: 0;
}

.about-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

/* Spec — stacked airy layout (same scheme as comparison) */
.about-spec {
  margin-top: clamp(56px, 8vh, 96px);
  width: 100%;
  max-width: 100%;
  padding: clamp(80px, 12vh, 140px) max(28px, env(safe-area-inset-right, 0px)) clamp(80px, 12vh, 140px) max(28px, env(safe-area-inset-left, 0px));
  background: #141414;
  color: #f1f1f1;
  text-align: left;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .about-spec {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding-left: max(28px, calc((100vw - 980px) / 2));
    padding-right: max(28px, calc((100vw - 980px) / 2));
  }
}

.about-spec-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.about-spec-head {
  margin-bottom: clamp(48px, 7vh, 80px);
}

.about-spec-eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.42);
}

.about-spec-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.about-spec-title-brand {
  display: block;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
}

.about-spec-title-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 18px;
  margin-top: 18px;
}

.about-spec-title-vs {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-spec-title-against {
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(241, 241, 241, 0.7);
}

.about-spec-intro {
  max-width: 560px;
  margin-bottom: clamp(36px, 5vh, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(241, 241, 241, 0.12);
}

.about-spec-intro-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.55);
}

.about-spec-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0 0 clamp(56px, 9vh, 96px);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(241, 241, 241, 0.14);
}

.about-spec-feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

.about-spec-feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  padding-top: 4px;
}

.about-spec-feature-body {
  min-width: 0;
}

.about-spec-feature-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.about-spec-feature-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.about-spec-soon {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-spec-feature-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.5);
}

.about-spec-feature.is-soon .about-spec-feature-title {
  color: rgba(241, 241, 241, 0.68);
}

.about-spec-matrix {
  width: 100%;
  border-top: 1px solid rgba(241, 241, 241, 0.85);
}

.about-spec-matrix-head {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid rgba(241, 241, 241, 0.18);
}

.about-spec-matrix-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-spec-matrix-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

.about-spec-matrix-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.4);
}

.about-spec-matrix-value {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.88);
}

@media (hover: hover) {
  .about-spec-feature:hover .about-spec-feature-title {
    color: #fff;
  }

  .about-spec-matrix-row:hover .about-spec-matrix-value {
    color: #fff;
  }
}

@media (max-width: 760px) {
  .about-spec-features {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-spec-matrix-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    min-height: 56px;
  }

  .about-spec-title-against {
    -webkit-text-stroke-width: 1px;
  }
}

@media (max-width: 640px) {
  .about-spec {
    padding: 64px max(16px, env(safe-area-inset-right)) 80px max(16px, env(safe-area-inset-left));
  }

  .about-spec-feature {
    grid-template-columns: 32px 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .about-spec-matrix-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
    min-height: 0;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
}

.gallery-lightbox-panel {
  position: relative;
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.gallery-lightbox-close {
  position: absolute;
  top: -8px;
  right: 0;
  z-index: 2;
  appearance: none;
  border: none;
  background: none;
  padding: 4px 8px;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.gallery-lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

@media (hover: hover) {
  .gallery-lightbox-nav:hover,
  .gallery-lightbox-close:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
  }
}

.gallery-lightbox-figure {
  margin: 0;
  min-width: 0;
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-lightbox-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .home-page section.main {
    padding: 16px 16px 32px;
    overflow-x: clip;
  }

  .home-page section.main .words_line {
    margin: 0;
    padding: 0.28em 0;
  }

  .home-page section.main .words_line .line p {
    margin-right: 32px;
    font-size: clamp(44px, 12vw, 82px);
    -webkit-text-stroke: 0.35px rgba(17, 17, 17, 0.3);
    transform: scaleY(1.14);
  }

  .home-page section.main .home-hero {
    width: 100%;
    margin-top: 24px;
    padding-left: 0;
  }

  .home-page section.main .home-h1 {
    max-width: 100%;
  }

  .home-page section.main .home-h1-line {
    font-size: clamp(48px, 16vw, 88px);
  }

  .home-page section.main .description {
    max-width: 100%;
  }

  .games-section {
    margin-top: 32px;
    padding: 0 0 56px;
  }

  .games-section-head {
    margin-bottom: 32px;
    padding: 0 4px;
  }

  .games-section-title {
    font-size: clamp(42px, 12vw, 72px);
  }

  .games-grid {
    gap: 20px;
    padding: 0;
  }

  .game-card {
    flex: 1 1 min(100%, 280px);
    max-width: 100%;
  }

  .game-card-media {
    height: min(56vw, 340px);
  }

  .gallery-section {
    margin-top: 56px;
    padding: 56px 0 72px;
  }

  .gallery-section-head {
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .gallery-section-title {
    font-size: clamp(42px, 12vw, 72px);
  }

  .about-section {
    margin-top: 40px;
    padding: 48px 0 64px;
  }

  .about-section-head {
    padding: 0 4px;
  }

  .about-section-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .gallery-stage {
    gap: 14px;
    width: 100%;
  }

  .gallery-stage-bar {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }

  .gallery-board-index {
    grid-column: 1;
  }

  .gallery-stage-nav {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .gallery-stage-meta {
    grid-column: 1 / -1;
  }

  .gallery-main {
    width: 100%;
    height: auto;
    max-height: min(42vh, 320px);
  }

  .gallery-film {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-film::-webkit-scrollbar {
    display: none;
  }

  .gallery-film-cell {
    flex: 0 0 88px;
  }

  .gallery-lightbox {
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    align-content: center;
  }

  .gallery-lightbox-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "close close"
      "figure figure"
      "prev next";
    gap: 12px;
    width: 100%;
  }

  .gallery-lightbox-close {
    grid-area: close;
    position: static;
    justify-self: end;
    top: auto;
    right: auto;
  }

  .gallery-lightbox-figure {
    grid-area: figure;
  }

  .gallery-lightbox-nav {
    position: static;
    bottom: auto;
  }

  .gallery-lightbox-prev {
    grid-area: prev;
    justify-self: start;
  }

  .gallery-lightbox-next {
    grid-area: next;
    justify-self: end;
  }

  .content-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .inner-main {
    padding: 40px 16px 64px;
  }

  .content-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .content-title::after {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .home-page section.main {
    padding: 12px 14px 28px;
  }

  .games-section-title,
  .gallery-section-title {
    font-size: clamp(36px, 14vw, 56px);
  }

  .game-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .game-card-media {
    height: 72vw;
    max-height: 360px;
  }

  .comparison-matrix-label,
  .comparison-point-text {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Inner pages */
.inner-main {
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 220px);
  padding: clamp(48px, 8vh, 96px) 28px 80px;
}

.content-section {
  width: min(100%, 980px);
  margin: 0 auto;
}

.content-section-narrow {
  width: min(100%, 720px);
}

.breadcrumbs {
  margin: 0 0 22px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.breadcrumbs-link {
  color: var(--color-ink);
  text-decoration: none;
}

.breadcrumbs-link:hover,
.breadcrumbs-link:focus,
.breadcrumbs-link:visited {
  color: var(--color-ink);
  text-decoration: none;
}

.breadcrumbs-current {
  color: var(--color-accent);
}

.breadcrumbs-sep {
  color: rgba(17, 17, 17, 0.28);
  font-weight: 400;
}

.content-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.content-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.content-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px 0 0;
  background: var(--color-accent);
}

.content-title-404 {
  font-size: clamp(72px, 18vw, 160px);
}

.content-lead {
  margin: 0 0 28px;
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(17, 17, 17, 0.78);
}

.content-block {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.content-subtitle {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.content-text {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(17, 17, 17, 0.78);
}

@media (max-width: 560px) {
  .about-spec-feature-text {
    overflow-wrap: anywhere;
  }
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.content-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.35);
  padding-bottom: 2px;
}

.content-link-accent {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.content-cta {
  flex: 0 0 auto;
  min-width: 160px;
}

.home-page section.main .home-hero-actions .content-cta {
  min-width: 0;
}

.stub-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 10px;
  border: 1px solid var(--color-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
}
