/* ============================================================================
   2026 MAPO NIGHT MARKET RUN — styles
   Visual direction: 딥 네이비 나이트 + 애시드 라임 + 스포츠 에디토리얼 타이포
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* backgrounds */
  --bg-0: #080B10;
  --bg-1: #0C111A;
  --bg-2: #10151D;
  --bg-3: #161C27;
  --panel: #121822;

  /* accents */
  --lime: #C7F03C;
  --lime-bright: #D8FF4D;
  --lime-deep: #A6CC2E;
  --cyan: #3FE0EC;

  /* text — 가독성 위해 보조 텍스트 밝기 상향 */
  --text: #FFFFFF;
  --text-2: #C2C6CD;
  --text-3: #868D98;

  /* lines */
  --line: rgba(255,255,255,0.14);
  --line-soft: rgba(255,255,255,0.08);

  /* type — 영문 대형 헤드라인만 Anton, 한글 헤드라인은 Gothic A1(가독성↑), 본문 Noto Sans KR */
  --f-display-en: "Anton", "Gothic A1", system-ui, sans-serif;
  --f-display-ko: "Gothic A1", "Noto Sans KR", system-ui, sans-serif;
  --f-body: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html {
  /* scroll-behavior: smooth 은 긴 페이지에서 네이티브 앵커 점프가 합성기를 앞질러
     빈 화면이 남는 Chromium 버그가 있어 사용하지 않는다.
     부드러운 이동은 app.js 에서 프레임 단위(requestAnimationFrame)로 처리한다. */
  scroll-behavior: auto;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  /* 한글 단어가 중간에서 끊기지 않도록 */
  word-break: keep-all;
  overflow-wrap: break-word;
  /* 가로 오버플로만 잘라낸다 (스크롤 컨테이너 미생성) */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 400; }
p { margin: 0; }
/* 본문 성격의 문단은 균형 잡힌 줄바꿈 */
p, li, .lead, .cb-copy p, .ch-copy p, .db-copy, .about__body,
.zc-desc, .pc-copy, .cc-copy, .faq-a__inner, .sc-text, .rec-notes p, .note {
  text-wrap: pretty;
}
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--lime); color: #0a0a0a; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 9vw, 116px); position: relative; }

/* ---------- Multi-page (라우팅) ---------- */
.page[hidden] { display: none !important; }
.page.is-active { animation: pageIn .34s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 페이지 첫 섹션은 헤더에 가리지 않도록 상단 여백 확보 */
.page > .section:first-child { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 52px)); }
.page > .section:last-child { padding-bottom: clamp(36px, 5vw, 64px); }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.bg-1 { background: var(--bg-1); }
.bg-2 { background: var(--bg-2); }

/* section label (kicker) */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display-en);
  letter-spacing: .14em; text-transform: uppercase;
  font-size: clamp(.78rem, 1.6vw, .95rem);
  color: var(--lime);
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--lime);
  transform: skewX(-24deg);
}

/* section heading */
.s-title {
  font-family: var(--f-display-en);
  text-transform: uppercase;
  font-size: clamp(2.3rem, 7.4vw, 5.4rem);
  letter-spacing: -0.005em;
  transform: skewX(-5deg);
  line-height: 0.96;
}
.s-title--ko { font-family: var(--f-display-ko); font-weight: 900; text-transform: none; transform: none; letter-spacing: -0.02em; }
/* 보조어 — 은은한 회색 (가독 가능한 밝기로) */
.s-title .out { color: #5c6a7d; }
.s-title .lime { color: var(--lime); }

/* generic body copy */
.lead { color: var(--text-2); font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.7; max-width: 46ch; }

/* speed lines decoration */
.speedlines { position: absolute; pointer-events: none; opacity: .5; }
.speedlines span {
  display: block; height: 3px; background: var(--lime); margin-bottom: 9px;
  transform: skewX(-24deg); transform-origin: left;
}
.speedlines span:nth-child(1) { width: 90px; }
.speedlines span:nth-child(2) { width: 56px; opacity: .6; }
.speedlines span:nth-child(3) { width: 128px; opacity: .8; }
.speedlines span:nth-child(4) { width: 40px; opacity: .4; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: #0A0D07;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 1rem;
  padding: 15px 26px; min-height: 52px;
  border: none; border-radius: 4px;
  letter-spacing: .01em;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(199,240,60,.4); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border: 1.5px solid var(--line); background: rgba(255,255,255,0.03);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); box-shadow: none; }
.btn--cyan { --btn-bg: var(--cyan); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; padding: 18px 32px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .86rem; font-weight: 800; }
.btn:disabled, .btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(8,11,16,.94);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: flex; align-items: center; flex-shrink: 0;
}
.brand img {
  height: clamp(30px, 4vw, 44px); width: auto; display: block;
}

.nav-desktop { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 20px); }
.nav-desktop a {
  font-family: var(--f-body); font-weight: 700; font-size: .86rem; letter-spacing: 0;
  color: var(--text-2); transition: color .16s; position: relative; padding-block: 6px;
  white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--text); }
.nav-desktop a.is-active { color: var(--lime); }
.nav-desktop a.is-active::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--lime);
}
.header-cta { display: inline-flex; gap: 8px; }

.hamburger {
  display: none; width: 46px; height: 46px; background: transparent;
  border: 1px solid var(--line); border-radius: 6px; position: relative;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--text);
  transform: translateX(-50%); transition: .22s var(--ease);
}
.hamburger span { top: 50%; margin-top: -1px; }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
body.nav-open .hamburger span { background: transparent; }
body.nav-open .hamburger span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
body.nav-open .hamburger span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* mobile drawer */
.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg-0);
  padding: calc(var(--header-h) + 18px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-102%); transition: transform .38s var(--ease);
  overflow-y: auto;
}
body.nav-open .nav-mobile { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--f-display-ko); font-size: clamp(1.3rem, 6.4vw, 1.7rem);
  letter-spacing: -0.01em; color: var(--text); padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft); transform: skewX(-4deg);
}
.nav-mobile a:hover, .nav-mobile a.is-active { color: var(--lime); }
.nav-mobile .btn { margin-top: 18px; transform: none; font-family: var(--f-body); font-size: .95rem; }
.nav-mobile .btn + .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,11,16,.62) 0%, rgba(8,11,16,.3) 24%, rgba(8,11,16,.86) 60%, var(--bg-0) 100%),
    linear-gradient(75deg, rgba(8,11,16,.9) 0%, rgba(8,11,16,.55) 32%, rgba(8,11,16,.1) 68%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 7vw, 90px); }

