:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #182338;
  --muted: #60708c;
  --accent: #4b6bff;
  --accent-strong: #2f51f5;
  --accent-soft: rgba(75, 107, 255, 0.1);
  --mint: #37bba5;
  --border: rgba(24, 35, 56, 0.1);
  --shadow: 0 24px 60px rgba(70, 88, 146, 0.14);
  --phone-shell: 460px;
  --page-gutter: clamp(14px, 4vw, 24px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    var(--page-gutter)
    calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(75, 107, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(55, 187, 165, 0.14), transparent 20%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  overflow-x: hidden;
}

.shell {
  width: min(100%, var(--phone-shell));
  margin: 0 auto;
  padding: 0;
}

.hero {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  max-height: 320px;
  padding: 14px 14px 0;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 236, 0.7), transparent 35%),
    radial-gradient(circle at top right, rgba(203, 238, 255, 0.65), transparent 30%),
    linear-gradient(180deg, #fffdfd 0%, #fff8fb 100%);
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(72vw, 320px);
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.hero-copy {
  max-width: 32rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(75, 107, 255, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(75, 107, 255, 0.32);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.install-btn:hover {
  border-color: rgba(75, 107, 255, 0.3);
  box-shadow: 0 8px 20px rgba(70, 88, 146, 0.1);
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.step,
.game-pill {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-strong);
}

.step {
  padding: 16px;
}

.step strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "Outfit", "Noto Sans KR", sans-serif;
}

.step span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.game-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.game-pill {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-pill:hover,
.game-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(75, 107, 255, 0.24);
  box-shadow: 0 16px 28px rgba(70, 88, 146, 0.12);
}

.game-pill strong {
  display: block;
  font-size: 1.05rem;
}

.game-pill span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── hub game grid ─────────────────────────────────────────────────────── */

.games-section {
  margin-top: 16px;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hub-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(70, 88, 146, 0.14);
}

.hub-card-accent {
  height: 5px;
}

.hub-card-body {
  padding: 18px;
}

.hub-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hub-card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hub-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-solo    { background: rgba(75, 107, 255, 0.1);  color: #2f51f5; }
.badge-duel    { background: rgba(231, 76, 60, 0.1);   color: #c0392b; }
.badge-party   { background: rgba(255, 184, 69, 0.12); color: #b07800; }
.badge-status  { background: rgba(89, 201, 138, 0.15); color: #1d7a46; }

.hub-card-title {
  margin: 0 0 6px;
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.hub-card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.hub-card-meta .meta-label {
  font-weight: 700;
  color: var(--ink);
  margin-right: 3px;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .shell {
    width: min(100%, 520px);
  }

  .hero-media {
    min-height: 220px;
    max-height: 360px;
  }

  .hero-banner {
    max-height: min(52vw, 340px);
  }
}
