:root {
  --green: #66ff33;
  --green-soft: rgba(102, 255, 51, 0.58);
  --blue: #2b9dff;
  --ink: #020403;
  --panel: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 121, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 50% 72%, rgba(102, 255, 51, 0.14), transparent 34rem),
    #000;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

#binary-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #000;
}

.site-header,
.home-stage,
.ad-rail {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 3;
}

.site-logo {
  display: block;
  width: clamp(138px, 18vw, 220px);
  line-height: 0;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-stage {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(92px, 13vh, 136px) clamp(18px, 4vw, 56px) 40px;
}

.game-menu {
  display: grid;
  justify-items: center;
  gap: clamp(28px, 5vh, 56px);
  width: min(820px, 100%);
}

.game-button {
  display: grid;
  place-items: center;
  width: 100%;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.game-button:hover,
.game-button:focus-visible {
  transform: translateY(-4px) scale(1.015);
  filter: brightness(1.08);
}

.game-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.game-button img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.game-button--cyw {
  max-width: min(640px, 88vw);
  padding: clamp(10px, 2vw, 16px);
}

.game-button--cyw img {
  width: min(560px, 100%);
}

.game-button--gm2k {
  max-width: min(560px, 84vw);
  padding: clamp(20px, 4vw, 32px);
}

.game-button--gm2k img {
  width: min(512px, 100%);
}

.ad-rail {
  position: fixed;
  top: 132px;
  display: grid;
  place-items: center;
  width: 176px;
  min-height: 620px;
  padding: 8px;
  border: 1px solid rgba(102, 255, 51, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
}

.ad-rail--left {
  left: 18px;
}

.ad-rail--right {
  right: 18px;
}

.bottom-ad {
  display: grid;
  place-items: center;
  width: min(760px, 100%);
  min-height: 96px;
  margin-top: clamp(36px, 8vh, 76px);
  padding: 10px;
  border: 1px solid rgba(102, 255, 51, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.bottom-ad .adsbygoogle {
  width: min(728px, 100%);
  min-height: 90px;
}

@media (max-width: 1180px) {
  .ad-rail {
    display: none;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 14px;
    left: 14px;
  }

  .home-stage {
    padding-top: 96px;
  }

  .game-menu {
    gap: 24px;
  }

  .game-button--gm2k {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-button {
    transition: none;
  }

  .game-button:hover,
  .game-button:focus-visible {
    transform: none;
  }
}