.hero__title {
  font-family: var(--f-display-en);
  text-transform: uppercase;
  font-size: clamp(3.2rem, 11vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  transform: skewX(-8deg);
  margin-left: -0.03em;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero__title .row { display: block; position: relative; will-change: transform; }
/* 타이틀에 은은한 동적 움직임 — 행마다 위상차를 두어 흐르듯이 */
@keyframes heroDrift {
  0%, 100% { transform: translate3d(0, 0, 0) skewX(0deg); }
  50%      { transform: translate3d(10px, -3px, 0) skewX(-1.2deg); }
}
.hero__title .row { animation: heroDrift 7s var(--ease) infinite; }
.hero__title .row:nth-child(2) { animation-delay: -1.75s; }
.hero__title .row:nth-child(3) { animation-delay: -3.5s; }
.hero__title .row:nth-child(4) { animation-delay: -5.25s; }

.moon-inline {
  display: inline-block; width: .46em; margin-left: .16em; color: var(--lime);
  transform: translateY(-.12em) rotate(-18deg);
  filter: drop-shadow(0 0 18px rgba(199,240,60,.5));
}
.moon-inline svg { width: 100%; height: auto; display: block; overflow: visible; }
/* MAPO · MARKET 형광색 / NIGHT · RUN 화이트 — 2줄(단어 2개씩)로 묶어 모바일에서 폭을 채운다 */
.hero__title .word--lime { color: var(--lime); }
.hero__title .row .accent { color: var(--text); }

/* 히어로 아이브로우 — 마포농수산물시장 워딩 */
.hero__eyebrow {
  font-family: var(--f-display-ko); font-weight: 700;
  font-size: clamp(.82rem, 1.7vw, .98rem); letter-spacing: .01em;
  color: var(--lime); margin-bottom: 14px;
  text-shadow: 0 1px 10px rgba(8,11,16,.92);
}
.hero__title .lines-mark {
  display: inline-block; width: .5em; height: .3em; margin-left: .14em;
  background: repeating-linear-gradient(-90deg, var(--lime) 0 3px, transparent 3px 9px);
  transform: skewX(-24deg); opacity: .9;
  vertical-align: .12em;
}

.hero__sub {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
}
.hero__sub .msg {
  font-family: var(--f-display-ko); font-weight: 800; font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 16px rgba(8,11,16,.9), 0 0 4px rgba(8,11,16,.7);
}
.hero__keywords {
  font-family: var(--f-display-en); letter-spacing: .1em; color: var(--lime);
  font-size: clamp(.95rem, 2.4vw, 1.25rem);
}

/* 타이틀 비주얼 + 카운트다운을 좌우로 */
.hero__headline-row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(24px, 5vw, 60px);
}
.hero__title-col { flex: 1 1 460px; min-width: 0; }
.hero__count { flex: 0 0 auto; width: min(100%, 430px); }

/* 실시간 카운트다운 (한화 불꽃놀이 홈페이지 형태) */
.hc-head {
  font-family: var(--f-display-ko); font-weight: 700; color: var(--text-2);
  font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 12px;
  text-shadow: 0 1px 12px rgba(8,11,16,.9);
}
.hc-head b {
  font-family: var(--f-display-en); color: var(--lime); font-size: 1.2rem;
  margin-left: 8px; letter-spacing: .02em;
}
.hc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hc-cell {
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(8,11,16,.62); padding: 15px 4px 11px; text-align: center;
  backdrop-filter: blur(3px);
}
.hc-num {
  font-family: var(--f-display-en); color: var(--lime);
  font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(199,240,60,.35);
}
.hc-unit {
  font-family: var(--f-display-en); font-size: .62rem; letter-spacing: .14em;
  color: var(--text-3); margin-top: 8px;
}
.hc-live {
  font-family: var(--f-display-en); color: var(--lime);
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; transform: skewX(-8deg);
  text-shadow: 0 0 24px rgba(199,240,60,.4);
  animation: cdPulse 1.6s ease-in-out infinite;
}

/* 진행일시 · 장소 — 크게 */
.hero__meta {
  margin-top: clamp(26px, 4vw, 42px); display: flex; flex-wrap: wrap; gap: 18px 56px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero__meta .hm-block { min-width: 0; }
.hero__meta .hm-lbl {
  font-family: var(--f-display-en); font-size: .82rem; letter-spacing: .16em;
  color: var(--lime); margin-bottom: 8px;
}
.hero__meta .hm-val {
  font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.42rem); line-height: 1.5;
  text-shadow: 0 1px 12px rgba(8,11,16,.85);
}
.hero__meta .hm-val b { color: var(--text); font-weight: 800; }

/* 히어로 기능 카드 (참가신청 바로가기) */
.hero__actions {
  margin-top: clamp(24px, 3.4vw, 38px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-action {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px;
  background: rgba(8,11,16,.58); backdrop-filter: blur(3px);
  transition: transform .18s var(--ease), border-color .18s, background .18s, box-shadow .18s;
}
.hero-action:hover { transform: translateY(-3px); border-color: var(--lime); }
.hero-action.is-primary {
  background: var(--lime); border-color: var(--lime); color: #0A0D07;
}
.hero-action.is-primary:hover { box-shadow: 0 14px 34px -10px rgba(199,240,60,.5); }
.hero-action .ha-ico {
  flex-shrink: 0; width: 34px; height: 34px; color: var(--lime);
}
.hero-action.is-primary .ha-ico { color: #0A0D07; }
.hero-action .ha-ico svg { width: 100%; height: 100%; display: block; }
/* 챌린지 배지 아이콘은 라임톤이라 라임 배경(is-primary) 위에서는 안 보임 — 다크 칩을 깔아준다 */
.hero-action.is-primary .ha-ico {
  background: #0A0D07; border-radius: 8px; box-sizing: border-box; padding: 4px;
}
.hero-action .ha-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hero-action .ha-title {
  font-family: var(--f-display-ko); font-weight: 800; font-size: 1.04rem; letter-spacing: -0.02em;
}
.hero-action .ha-desc { font-size: .82rem; line-height: 1.4; color: var(--text-3); }
.hero-action.is-primary .ha-desc { color: rgba(10,13,7,.72); }
.hero-action .ha-arrow {
  flex-shrink: 0; font-family: var(--f-display-en); font-size: 1.2rem;
  color: var(--lime); transition: transform .18s var(--ease);
}
.hero-action.is-primary .ha-arrow { color: #0A0D07; }
.hero-action:hover .ha-arrow { transform: translateX(4px); }

@keyframes cdPulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* ticker */
.ticker {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line);
  background: rgba(8,11,16,.6);
  overflow: hidden; padding-block: 14px;
  display: flex;
}
.ticker__track {
  display: flex; flex-shrink: 0; gap: 0; align-items: center;
  animation: ticker 34s linear infinite;
}
.ticker__track span {
  font-family: var(--f-display-en); text-transform: uppercase;
  font-size: 1rem; letter-spacing: .08em; color: var(--text-2);
  padding-inline: 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 26px;
}
.ticker__track span::after { content: "•"; color: var(--lime); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 파트너 로고 티커 — 블랙 배경만, 로고는 원본 그대로(색상 유지) */
.ticker--logos {
  background: var(--bg-0);
  border-block: 1px solid var(--line);
  padding-block: 18px;
}
.ticker--logos .ticker__track {
  gap: clamp(28px, 4vw, 52px); align-items: center;
  animation-duration: 48s;
}
.ticker--logos .ticker__track img {
  height: clamp(24px, 3.4vw, 34px); width: auto; flex: 0 0 auto;
}
.ticker--logos:hover .ticker__track { animation-play-state: paused; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.about__headline {
  font-family: var(--f-display-ko); font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.15; letter-spacing: -0.03em;
}
.about__headline .lime { color: var(--lime); }
.about__body { color: var(--text-2); font-size: clamp(1.02rem, 2vw, 1.16rem); line-height: 1.75; max-width: 42ch; margin-top: 22px; }

/* 행사 소개 — 크게 노출하는 행사 일시 */
.about-date {
  border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(24px, 3.5vw, 40px);
  background: radial-gradient(140% 120% at 100% 0%, rgba(199,240,60,.08), transparent 55%), var(--panel);
}
.ad-kicker { font-family: var(--f-display-en); letter-spacing: .16em; color: var(--text-3); font-size: .78rem; }
.ad-lines { margin-top: 16px; display: grid; gap: 12px; }
.ad-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ad-date { font-family: var(--f-display-en); color: var(--lime); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -0.01em; transform: skewX(-6deg); transform-origin: left; }
.ad-wd { font-family: var(--f-display-en); color: var(--text); font-size: clamp(1rem, 2.4vw, 1.3rem); }
.ad-time { color: var(--text-2); font-weight: 700; font-size: clamp(.95rem, 2vw, 1.1rem); }
.ad-place { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--text-2); font-size: .96rem; }

.ree-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.ree-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  padding: 30px 26px 34px; border-radius: 6px; position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.ree-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.ree-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.ree-card:hover::before { transform: scaleX(1); }
.ree-card .k { font-family: var(--f-display-en); font-size: clamp(1.8rem, 4vw, 2.6rem); transform: skewX(-8deg); color: var(--lime); }
.ree-card .t { font-family: var(--f-display-ko); font-weight: 800; font-size: 1.24rem; margin-top: 12px; letter-spacing: -0.02em; }
.ree-card .c { color: var(--text-2); font-size: .96rem; margin-top: 10px; line-height: 1.6; }
.ree-card--link { display: flex; flex-direction: column; color: var(--text); }
.ree-card--link .ree-go { margin-top: auto; padding-top: 18px; font-family: var(--f-display-en); font-size: .82rem; letter-spacing: .06em; color: var(--lime); }

/* 홈 — 바로가기 티저 */
.home-teaser { padding-block: clamp(56px, 9vw, 110px); }
.home-teaser .kicker { margin-bottom: 4px; }
.home-teaser .ree-cards { margin-top: 26px; }

/* ---------- Program — DAY1 · DAY2 스프레드(한 화면에 나란히) ---------- */
#page-program .s-title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.day-blocks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px); align-items: stretch;   /* 두 박스 높이 동일 */
}
.day-block {
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: clamp(14px, 1.6vw, 20px); background: var(--panel);
  display: flex; flex-direction: column;
}
.day-block__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  border-bottom: 2px solid var(--lime); padding-bottom: 10px;
}
.db-no { font-family: var(--f-display-en); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--lime); transform: skewX(-6deg); transform-origin: left; }
.db-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.db-date { font-family: var(--f-display-en); letter-spacing: .04em; font-size: .9rem; }
.db-time { color: var(--text-2); font-size: .9rem; }
.db-focus {
  width: 100%; font-family: var(--f-body); font-weight: 700; color: var(--text-3);
  letter-spacing: .02em; font-size: .78rem;
}
.db-copy { color: var(--text-2); margin-top: 10px; font-size: .92rem; line-height: 1.55; }

/* 사전 참가신청 이벤트 콜아웃 — 프로그램 상단 전체폭 */
.signup-callout {
  margin: 20px 0 6px; border: 1px solid rgba(199,240,60,.35); border-radius: 10px;
  padding: 14px 18px; background: rgba(199,240,60,.07);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
}
.signup-callout .sc-badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display-ko); font-weight: 800; font-size: .86rem; line-height: 1;
  background: var(--lime); color: #0A0D07; padding: 9px 16px; border-radius: 999px;
  white-space: nowrap;
}
.signup-callout .sc-badge::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #0A0D07;
}
.signup-callout .sc-text { flex: 1 1 300px; color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.signup-callout .btn { min-height: 46px; padding: 12px 20px; }

.timeline { margin-top: 12px; }
.tl-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 4px 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.tl-item:last-child { border-bottom: none; }
.tl-time { font-family: var(--f-display-en); font-size: .92rem; color: var(--lime); white-space: nowrap; }
.tl-body .te { font-family: var(--f-body); font-weight: 800; font-size: .94rem; letter-spacing: .01em; }
.tl-body .tk { color: var(--text-2); font-size: .9rem; margin-top: 2px; line-height: 1.45; }

/* DAY1 강조 구간 — 단체 웜업 ~ 서바이벌 챌린지 시상식.
   한글 제목은 흰색 볼드로 세우고, 시간·영문 라벨은 형광 라임으로 칠한다(시간에는 빛 번짐 없음).
   DAY2 의 highlight 는 지금까지처럼 표시를 바꾸지 않는다. */
.day-block[data-day="01"] .tl-item.is-hl .tl-time {
  color: var(--lime-bright); font-weight: 700;
}
.day-block[data-day="01"] .tl-item.is-hl .te {
  color: var(--lime-bright); text-shadow: 0 0 10px rgba(216, 255, 77, .35);
}
.day-block[data-day="01"] .tl-item.is-hl .tk {
  color: var(--text); font-weight: 800;
  text-shadow: 0 0 12px rgba(216, 255, 77, .30);
}

.tl-img {
  width: 56px; height: 44px; border-radius: 5px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line-soft);
}
.tl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-img.is-missing { display: none; } /* 이미지가 준비되면 자동 표시 */

