:root {
  color-scheme: dark;
  --black: #020202;
  --white: #f8f8ef;
  --accent: #4cb9d3;
  --page-pad: clamp(18px, 3vw, 42px);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
}

a,
button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 10px 12px;
  border: 2px solid var(--accent);
  background: var(--black);
  color: var(--accent);
  font-weight: 950;
  text-transform: uppercase;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
  padding: 20px var(--page-pad) 0;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.brand-mark {
  width: 146px;
  min-height: 52px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}

.brand-mark__symbol {
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 2px solid var(--white);
  background: var(--accent);
}

.brand-mark__symbol img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center bottom;
}

.brand-mark__text {
  padding-left: 10px;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 0.92;
  text-transform: uppercase;
}

.main-tabs {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(124px, auto));
  border: 2px solid var(--white);
  background: var(--black);
}

.main-tabs__item {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 0 20px;
  border-right: 2px solid var(--white);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.main-tabs__item:last-child {
  border-right: 0;
}

.main-tabs__item.is-active,
.main-tabs__item:hover {
  background: var(--accent);
  color: var(--black);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 132px var(--page-pad) 92px;
  background: var(--black);
}

.hero__content {
  position: relative;
  z-index: 5;
  width: min(1450px, 100%);
  text-align: center;
}

.hero-title,
.page-title-section h1 {
  margin: 0;
  color: var(--white);
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: clamp(6.8rem, 18vw, 17.2rem);
  font-weight: 950;
  line-height: 0.74;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: scaleX(0.84);
  text-shadow:
    5px 0 0 var(--black),
    -5px 0 0 var(--black),
    0 5px 0 var(--black),
    0 -5px 0 var(--black);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  max-width: 880px;
  margin: 28px auto 0;
  color: var(--white);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-links {
  width: min(760px, 100%);
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links--page {
  margin-top: 34px;
}

.social-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.social-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--black);
}

.social-link__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex: 0 0 auto;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 132px var(--page-pad) 92px;
}

body[data-page="games"] .page-shell {
  display: block;
  min-height: auto;
  padding: 82px 0 70px;
}

.page-title-section {
  width: min(1450px, 100%);
  text-align: center;
}

body[data-page="gumroad"] .page-shell {
  display: block;
}

.gumroad-shell {
  padding-bottom: 78px;
}

.gumroad-cover,
.gumroad-strip,
.gumroad-video,
.gumroad-product-grid,
.gumroad-final-cta {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.gumroad-cover {
  border: 2px solid var(--accent);
  background: var(--black);
}

.gumroad-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.gumroad-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  background: var(--black);
}

