/* 홈 랜딩 — 등용문 삼국지 · 오디세이 */
:root {
  --bg: #0c0a08;
  --bg-mid: #1a1410;
  --ink: #f5e6c8;
  --muted: #a89878;
  --gold: #c9a227;
  --gold-soft: #e8c547;
  --line: rgba(201, 162, 39, 0.35);
  --sea: #7eb8d4;
  --sea-deep: #2a4a5c;
  --ody-gold: #d4b46a;
  --card: rgba(10, 8, 6, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, #3a2a14 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 96% 8%, #163042 0%, transparent 52%),
    radial-gradient(ellipse 50% 35% at 50% 100%, #1a1410 0%, transparent 55%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-soft);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffe08a;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  justify-content: center;
  padding: 1.15rem 1.25rem 0;
  font-size: 0.86rem;
  position: relative;
  z-index: 2;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.25rem 1.25rem 3.25rem;
  max-width: 46rem;
  margin: 0 auto;
  overflow: hidden;
}

.hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--line),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero-icon.ody {
  box-shadow:
    0 0 0 1px rgba(126, 184, 212, 0.4),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.brand {
  font-family: "Noto Serif KR", "Songti SC", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.85rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 0.3rem;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.brand-en {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.lead {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #120e0a;
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: #120e0a;
}

.btn-sea {
  background: #c9d8e4;
  color: #102028;
}

.btn-sea:hover {
  background: #e4eef5;
  color: #102028;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
  transform: none;
}

.meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(168, 152, 120, 0.85);
}

.section {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 3.25rem;
  text-align: center;
}

.section.wide {
  max-width: 68rem;
}

.section h2 {
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
}

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

.section ul,
.section ol {
  margin: 1rem auto 0;
  padding: 0;
  text-align: left;
  max-width: 34rem;
}

.section ul {
  list-style: none;
}

.section li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
}

.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  text-align: left;
}

.game-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.game-panel.ody {
  border-color: rgba(126, 184, 212, 0.38);
  box-shadow: 0 18px 48px rgba(8, 20, 32, 0.45);
}

.game-banner {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  background: #14110d;
}

.game-body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.game-head img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}

.game-head h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
}

.game-head .en {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.game-panel.ody .game-head .en {
  color: var(--ody-gold);
}

.game-body .tagline {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
}

.game-body p {
  text-align: left;
}

.game-body .cta {
  justify-content: flex-start;
  margin: 1rem 0 0.35rem;
}

.shot-rail {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.35rem 0 0.15rem;
  margin: 0.35rem 0 0;
  -webkit-overflow-scrolling: touch;
}

.shot-rail figure {
  flex: 0 0 auto;
  width: 168px;
  margin: 0;
  scroll-snap-align: start;
}

.shot-rail img {
  display: block;
  width: 168px;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(245, 230, 200, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.4);
  background: #111;
}

.shot-rail figcaption {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.how-steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.how-steps li {
  padding: 0.9rem 1rem 0.9rem 3.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  counter-increment: how;
}

.how-steps {
  counter-reset: how;
}

.how-steps li::before {
  content: counter(how);
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--gold);
  color: #120e0a;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.faq {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  text-align: left;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  background: rgba(0, 0, 0, 0.22);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.faq details p {
  margin: 0.65rem 0 0.15rem;
  text-align: left;
}

.crumb {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--gold-soft);
}

.footer {
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(168, 152, 120, 0.7);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.4rem;
}

.footer a:hover {
  color: var(--gold-soft);
}

@media (min-width: 860px) {
  .hero-icon {
    width: 96px;
    height: 96px;
  }

  .games {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .shot-rail figure {
    width: 180px;
  }

  .shot-rail img {
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
