:root {
  --ink: #080a0d;
  --paper: #f4f3ee;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
}

header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 42px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 6, 9, .78), transparent);
}

.logo,
.privacy,
.contact { pointer-events: auto; }

.logo img {
  display: block;
  width: clamp(126px, 15vw, 216px);
  height: auto;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .45));
}

.atom-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(7, 9, 12, .48);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.privacy {
  position: absolute;
  z-index: 10;
  left: clamp(20px, 3vw, 42px);
  bottom: clamp(20px, 3vw, 42px);
}

.atom-label {
  position: relative;
  z-index: 2;
}

.orbit {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}

.orbit-two {
  inset: 11px;
  transform: rotate(31deg);
}

.electron {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 0 11px rgba(255, 255, 255, .85);
}

.orbit-two .electron {
  top: 0;
  left: 50%;
}

.atom-button:hover,
.atom-button:focus-visible {
  background: rgba(7, 9, 12, .78);
  color: #fff;
  outline: none;
  transform: scale(1.04);
}

.atom-button:hover .orbit-one,
.atom-button:focus-visible .orbit-one {
  animation: orbit-spin 1.35s linear infinite;
}

.atom-button:hover .orbit-two,
.atom-button:focus-visible .orbit-two {
  animation: orbit-spin-reverse 1.75s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(-24deg); }
  to { transform: rotate(336deg); }
}

@keyframes orbit-spin-reverse {
  from { transform: rotate(31deg); }
  to { transform: rotate(-329deg); }
}

.game-gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  place-items: center;
  width: 100%;
  height: 100%;
}

.game-link {
  position: relative;
  width: min(100%, calc((100svh / 3) * 616 / 353));
  aspect-ratio: 616 / 353;
  overflow: hidden;
  background: #111;
}

.game-link::before,
.game-link::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  transition: opacity .35s ease, inset .35s ease;
}

.game-link::before {
  background: linear-gradient(to bottom, rgba(5, 7, 10, .18), transparent 34%, rgba(5, 7, 10, .22));
}

.game-link::after {
  border: 0 solid;
  opacity: 0;
}

.ironwolf::after { border-color: #58c7ff; }
.rocks::after { border-color: #ff784d; }
.limbot::after { border-color: #f5df32; }

.game-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.game-link:hover img,
.game-link:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.12) brightness(1.04);
}

.game-link:hover::after,
.game-link:focus-visible::after {
  inset: 10px;
  border-width: 2px;
  opacity: 1;
}

.game-link:focus-visible { outline: none; }

@media (max-width: 700px) {
  header { padding: 16px; }
  .logo img { width: 124px; }
  .atom-button {
    width: 78px;
    height: 78px;
    font-size: 10px;
  }
  .privacy {
    left: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
