:root {
  --navy: #1A2A80;
  --indigo: #3B38A0;
  --mid: #7A85C1;
  --lavender: #B2B0E8;
  --soft: #EEEDF8;
  --white: #FFFFFF;
  --ink: #111827;
  --gray: #6B7280;
  --border: #E5E4F5;
  --shadow: rgba(26, 42, 128, .10);
  --red: #cf3333;
  --yellow: #ffdc18;
  --green: #7fff3e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ══════════════════════════
   HEADER
══════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  /* background: linear-gradient(135deg, var(--navy), var(--indigo)); */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-main {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}

.nav-link:hover {
  background: var(--soft);
  color: var(--navy);
}

.nav-cta {
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: .9;
  background: var(--soft) !important;
  color: var(--navy) !important;
}

/* ══════════════════════════
   HERO BANNER
══════════════════════════ */
.hero {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hero-slide {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, #1A2A80 0%, #3B38A0 45%, #7A85C1 100%);
  cursor: pointer;
  transition: transform .3s ease;
}

.hero-slide:hover {
  transform: scale(1.005);
}

/* 배경 장식 */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: ('/view/image/index/sannamul.jpg');
}

.hero-deco::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(178, 176, 232, .25) 0%, transparent 65%);
  right: -80px;
  top: -120px;
  border-radius: 50%;
}

.hero-deco::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
  left: 60px;
  bottom: -60px;
  border-radius: 50%;
}

/* 히어로 배너 이미지 */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  /* 텍스트 가독성을 위해 살짝 어둡게 */
  /* filter: brightness(.75); */
  transition: transform .6s ease, filter .3s ease;
}

.hero-slide:hover .hero-img {
  transform: scale(1.03);
  filter: brightness(.7);
}

.hero-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: .15;
  letter-spacing: 10px;
}

.hero-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 12px;
  height: 12px;
  background: #0cf561;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px 36px;
  background: linear-gradient(to top, rgba(15, 15, 50, .85) 0%, transparent 100%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lavender);
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 14px;
  text-shadow: 0 5px 10px rgb(0 0 0 / 80%), 0 2px 20px rgb(0 0 0 / 63%)
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 9px 20px;
  border-radius: 20px;
  text-decoration: none;
  margin-top: 18px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* 슬라이드 도트 */
.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
  transition: all .3s;
}

.dot.active {
  width: 20px;
  background: var(--white);
}

/* ══════════════════════════
   SECTION COMMON
══════════════════════════ */
.section {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.section-title span {
  color: var(--indigo);
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: all .2s;
  white-space: nowrap;
}

.see-all:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--soft);
}

/* ── 슬라이더 래퍼 ── */
.slider-wrap {
  position: relative;
  overflow: hidden;
  /* 옆 카드 안 보이게 */
  border-radius: 20px;
}

/* 카드들이 가로로 나란히 놓이는 트랙 */
.slider-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* 각 카드 — 슬라이더 너비에 꽉 차게 */
.slide-card {
  flex: 0 0 100%;
  /* 항상 100% 너비 */
  width: 100%;
  min-width: 0;
}

/* 카드 이미지 높이 통일 */
.slide-card .card-img {
  height: 260px;
  /* 모든 카드 동일 */
}

/* ── 이전/다음 버튼 ── */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 42, 128, .18);
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--white);
  box-shadow: 0 6px 20px rgba(26, 42, 128, .25);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn:disabled {
  opacity: .3;
  cursor: default;
  transform: translateY(-50%) scale(1);
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

/* ── 도트 인디케이터 ── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 4px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}

.slider-dot.active {
  width: 20px;
  background: linear-gradient(135deg, var(--navy), var(--indigo));
}

/* 모바일에서 버튼 작게 */
@media (max-width: 480px) {
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .slide-card .card-img {
    height: 200px;
  }
}

/* 카드 실제 이미지 */
.card-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 비율 유지하며 꽉 채우기 */
  object-position: center;
  /* 이미지 중앙 기준 */
  display: block;
  transition: transform .4s ease;
}

.festival-card:hover .card-img-photo {
  transform: scale(1.06);
  /* 호버 시 살짝 확대 */
}

/* ══════════════════════════
   FESTIVAL GRID
══════════════════════════ */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 첫 번째 카드 크게 */
.festival-grid .card-featured {
  grid-column: 1 / 3;
}

.festival-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px var(--shadow);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.festival-card .card-img {
  height: 300px;
}

.card-featured .card-img {
  height: 260px;
}

.img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  transition: transform .4s ease;
}

.festival-card:hover .img-bg {
  transform: scale(1.06);
}

/* 방문객 뱃지 */
.visitor-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow));
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 3px 10px rgba(26, 42, 128, .3);
}

/* 버스 예약 가능 뱃지 */
.bus-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .95);
  color: var(--indigo);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-region {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* 축제명 */
.card-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* 날짜, 주소 행 */
.card-info-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.2;
}

.card-info-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.card-featured .card-name {
  font-size: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.meta-chip {
  font-size: 11px;
  color: var(--gray);
  background: var(--soft);
  padding: 3px 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
}

.card-price span {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
}

.book-btn {
  font-size: 11px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  padding: 6px 13px;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity .2s;
}

.book-btn:hover {
  opacity: .85;
}

.book-btn.soldout {
  background: #E5E7EB;
  color: var(--gray);
  pointer-events: none;
}

/* ══════════════════════════
   NEXT MONTH — 리스트형
══════════════════════════ */
.festival-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-card {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.list-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px var(--shadow);
  border-color: var(--lavender);
}

.list-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-region {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--mid);
  margin-bottom: 3px;
}