.gumroad-strip span {
  margin: 0;
  color: var(--white);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.gumroad-video {
  margin-top: 12px;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: var(--black);
}

.gumroad-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gumroad-strip a,
.gumroad-panel a,
.gumroad-final-cta a {
  min-height: 54px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border: 2px solid var(--white);
  background: var(--accent);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.gumroad-strip a:hover,
.gumroad-panel a:hover,
.gumroad-final-cta a:hover {
  background: #fff000;
  color: var(--black);
}

.gumroad-product-grid {
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gumroad-panel {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--white);
  padding: 18px;
  background: var(--black);
}

.gumroad-panel--blue {
  border-color: var(--accent);
}

.gumroad-panel--yellow {
  border-color: #fff000;
}

.gumroad-panel h2 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gumroad-panel--yellow h2 {
  color: #fff000;
}

.gumroad-panel ul,
.gumroad-panel ol {
  margin: 0;
  padding-left: 20px;
}

.gumroad-panel li,
.gumroad-panel p {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.28;
}

.gumroad-panel li + li {
  margin-top: 10px;
}

.gumroad-panel p {
  margin: 0;
}

.gumroad-panel a {
  width: 100%;
  margin-top: auto;
}

.gumroad-final-cta {
  min-height: 118px;
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 2px solid var(--accent);
  padding: 18px;
  background: var(--black);
}

.gumroad-final-cta p {
  margin: 0;
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.games-page {
  width: 100%;
  margin: 0 auto;
}

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

.games-stage {
  width: 100vw;
  height: calc(100svh - 82px);
  min-height: 0;
  border: 2px solid var(--accent);
  background: var(--black);
  padding: 8px;
}

.games-stage iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 2px solid var(--white);
  background: var(--black);
}

.games-stage:fullscreen {
  padding: 0;
  border: 0;
  background: var(--black);
}

.games-stage:fullscreen iframe {
  border: 0;
}

.game-info-bar {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 22px;
  padding: 12px var(--page-pad);
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  background: var(--black);
}

.game-info-bar strong {
  color: var(--white);
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.game-info-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.game-info-bar a,
.game-info-bar button {
  min-height: 44px;
  display: inline-grid;
  align-items: center;
  padding: 0 12px;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.game-info-bar a:hover,
.game-info-bar button:hover {
  background: var(--accent);
  color: var(--black);
}

.games-list-title {
  margin: 28px var(--page-pad) 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--page-pad);
}

.game-card {
  border: 2px solid var(--white);
  background: var(--black);
}

.game-card:nth-child(3n + 1) {
  border-color: var(--accent);
}

.game-card__button {
  width: 100%;
  min-height: 178px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.game-card__button span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.game-card__button strong {
  margin: 0;
  color: var(--white);
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: clamp(2rem, 3.3vw, 4.2rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.game-card__button:hover,
.game-card__button.is-active {
  background: var(--accent);
  color: var(--black);
}

.game-card__button:hover span,
.game-card__button:hover strong,
.game-card__button.is-active span,
.game-card__button.is-active strong {
  color: var(--black);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  body[data-page="games"] .page-shell {
    padding-top: 150px;
  }

  .brand-mark {
    width: 58px;
    grid-template-columns: 1fr;
  }

  .brand-mark__symbol {
    border-right: 0;
  }

  .brand-mark__symbol img {
    width: 50px;
    height: 50px;
  }

  .brand-mark__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .main-tabs {
    grid-template-columns: repeat(4, minmax(112px, 1fr));
  }

  .hero-title,
  .page-title-section h1 {
    font-size: clamp(6rem, 20vw, 12rem);
  }

  .gumroad-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gumroad-strip {
    grid-template-columns: 1fr;
  }

  .games-stage {
    height: calc(100svh - 150px);
    min-height: 0;
  }

  .games-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 14px 0;
    background: var(--black);
  }

  .brand-mark {
    display: none;
  }

  .main-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .main-tabs__item,
  .main-tabs__item:nth-child(2) {
    min-height: 46px;
    border-right: 0;
    border-bottom: 2px solid var(--white);
  }

  .main-tabs__item:last-child {
    border-bottom: 0;
  }

  .hero,
  .page-shell {
    min-height: auto;
    padding: 64px 14px 54px;
  }

  body[data-page="games"] .page-shell {
    padding: 0 0 48px;
  }

  .hero-title,
  .page-title-section h1 {
    font-size: clamp(4.35rem, 24vw, 7rem);
    line-height: 0.78;
    transform: scaleX(0.92);
  }

  .gumroad-strip,
  .gumroad-final-cta {
    grid-template-columns: 1fr;
  }

  .gumroad-strip a,
  .gumroad-panel a,
  .gumroad-final-cta a {
    width: 100%;
  }

  .gumroad-product-grid {
    grid-template-columns: 1fr;
  }

  .gumroad-panel {
    min-height: auto;
  }

  .games-stage {
    width: 100vw;
    height: 72svh;
    min-height: 0;
    padding: 8px;
  }

  .game-info-bar {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .game-info-bar__actions {
    justify-content: flex-start;
  }

  .game-info-bar a,
  .game-info-bar button {
    width: 100%;
    justify-content: center;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
    white-space: normal;
  }

}
