:root {
  --night: #0c1330;
  --navy: #131d47;
  --navy-soft: #1b2860;
  --gold: #e9c877;
  --gold-deep: #b98d3c;
  --paper: #f6efdf;
  --paper-dim: #c9cfe6;
  --line: rgba(233, 200, 119, 0.28);
  --display: "Gowun Batang", "Nanum Myeongjo", "Batang", serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

/* Top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(rgba(12, 19, 48, 0.82), rgba(12, 19, 48, 0));
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
}
.topbar nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.topbar nav a {
  font-size: 15px;
  text-decoration: none;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(12, 19, 48, 0.9);
}
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy) url("assets/hero.webp") 62% 50% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(rgba(12, 19, 48, 0), var(--night));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  top: 50%;
  right: clamp(16px, 5vw, 96px);
  z-index: 2;
  width: min(46vw, 760px);
  transform: translateY(-58%);
  text-align: center;
}
.hero-copy h1 img { width: 100%; filter: drop-shadow(0 8px 28px rgba(8, 12, 36, 0.55)); }
.tagline {
  margin-top: clamp(4px, 1vw, 16px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(8, 12, 36, 0.9);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--paper-dim);
  text-shadow: 0 1px 8px rgba(8, 12, 36, 0.9);
}
.status span {
  padding: 2px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
  background: rgba(12, 19, 48, 0.6);
  text-shadow: none;
}
.hero-party {
  position: absolute;
  left: clamp(-24px, 2vw, 64px);
  bottom: 4%;
  z-index: 1;
  width: min(44vw, 720px);
  filter: drop-shadow(0 18px 24px rgba(8, 12, 36, 0.45));
}

/* Sections */
.band { padding: clamp(64px, 10vw, 128px) 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 32px); text-align: center; }
.eyebrow {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.3;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.4; }
.lead { max-width: 640px; margin-top: 16px; color: var(--paper-dim); }
.narrow p:not(.eyebrow) { margin-top: 20px; color: var(--paper-dim); }

.story { background: linear-gradient(var(--night), var(--navy)); }

/* Party */
.party { background: var(--navy); }
.heroes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: 48px;
}
.heroes li {
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--navy-soft), rgba(19, 29, 71, 0.4));
  text-align: center;
}
.heroes img { height: 240px; width: auto; margin: 0 auto 20px; object-fit: contain; }
.role { margin: 4px 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); }
.heroes li p:last-child { color: var(--paper-dim); font-size: 16px; }

/* Campaign */
.campaign { background: linear-gradient(var(--navy), var(--night)); }
.slider { position: relative; }
/* One dot per region along the bottom of the banner; the current one is a gold bar. */
.dots {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  padding-bottom: clamp(4px, 1.2vw, 14px);
}
.dots button {
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(246, 239, 223, 0.45);
  transition: width 0.25s, background-color 0.25s;
}
.dots button:hover::before, .dots button:focus-visible::before { background: var(--paper); }
.dots button[aria-current="true"] { width: 36px; }
.dots button[aria-current="true"]::before { width: 24px; background: var(--gold); }
.dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 8px; }
/* One region fills the whole width of the screen at a time, like a banner. */
.chapters {
  display: flex;
  margin-top: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-block: 1px solid var(--line);
}
.chapters::-webkit-scrollbar { display: none; }
.chapters:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.chapters li {
  position: relative;
  flex: none;
  width: 100%;
  height: clamp(420px, 56.25vw, 82svh);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--navy);
}
.chapters img { width: 100%; height: 100%; object-fit: cover; }
.chapters div {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(96px, 16vw, 200px) max(16px, (100% - 1160px) / 2) clamp(28px, 5vw, 64px);
  background: linear-gradient(rgba(12, 19, 48, 0), rgba(12, 19, 48, 0.72) 55%, rgba(12, 19, 48, 0.94));
}
.chapters span { font-size: clamp(14px, 1.4vw, 17px); font-weight: 600; letter-spacing: 0.1em; color: var(--gold); }
.chapters h3 { margin: 4px 0 8px; font-size: clamp(30px, 5vw, 60px); line-height: 1.2; text-shadow: 0 2px 18px rgba(8, 12, 36, 0.8); }
.chapters p { max-width: 560px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--paper); }

/* Play */
.play { background: var(--night); }
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 6vw, 80px);
  margin-top: 40px;
}
.features li { padding: 28px 0; border-top: 1px solid var(--line); }
.features h3 { color: var(--gold); }
.features p { margin-top: 8px; color: var(--paper-dim); }

.now { background: linear-gradient(var(--night), var(--navy)); }

.footer {
  padding: 28px 16px 40px;
  border-top: 1px solid var(--line);
  background: var(--navy);
  text-align: center;
  font-size: 14px;
  color: var(--paper-dim);
}

/* Tablet and phone */
@media (max-width: 860px) {
  .hero { background-position: 78% 50%; }
  .hero-copy {
    top: 76px;
    right: 16px;
    left: 16px;
    width: auto;
    transform: none;
  }
  .hero-copy h1 img { width: min(100%, 520px); margin: 0 auto; }
  .hero-party { left: 50%; bottom: 3%; width: min(92vw, 560px); transform: translateX(-50%); }
  .heroes { grid-template-columns: 1fr; }
  .heroes img { height: 200px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 14px; }
  .brand { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
