/* K-디펜스 소개 페이지(첫 화면) 스타일.
   게임 그림이 밤의 궁궐이라 이 페이지는 어두운 테마 하나로 고정한다.
   글꼴은 사이트에 직접 올린 Pretendard(OFL)만 쓴다 — 외부 서버에 접속 기록을 남기지 않는다(처리방침과 맞춤).
   움직임: 첫 화면 등장, 스크롤로 들어오는 구역 등장(CSS scroll-driven), 버튼 눌림. 줄이기 설정이면 모두 끈다. */

@import url("/fonts/pretendard/pretendardvariable-dynamic-subset.css");

:root {
  --bg: #0b0e18;
  --bg-2: #10152a;
  --surface: #151b31;
  --surface-2: #1b2240;
  --line: rgba(222, 228, 255, 0.09);
  --line-strong: rgba(222, 228, 255, 0.16);
  --text: #eef0f7;
  --muted: #a6acc2;
  --gold: #f3c75b;
  --gold-soft: rgba(243, 199, 91, 0.14);
  --gold-ink: #1c1505;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 30;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ── 머리(고정) ─────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 24, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), filter 0.2s;
}

.top-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.top-cta:active {
  transform: scale(0.98);
}

@media (max-width: 860px) {
  .nav a:not(.keep) {
    display: none;
  }
}

/* ── 첫 화면 ─────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, calc(100dvh - 64px), 820px);
  display: flex;
  align-items: stretch;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 40%;
}

/* 글자가 하늘 위에서 읽히도록 왼쪽·아래를 어둡게 덮는다. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 20, 0.92) 0%, rgba(8, 10, 20, 0.7) 38%, rgba(8, 10, 20, 0.1) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 14, 24, 0) 32%);
}

.hero .wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 40px 0 150px;
}

.kicker {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.6vw, 19px);
  color: #d3d7e6;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
  line-height: 1.25;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.store small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.store strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 199, 91, 0.6);
  background: rgba(243, 199, 91, 0.1);
}

.store:active {
  transform: scale(0.98);
}

.store.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 10px 30px rgba(243, 199, 91, 0.22);
}

.store.primary small {
  color: rgba(28, 21, 5, 0.72);
}

.store.primary:hover {
  background: #f7d272;
}

/* 영웅 넷이 첫 화면 오른쪽 아래에 겹쳐 선다(글자 영역 밖으로 넘치지 않게 너비로 크기를 정한다). */
.lineup {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(68%, 860px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.lineup img {
  width: 29%;
  height: auto;
  margin: 0 -3%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.lineup img:nth-child(1),
.lineup img:nth-child(4) {
  width: 25%;
}

.lineup img:nth-child(2) {
  z-index: 1;
}

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

  .hero-bg img {
    object-position: 72% 30%;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 10, 20, 0.85) 0%, rgba(8, 10, 20, 0.55) 45%, rgba(8, 10, 20, 0.2) 70%),
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 14, 24, 0) 30%);
  }

  .hero .wrap {
    display: block;
  }

  .hero-copy {
    padding: 36px 0 4px;
  }

  .stores {
    margin-top: 26px;
  }

  .store {
    flex: 1 1 140px;
    min-width: 0;
  }

  .lineup {
    position: relative;
    width: 100%;
    margin-top: 6px;
  }
}

/* ── 숫자 띠 ─────────────────────────────────── */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.facts div {
  padding: 26px 20px;
}

.facts div + div {
  border-left: 1px solid var(--line);
}

.facts dt {
  font-size: 14px;
  color: var(--muted);
}

.facts dd {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.facts dd span {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

@media (max-width: 760px) {
  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts div:nth-child(3) {
    border-left: 0;
  }

  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ── 공통 구역 ───────────────────────────────── */

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 18em;
}

.section .lede {
  margin: 18px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 18px;
}

/* ── 어떻게 하나요(화면 + 설명) ─────────────────── */

.play .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.phone {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3150, #12172b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 40px 80px rgba(3, 5, 14, 0.6),
    0 0 0 1px var(--line-strong);
}

.phone img {
  border-radius: 28px;
  width: 100%;
}

.phone::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(243, 199, 91, 0.18), transparent);
}

.moves {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 4px;
}

.moves li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.moves strong {
  font-size: 17px;
  color: var(--gold);
  font-weight: 700;
}

.moves p {
  margin: 0;
  color: #cfd3e2;
}

@media (max-width: 860px) {
  .play .wrap {
    grid-template-columns: 1fr;
  }

  .play .phone {
    order: 2;
    max-width: 300px;
  }

  .moves li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ── 수준별 단어(벤토) ───────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: 44px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 230px;
}