/* DAY 2 소그룹 헤더 — 액티브 라이브 / 액티브 나이트 */
.tl-group {
  margin: 18px 0 4px; font-family: var(--f-display-en); letter-spacing: .08em;
  font-size: .82rem; color: var(--lime); text-transform: uppercase;
}
.tl-group:first-child { margin-top: 4px; }

/* 상시운영 및 부대 프로그램 — DAY1/DAY2 공통, 표 형태(시간/장소/프로그램) */
.always-table { margin-top: 30px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.always-table__head {
  padding: 12px 18px; background: var(--bg-3); border-bottom: 1px solid var(--line);
  font-family: var(--f-display-ko); font-weight: 800; font-size: .96rem;
}
.always-row {
  display: grid; grid-template-columns: minmax(140px,.9fr) minmax(120px,.7fr) 2fr;
  gap: 10px 18px; padding: 12px 18px; border-top: 1px solid var(--line-soft);
}
.always-row:first-child { border-top: none; }
.at-time { font-family: var(--f-display-en); color: var(--lime); font-size: .86rem; }
.at-place { font-weight: 700; font-size: .92rem; }
.at-program { color: var(--text-2); font-size: .9rem; line-height: 1.5; }
@media (max-width: 640px) {
  .always-row { grid-template-columns: 1fr; gap: 4px; }
  .at-time { order: -1; }
}

.allday {
  margin-top: auto;      /* 두 박스 높이가 같아지도록 하단 정렬 */
  padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: grid; gap: 5px;
}
.allday__head { font-family: var(--f-body); font-weight: 700; letter-spacing: .04em; color: var(--text-3); font-size: .76rem; margin-bottom: 4px; }
.ad-row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.ad-row .k { color: var(--text-2); }
.ad-row .tm { color: var(--lime); font-weight: 700; white-space: nowrap; }

.note { color: var(--text-2); font-size: .92rem; margin-top: 34px; line-height: 1.7; max-width: 70ch; border-left: 2px solid var(--line); padding-left: 14px; }
/* 한 줄로 노출(넓은 화면). 좁으면 자연스럽게 줄바꿈 */
.note--wide { max-width: none; }
@media (min-width: 1080px) {
  .note--wide { white-space: nowrap; overflow-x: auto; }
}

/* ---------- Festival Map — 구역도와 존 안내를 같은 폭으로 ---------- */
/* 구역도 · 존 안내를 본문(헤더 CTA)과 같은 폭으로 꽉 채운다 */
.map-stage-wrap, .zone-grid { max-width: none; }
.map-stage {
  position: relative; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 10px;
  aspect-ratio: 16 / 9; overflow: hidden;
}
@media (max-width: 720px) { .map-stage { aspect-ratio: 4 / 5; } }
/* 최종 구역도 SVG — 전체가 잘리지 않게 contain */
.map-stage--image img { width: 100%; height: 100%; object-fit: contain; }
.map-stage__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 45%, #000 60%, transparent 100%);
}
.map-district {
  position: absolute; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.03); overflow: hidden;
}
.map-district[data-tone="teal"]  { background: rgba(63,224,236,.07);  border-color: rgba(63,224,236,.22); }
.map-district[data-tone="amber"] { background: rgba(255,160,60,.07);  border-color: rgba(255,160,60,.22); }
.map-district[data-tone="grey"]  { background: rgba(255,255,255,.04); }
.map-district span {
  position: absolute; left: 12px; top: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: .78rem; letter-spacing: .02em;
  color: var(--text-3);
}
.map-pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-1); border: 2px solid var(--lime);
  color: var(--lime); font-family: var(--f-display-en); font-size: .95rem;
  transition: transform .16s, background .16s, color .16s;
}
.map-pin:hover, .map-pin.is-active { background: var(--lime); color: #0A0D07; transform: translate(-50%,-50%) scale(1.18); z-index: 3; }
.map-pin::after {
  content: attr(data-name);
  position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%);
  font-family: var(--f-body); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  white-space: nowrap; color: var(--text-2); pointer-events: none;
  background: rgba(8,11,16,.72); padding: 2px 5px; border-radius: 3px;
}
.map-pin.is-active::after { color: var(--text); }

