:root {
  color-scheme: dark;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  background: #0a101a;
  color: #f3f5f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 183, 76, 0.13), transparent 28%),
    linear-gradient(180deg, #101826 0%, #0a101a 42%, #080d15 100%);
}

.hero {
  min-height: clamp(310px, 52vh, 610px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(42px, 8vh, 100px) clamp(22px, 7vw, 120px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.eyebrow {
  margin: 0 0 clamp(12px, 2vh, 24px);
  color: #ffbd59;
  font-size: clamp(0.7rem, 0.8vw, 0.84rem);
  font-weight: 750;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 850;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

h1 span {
  color: #ffbd59;
}

.intro {
  margin: clamp(22px, 4vh, 45px) 0 0;
  color: #aeb8c9;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

main {
  padding: clamp(55px, 9vh, 110px) clamp(22px, 7vw, 120px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5%;
  margin-bottom: clamp(28px, 5vh, 60px);
}

.section-heading .eyebrow {
  margin-bottom: clamp(8px, 1.3vh, 15px);
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.game-count {
  flex: 0 0 auto;
  margin: 0;
  color: #7f8ba0;
  font-size: clamp(0.76rem, 1vw, 0.9rem);
  letter-spacing: 0.15em;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 17vw, 220px), 1fr));
  gap: clamp(14px, 1.7vw, 24px);
}

.game-card {
  min-height: clamp(190px, 25vh, 270px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vh, 24px);
  padding: clamp(18px, 2.2vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: clamp(16px, 1.8vw, 24px);
  background: rgba(24, 34, 50, 0.68);
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(2vh);
  animation: reveal 450ms ease forwards;
  animation-delay: var(--delay);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.game-card:hover {
  border-color: rgba(255, 189, 89, 0.58);
  background: rgba(35, 47, 67, 0.9);
  transform: translateY(-0.7vh);
}

.game-icon {
  width: clamp(96px, 10vw, 148px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 23%;
  box-shadow: 0 clamp(8px, 1.4vh, 16px) clamp(18px, 3vh, 34px) rgba(0, 0, 0, 0.28);
}

.game-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.game-card.unavailable {
  cursor: not-allowed;
  filter: saturate(0.35);
  opacity: 0.55;
}

.load-error {
  color: #c6ceda;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 5%;
  padding: clamp(28px, 5vh, 55px) clamp(22px, 7vw, 120px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #69778e;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
}

footer span:first-child {
  color: #ffbd59;
  font-weight: 800;
  letter-spacing: 0.14em;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 43vh;
  }

  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
