* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #171944;
  color: #fff;
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

header {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

header img {
  display: block;
  height: 40px;
  border-radius: 8px;
}

.back {
  padding: 8px 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .3s, color .3s;
}

.back:hover {
  background: #fff;
  color: #171944;
}

h1 {
  margin: 28px 20px 6px;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-align: center;
  animation: pop .6s cubic-bezier(.22, 1.4, .36, 1) both;
}

.sub {
  margin: 0 0 34px;
  font-size: 13px;
  opacity: .7;
  letter-spacing: .18em;
  animation: pop .6s .1s cubic-bezier(.22, 1.4, .36, 1) both;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 20px 60px;
  max-width: 900px;
}

.game-card {
  width: 240px;
  padding: 30px 22px 26px;
  text-align: center;
  background: #fff;
  color: #171944;
  border-radius: 20px;
  text-decoration: none;
  border-bottom: 6px solid var(--c);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: pop .6s cubic-bezier(.22, 1.4, .36, 1) both;
}

.game-card:nth-child(1) {
  --c: #DA0710;
  animation-delay: .15s;
}

.game-card:nth-child(2) {
  --c: #FEB101;
  animation-delay: .25s;
}

.game-card:nth-child(3) {
  --c: #0119FF;
  animation-delay: .35s;
}

.game-card:hover {
  transform: translateY(-8px) rotate(-1.2deg);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .35);
}

.game-card .icon {
  font-size: 52px;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.game-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.game-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #555;
}

.game-card .tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.game-card:nth-child(2) .tag {
  color: #171944;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.9);
  }
}