/* 존 설명 — 전부 노출 */
.zone-grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.zone-card {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 18px 18px; scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color .16s, background .16s;
}
.zone-card.is-active { border-color: var(--lime); background: rgba(199,240,60,.06); }
.zone-card .zc-n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--lime); color: var(--lime); font-family: var(--f-display-en); font-size: .9rem;
}
.zone-card .zc-title { font-family: var(--f-display-ko); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.zone-card .zc-key { font-family: var(--f-display-en); color: var(--text-3); font-size: .78rem; letter-spacing: .06em; margin-top: 2px; }
.zone-card .zc-desc { color: var(--text-2); font-size: .94rem; margin-top: 8px; line-height: 1.6; }

/* ---------- Main contents ---------- */
.content-block { padding-block: clamp(60px, 9vw, 120px); border-bottom: 1px solid var(--line-soft); position: relative; }
.content-block__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.content-block:nth-child(even) .content-block__media { order: 2; }
.cb-index { font-family: var(--f-display-en); color: var(--text-3); font-size: .9rem; letter-spacing: .2em; }
.cb-title {
  font-family: var(--f-display-en); text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 5.6rem); line-height: .96; transform: skewX(-5deg);
  margin-top: 10px;
}
.cb-title .out { color: #5c6a7d; }
.cb-copy { margin-top: 26px; display: grid; gap: 12px; }
.cb-copy p { color: var(--text-2); font-size: clamp(1.02rem, 2.1vw, 1.18rem); line-height: 1.7; }
.cb-copy p:first-child { color: var(--text); font-weight: 700; }

.content-block__media {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 320px;
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 40px;
}
.content-block__media { background: var(--bg-2); }
.cb-media__word {
  position: relative; z-index: 2;
  font-family: var(--f-display-en); font-size: clamp(3rem, 12vw, 7rem);
  color: rgba(255,255,255,.16);
  transform: skewX(-10deg); letter-spacing: -.02em; text-align: center;
}
.cb-media__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; z-index: 0; }
.cb-media__tint { position: absolute; inset: 0; z-index: 1; }
.cb-media--run   .cb-media__tint { background: linear-gradient(180deg, rgba(8,11,16,.15), rgba(8,11,16,.5)), radial-gradient(120% 120% at 20% 10%, rgba(199,240,60,.16), transparent 55%); }
.cb-media--eat   .cb-media__tint { background: linear-gradient(180deg, rgba(20,10,2,.2), rgba(8,11,16,.5)), radial-gradient(120% 120% at 80% 20%, rgba(255,150,40,.22), transparent 55%); }
.cb-media--enjoy .cb-media__tint { background: linear-gradient(180deg, rgba(8,11,16,.2), rgba(8,11,16,.5)), radial-gradient(120% 120% at 50% 90%, rgba(63,224,236,.2), transparent 55%); }
/* 이미지 없을 때 — 그래픽 패널로 자연스럽게 대체 */
.content-block__media.no-photo .cb-media__tint { opacity: 1; }
.content-block__media.no-photo .cb-media__word { color: rgba(255,255,255,.22); }
.cb-media--eat.no-photo   .cb-media__tint { background: linear-gradient(180deg, #1a1206, var(--bg-2)), radial-gradient(120% 120% at 80% 20%, rgba(255,150,40,.28), transparent 55%); }
.cb-media--enjoy.no-photo .cb-media__tint { background: linear-gradient(180deg, #0b1418, var(--bg-2)), radial-gradient(120% 120% at 50% 90%, rgba(63,224,236,.24), transparent 55%); }

/* ---------- Market (야시장 & 플리마켓) ---------- */
.sub-kicker {
  font-family: var(--f-display-en); letter-spacing: .14em; color: var(--text-3);
  font-size: .82rem; margin-bottom: 16px;
}

.mk-hours { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }
.mk-hour {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 18px; background: var(--panel);
}
.mk-hour .d { font-family: var(--f-display-en); font-size: .78rem; letter-spacing: .08em; color: var(--text-3); }
.mk-hour .t { font-weight: 700; color: var(--lime); }

.market-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.pillar-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 28px 26px 30px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.pillar-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.pc-tag {
  align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: var(--lime); border: 1px solid rgba(199,240,60,.4); border-radius: 3px; padding: 3px 9px;
}
.pc-key { font-family: var(--f-display-en); font-size: .84rem; letter-spacing: .1em; color: var(--text-3); margin-top: 16px; }
.pc-title { font-family: var(--f-display-ko); font-weight: 800; font-size: 1.32rem; margin-top: 6px; letter-spacing: -0.02em; }
.pc-copy { color: var(--text-2); font-size: .98rem; line-height: 1.6; margin-top: 12px; }

.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { border: 1px solid var(--line-soft); border-radius: 6px; padding: 22px 22px 24px; background: var(--bg-2); }
.cat-card .cc-key { font-family: var(--f-display-en); font-size: .8rem; letter-spacing: .12em; color: var(--lime); }
.cat-card .cc-title { font-family: var(--f-display-ko); font-weight: 800; font-size: 1.16rem; margin-top: 8px; letter-spacing: -0.02em; }
.cat-card .cc-copy { color: var(--text-2); font-size: .9rem; margin-top: 8px; line-height: 1.55; }

/* Seller open call */
.seller-call {
  margin-top: clamp(48px, 7vw, 84px);
  border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(199,240,60,.08), transparent 55%),
    var(--bg-2);
}
.seller-call .kicker { margin-bottom: 16px; }
.seller-call__h {
  font-family: var(--f-display-en); text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 4.2rem); line-height: .9; transform: skewX(-8deg);
}
.seller-call__h .out { color: #3b4756; }
.seller-call__sub { font-family: var(--f-display-ko); font-weight: 800; font-size: clamp(1.05rem, 2.6vw, 1.4rem); margin-top: 14px; color: var(--lime); letter-spacing: -0.02em; }

.seller-target { margin-top: 22px; display: grid; gap: 8px; }
.seller-target li {
  position: relative; padding-left: 20px; color: var(--text-2); font-size: .96rem;
}
.seller-target li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 3px;
  background: var(--lime); transform: skewX(-24deg);
}

.process-steps { margin: 12px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: ps; }
.process-steps li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px 10px 10px;
  font-size: .9rem; color: var(--text);
}
.process-steps .ps-n {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: #0A0D07; font-family: var(--f-display-en); font-size: .82rem;
}
.seller-call .rec-cards { margin-top: 10px; }
.seller-call .rec-notes { margin-top: 22px; }
.seller-call .btn { margin-top: 28px; }
.seller-call .rec-card { background: var(--bg-1); }

/* seller-apply 폼: 시안 강조(어린이 부문) */
#seller-apply .division-select button[data-seller-division="kids"][aria-pressed="true"] { border-color: var(--cyan); background: rgba(63,224,236,.08); }

/* ---------- Challenge ---------- */
.challenge { background: var(--bg-0); position: relative; overflow: hidden; }
.challenge__head { text-align: left; margin-bottom: 0; }

/* 페이지 상단 우측 여백에 현장 사진을 배치하는 공용 레이아웃 (마켓/챌린지 페이지) */
.head-media-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center; margin-bottom: 50px;
}
.head-media-grid__photo {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bg-3);
}
.head-media-grid__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .head-media-grid { grid-template-columns: 1fr; }
  .head-media-grid__photo { order: -1; aspect-ratio: 16 / 9; }
}
.challenge__head .kicker { margin-bottom: 14px; }
.challenge__badge {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  margin: 0 0 28px; position: relative; z-index: 2;
  font-family: var(--f-display-ko); font-weight: 700; font-size: .9rem;
  color: var(--lime); border: 1px solid rgba(199,240,60,.4);
  background: rgba(199,240,60,.08); padding: 8px 16px; border-radius: 999px;
}
.challenge__badge .cb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: cdPulse 1.5s ease-in-out infinite; }
.challenge__headline {
  font-family: var(--f-display-en); text-transform: uppercase;
  font-size: clamp(2.8rem, 11vw, 7.2rem); line-height: .9; transform: skewX(-8deg);
  padding-top: .06em;
}
.challenge__headline .out { -webkit-text-stroke: 2.5px var(--lime); color: transparent; display: block; }
.challenge__sub { font-family: var(--f-display-ko); font-weight: 900; font-size: clamp(1.2rem, 3.4vw, 1.9rem); margin-top: 18px; color: var(--lime); letter-spacing: -0.02em; }

