@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Nunito:wght@600;800;900&display=swap");

:root {
  --arcade-bg: #211b2c;
  --arcade-ink: #fff7f0;
  --arcade-muted: #a79aac;
  --arcade-pink: #f899c2;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--arcade-bg);
  color: var(--arcade-ink);
  font-family: "Nunito", system-ui, sans-serif;
}

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

main {
  width: min(100%, 1100px);
  margin: auto;
  padding: clamp(2.25rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

.arcade-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 2.7vw, 2rem);
  line-height: 1.1;
  font-weight: 900;
}

.arcade-subtitle {
  display: block;
  margin-top: 0.55em;
  font-size: 0.72em;
  line-height: 1.1;
}

.arcade-subtitle small {
  display: block;
  margin-bottom: 0.15em;
  font-size: 0.36em;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.title-rule {
  width: min(22rem, 70%);
  height: 3px;
  margin: 1.35rem auto 2.5rem;
  border: 0;
  background: linear-gradient(90deg, transparent, #bf3443, #fff, #456bc0, transparent);
  box-shadow: 0 0 12px rgb(255 255 255 / 45%);
}

.game-cover {
  display: block;
  width: 100%;
  margin: 0 auto clamp(1.75rem, 5vw, 4rem);
  border-radius: 12px;
}

.game-cover:last-of-type {
  margin-bottom: 0;
}

.game-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: inherit;
  background: #30263f;
  box-shadow: 0 14px 38px rgb(16 12 22 / 22%);
  object-fit: cover;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-cover:hover img {
  transform: translateY(-4px);
  border-color: rgb(248 153 194 / 65%);
  box-shadow: 0 20px 42px rgb(16 12 22 / 38%);
}

.game-cover:active img {
  transform: translateY(-1px);
}

.game-cover:focus-visible {
  outline: 3px solid var(--arcade-pink);
  outline-offset: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 6%;
  border-top: 1px solid rgb(255 255 255 / 9%);
  color: var(--arcade-muted);
  font-size: 0.625rem;
}

@media (max-width: 600px) {
  main {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .title-rule {
    margin-bottom: 1.75rem;
  }

  .game-cover {
    margin-bottom: 1.5rem;
    border-radius: 9px;
  }

  .game-cover img {
    border-radius: inherit;
  }

  footer {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.5rem;
  }
}

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