/* ==========================================================================
   시포레런앤핏 — 다크 테마 스타일시트
   ========================================================================== */

/* ---------- 웹폰트: Cafe24 PRO SLIM (전체 텍스트 공통, 눈누 제공 CDN) ---------- */
@font-face {
  font-family: "Cafe24ProSlim";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2511-1@1.0/Cafe24PROSlim-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24ProSlim";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2511-1@1.0/Cafe24PROSlim-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cafe24ProSlim";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2511-1@1.0/Cafe24PROSlim-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- 디자인 토큰 (색상/사이즈 변수) ---------- */
:root {
  /* 배경 */
  --bg: #0b1116; /* 페이지 기본 배경 */
  --bg-soft: #101a21; /* 섹션 교차 배경 */
  --surface: #16232c; /* 카드/박스 배경 */
  --gradient-hero: linear-gradient(
    135deg,
    #0f2027 0%,
    #203a43 50%,
    #2c5364 100%
  );

  /* 텍스트 */
  --text: #eef4f2; /* 기본 텍스트 */
  --text-muted: rgba(255, 255, 255, 0.65); /* 보조 텍스트 */
  --text-faint: rgba(255, 255, 255, 0.6); /* 흐린 텍스트 (푸터 등) */

  /* 포인트 컬러 (포스터 연노랑) */
  --accent: #eeeb9d;
  --accent-strong: #dfd94f;
  --gradient-accent: linear-gradient(90deg, #ffffff, #eeeb9d);

  /* 선/테두리 */
  --border: rgba(255, 255, 255, 0.08);

  /* 레이아웃 */
  --header-h: 64px;
  --tabs-h: 36px; /* 테마 비교 탭 바 높이 (테마 확정 시 제거) */
  --container: 1080px;
  --radius: 14px;
}

/* ---------- 리셋 & 베이스 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 앵커 클릭 시 부드러운 스크롤 */
  scroll-padding-top: var(--header-h); /* 고정 헤더 높이만큼 스크롤 보정 */
}

body {
  font-family:
    "Cafe24ProSlim",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Malgun Gothic",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 버튼도 본문 폰트 상속 (기본값은 OS 폰트) */
button {
  font-family: inherit;
}

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

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

ul {
  list-style: none;
}

/* 공통 컨테이너 (가운데 정렬 + 최대 폭) */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 헤더 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #0b1116; /* 단색 블랙 (배너와 분리) */
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/* 스크롤 시 하단 경계선 표시 (js에서 .scrolled 부여) */
.header.scrolled {
  border-bottom-color: var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 신청 버튼 3개 공간 확보 — 헤더만 본문 컨테이너보다 넓게 사용 */
.container.header__inner {
  max-width: 1560px;
}

.header__logo {
  display: flex;
  align-items: center;
}

/* 로고 이미지 (표시 높이 40px 고정, 폭은 비율대로) */
.header__logo img {
  height: 40px;
  width: auto;
}

/* 데스크톱 내비게이션 */
.nav__list {
  display: flex;
  gap: 24px;
}

.nav__link {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap; /* 메뉴명이 중간에 줄바꿈되지 않도록 */
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--accent);
}

/* 모바일 햄버거 버튼 (기본 숨김) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 헤더 우측 그룹 (신청 버튼 + 햄버거) */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 헤더 신청 버튼 (예스24 / 러너블 2개) */
.header__cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #0b1116;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(223, 217, 79, 0.3);
}

/* 러너블 접수 버튼 — 예스24(옐로)와 구분되는 화이트 계열 */
.header__cta--runable {
  background: #ffffff;
}

.header__cta--runable:hover {
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

/* 29CM 접수 버튼 — 29CM 브랜드 톤의 블랙 + 흰 테두리 */
.header__cta--cm29 {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.header__cta--cm29:hover {
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

/* 신청 버튼 3개 공간 확보 — 좁은 데스크톱에서 헤더 카운트다운 숨김 */
@media (max-width: 1400px) {
  .countdown--header {
    display: none;
  }
}

/* ---------- 카운트다운 (헤더 컴팩트 / 밴드 대형 공용) ---------- */
.countdown {
  display: flex;
  align-items: center;
  gap: 14px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.countdown__unit strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums; /* 숫자 폭 고정 (깜빡임 방지) */
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

/* 숫자 변경 시 슬라이드 시작 상태 (js에서 부여 후 제거 → 제자리로 복귀 애니메이션) */
.countdown__unit strong.cd-enter {
  transition: none;
  transform: translateY(55%);
  opacity: 0;
}

.countdown__unit small {
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* ---------- 카운트다운 오버레이 (배너 하단 카피 위 빈 영역에 떠 있는 필) ---------- */
.countdown-band {
  position: absolute;
  left: 50%;
  bottom: 10%; /* ← PC 카운트다운 위치 조정값 (배너 하단 카피와 겹치지 않는 선에서) */
  transform: translateX(-50%);
  z-index: 1;
  padding: 20px 52px;
  /* backdrop-filter는 일부 모바일 GPU에서 요소가 사라지는 버그가 있어 사용하지 않음 */
  background: rgba(11, 17, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.countdown-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.countdown-band__label {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.countdown--xl {
  gap: 28px;
}

.countdown--xl .countdown__unit strong {
  font-size: 2.5rem;
  color: var(--accent);
  animation: cdGlow 2.4s ease-in-out infinite; /* 상시 글로우 펄스 */
}

/* 밴드 숫자 글로우 펄스 (색 밝기 + 이중 그림자로 강조) */
@keyframes cdGlow {
  0%,
  100% {
    color: var(--accent);
    text-shadow: 0 0 6px rgba(238, 235, 157, 0.2);
  }
  50% {
    color: #fbf9d8;
    text-shadow:
      0 0 12px rgba(238, 235, 157, 0.95),
      0 0 36px rgba(223, 217, 79, 0.7);
  }
}

.countdown--xl .countdown__unit small {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-faint);
}

/* ---------- 테마 비교 탭 바 (다크/화이트 페이지 전환, 테마 확정 시 제거) ---------- */
.theme-tabs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--tabs-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.theme-tabs__btn {
  padding: 3px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 현재 보고 있는 테마 탭 강조 */
.theme-tabs__btn.is-active {
  background: var(--accent-strong);
  border-color: transparent;
  color: #0b1116;
  font-weight: 700;
}

/* ---------- 맨 위로 스크롤 버튼 (우하단 플로팅, js에서 .visible 토글) ---------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5); /* 테두리·화살표만 표시 (배경 없음) */
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- 참가신청 플로팅 버튼 그룹 (예스24 / 러너블, 톡상담 버튼 위) ---------- */
.float-apply-group {
  position: fixed;
  right: 6px;
  bottom: 146px; /* 톡상담 버튼 위 */
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    opacity 0.25s,
    visibility 0.25s;
  /* 맨 위에서는 숨김 (js에서 .visible 토글) */
  opacity: 0;
  visibility: hidden;
}

.float-apply-group.visible {
  opacity: 1;
  visibility: visible;
}

.float-apply {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fffbb0, #ffee3d);
  color: #0b1116;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(255, 238, 61, 0.55);
  transition: transform 0.2s;
  animation: applyPulse 2s ease-out infinite;
}

.float-apply:hover {
  transform: scale(1.08);
}

/* 러너블 접수 버튼 — 예스24(옐로)와 구분되는 화이트 계열 */
.float-apply--runable {
  background: linear-gradient(135deg, #ffffff, #dfe7e4);
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.4);
  animation-name: applyPulseAlt;
}

/* 29CM 접수 버튼 — 29CM 브랜드 톤의 블랙 + 흰 테두리 */
.float-apply--cm29 {
  background: linear-gradient(135deg, #2c2c2c, #0a0a0a);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  animation-name: applyPulseAlt;
}

/* 노란 링이 바깥으로 퍼지는 펄스 효과 */
@keyframes applyPulse {
  0% {
    box-shadow:
      0 8px 26px rgba(255, 238, 61, 0.55),
      0 0 0 0 rgba(255, 238, 61, 0.7);
  }
  70% {
    box-shadow:
      0 8px 26px rgba(255, 238, 61, 0.55),
      0 0 0 20px rgba(255, 238, 61, 0);
  }
  100% {
    box-shadow:
      0 8px 26px rgba(255, 238, 61, 0.55),
      0 0 0 0 rgba(255, 238, 61, 0);
  }
}

/* 러너블 버튼용 흰색 펄스 */
@keyframes applyPulseAlt {
  0% {
    box-shadow:
      0 8px 26px rgba(255, 255, 255, 0.4),
      0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  70% {
    box-shadow:
      0 8px 26px rgba(255, 255, 255, 0.4),
      0 0 0 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow:
      0 8px 26px rgba(255, 255, 255, 0.4),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ---------- 카카오톡 상담 플로팅 버튼 (참가신청 아래·맨위로 버튼 위) ---------- */
.float-kakao {
  position: fixed;
  right: 6px;
  bottom: 78px; /* 맨위로 버튼(24) 위, 참가신청 버튼 아래 */
  z-index: 90;
  display: block;
  line-height: 0;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.25s,
    visibility 0.25s;
  /* 맨 위에서는 숨김 (js에서 .visible 토글, 참가신청 버튼과 동일) */
  opacity: 0;
  visibility: hidden;
}

.float-kakao img {
  width: 120px; /* 208×96 이미지 축소 (높이 자동) */
  height: auto;
  display: block;
}

.float-kakao.visible {
  opacity: 1;
  visibility: visible;
}

.float-kakao:hover {
  transform: scale(1.06);
}

/* ---------- 히어로 (배너) ---------- */
.hero {
  margin-top: var(--header-h); /* 고정 헤더와 겹치지 않게 아래에서 시작 */
  /* 화면 높이에 딱 맞춤 (배너 2.13:1과 화면 비율 차이만큼 가장자리만 미세 크롭)
     --vh: js/main.js가 주입하는 실제 보이는 화면 높이 (모바일 주소창 대응) */
  height: calc(var(--vh, 100vh) - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg); /* 이미지 밖 여백은 페이지 배경과 동일 톤 */
  position: relative;
  overflow: hidden;
}

/* 배경 이미지 레이어 (PC: 가로형 배너 2400×1350 ≈ 1.78:1 / 모바일: 미디어쿼리에서 세로 포스터로 교체)
   cover + 하단 기준: 화면을 꽉 채우되 넓은 화면에서는 상단 하늘만 잘리고,
   하단 문구(날짜·장소)는 항상 보이도록 아래를 기준점으로 고정 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/main_visual.jpg") center bottom / cover no-repeat;
}

/* 텍스트 카피는 배너 이미지에 포함되어 있어 숨김 (배너 미사용 시 복구용으로 유지) */
.hero__inner {
  display: none;
  position: relative; /* 배경 레이어 위로 */
  padding: 120px 24px 80px;
}

/* 포스터 하단 일정 띠 (모바일 전용 — PC 배너에는 카피가 포함되어 있어 숨김) */
.hero__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1; /* 배경 레이어(::after) 위로 */
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #f6f5ec;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 등장 애니메이션: 요소별 시차 페이드업 */
.hero__badge,
.hero__title,
.hero__divider,
.hero__meta,
.hero__sub,
.hero__inner .btn {
  animation: heroFadeUp 0.9s ease-out both;
}

.hero__title {
  animation-delay: 0.15s;
}

.hero__divider {
  animation-delay: 0.35s;
}

.hero__meta {
  animation-delay: 0.5s;
}

.hero__sub {
  animation-delay: 0.65s;
}

.hero__inner .btn {
  animation-delay: 0.8s;
}

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

/* 상단 뱃지 (대회 연도/구분 등) */
.hero__badge {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* 대형 스택형 타이틀 */
.hero__title-line {
  display: block;
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 1px;
  color: #ffffff;
}

.hero__title-line--accent {
  color: var(--accent);
}

/* 타이틀 아래 구분선 */
.hero__divider {
  width: 72px;
  height: 2px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.7);
}

/* 일시·장소 (강조 라인) */
.hero__meta {
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

/* 슬로건 */
.hero__sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 44px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

/* 주요 버튼 (신청하기) */
.btn--primary {
  background: var(--accent-strong);
  color: #0b1116;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 217, 79, 0.3);
}

/* 보조 버튼 (외곽선) */
.btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn--outline:hover {
  background: rgba(238, 235, 157, 0.1);
}

/* 러너블 신청 버튼 (흰색, 헤더 러너블 버튼과 동일 톤) */
.btn--runable {
  background: #ffffff;
}

.btn--runable:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* 29CM 신청 버튼 (29CM 브랜드 톤의 블랙 + 흰 테두리) */
.btn--cm29 {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn--cm29:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

/* ---------- 섹션 공통 ---------- */
.section {
  padding: 100px 0;
}

/* 교차 배경으로 섹션 구분 */
.section--soft {
  background: var(--bg-soft);
}

/* 섹션 상단 소제목 라벨 (시안의 박스형 타이틀) */
.section__label {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 12px 32px;
  border: 2px solid var(--accent);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section__desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 56px;
}

/* 제목 아래 포인트 라인 */
.section__divider {
  width: 60px;
  height: 3px;
  margin: 20px auto 56px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(238, 235, 157, 0));
}

/* ---------- 행사 소개 ---------- */
.about__copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  line-height: 1.9;
  color: var(--text-muted);
  word-break: keep-all; /* 한글 단어 중간 줄바꿈 방지 */
}

.about__copy p + p {
  margin-top: 32px;
}

.about__copy strong {
  color: var(--accent);
  font-weight: 700;
}

/* 10K 일러스트 자리 (이미지 준비 전 임시 플레이스홀더) */
.about__visual {
  max-width: 720px;
  min-height: 260px;
  margin: 64px auto 0;
  border: 1px dashed rgba(238, 235, 157, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__visual-note {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-faint);
}

/* 모바일 전용 표시 요소 (구분자 등, PC에서는 숨김) */
.only-m {
  display: none;
}

/* 모바일에서만 적용되는 수동 줄바꿈 (PC에서는 숨김) */
.br-m {
  display: none;
}

/* PC에서만 적용되는 수동 줄바꿈 (모바일에서는 자연 줄바꿈 + only-m 표시) */
@media (max-width: 768px) {
  .br-pc {
    display: none;
  }

  .only-m {
    display: inline;
  }

  .br-m {
    display: inline;
  }
}

/* ---------- 작년 대회 영상 ---------- */
.video__frame {
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 정보 카드 그리드 (일정/장소/모집인원 등) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 235, 157, 0.4);
}

/* 카드 상단 라벨 (예: "일정") */
.info-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* 카드 본문 값 (예: 날짜) */
.info-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card__detail {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 신청 기간 카드 — 얼리/스탠다드 패스 2단 표기 */
.info-card__passes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.info-card__pass-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.info-card__pass .info-card__value {
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ---------- 대회 안내: 소제목 / 2단 박스 / 기프트 ---------- */
/* 소제목 (참가비/프로그램/참가자 기프트 — 시안의 밑줄형 라벨) */
.info-subtitle {
  width: fit-content;
  margin: 72px auto 28px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
}

/* 2단 박스 (참가비·프로그램) */
.info-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.info-duo__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.info-duo__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}

.info-duo__value {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
}

/* 프로그램 이용 안내 문구 */
.info-note {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 참가자 기프트 박스 */
.gift {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.gift__box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
}

/* RUN&FIT 한정 박스 강조 */
.gift__box--accent {
  border-color: rgba(238, 235, 157, 0.45);
}

.gift__target {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.gift__items {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
}

.gift__plus {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  margin: 14px 0;
}

/* 레이스 팩 구성 (이미지 + 상세 품목) */
.gift__pack {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 580px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  text-align: left;
}

.gift__pack img {
  width: 130px;
  flex-shrink: 0;
}

.gift__pack-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: keep-all; /* 한글 단어 중간에서 줄바꿈되지 않도록 */
}

.gift__pack-note strong {
  color: var(--accent);
}

/* 레이스 팩 강조 문구 (아넷사 선스크린 — 선착순 한정) */
.gift__hl {
  color: var(--accent);
  font-weight: 700;
}

/* 구디 백 일러스트 (RUN&FIT 한정 박스, 이미지만 가운데 배치) */
.gift__pack--goody {
  justify-content: center;
}

.gift__pack--goody img {
  width: 220px;
}

/* 추가 기프트 예고 박스 (점선) */
.gift__box--pending {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}

.gift__box--pending .gift__items {
  color: var(--text-muted);
}

/* ---------- 패키지 안내 ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

/* 패키지 카드 */
.package {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  word-break: keep-all; /* 한글 단어 중간 줄바꿈 방지 (카드 내 전체 상속) */
}

/* RUN&FIT 패키지 테두리 강조 */
.package--fit {
  border-color: rgba(238, 235, 157, 0.45);
}

/* 한정 판매 뱃지 */
.package__badge {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #0b1116;
  font-size: 0.85rem;
  font-weight: 700;
}

.package__name {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.package__price {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 18px;
}

.package__copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* 이미지 자리 플레이스홀더 (이미지 확보 시 img 태그로 교체) */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(238, 235, 157, 0.35);
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-faint);
}

/* 티켓형 (가로로 긴 비율) */
.img-slot--ticket {
  aspect-ratio: 3 / 1;
  margin-bottom: 20px;
}

/* 티셔츠형 */
.img-slot--shirt {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

/* 구성품 소형 */
.img-slot--item {
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}

/* 실제 이미지가 채워진 슬롯 (점선 테두리 제거 + 이미지 중앙 배치) */
.img-slot--filled {
  border: none;
  padding: 6%;
}

.img-slot--filled img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 티켓 이미지는 3:1 슬롯 대신 실물 비율(약 1.8:1) 그대로 크게 표시 */
.img-slot--ticket.img-slot--filled {
  aspect-ratio: auto;
}

.img-slot--ticket.img-slot--filled img {
  width: 82%;
  max-height: none;
}

/* 티셔츠 사이즈표 */
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.size-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 10px;
}

.size-table th,
.size-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.size-table thead th {
  color: var(--accent);
  font-weight: 700;
}

.size-table tbody td:first-child {
  color: var(--text-muted);
}

/* 구성품 그리드 */
.package__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

.package__item-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.package__item-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

/* 구디 백: 2열 전체 폭 차지 + 이미지는 다른 아이템과 같은 크기로 중앙 배치 */
.package__item--wide {
  grid-column: 1 / -1;
}

.package__item--wide .img-slot {
  max-width: 62%;
  margin-left: auto;
  margin-right: auto;
  /* 구디 백 일러스트는 가로형이라 정사각 슬롯 해제 (라벨과의 간격 축소) */
  aspect-ratio: auto;
  padding: 0;
}

/* 추가 기프트 예고 배지 */
.package__more {
  width: fit-content;
  margin: 28px auto 0;
  padding: 8px 20px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

/* 하단 안내 문구 */
.package__foot {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- 타임테이블 ---------- */
/* RUN / FIT 파트 제목 */
.timetable__heading {
  margin: 48px 0 18px;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
}

/* RUN 일정: 시간 칩 + 내용 박스 리스트 */
.tt-run {
  display: grid;
  gap: 10px;
}

.tt-run__row {
  display: flex;
  gap: 10px;
}

.tt-run__time {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0b1116;
  font-weight: 700;
  border-radius: 8px;
}

.tt-run__name {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
}

/* FIT 일정: 메인/서브 스테이지 표 */
.tt-fit {
  width: 100%;
  border-collapse: collapse;
}

.tt-fit th,
.tt-fit td {
  border: 1px solid #6f8086; /* 회색 — 초록/어두운 칸 모두에서 보이는 톤 */
  padding: 16px 10px;
  text-align: center;
  background: #223440; /* 본문 칸 배경 (페이지 배경보다 밝게) */
}

/* 스테이지 헤더·시간 칸 (시안 FIT 연녹색) */
.tt-fit thead th,
.tt-fit td.tt-fit__time {
  background: #b9dcb4;
  color: #0b1116;
  font-weight: 700;
}

/* 프로그램 부가 설명 (강사명 아래 줄로 표기) */
.tt-fit__note {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 힐링 요가 헤더 옆 요가쿨라 로고 */
.tt-fit__kula {
  display: inline-block;
  height: 46px;
  vertical-align: middle;
  margin-left: 10px;
}

/* 흥둥이 프로그램 'W. 아넷사' 로고 줄 */
.tt-fit__anessa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tt-fit__anessa img {
  height: 18px;
}

/* FIT 테이블 하단 안내 문구 (요가 매트 지참, 우측 정렬) */
.tt-fit__foot {
  margin-top: 16px;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- 코스 소개 ---------- */
/* 코스 지도 이미지 (원본 610px — 고해상 재출력 수급 시 max-width 확대) */
.course__map {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
}

/* 경로 안내 (START → 반환점 → FINISH 흐름) */
.course-route {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  font-weight: 600;
}

.course-route__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 단계 사이 화살표 */
.course-route__step:not(:last-child)::after {
  content: "→";
  margin-left: 16px;
  color: var(--accent);
  font-weight: 800;
}

/* START/FINISH 뱃지 */
.course-route__badge {
  padding: 3px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.course-route__badge--finish {
  background: var(--accent);
  color: #0b1116;
}

/* 회전 정보 (우회전 / U턴) */
.course-route__turn {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 하단 변경 안내 */
.course__note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- 강사 라인업 ---------- */
/* 스테이지 구분 제목 (MAIN / SUB) */
.lineup__stage {
  margin: 48px 0 8px;
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
}

/* 힐링 요가 헤더 옆 요가쿨라 로고 */
.lineup__kula {
  display: inline-block;
  height: 52px;
  vertical-align: middle;
  margin-left: 10px;
}

/* 힐링 요가 선착순 입장 운영제 리본 */
.lineup__ribbon {
  display: block;
  width: min(400px, 85%);
  margin: 0 auto 28px;
}

.lineup__stage-desc {
  margin-bottom: 28px;
  text-align: center;
  color: var(--text-muted);
}

/* 강사 카드 그리드 (스테이지별 3명) */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 강사 카드 */
.instructor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

/* 강사 사진 (낙서 장식 포함 투명 PNG — 잘리지 않게 contain) */
.instructor__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-bottom: 14px;
}

.instructor__name {
  font-size: 1.15rem;
  font-weight: 800;
}

.instructor__desc {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 하단 변동 안내 */
.lineup__note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- 찾아오시는 길 ---------- */
/* 약도 이미지 (원본 518px — 고해상 재출력 수급 시 max-width 확대) */
.location__map {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
}

/* 대중교통 안내 2단 박스 (지하철 / 버스) */
.location-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.location-guide__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.location-guide__title {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.location-guide__main {
  margin-bottom: 6px;
  font-weight: 700;
}

.location-guide__detail {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* 버스 노선 목록 (유형별) */
.location-guide__list {
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.location-guide__list strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

/* ---------- 유의사항 ---------- */
/* 접이식 안내 박스 (details/summary) */
.notice {
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  word-break: keep-all; /* 한글 단어 중간 줄바꿈 방지 (목록·표 전체 상속) */
}

/* 클릭 헤더 */
.notice__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

.notice__summary::-webkit-details-marker {
  display: none;
}

/* 접힘/펼침 상태 표시 (+/−) */
.notice__summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.notice[open] .notice__summary::after {
  content: "−";
}

.notice__body {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--border);
}

.notice__intro {
  margin-bottom: 16px;
  font-weight: 600;
}

/* 유의사항 목록 (대시 마커) */
.notice__list {
  display: grid;
  gap: 12px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.notice__list li {
  position: relative;
  padding-left: 14px;
}

.notice__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* 본문 내 소제목 (얼리패스/스탠다드 규정 등) */
.notice__subtitle {
  margin: 24px 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
}

/* 취소 수수료 표 */
.notice__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.notice__table th,
.notice__table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

.notice__table thead th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

/* 하단 법적 고지 */
.notice__legal {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- 참가 신청 ---------- */
/* 신청 핵심 정보 박스 (기간·가격·CTA) */
.apply-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* 신청 기간 뱃지 */
.apply-box__label {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #0b1116;
  font-size: 0.82rem;
  font-weight: 700;
}

.apply-box__period {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
}

.apply-box__meta {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 패키지 가격 요약 2단 */
.apply-box__prices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 32px;
}

.apply-box__price {
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.apply-box__price-name {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.apply-box__price-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

/* 신청 버튼: 카드 전체 폭 대형 강조 */
.apply-box .btn--primary {
  display: block;
  width: 100%;
  padding: 22px 24px;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

/* 버튼 아래 보조 안내 */
/* 신청 버튼 묶음 (예스24 / 러너블, 모바일에서 세로 쌓임) */
.apply-box__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.apply-box__desc {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
  word-break: keep-all; /* 한글 단어 중간 줄바꿈 방지 */
}

/* ---------- 주관·후원 (파트너 로고) ---------- */
.partners {
  text-align: center;
}

/* 엠블럼 밴드가 섹션 상단에 붙도록 상단 패딩 제거 */
.section--partners {
  padding-top: 0;
}

/* 시포레 WITH 엠블럼 밴드 (다크 테마는 페이지 배경과 동일 톤) */
.partners__band {
  background: #0f0f0d;
  padding: 56px 0;
  margin-bottom: 72px;
  text-align: center;
}

.partners__emblem {
  width: 140px;
  margin: 0 auto;
}

/* 주관/후원 구분 라벨 */
.partners__label {
  margin-bottom: 28px;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
}

/* 로고 가로 나열 */
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 56px;
  margin-bottom: 56px;
}

.partners__grid:last-child {
  margin-bottom: 0;
}

/* 검정 로고 원본을 다크 배경용으로 밝게 반전 */
.partners__grid img {
  height: 40px;
  width: auto;
  filter: invert(1);
}

/* 2단 구성 로고 (HLL — 서브 텍스트 포함이라 높이 여유) */
.partners__logo--tall {
  height: 56px !important;
}

/* 흰색 원본 로고 (뉴스킨·아데시)는 반전 제외 */
.partners__grid img.partners__logo--white {
  filter: none;
}

/* 가로로 긴 위드링크러브 로고 축소 */
.partners__grid img.partners__logo--wdl {
  height: 26px;
}

/* 아데시 로고 축소 */
.partners__grid img.partners__logo--adesii {
  height: 30px;
}

/* 후원 로고 첫째 줄 — 둘째 줄과의 간격 축소 */
.partners__grid--tight {
  margin-bottom: 28px;
}

/* ---------- 스크롤 등장 애니메이션 ---------- */
/* js의 IntersectionObserver가 .visible을 부여하면 페이드업 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 푸터 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text-faint);
}

/* ---------- 반응형 (모바일) ---------- */
@media (max-width: 768px) {
  /* 햄버거 버튼 표시 */
  .nav__toggle {
    display: block;
  }

  /* 메뉴를 헤더 아래 드롭다운으로 전환 (js에서 .open 토글) */
  .nav__list {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 17, 22, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav__list.open {
    display: flex;
  }

  .nav__link {
    display: block;
    padding: 16px 24px;
  }

  /* 모바일에서는 헤더 신청 버튼 숨김 (2개는 폭 부족 — 플로팅 버튼으로 대체) */
  .header__cta {
    display: none;
  }

  /* 참가신청 플로팅 버튼 축소 */
  .float-apply-group {
    bottom: 132px; /* 톡상담 버튼 위 */
    gap: 8px;
  }

  .float-apply {
    width: 74px;
    height: 74px;
    font-size: 0.9rem;
  }

  /* 톡상담 버튼 축소 (참가신청 아래) */
  .float-kakao {
    bottom: 76px;
  }

  .float-kakao img {
    width: 104px;
  }

  /* 헤더 카운트다운 숨김 (공간 부족 — 밴드에서 표시) */
  .countdown--header {
    display: none;
  }

  /* 카운트다운 오버레이: 모바일 축소 + 하단 일정 띠 위로 */
  .countdown-band {
    bottom: 54px; /* ← 모바일 카운트다운 위치 조정값 (일정 띠 높이 ~46px 위) */
    padding: 10px 20px;
    width: max-content;
  }

  .countdown-band__inner {
    gap: 14px;
  }

  .countdown-band__label {
    font-size: 0.95rem;
  }

  .countdown--xl {
    gap: 14px;
  }

  .countdown--xl .countdown__unit strong {
    font-size: 1.5rem;
  }

  /* 모바일 히어로: 세로 포스터로 교체 */
  .hero::before {
    background-image: url("../images/main_visual_m.jpg");
  }

  /* 하단 일정 띠: 모바일에서만 표시 */
  .hero__strip {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  /* 참가비·프로그램 2단 박스 → 1단 */
  .info-duo {
    grid-template-columns: 1fr;
  }

  /* 레이스 팩 구성: 이미지·설명 세로 쌓기 */
  .gift__pack {
    flex-direction: column;
    text-align: center;
  }

  /* 패키지 2단 → 1단 */
  .package-grid {
    grid-template-columns: 1fr;
  }

  /* 구디 백: 모바일에서는 폭이 좁아 크기 확대 */
  .package__item--wide .img-slot {
    max-width: 78%;
  }

  /* 타임테이블: 칩·표 축소, 부가 설명 줄바꿈 */
  .tt-run__time {
    flex-basis: 74px;
    font-size: 0.9rem;
  }

  .tt-run__name {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .tt-fit {
    font-size: 0.88rem;
  }

  .tt-fit th,
  .tt-fit td {
    padding: 12px 6px;
  }

  .tt-fit__note {
    display: block;
    margin: 2px 0 0;
  }

  /* FIT 테이블 하단 안내 문구 — 모바일은 가운데 정렬 */
  .tt-fit__foot {
    text-align: center;
  }

  /* 요가쿨라·아넷사 로고 축소 */
  .tt-fit__kula {
    height: 28px;
    margin-left: 6px;
  }

  .tt-fit__anessa img {
    height: 13px;
  }

  /* 유의사항 취소 수수료 표: 셀 여백·글자 축소로 공간 확보 */
  .notice__table {
    font-size: 0.85rem;
  }

  .notice__table th,
  .notice__table td {
    padding: 10px 8px;
  }

  /* 코스 경로: 세로 나열 + 아래 방향 화살표 */
  .course-route {
    flex-direction: column;
    gap: 8px;
  }

  .course-route__step {
    flex-wrap: wrap;
    justify-content: center;
  }

  .course-route__step:not(:last-child)::after {
    content: "↓";
    width: 100%;
    margin: 6px 0 0;
    text-align: center;
  }

  /* 강사 카드 3단 → 1단 */
  .lineup-grid {
    grid-template-columns: 1fr;
  }

  /* 요가쿨라 로고·리본 축소 */
  .lineup__kula {
    height: 38px;
    margin-left: 6px;
  }

  .lineup__ribbon {
    width: min(300px, 85%);
  }

  /* 대중교통 안내 2단 → 1단 */
  .location-guide {
    grid-template-columns: 1fr;
  }

  /* 참가 신청 박스 여백 축소 */
  .apply-box {
    padding: 36px 20px;
  }

  /* 파트너 로고: 2열 그리드 (주관 1줄, 후원 2×2) */
  .partners__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
    justify-items: center;
  }

  .partners__grid img {
    height: auto;
    max-height: 36px;
    max-width: 88%;
  }

  /* 축소 로고(위드링크러브·아데시): 모바일은 폭 기준 자동 축소로 복원 */
  .partners__grid img.partners__logo--wdl,
  .partners__grid img.partners__logo--adesii {
    height: auto;
  }

  .partners__grid img.partners__logo--wdl {
    max-height: 24px;
  }

  .partners__grid img.partners__logo--adesii {
    max-height: 28px;
  }

  .partners__logo--tall {
    height: auto !important;
    max-height: 54px;
  }
}

/* ==========================================================================
   팝업 레이어 (공지·이벤트 이미지 / 오늘 하루 열지 않기)
   위치·크기는 아래 4개 변수 숫자만 바꾸면 조정됨 (그누보드 좌표 입력 방식)
   ========================================================================== */
.popup {
  --popup-left: 100px; /* PC 좌측 좌표 */
  --popup-top: 100px; /* PC 상단 좌표 (헤더 아래) */
  --popup-w: 364px; /* 팝업 폭 (숫자만 바꾸면 크기 조정, 520px의 70%) */
  position: fixed;
  left: var(--popup-left);
  top: var(--popup-top);
  width: var(--popup-w);
  z-index: 200;
  background: #fff;
  border-radius: 8px;
  /* 세로가 짧은 화면에서 닫기 바가 잘리지 않도록 높이 제한 + 세로 스크롤 */
  max-height: calc(100vh - 24px);
  overflow: hidden auto;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

/* 숨김 상태 (JS가 hidden 속성으로 토글) */
.popup[hidden] {
  display: none;
}

/* 팝업 이미지 (495×700 비율 유지) */
.popup__img {
  display: block;
  width: 100%;
  height: auto;
}

/* 하단 바 (오늘 하루 열지 않기 + 닫기) */
.popup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.85rem;
}

.popup__today {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.popup__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
}

.popup__close:hover {
  color: var(--accent);
}

/* 모바일: 좌표 대신 화면 중앙 정렬, 폭 축소 */
@media (max-width: 768px) {
  .popup {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 440px);
  }
}