/* 상단 사진과 부문 카드 사이의 경기 방식 안내 이미지 */
.ch-program {
  margin-bottom: 50px; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--bg-3);
}
.ch-program img { width: 100%; height: auto; display: block; }
.ch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.ch-card {
  --acc: var(--lime);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: clamp(26px, 3.5vw, 44px);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.ch-card[data-accent="cyan"] { --acc: var(--cyan); }
.ch-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--acc);
}
.ch-card__no { font-family: var(--f-display-en); font-size: 1rem; color: var(--text-3); letter-spacing: .1em; }
.ch-card__divrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ch-card__div {
  display: inline-block; align-self: flex-start;
  font-family: var(--f-display-ko); font-size: .9rem;
  background: var(--acc); color: #0A0D07; padding: 4px 12px; border-radius: 3px;
}
.ch-card__sched {
  display: inline-block; font-family: var(--f-display-ko); font-size: .9rem; color: var(--text);
  border: 1px solid var(--acc); padding: 3px 12px; border-radius: 3px;
}
.ch-card__name {
  font-family: var(--f-display-en); text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1; transform: skewX(-8deg);
  margin-top: 16px;
}
.ch-card__name .acc { color: var(--acc); }
.ch-card__tag { font-family: var(--f-display-ko); font-weight: 800; font-size: 1.16rem; margin-top: 14px; letter-spacing: -0.02em; }
.ch-card__fmt { color: var(--acc); font-family: var(--f-display-en); letter-spacing: .06em; margin-top: 22px; font-size: 1rem; }
.ch-card__fmtdesc { color: var(--text-2); font-size: .93rem; margin-top: 8px; }

.ch-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.ch-flow .step {
  border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px;
  font-family: var(--f-display-en); font-size: .82rem; letter-spacing: .04em; color: var(--text);
}
.ch-flow .arrow { color: var(--acc); font-weight: 800; }

