@font-face {
  font-family: Oxanium;
  src: url('/brand/oxanium.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #080f1b;
  --panel: #101d2c;
  --line: #243748;
  --text: #f2f7fc;
  --muted: #a9bbc9;
  --accent: #59e3b8;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 88% 0%, #12313890, transparent 52%);
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
.masthead,
main,
footer {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 29px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: block;
  line-height: 0;
}
.wordmark img {
  display: block;
  width: 232px;
  height: 54px;
}
.nav-link {
  text-decoration: none;
  font-size: 14px;
}
.nav-link span {
  margin-left: 16px;
  color: var(--accent);
  font-size: 22px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  padding-block: 58px 50px;
}
h1,
h2,
h3,
.play-button {
  font-family: Oxanium, Arial, sans-serif;
}
h1 {
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0;
}
h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
.intro-copy {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 4px;
}
.collection {
  scroll-margin-top: 24px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 28px;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.game-card:only-child {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  min-height: 410px;
}
.game-art {
  min-height: 320px;
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  background: #07111b;
}
.game-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.game-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.has-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, #02101ac9, #02101a28 60%, #02101a00);
  pointer-events: none;
}
.game-logo {
  position: absolute;
  z-index: 3;
  width: 53%;
  height: auto;
  top: 11%;
  left: 4%;
  filter: drop-shadow(0 5px 12px #020713);
}
.game-ship {
  position: absolute;
  z-index: 2;
  width: 72%;
  height: auto;
  right: -10%;
  bottom: -6%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 16px 22px #03131acc);
  transition: transform 0.4s ease;
}
.game-art:hover .game-ship {
  transform: translate(-7px, -6px) rotate(-6deg);
}
.game-details {
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.game-title {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.game-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 360px;
  margin: 0 0 30px;
}
.play-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  background: var(--accent);
  color: #06251f;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.play-button:hover {
  background: #a0f7d8;
  transform: translateY(-2px);
}
.button-arrow {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.cover-placeholder {
  display: grid;
  place-content: center;
  min-height: 320px;
  height: 100%;
  font:
    700 100px Oxanium,
    sans-serif;
  color: var(--accent);
  background: radial-gradient(circle, #24453c, #0c1c1b);
}
.studio-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-block: 35px;
}
.studio-note img {
  object-fit: contain;
}
.studio-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.studio-note strong {
  color: var(--text);
  font-weight: 400;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer a {
  text-decoration: none;
}
footer a span {
  color: var(--accent);
  margin-left: 7px;
}
.catalog-error {
  padding: 24px;
  background: var(--panel);
  line-height: 1.7;
  border-radius: 10px;
}
.catalog-error a,
.intro-copy a {
  color: var(--accent);
}
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  left: 20px;
  top: 20px;
  padding: 16px;
  background: var(--accent);
  color: #06251f;
}
.not-found {
  min-height: calc(100svh - 117px);
  align-items: center;
}
.not-found .intro-copy {
  margin-top: 24px;
}
@media (max-width: 850px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 48px);
  }
  .intro {
    padding-block: 46px 38px;
    gap: 24px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .game-card:only-child {
    display: block;
  }
  .game-art {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .game-details {
    padding: 30px;
  }
  .game-description {
    max-width: 100%;
  }
  .play-button {
    max-width: 380px;
  }
}
@media (max-width: 520px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .masthead {
    padding-block: 22px;
    gap: 12px;
  }
  .wordmark img {
    width: 179px;
    height: 42px;
  }
  .nav-link {
    font-size: 12px;
  }
  .nav-link span {
    margin-left: 5px;
  }
  .intro {
    display: block;
    padding-block: 38px 30px;
  }
  h1 {
    font-size: clamp(34px, 8.6vw, 44px);
  }
  .intro-copy {
    margin-top: 18px;
    line-height: 1.65;
  }
  .intro-copy br {
    display: none;
  }
  .game-art {
    aspect-ratio: 4 / 3;
  }
  .game-logo {
    width: 62%;
    top: 9%;
  }
  .game-ship {
    width: 86%;
    right: -17%;
    bottom: -7%;
  }
  .game-details {
    padding: 25px;
  }
  .game-title {
    font-size: 32px;
    margin-bottom: 13px;
  }
  .game-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 23px;
  }
  .studio-note {
    margin-block: 25px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
