:root {
  --black: #000;
  --white: #f5f5f3;
  --muted: #858585;
  --line: #292929;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #000;
}

.content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vh, 56px) 24px 20px;
}

.studio-logo {
  display: block;
  width: min(260px, 52vw);
  height: auto;
  max-height: 24vh;
  object-fit: contain;
  margin-bottom: clamp(30px, 4vh, 44px);
}

.contact-button {
  min-width: 116px;
  padding: 11px 22px;
  border: 1px solid var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--white);
  color: var(--black);
  outline: none;
}

.games-block {
  width: min(315px, 61.5vw);
  margin-top: clamp(28px, 5vh, 54px);
}

.games-block h1 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090909;
  text-decoration: none;
  transition: transform 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: scale(1.035);
}

.game-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.game-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1232 / 706;
  object-fit: contain;
  transition: filter 180ms ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  filter: brightness(1.15);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  color: #666;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer nav {
  display: flex;
  gap: 18px;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--white);
  outline: none;
}

.legal-overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.legal-overlay:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.legal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(620px, 88svh);
  overflow-y: auto;
  border: 1px solid #303030;
  background: #080808;
  padding: clamp(28px, 6vw, 54px);
}

.legal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #a8a8a8;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-panel .eyebrow {
  margin: 0 0 12px;
  color: #666;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-panel h2 {
  margin: 0 0 28px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.legal-panel p {
  margin: 0 0 18px;
  color: #ababab;
  font-size: 13px;
  line-height: 1.65;
}

.legal-panel p:last-child {
  margin-bottom: 0;
}

.legal-panel p a {
  color: var(--white);
  text-underline-offset: 3px;
}

@media (max-height: 680px) {
  .content {
    padding-top: 18px;
  }

  .games-block {
    margin-top: 22px;
  }

  footer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 520px) {
  footer {
    padding-inline: 16px;
  }

  footer > span {
    max-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