.ch-copy { margin-top: 24px; display: grid; gap: 6px; color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.ch-copy strong { color: var(--text); }

.ch-prizes { margin-top: 24px; display: grid; gap: 8px; }
.ch-prize {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 12px 16px;
  background: var(--bg-1);
}
.ch-prize .r { font-family: var(--f-display-en); color: var(--acc); font-size: 1rem; }
.ch-prize .w { font-weight: 700; text-align: right; }
.ch-benefit { color: var(--text-2); font-size: .95rem; margin-top: 12px; margin-bottom: 24px; }
.ch-benefit b { color: var(--text); font-weight: 700; }
.ch-benefit__limit { display: inline-block; color: var(--acc); font-weight: 800; white-space: nowrap; }
.ch-card__period {
  font-family: var(--f-display-en); letter-spacing: .04em; font-size: .8rem;
  color: var(--text-3); margin: 0 0 10px;
}
.ch-card .btn { margin-top: auto; }  /* 카드 높이 달라도 CTA는 하단 정렬 */
.ch-card[data-accent="cyan"] .btn { --btn-bg: var(--cyan); }

/* ---------- Recruitment info ---------- */
.rec-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.rec-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 6px; padding: 28px 26px; }
.rec-card .ic { color: var(--lime); width: 34px; height: 34px; }
.rec-card .l { font-family: var(--f-display-ko); font-size: 1rem; margin-top: 16px; color: var(--text-2); }
.rec-card .v { font-weight: 700; font-size: 1.1rem; margin-top: 6px; line-height: 1.4; }

