:root {
  --ink: #262720;
  --muted: #6a6b5f;
  --paper: #fff9ed;
  --paper-strong: #fffdf6;
  --line: rgba(38, 39, 32, 0.12);
  --forest: #195d45;
  --leaf: #2fa56f;
  --mint: #dff4dd;
  --teal: #56b8c5;
  --coral: #e76066;
  --gold: #f2be4b;
  --lavender: #7060a8;
  --shadow: 0 26px 70px rgba(42, 57, 35, 0.16);
  --radius: 22px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.96), rgba(227, 245, 233, 0.84) 36%, rgba(255, 253, 246, 0.96) 72%),
    radial-gradient(circle at 12% 18%, rgba(86, 184, 197, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(231, 96, 102, 0.14), transparent 22rem);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

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

.inline-link {
  color: var(--forest);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 96px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.84);
  box-shadow: 0 18px 52px rgba(42, 57, 35, 0.14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(42, 57, 35, 0.14);
}

.brand-icon img {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #46483e;
  font-size: 0.91rem;
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--forest);
  background: rgba(47, 165, 111, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(47, 165, 111, 0.13);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  content: "";
  background: linear-gradient(180deg, transparent, #fff9ed 72%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 249, 237, 0.9) 0%, rgba(255, 249, 237, 0.58) 38%, rgba(255, 249, 237, 0.08) 70%),
    linear-gradient(180deg, rgba(255, 249, 237, 0.12), rgba(25, 93, 69, 0.08));
}

.hero-panel {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 132px 0 92px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #1f513c;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92;
  font-weight: 950;
  text-shadow:
    0 5px 0 rgba(255, 255, 255, 0.72),
    0 24px 64px rgba(22, 75, 55, 0.16);
}

.hero p {
  max-width: 570px;
  margin: 24px 0 0;
  color: #383d31;
  font-size: clamp(1.04rem, 1.8vw, 1.32rem);
  line-height: 1.72;
  font-weight: 780;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(42, 57, 35, 0.16);
  font-weight: 950;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 19px 42px rgba(42, 57, 35, 0.2);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--leaf), var(--forest));
}

.button-secondary {
  color: #4d3a1f;
  background: rgba(255, 253, 246, 0.78);
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading span {
  display: inline-grid;
  width: 52px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(231, 96, 102, 0.22);
  font-size: 0.88rem;
  font-weight: 950;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.18rem);
  line-height: 1.08;
  font-weight: 950;
}

.section-heading.light h2 {
  color: #ffffff;
}

.section-heading.light span {
  background: var(--gold);
  color: #3d341b;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.intro-lead {
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  color: #244d39;
  background: rgba(255, 253, 246, 0.78);
  box-shadow: var(--shadow);
  font-size: clamp(1.42rem, 2.7vw, 2.2rem);
  line-height: 1.42;
  font-weight: 930;
}

.intro-copy {
  display: grid;
  gap: 14px;
}

.intro-copy p,
.feature-card p,
.story-copy p,
.milestones p,
.download-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.74;
  font-weight: 650;
}

.copy-lines span {
  display: block;
}

.intro-copy p {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(42, 57, 35, 0.09);
}

.game {
  padding-top: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 16px 16px 26px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 253, 246, 0.78);
  box-shadow: 0 22px 54px rgba(42, 57, 35, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 66px rgba(42, 57, 35, 0.16);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(38, 39, 32, 0.08);
}

.feature-card h3 {
  margin: 20px 10px 9px;
  color: var(--forest);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  line-height: 1.25;
  font-weight: 950;
}

.feature-card p {
  margin: 0 10px;
}

.story {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #174b39, #253f56 64%, #423a68),
    var(--forest);
}

.story::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 24% 18%, rgba(242, 190, 75, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(86, 184, 197, 0.18), transparent 24rem);
  pointer-events: none;
}

.story-shell {
  position: relative;
  z-index: 1;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}

.story-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px;
  background: #173e34;
  box-shadow: 0 32px 82px rgba(0, 0, 0, 0.25);
}

.story-art img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.story-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.story-copy h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.14;
  font-weight: 950;
}