.list-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.list-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
}

.coming-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--mid);
  background: var(--soft);
  padding: 3px 9px;
  border-radius: 10px;
}

/* ══════════════════════════
   STATS BAR
══════════════════════════ */
.stats-bar {
  max-width: 1100px;
  margin: 52px auto 0;
  padding: 0 24px;
}

.stats-inner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%);
  border-radius: 20px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: var(--lavender);
  font-weight: 500;
}

.stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .15);
}

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer {
  margin-top: 72px;
  background: var(--navy);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer-brand .logo-main {
  color: var(--white);
  font-size: 17px;
}

.footer-brand .logo-sub {
  color: var(--lavender);
}

.footer-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-top: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender);
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: gap;
  gap: 12px;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
}

.footer-sns {
  display: flex;
  gap: 10px;
}

.sns-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}

.sns-btn:hover {
  background: rgba(255, 255, 255, .16);
}

/* ══════════════════════════
   KAKAO 고정 버튼
══════════════════════════ */
.kakao-fixed {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FEE500;
  color: #3A1D1D;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: none;
  padding: 10px 16px 10px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  transition: transform .2s, box-shadow .2s;
}

.kakao-fixed:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.kakao-fixed span {
  font-size: 20px;
}

/* ══════════════════════════
   SCROLL ANIMATION
══════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 900px) {
  .festival-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .festival-grid .card-featured {
    grid-column: 1 / 3;
  }
}

@media (max-width: 640px) {
  .hero-slide {
    height: 320px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-content {
    padding: 28px 22px 24px;
  }

  .festival-grid {
    grid-template-columns: 1fr;
  }

  .festival-grid .card-featured {
    grid-column: 1;
  }

  .card-featured .card-img {
    height: 200px;
  }

  .stats-inner {
    flex-direction: column;
    gap: 28px;
  }

  .stat-div {
    width: 60px;
    height: 1px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 28px;
  }

  .header-nav .nav-link:not(.nav-cta) {
    display: none;
  }
}

/* 가고싶은 축제 */
.want-section {
  width: 100%;
  margin-top: 36px;
  padding: 0;
}

.want-wrap {
  background: linear-gradient(135deg, #1a2a80e3 0%, #6764b3 100%);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.want-label {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}

.want-label::after {
  content: ' 버스로 데려다 드릴게요 🚌';
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--lavender);
  display: block;
  margin-top: 4px;
}

.want-input-row {
  display: flex;
  gap: 8px;
}

.want-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: all .2s ease;
}

.want-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.want-input:focus {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .18);
}

.want-button {
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  color: var(--navy);
  font-size: 34px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.want-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.want-button:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.want-result {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  min-height: 18px;
  transition: all .2s;
}

.want-result.success {
  color: #86efac;
}

.want-result.error {
  color: #fca5a5;
}

@media (max-width: 480px) {
  .want-wrap {
    padding: 22px 18px;
  }

  .want-label {
    font-size: 15px;
  }
}

/* ── 랭킹 섹션 ── */
.lank-section {
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.lank-wrap {
  background: var(--white);
  border: 1.5px solid var(--border, #E5E4F5);
  overflow: hidden;
}

.lank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 14px;
  border-bottom: 1px solid var(--border, #E5E4F5);
}

.lank-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lank-icon {
  font-size: 22px;
  line-height: 1;
}

.lank-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #1A2A80);
}

.lank-sub {
  font-size: 11px;
  color: var(--mid, #7A85C1);
  margin-top: 2px;
}

/* ── 롤링 디스플레이 ── */
.lank-rolling-wrap {
  padding: 0;
  overflow: hidden;
}

.lank-rolling-inner {
  padding: 10px 20px 10px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.lank-rolling-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;

  /* 등장 애니메이션 */
  animation: rankSlideIn .4s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes rankSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lank-rolling-item.exit {
  animation: rankSlideOut .3s ease forwards;
}

@keyframes rankSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.lank-rolling-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy, #1A2A80), var(--indigo, #3B38A0));
  padding: 2px 6px;
  border-radius: 20px;
  flex-shrink: 0;
  min-width: 40px;
  text-align: center;
}

/* 1~3위 메달 색상 */
.lank-rolling-rank.gold {
  background: linear-gradient(135deg, #B8860B, #FFD700);
}

.lank-rolling-rank.silver {
  background: linear-gradient(135deg, #808080, #C0C0C0);
}

.lank-rolling-rank.bronze {
  background: linear-gradient(135deg, #8B4513, #CD853F);
}

.lank-rolling-name {
  flex: 1;
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lank-rolling-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo, #3B38A0);
  flex-shrink: 0;
}

/* ── 진행 바 ── */
.lank-progress-bg {
  height: 3px;
  background: var(--soft, #EEEDF8);
}

.lank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy, #1A2A80), var(--mid, #7A85C1));
  width: 0%;
  transition: width 1s linear;
}


/* 마감배지 */
.hero-overlay-urgency {
  display: inline-block;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 3px;
  width: fit-content;
  letter-spacing: 0.2px;
}

.hero-overlay-urgency2 {
  background: rgba(29, 201, 163, 0.85);
}