.tile h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile .who {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tile .count {
  margin: auto 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tile .count span {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.card-word {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.card-word img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
}

.card-word b {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.card-word i {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
}

.tile.free {
  grid-row: span 2;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(243, 199, 91, 0.22), transparent 60%),
    linear-gradient(180deg, #1d2238, #151a2e);
  border-color: rgba(243, 199, 91, 0.35);
}

.tile.free .card-word {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 22px;
}

.tile.free .card-word img {
  width: 132px;
  height: 132px;
  border-radius: 22px;
  transform: rotate(-4deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.badge {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 800;
}

.tile.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(21, 27, 49, 1) 42%, rgba(21, 27, 49, 0.78) 70%, rgba(21, 27, 49, 0.5)),
    url("/img/screen-library.webp") right 8% top 14% / 52% auto no-repeat,
    var(--surface);
}

.tile.wide .text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 178px;
}

.tile.tint {
  background: linear-gradient(160deg, #1a2140, #141a2f);
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile.free,
  .tile.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .tile.wide {
    background:
      linear-gradient(90deg, rgba(21, 27, 49, 0.97) 55%, rgba(21, 27, 49, 0.7)),
      url("/img/screen-library.webp") right -40px top 10% / 70% auto no-repeat,
      var(--surface);
  }
}

/* ── 복습 원리(그림 띠) ─────────────────────────── */

.memory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.memory .art {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.memory .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  opacity: 0.5;
}

/* 그림은 분위기만, 글자는 또렷하게: 왼쪽과 위아래를 배경색으로 덮는다. */
.memory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 14, 24, 0) 24%, rgba(11, 14, 24, 0) 76%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 14, 24, 0.96) 38%, rgba(11, 14, 24, 0.55) 70%, rgba(11, 14, 24, 0.25));
}

@media (max-width: 860px) {
  .memory::before {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(11, 14, 24, 0.82) 18%, rgba(11, 14, 24, 0.82) 82%, var(--bg) 100%);
  }
}

.memory .wrap {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loop {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.loop li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 14, 24, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 15px;
  font-weight: 600;
}

.loop li span {
  color: var(--gold);
  margin-right: 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 199, 91, 0.4);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}

.text-link:hover {
  gap: 12px;
  border-color: var(--gold);
}

/* ── 영웅 ─────────────────────────────────────── */

.heroes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  background: linear-gradient(180deg, var(--c1), var(--surface) 72%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.hero-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.hero-card img {
  height: 210px;
  width: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}

.hero-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.hero-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-card.luna {
  --c1: rgba(196, 52, 52, 0.35);
}

.hero-card.chiwoo {
  --c1: rgba(54, 104, 210, 0.35);
}

.hero-card.jay {
  --c1: rgba(70, 160, 80, 0.32);
}

.hero-card.dohyun {
  --c1: rgba(120, 72, 190, 0.35);
}

.map-line {
  margin: 28px 0 0;
  color: var(--muted);
}

.map-line b {
  color: var(--text);
}

@media (max-width: 860px) {
  .heroes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card img {
    height: 150px;
  }
}

/* ── 게임 화면(가로 넘김) ─────────────────────────── */

.screens {
  list-style: none;
  margin: 44px 0 0;
  padding: 0 0 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screens li {
  scroll-snap-align: start;
}

.screens li:nth-child(2) {
  margin-top: 40px;
}

.screens img {
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px rgba(3, 5, 14, 0.5);
}

.screens p {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .screens {
    grid-auto-columns: 72%;
    margin-right: -20px;
    padding-right: 20px;
  }

  .screens li:nth-child(2) {
    margin-top: 0;
  }
}

/* ── 한국어 배우는 분께(영문) ─────────────────────── */

.learn .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.learn figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

.learn figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.learn .kicker {
  margin-bottom: 14px;
}

.learn ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.learn li {
  padding-left: 22px;
  position: relative;
  color: #cfd3e2;
}

.learn li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

@media (max-width: 860px) {
  .learn .wrap {
    grid-template-columns: 1fr;
  }

  .learn figure {
    aspect-ratio: 16 / 11;
  }
}

/* ── 블로그 ─────────────────────────────────── */

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.post-card:hover {
  border-color: rgba(243, 199, 91, 0.5);
  transform: translateY(-3px);
}

.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1200 / 630;
}

.post-card .body {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card time {
  color: var(--muted);
  font-size: 14px;
}

.post-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-card .more {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 860px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}

/* ── 자주 묻는 질문 ─────────────────────────────── */

.faq-list {
  margin-top: 36px;
  max-width: 820px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-weight: 500;
  font-size: 20px;
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -6px 0 22px;
  color: #cfd3e2;
  max-width: 44em;
}

/* ── 마지막 받기 구역 ───────────────────────────── */

.download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 14, 24, 0) 28%),
    linear-gradient(90deg, rgba(11, 14, 24, 0.96) 35%, rgba(11, 14, 24, 0.45)),
    url("/img/home-hero-sm.webp") 70% 40% / cover no-repeat;
}

.download .wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

.download .stores {
  margin-top: 30px;
}

/* ── 발 ───────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 40px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

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

.foot a:hover {
  color: var(--text);
}

.foot p {
  margin: 0;
}

/* ── 움직임 ─────────────────────────────────────
   첫 화면 글자·영웅은 차례로 떠오르고(무엇부터 읽을지),
   아래 구역은 화면에 들어올 때 한 번 떠오른다(지원하는 브라우저만). */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
  }

  .lineup img {
    animation: stand 1.1s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 110ms + 260ms);
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stand {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .top,
  .store,
  .loop li {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface);
  }
}