.story-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.story-beats {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.story-beats li {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #26311e;
  background: rgba(255, 249, 237, 0.88);
  font-weight: 900;
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.timeline-art {
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.84);
  border-radius: 30px;
  background: #dff4dd;
  box-shadow: var(--shadow);
}

.timeline-art img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.milestones {
  display: grid;
  gap: 14px;
}

.milestones article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 253, 246, 0.8);
  box-shadow: 0 18px 42px rgba(42, 57, 35, 0.1);
}

.milestones strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.16rem;
  line-height: 1.26;
  font-weight: 950;
}

.download {
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0), rgba(255, 245, 220, 0.88) 30%, rgba(255, 249, 237, 0)),
    radial-gradient(circle at 90% 22%, rgba(242, 190, 75, 0.22), transparent 18rem);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}

.download-copy {
  max-width: 500px;
  padding: 24px 0;
}

.gate-note {
  margin-top: 18px !important;
  color: var(--forest) !important;
  font-weight: 900 !important;
}

.gate-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: var(--shadow);
}

.gate-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--forest);
  font-weight: 950;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 165, 111, 0.14);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transition: width 220ms ease;
}

.gate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gate-button {
  position: relative;
  display: grid;
  min-height: 88px;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid rgba(38, 39, 32, 0.09);
  border-radius: 18px;
  color: var(--ink);
  background: #fff8ea;
  font-size: 1rem;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.gate-button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gate-button:hover,
.gate-button:focus-visible,
.gate-button.is-done {
  border-color: rgba(47, 165, 111, 0.4);
  background: rgba(47, 165, 111, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.gate-button.is-done::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--leaf);
  content: "✓";
  font-weight: 950;
}

.download-button,
.reset-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.download-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--leaf), var(--forest));
  box-shadow: 0 16px 30px rgba(47, 165, 111, 0.25);
}

.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.download-button:not(:disabled):hover,
.download-button:not(:disabled):focus-visible,
.reset-button:hover,
.reset-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.reset-button {
  min-height: 42px;
  margin-top: 10px;
  color: var(--muted);
  background: transparent;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: center;
}

.contact-copy {
  display: grid;
  max-width: 560px;
  gap: 14px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(42, 57, 35, 0.15);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-links a:nth-child(2) {
  background: linear-gradient(135deg, var(--coral), var(--lavender));
}

.contact-links a:nth-child(3) {
  background: linear-gradient(135deg, #d22630, var(--gold));
}

.contact-links a:nth-child(4) {
  background: linear-gradient(135deg, #00a36f, var(--teal));
}

.contact-links a:hover,
.contact-links a:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(42, 57, 35, 0.2);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 26px 0 44px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--forest);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 0 14px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(340px, calc(100vw - 28px));
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 253, 246, 0.97);
    box-shadow: 0 18px 50px rgba(42, 57, 35, 0.16);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav a {
    justify-content: center;
  }

  .intro-layout,
  .feature-grid,
  .story-layout,
  .progress-layout,
  .download-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .story-art img,
  .timeline-art img {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  section[id] {
    scroll-margin-top: 86px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 56px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(255, 249, 237, 0.74), rgba(255, 249, 237, 0.26) 38%, rgba(255, 249, 237, 0.83) 86%),
      linear-gradient(90deg, rgba(255, 249, 237, 0.9), rgba(255, 249, 237, 0.2));
  }

  .hero-panel {
    width: min(calc(100% - 30px), var(--max));
    padding: 112px 0 70px;
  }

  .hero h1 {
    max-width: 390px;
    font-size: clamp(3.35rem, 19vw, 5.8rem);
  }

  .hero p {
    max-width: 390px;
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
  }

  .section-shell {
    width: min(calc(100% - 30px), var(--max));
    padding: 64px 0;
  }

  .section-heading {
    align-items: flex-start;
    gap: 11px;
  }

  .section-heading span {
    width: 48px;
    height: 38px;
  }

  .intro-lead,
  .intro-copy p,
  .story-copy,
  .milestones article,
  .gate-card {
    padding: 22px;
  }

  .feature-card {
    padding: 14px 14px 22px;
  }

  .story-art img,
  .timeline-art img {
    min-height: 270px;
  }

  .story-beats li {
    min-height: auto;
  }

  .gate-actions,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: min(calc(100% - 30px), var(--max));
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
