/* 포켓몬 브레이브 리그 홍보 사이트 (2026-10-28). 게임 로그인 화면의 남보라·파랑·금색을 따른다. 글꼴은 게임 것(assets/hud/fonts) */
@font-face {
  font-family: 'Galmuri11';
  src: url('../assets/hud/fonts/Galmuri11-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Galmuri9';
  src: url('../assets/hud/fonts/Galmuri9.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Black Han Sans';
  src: url('../assets/hud/fonts/BlackHanSans.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #0b0716;
  --bg-2: #140c28;
  --panel: rgba(28, 18, 52, 0.82);
  --line: rgba(168, 132, 255, 0.28);
  --text: #f3efff;
  --muted: #b9addb;
  --purple: #8b5cf6;
  --purple-hi: #a78bfa;
  --blue: #2f7bff;
  --gold: #ffd36b;
  --radius: 18px;
  --head: 'Black Han Sans', 'Galmuri11', sans-serif;
  --pixel: 'Galmuri11', 'Galmuri9', sans-serif;
  --body: 'Galmuri9', system-ui, 'Malgun Gothic', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(139, 92, 246, 0.2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  /* 한국어는 낱말 중간에서 줄을 바꾸지 않는다 */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
}
h2 {
  font-size: clamp(30px, 4.2vw, 50px);
}
p {
  margin: 0;
}
/* 위 막대 링크로 옮겨 갈 때 제목이 막대 밑에 숨지 않게 */
section {
  scroll-margin-top: 64px;
}

/* ---- 위 막대 ---- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(11, 7, 22, 0.92), rgba(11, 7, 22, 0.6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168, 132, 255, 0.14);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  text-decoration: none;
  white-space: nowrap;
}
.topbar-brand img {
  height: 30px;
  width: auto;
}
.topbar-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 15px;
}
.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.topbar-nav a:hover {
  color: var(--text);
}

/* ---- 버튼 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--pixel);
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  border: 2px solid rgba(243, 239, 255, 0.5);
  background: rgba(11, 7, 22, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-small {
  padding: 8px 18px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* ---- 첫 화면 ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 16px 150px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transform: scale(1.04);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(11, 7, 22, 0.35) 0%, rgba(11, 7, 22, 0.82) 70%),
    linear-gradient(180deg, rgba(11, 7, 22, 0.2) 60%, var(--bg) 100%);
}
.hero-inner {
  max-width: 880px;
  text-align: center;
  animation: rise 0.9s ease-out both;
}
.hero-logo {
  width: min(520px, 82vw);
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 28px rgba(255, 211, 107, 0.45));
  animation: logo-float 4s ease-in-out infinite;
}
.hero-kicker {
  font-family: var(--pixel);
  letter-spacing: 0.35em;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 66px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.hero-title span {
  background: linear-gradient(90deg, var(--purple-hi), #6ea8ff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 20px auto 30px;
  max-width: 640px;
  color: #ddd5f7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-chips li {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 7, 22, 0.5);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes logo-float {
  50% {
    transform: translateY(-8px);
  }
}

/* ---- 걸어가는 포켓몬 행렬 (promo.js 가 게임의 걸음 그림으로 채운다) ---- */
.parade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 96px;
  pointer-events: none;
  overflow: hidden;
}
.parade-band {
  position: relative;
  bottom: auto;
  margin: 10px 0 0;
  border-top: 1px solid rgba(168, 132, 255, 0.12);
  border-bottom: 1px solid rgba(168, 132, 255, 0.12);
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.08), transparent);
}
.parade-cta {
  position: relative;
  bottom: auto;
  margin: 0 auto 10px;
  max-width: 980px;
}
.walker {
  position: absolute;
  bottom: 6px;
  left: 0;
  image-rendering: pixelated;
  will-change: transform;
}
.walker-sheet {
  image-rendering: pixelated;
  background-repeat: no-repeat;
  transform-origin: 0 0;
}

/* ---- 숫자 ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 30px;
}
.stats div {
  padding: 18px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.stats strong {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--gold);
}
.stats span {
  font-size: 14px;
  color: var(--muted);
}

/* ---- 기능 소개 (화면 + 글) ---- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 16px;
}
.feature-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}
.feature-flip .feature-media {
  order: 2;
}
.feature-media,
.card,
.league-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(139, 92, 246, 0.07);
  background: #000;
}
.feature-media img,
.card img,
.league-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: inherit;
}
.eyebrow {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--purple-hi);
  margin-bottom: 12px;
}
.feature-text h2 {
  margin-bottom: 18px;
}
.feature-text > p {
  color: #d8d0f1;
}
.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), #ff9f43);
  transform: rotate(45deg);
}

/* ---- 둘 나란히 ---- */
.duo {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) 16px;
}
.duo-head {
  text-align: center;
  margin-bottom: 36px;
}
.duo-grid,
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.card {
  margin: 0;
  transition: transform 0.25s;
}
.card:hover {
  transform: translateY(-4px);
}
.card figcaption {
  padding: 16px 18px 18px;
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
}
.card figcaption strong {
  display: block;
  font-family: var(--pixel);
  color: var(--text);
  font-size: 18px;
  margin-bottom: 4px;
}
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px clamp(50px, 8vw, 90px);
}
.gallery .card figcaption {
  font-family: var(--pixel);
  color: var(--text);
}

