:root {
  --bg-top: #0f1722;
  --bg-bottom: #0a0d14;
  --surface: #161f2f;
  --surface-strong: #202d42;
  --text: #f1f6ff;
  --muted: #b6c3d9;
  --accent: #5dd7ff;
  --accent-2: #ffb347;
  --card-glow: rgba(93, 215, 255, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, #253857 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #1f304b 0%, transparent 35%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(10, 13, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
}

.hero {
  padding: 3.8rem 0 2.4rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.16);
  color: #ffd490;
  font-size: 0.84rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.games-section {
  padding: 0 0 4rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface), var(--surface-strong));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(0) scale(1);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(93, 215, 255, 0.7);
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.44),
    0 0 0 4px var(--card-glow);
}

.game-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(93, 215, 255, 0.3), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(255, 179, 71, 0.3), transparent 45%),
    linear-gradient(180deg, #20324a, #101728);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb-title {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 17, 28, 0.54);
  font-weight: 700;
}

.game-body {
  padding: 0.95rem;
}

.game-title {
  margin: 0;
  font-size: 1.08rem;
}

.game-description {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.game-chip {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f1722;
  background: var(--accent-2);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2.6rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