.benefit-panel {
  margin-top: 22px; background: var(--lime); color: #0A0D07;
  border-radius: 10px; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1fr minmax(220px, 400px); align-items: stretch;
}
.benefit-panel.no-img { grid-template-columns: 1fr; }
.benefit-panel__text { padding: clamp(26px, 4vw, 44px); }
.benefit-panel__img {
  position: relative; min-height: 200px; background: var(--lime);
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.benefit-panel__img img { position: static; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 8px; }
.benefit-panel .bt { font-family: var(--f-display-en); font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: .04em; transform: skewX(-6deg); }
.benefit-panel .bt--ko { font-family: var(--f-display-ko); font-weight: 900; transform: none; letter-spacing: -0.01em; }
.benefit-panel .bb { font-family: var(--f-display-ko); font-size: clamp(1.04rem, 2.4vw, 1.32rem); margin-top: 14px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.5; }
.benefit-panel .bl { display: inline-block; margin-top: 18px; background: #0A0D07; color: var(--lime); font-weight: 700; padding: 8px 16px; border-radius: 4px; font-size: .92rem; }

/* 랜덤뽑기 패널 — 다크 배경 변형 */
.benefit-panel--dark { background: var(--bg-1); color: var(--text); }
.benefit-panel--dark .bl { background: var(--lime); color: #0A0D07; }

.lucky-prizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lucky-prize {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  border: 1.5px solid rgba(199,240,60,.45); border-radius: 12px; padding: 14px;
  background: rgba(199,240,60,.08);
}
/* 포스터에서 잘라 온 경품 카드 — 그림 자체가 라임 카드라 테두리·여백을 벗긴다. */
.lucky-prize--img { border: 0; padding: 0; background: none; gap: 0; }
.lucky-prize--img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.lucky-prize__text { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.lucky-prize__text .w { font-weight: 800; color: var(--text); font-size: 1rem; line-height: 1.3; }
.lucky-prize__text .r {
  display: inline-block; background: var(--lime); color: #0A0D07;
  font-weight: 900; font-size: .8rem; padding: 3px 12px; border-radius: 20px; letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .lucky-prizes { grid-template-columns: repeat(2, 1fr); }
}

.rec-notes { margin-top: 26px; display: grid; gap: 8px; }
.rec-notes p { color: var(--text-2); font-size: .9rem; line-height: 1.7; }

/* ---------- Application ---------- */
.apply { background: var(--bg-1); }
.apply__status {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: .86rem; color: var(--text-2); margin-bottom: 24px;
}
.apply__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.apply__status[data-status="comingSoon"] .dot { background: var(--cyan); }
.apply__status[data-status="closed"] .dot { background: var(--text-3); }

.step-label { font-family: var(--f-display-en); letter-spacing: .12em; color: var(--text-3); font-size: .82rem; margin-bottom: 14px; }

.division-select { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 36px; }
.division-select button {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 24px; text-align: left; transition: .18s; color: var(--text);
}
.division-select button:hover { border-color: var(--lime); }
.division-select button[aria-pressed="true"] { border-color: var(--lime); background: rgba(199,240,60,.08); }
.division-select .dt { display: block; font-family: var(--f-display-en); font-size: 1.3rem; transform: skewX(-6deg); transform-origin: left; }
.division-select .dk { display: block; color: var(--text-2); font-size: .9rem; margin-top: 6px; }

.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 44px); }
.form-panel h3 { font-family: var(--f-display-ko); font-size: 1.5rem; margin-bottom: 8px; }
.form-panel .fp-hint { color: var(--text-2); font-size: .92rem; line-height: 1.6; margin-bottom: 26px; white-space: pre-line; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 700; color: var(--text-2); }
.field label .req { color: var(--lime); margin-left: 3px; }
.field .note-inline { font-size: .8rem; color: var(--text-3); font-weight: 400; }
.field input, .field select {
  background: var(--bg-0); border: 1px solid var(--line); border-radius: 5px;
  padding: 13px 14px; color: var(--text); font-family: inherit; font-size: 1rem;
  min-height: 48px; width: 100%;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus { border-color: var(--lime); outline: none; }
.field input[type="file"] { padding: 10px 12px; font-size: .88rem; line-height: 1.4; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--lime); color: var(--lime); }
.seller-guide { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg-1); }
.seller-guide p { font-size: .88rem; line-height: 1.7; }
.field.has-error input, .field.has-error select { border-color: #ff6b6b; }
.field .err { color: #ff8f8f; font-size: .8rem; display: none; }
.field.has-error .err { display: block; }

.crew-members { margin-top: 24px; }
.crew-members__head { font-family: var(--f-display-en); letter-spacing: .08em; font-size: .9rem; color: var(--lime); margin-bottom: 6px; }
.crew-members__hint { color: var(--text-2); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.crew-member {
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 18px; margin-bottom: 12px;
  background: var(--bg-1);
}
.crew-member .cm-title { font-weight: 700; font-size: .88rem; color: var(--text-2); margin-bottom: 12px; }
.crew-member .cm-title.captain { color: var(--lime); }

.consent { margin-top: 26px; display: grid; gap: 12px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lime); flex-shrink: 0; }

.form-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.form-msg { margin-top: 14px; font-size: .9rem; }
.form-msg.err { color: #ff8f8f; }

.apply-success { text-align: center; padding: clamp(30px, 6vw, 60px) 0; }
.apply-success .big {
  font-family: var(--f-display-en); font-size: clamp(2.8rem, 11vw, 6rem); color: var(--lime);
  transform: skewX(-6deg); line-height: .95;
}
.apply-success .sub { font-family: var(--f-display-ko); font-weight: 800; font-size: clamp(1.05rem, 2.6vw, 1.4rem); margin-top: 18px; letter-spacing: -0.01em; line-height: 1.5; }
.apply-success .body { color: var(--text-2); margin-top: 16px; line-height: 1.7; max-width: 40ch; margin-inline: auto; }
.apply-success .btn { margin-top: 30px; }

/* 완료 화면의 접수번호 — 접수조회의 열쇠라 눈에 띄게 둔다 */
.as-code {
  margin: 26px auto 0; padding: 18px 22px; max-width: 30ch;
  border: 1px solid var(--line, rgba(255,255,255,.18)); border-radius: 12px;
}
.as-code__label { display: block; font-size: .78rem; letter-spacing: .12em; color: var(--text-2); }
.as-code strong {
  display: block; margin-top: 6px;
  font-family: var(--f-display, inherit); font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: .18em; word-break: break-all;
}
.as-code p { margin-top: 10px; font-size: .82rem; color: var(--text-2); line-height: 1.6; }

/* ---------- Location ---------- */
.loc-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.map-placeholder {
  aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 8px;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px),
    var(--bg-3);
  display: grid; place-items: center; text-align: center; padding: 30px;
}
.map-placeholder .mp-pin { color: var(--lime); width: 40px; height: 40px; margin: 0 auto 14px; }
.map-placeholder .mp-t { font-family: var(--f-display-en); letter-spacing: .06em; }
.map-placeholder .mp-s { color: var(--text-2); font-size: .9rem; margin-top: 8px; }

.loc-info .place { font-family: var(--f-display-ko); font-size: clamp(1.4rem, 4vw, 2rem); }
.loc-info .addr { color: var(--text-2); margin-top: 10px; }
.loc-subhead {
  margin-top: 34px; font-family: var(--f-display-ko); font-weight: 800;
  font-size: 1.1rem; color: var(--lime);
}
.loc-block { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.loc-block h4 { font-family: var(--f-display-en); letter-spacing: .1em; font-size: .86rem; color: var(--text-3); margin-bottom: 10px; }
.loc-block .todo { color: var(--text-2); font-size: .94rem; }
.loc-block ul li { color: var(--text-2); padding: 6px 0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; background: transparent; border: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; text-align: left; font-size: clamp(1rem, 2.2vw, 1.15rem); font-weight: 700;
}
.faq-q .ico { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--lime); transition: transform .25s var(--ease); }
.faq-q .ico::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-q .ico::after { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.faq-q[aria-expanded="true"] .ico::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.faq-a__inner { padding: 4px 4px 26px; color: var(--text-2); font-size: 1rem; max-width: 66ch; line-height: 1.75; white-space: pre-line; }
.faq-a__inner.todo { color: var(--text-3); font-style: italic; }

/* ---------- Notice ---------- */
.notice-board { border-top: 2px solid var(--lime); }
.notice-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 8px; border-bottom: 1px solid var(--line-soft);
  width: 100%; background: transparent; border-left: none; border-right: none; border-top: none;
  color: var(--text); text-align: left; transition: background .15s;
}
.notice-row:hover { background: rgba(255,255,255,.02); }
.notice-row .nn { font-family: var(--f-body); font-weight: 800; font-size: .82rem; color: var(--text-3); letter-spacing: .02em; }
.notice-row .nn.pin { color: var(--lime); }
.notice-row .nt { font-weight: 700; font-size: 1.02rem; }
.notice-row .nd { color: var(--text-3); font-size: .86rem; white-space: nowrap; }
.notice-detail {
  height: 0; overflow: hidden; transition: height .3s var(--ease);
  border-bottom: 1px solid var(--line-soft);
}
.notice-detail__inner { padding: 22px 8px 30px; color: var(--text-2); }
.notice-detail__inner .placeholder {
  border: 1px dashed var(--line); border-radius: 6px; padding: 20px; color: var(--text-3);
  font-size: .9rem; line-height: 1.7;
}
/* 등록된 글이 한 건도 없을 때의 빈 게시판 */
.notice-empty {
  border: 1px dashed var(--line); border-radius: 6px; padding: 32px 20px; text-align: center;
  color: var(--text-3); font-size: .95rem;
}

/* ---------- Safety ---------- */
.safety { text-align: center; padding-block: clamp(36px, 5vw, 56px); border-block: 1px solid var(--line-soft); }
.safety__h { font-family: var(--f-display-en); font-size: clamp(1.6rem, 5.4vw, 2.7rem); letter-spacing: .02em; transform: skewX(-4deg); }
.safety__h .lime { color: var(--lime); }
.safety__b { color: var(--text-2); margin-top: 12px; font-size: .98rem; }

/* ---------- Footer ---------- */
/* 푸터 전체를 회색톤으로 — 지역 강조색(라임)을 중립 회색으로 치환 */
/* 헤더 높이(--header-h)의 대략 3배 수준으로 압축 — 로고 축소 + 여백/줄 수 축소 */
.site-footer {
  background: var(--bg-0); padding-block: clamp(18px, 2.4vw, 26px); border-top: 1px solid var(--line);
  --lime: #7f8791;
  color: var(--text-3);
}
.footer__title { line-height: 1; }
.footer__logo {
  max-width: min(200px, 55%); height: auto;
  filter: grayscale(1) brightness(.72) contrast(.92) opacity(.62);
}
.footer__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; color: var(--text-2); font-size: .84rem; }
.site-footer .footer__cols .fv { color: var(--text-2); font-weight: 600; }
.site-footer .footer__keywords { color: var(--text-3); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.footer__cols .fl { font-family: var(--f-display-en); letter-spacing: .1em; color: var(--text-3); font-size: .72rem; margin-bottom: 4px; }
.footer__cols .fv { font-weight: 700; font-size: .88rem; }
.footer__keywords { font-family: var(--f-display-en); letter-spacing: .16em; color: var(--lime); margin-top: 12px; font-size: .9rem; }
.footer__tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.footer__tags span { color: var(--text-3); font-size: .78rem; }
.footer__bottom { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; color: var(--text-3); font-size: .76rem; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(8,11,16,.97);
  border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform .3s var(--ease);
  display: none;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta { display: none; gap: 8px; }
.sticky-cta .btn { flex: 1; min-height: 48px; padding: 12px 10px; font-size: .9rem; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */

/* 메뉴 7개 + CTA 2개 + 로고 이미지 — 데스크톱 내비는 넉넉한 폭에서만 */
@media (max-width: 1280px) {
  .nav-desktop, .header-cta { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 1080px) {
  .market-pillars { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  /* 프로그램 스프레드 → 세로 스택 */
  .day-blocks { grid-template-columns: 1fr; gap: 22px; }
  .tl-item { grid-template-columns: 84px 1fr 64px; padding: 12px 0; }
  .tl-body .te { font-size: .96rem; }
  .tl-body .tk { font-size: .92rem; }
  .tl-img { width: 64px; height: 48px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .about__grid { grid-template-columns: 1fr; align-items: start; }
  .content-block__grid { grid-template-columns: 1fr; }
  .content-block:nth-child(even) .content-block__media { order: 0; }
  .loc-layout { grid-template-columns: 1fr; }
  .ch-cards { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
}

@media (max-width: 860px) {
  .hero__headline-row { align-items: flex-start; }
  .hero__count { width: 100%; max-width: 420px; }
  .hero__actions { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero__title .row--out { -webkit-text-stroke: 0; color: var(--lime); }
  .ree-cards { grid-template-columns: 1fr; }
  .rec-cards { grid-template-columns: 1fr; }
  .benefit-panel { grid-template-columns: 1fr; }
  .benefit-panel__img { min-height: 180px; order: -1; }  /* 이미지 위로 */
  .division-select { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .hero__meta { gap: 12px 24px; }
  .process-steps li { width: 100%; }
  .seller-target li { font-size: .92rem; }
  .zone-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  /* 2줄(단어 2개씩)로 묶었으니 고정 크기 대신 화면 폭에 맞춰 계속 커지게 둔다 */
  .hero__title { font-size: clamp(2.6rem, 16vw, 3.4rem); }
  .hc-cell { padding: 12px 2px 9px; }
  .hc-num { font-size: 1.7rem; }
}

/* ============================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .ticker__track { animation: none; }
}

/* ============================================================================
   백엔드 연동으로 생긴 조각들 (2026-09-13)
   ----------------------------------------------------------------------------
   기존 디자인 규칙은 건드리지 않고, 서버에서 내려오는 값이 그려지는 자리만 새로 더합니다.
   · .ds-state      — 부문 버튼의 접수 상태 칩 (GET /mapo/public/recruits)
   · .notice-body   — 서버 공지 본문. 운영자가 넣은 줄바꿈을 그대로 살립니다
   · .clip          — 첨부가 붙은 글 제목 앞의 클립 표시
   · .notice-files  — 공지 · FAQ 첨부 (이미지는 펼쳐 보여 주고, 그 밖은 내려받기 줄)
   ========================================================================== */

/* 부문 버튼의 접수 상태 칩 — 서버 판정을 그대로 옮긴다 */
.division-select .ds-state {
  display: inline-flex; align-items: center; margin-top: 16px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-0);
  font-family: var(--f-display-ko); font-weight: 700; font-size: .76rem;
  color: var(--text-3); letter-spacing: .01em;
}
.division-select .ds-state[data-state="open"] { color: var(--lime); border-color: rgba(199,240,60,.45); background: rgba(199,240,60,.08); }
.division-select .ds-state[data-state="comingSoon"] { color: var(--cyan); border-color: rgba(63,224,236,.4); background: rgba(63,224,236,.07); }
.division-select .ds-state[data-state="closed"] { color: var(--text-3); }

/* 서버에서 내려온 공지 본문 — 운영자가 넣은 줄바꿈을 그대로 살린다 */
.notice-detail__inner .notice-body { white-space: pre-wrap; line-height: 1.8; max-width: 70ch; }
.notice-row .clip, .faq-q .clip { color: var(--text-3); margin-right: 6px; font-size: .92rem; }

/* FAQ 답변에 붙은 첨부도 공지와 같은 모양으로 */
.faq-a__inner .notice-files { margin-top: 16px; }

/* 공지 첨부 — 포스터는 펼쳐 보여 주고, 그 밖의 파일은 내려받기 줄로 남긴다 */
.notice-files { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.notice-files__shot { display: block; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; max-width: 560px; }
.notice-files__shot:hover { border-color: var(--lime); }
.notice-files__img { display: block; width: 100%; height: auto; }
.notice-files__doc {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px;
  font-size: .9rem; color: var(--text-2); text-decoration: none;
}
.notice-files__doc:hover { border-color: var(--lime); color: var(--lime); }

/* 공지 팝업 — 운영 화면에서 "메인 팝업으로 띄우기" 를 켠 공지 */
body.npop-open { overflow: hidden; }
.npop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4,6,10,.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: npop-fade .2s var(--ease);
}
.npop__dialog {
  width: min(520px, 100%); max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--lime);
  border-radius: 12px; overflow: hidden; outline: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.npop__kicker {
  padding: 18px 22px 0; font-family: var(--f-display-en); letter-spacing: .12em;
  color: var(--lime); font-size: .92rem;
}
.npop__scroll { overflow-y: auto; padding: 8px 22px 20px; overscroll-behavior: contain; color-scheme: dark; scrollbar-color: var(--line) transparent; }
.npop__item + .npop__item { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.npop__date { color: var(--text-3); font-size: .8rem; }
.npop__title {
  margin-top: 6px; font-family: var(--f-display-ko); font-weight: 800;
  font-size: clamp(1.08rem, 3.6vw, 1.28rem); line-height: 1.45; word-break: keep-all;
}
.npop__body { margin-top: 14px; color: var(--text-2); font-size: .94rem; line-height: 1.75; white-space: pre-wrap; word-break: keep-all; }
.npop .notice-files__shot { max-width: 100%; }
.npop__foot { display: flex; border-top: 1px solid var(--line); }
.npop__foot button {
  flex: 1; padding: 15px 12px; background: transparent; border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: .9rem; color: var(--text-2);
}
.npop__foot button:hover { color: var(--lime); background: rgba(255,255,255,.03); }
.npop__foot .npop__close { border-left: 1px solid var(--line); color: var(--text); }
/* 배너 팝업 — 이미지 한 장, 누르면 이동 */
/* 화면이 낮으면 그림 비율(833×1000)을 지킨 채 폭을 줄여, 그림 속 X 자리와 닫기 버튼이 어긋나지 않게 한다 */
.npop__dialog--banner { width: min(460px, 100%, calc((88vh - 52px) * .833)); max-height: none; border-top: 1px solid var(--line); }
.npop__banner-wrap { position: relative; }
.npop__banner { display: block; line-height: 0; }
.npop__banner-x { position: absolute; top: 0; right: 0; width: 14%; aspect-ratio: 1; background: transparent; border: 0; cursor: pointer; }
.npop__banner-img { display: block; width: 100%; height: auto; }
/* 배너 여러 장 — PC 는 나란히, 좁은 화면은 맨 앞 한 장만(닫으면 다음 장) */
.npop--banners { gap: 16px; }
.npop--banners .npop__dialog--banner { flex: 0 1 auto; width: min(420px, calc((100vw - 48px) / 2), calc((88vh - 52px) * .833)); }
@media (max-width: 719px) {
  .npop--banners .npop__dialog--banner { width: min(460px, 100%, calc((88vh - 52px) * .833)); }
  .npop--banners .npop__dialog--banner ~ .npop__dialog--banner { display: none; }
}
@keyframes npop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .npop { animation: none; } }