/* ---- 리그 ---- */
.league {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  grid-template-areas: 'text media' 'ladder media';
  gap: 28px clamp(24px, 4vw, 56px);
  align-items: start;
}
.league-text {
  grid-area: text;
}
.league-text h2 {
  margin-bottom: 16px;
}
.league-text p {
  color: #d8d0f1;
}
.league-media {
  grid-area: media;
  margin: 0;
  align-self: center;
}
.ladder {
  grid-area: ladder;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: rank;
}
.ladder li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-family: var(--pixel);
  transform-origin: left center;
}
.ladder li::before {
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.25);
  color: var(--purple-hi);
  font-size: 14px;
}
.ladder b {
  font-weight: 700;
}
.ladder span {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.ladder .is-top {
  border-color: rgba(255, 211, 107, 0.6);
  background: linear-gradient(90deg, rgba(255, 211, 107, 0.18), var(--panel));
  box-shadow: 0 0 24px rgba(255, 211, 107, 0.2);
}
.ladder .is-top::before {
  content: '★';
  background: rgba(255, 211, 107, 0.25);
  color: var(--gold);
}

/* ---- 그리고 더 ---- */
.more {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px clamp(60px, 9vw, 110px);
  text-align: center;
}
.more h2 {
  margin-bottom: 30px;
}
.more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}
.more-grid li {
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
  transition: border-color 0.2s, transform 0.2s;
}
.more-grid li:hover {
  border-color: rgba(255, 211, 107, 0.55);
  transform: translateY(-3px);
}
.more-grid b {
  display: block;
  font-family: var(--pixel);
  color: var(--text);
  font-size: 17px;
  margin-bottom: 6px;
}

/* ---- 마지막 권유 ---- */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 16px clamp(70px, 10vw, 120px);
  background:
    radial-gradient(700px 300px at 50% 100%, rgba(139, 92, 246, 0.35), transparent 70%),
    linear-gradient(180deg, transparent, rgba(47, 123, 255, 0.08));
}
.cta h2 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 10px;
}
.cta > p {
  color: var(--muted);
  margin-bottom: 26px;
}

.footer {
  padding: 30px 16px 40px;
  text-align: center;
  font-size: 13px;
  color: #8f84b3;
  border-top: 1px solid rgba(168, 132, 255, 0.12);
  display: grid;
  gap: 6px;
}

/* 스크롤하면 나타나기 (promo.js 가 .is-in 을 붙인다) */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .feature,
  .league {
    grid-template-columns: 1fr;
  }
  .feature-flip .feature-media {
    order: 0;
  }
  .league {
    grid-template-areas: 'text' 'media' 'ladder';
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .topbar-nav {
    display: none;
  }
  .topbar .btn-small {
    margin-left: auto;
  }
  .duo-grid,
  .gallery,
  .more-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats div:last-child {
    grid-column: span 2;
  }
  .parade {
    height: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-inner {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
