
/* * 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 넓은 화면(PC)에서만 로고 → 메뉴 → 연락처 3열 그리드 적용 */
@media (min-width: 1024px) {
  .footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 로고 | 메뉴 | 연락처 */
    column-gap: 24px;
  }
}

/* 푸터: 각 섹션은 기본적으로 3열 그리드의 한 칸씩 차지 (로고 → 메뉴 → 연락처) */

.stats-bar-column {
    height: 0;
    transition: height 0.8s ease-out;
}

.stats-bar-column.is-active {
    height: var(--target-height, 0%);
}

/* 지역별 평균 오답률: 순위형 수평 막대 그래프 */
.stats-chart-body--ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px 4px;
}

.stats-hbar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-hbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.stats-hbar-label {
  color: #e5e7eb;
  font-weight: 500;
}

.stats-hbar-bar-wrap {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.stats-hbar-bar {
  --target-width: 0%;
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #f97373);
  transition: width 0.8s ease-out;
}

.stats-hbar-bar.is-active {
  width: var(--target-width, 0%);
}

.stats-hbar-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #e5e7eb;
}

.stats-hbar-main {
  font-weight: 600;
}

.stats-hbar-sub {
  font-size: 0.74rem;
  opacity: 0.75;
}

.stats-hbar-row.is-best-region .stats-hbar-bar {
  background: linear-gradient(90deg, #4ade80, #22c55e);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 8px 22px rgba(22, 163, 74, 0.45);
}

.stats-hbar-row.is-best-region .stats-hbar-label {
  color: #bbf7d0;
}

.stats-hbar-row.is-worst-region .stats-hbar-bar {
  background: linear-gradient(90deg, #fb7185, #f97373);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4), 0 8px 22px rgba(248, 113, 113, 0.45);
}

.stats-hbar-row.is-worst-region .stats-hbar-label {
  color: #fecaca;
}

.stats-bar.is-worst-waste .stats-bar-column {
  background: linear-gradient(180deg, #f97373, #b91c1c) !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6), 0 10px 28px rgba(248, 113, 113, 0.7);
  transform: translateY(-3px);
}

.stats-chart-axis-label {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* 분리배출 항목별 오답률 그래프: 막대마다 다른 색상 적용 */
[data-chart="waste-types"] .stats-bar:nth-child(1) .stats-bar-column {
    background: #f97373; /* 빨강 */
}
[data-chart="waste-types"] .stats-bar:nth-child(2) .stats-bar-column {
    background: #fb923c; /* 주황 */
}
[data-chart="waste-types"] .stats-bar:nth-child(3) .stats-bar-column {
    background: #facc15; /* 노랑 */
}
[data-chart="waste-types"] .stats-bar:nth-child(4) .stats-bar-column {
    background: #4ade80; /* 연두 */
}
[data-chart="waste-types"] .stats-bar:nth-child(5) .stats-bar-column {
    background: #60a5fa; /* 파랑 */
}
[data-chart="waste-types"] .stats-bar:nth-child(6) .stats-bar-column {
    background: #c4b5fd; /* 보라 */
}

:root {
    --primary: #2f855a; /* forest green */
    --primary-dark: #276749; /* deeper forest */
    --secondary: #4b5563; /* neutral gray */
    --dark: #0f172a;
    --light: #f7faf7;
    --accent: #d97706;
    --info: #0f766e;
    --soft-hero-bg: linear-gradient(135deg, #f0fff4 0%, #ecfeff 45%, #fef9c3 100%);
    --cta-start: #34d399;
    --cta-mid: #10b981;
    --cta-end: #0d9488;
    --cta-shadow: rgba(16, 185, 129, 0.35);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow를 숨기지 않고 기본 스크롤이 가능하도록 변경 */
    overflow: auto;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', Arial, sans-serif;
    background-color: #f5f5f7; /* Apple-like light gray */
    color: #111827;            /* 강한 본문 컬러 */
    font-size: 16px;           /* 기본 글자 크기 살짝 확대 */
    line-height: 1.7;          /* 줄 간격 넉넉하게 */
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 전체 페이지 배경은 깔끔한 흰/연회색만 사용 (추가 포인트 없음) */
body::before {
    content: none;
}

body.no-scroll {
    overflow: hidden;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 40%, #f9fafb 100%);
    position: relative;
}

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

li {
    list-style: none;
}

/* * 네비게이션 바 전체 (헤더) */
.navbar {
    width: 100%;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

/* * 네비게이션 바 내부 컨텐츠 (가운데 정렬) */
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-actions {
    margin-right: 40px;
}

/* * 1. 로고 이미지 스타일 */
.logo-link {
    display: flex;
    align-items: center;
    height: 100px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    margin-right: 30px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* * 2. 메인 메뉴 (게임 소개, 경쟁 순위) */
.nav-menu {
    display: flex;
    gap: 30px;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
}

.nav-menu li a {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    padding: 15px 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover {
    color: var(--primary);
}

.nav-menu li a:hover::after {
    width: 80%;
}

/* * 3. 로그인 / 회원가입 메뉴 */
.auth-menu {
    display: flex;
    gap: 16px;
    align-items: center;
}

#logged-out-menu,
#logged-in-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-menu a {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

/* (이하 Hero, Features, Leaderboard 등 중간 섹션은 이전과 동일) */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-login {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--primary);
}

.btn-login:hover {
    color: var(--primary-dark);
    background: rgba(22, 163, 74, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.25);
}

.btn-signup {
    background: linear-gradient(120deg, var(--cta-start), var(--cta-mid));
    border: 1px solid transparent;
    color: #fff;
}

.btn-signup:hover {
    background: linear-gradient(120deg, var(--cta-mid), var(--cta-end));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(244, 114, 182, 0.35);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 48px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
    gap: 48px;
    align-items: stretch;
}

.hero-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow span {
    font-size: 1.1rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 24px auto 0; /* 가운데 정렬 */
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: none;
    background: linear-gradient(120deg, var(--cta-start), var(--cta-mid), var(--cta-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-img {
    display: block;
    max-width: 320px; /* 제목 로고 크기 */
    width: 100%;
    height: auto;
    margin: 0 auto; /* 로고 이미지를 가운데 정렬 */
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px var(--primary), 0 0 40px var(--primary);
    }
}

.hero p {
    font-size: 1.2rem;  /* 너무 크지 않게 조정 */
    margin-bottom: 2rem;
    color: #111827;  /* 더 진한 본문 색 (검정에 가깝게) */
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center; /* 버튼도 가운데 정렬 */
    margin-top: 2rem;
}

.cta-buttons .btn-primary {
    padding: 14px 34px;
    font-size: 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(120deg, var(--cta-start), var(--cta-mid), var(--cta-end));
    border: none;
    color: #fff;
    box-shadow: 0 16px 30px var(--cta-shadow);
}

.cta-buttons .btn-primary::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.cta-buttons .btn-primary:hover {
    box-shadow: 0 20px 36px rgba(244, 114, 182, 0.45);
}

.cta-buttons .btn-primary:hover::after {
    transform: translateX(4px);
    opacity: 1;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.carousel {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 80px rgba(15, 118, 110, 0.18);
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.25), transparent 60%);
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    animation: carouselSlide 18s infinite;
}

.carousel-slide {
    flex: 0 0 33.3333%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.95), rgba(15, 23, 42, 0.7));
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 101, 52, 0.7));
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(120, 53, 15, 0.65));
}

.carousel-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.carousel-slide h3 {
    font-size: 1.8rem;
    margin: 12px 0;
}

.carousel-slide p {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.carousel-meters {
    display: flex;
    gap: 10px;
}

.carousel-meter {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.carousel-meter span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left;
    animation: meterFill 6s infinite;
}

.carousel-slide:nth-child(1) .carousel-meter span {
    background: #6ee7b7;
}
.carousel-slide:nth-child(2) .carousel-meter span {
    background: #bbf7d0;
    animation-delay: 6s;
}
.carousel-slide:nth-child(3) .carousel-meter span {
    background: #fde68a;
    animation-delay: 12s;
    margin-left: auto;
}

.carousel-caption {
    text-align: right;
    font-size: 0.95rem;
    color: var(--secondary);
    align-self: flex-end;
}

.game-intro {
    position: relative;
    padding: 72px 24px 96px;
    background: transparent;
    overflow: hidden;
}

.game-intro::after {
    content: none;
}

.intro-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 1;
}

.game-intro h2 {
    font-size: 2.4rem;
    margin-bottom: 8px;
    color: var(--dark);
}

@media (min-width: 769px) {
  /* 데스크톱에서는 "환경을 배우는 새로운 방식" 제목이 한 줄로 유지되도록 */
  .game-intro h2 {
    white-space: nowrap;
  }
}

.game-intro h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.8;
}
/* 게임 소개 제목/설명 좌우 배치 */
.intro-header {
    max-width: 1100px;
    margin: 0 auto 32px;
    display: flex;          /* 가로 정렬 핵심 */
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.intro-header-left,
.intro-header-right {
    flex: 1 1 0;           /* 좌우 1:1 비율 */
}

.game-intro p {
    color: #4b5563;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .intro-header {
        flex-direction: column;
        gap: 16px;
    }
}

.intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.intro-grid.intro-grid--expanded {
    grid-template-columns: 1fr;
}

.intro-grid.intro-grid--expanded .intro-card {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.99);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.intro-grid.intro-grid--expanded .intro-card.expanded {
    grid-column: 1 / -1;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.intro-card {
    background: #f4fbf7; /* 기본은 아주 옅은 민트 톤 */
    border-radius: 24px;
    padding: 32px 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.intro-card h3 {
    font-size: 1.45rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-card-icon {
font-size: 1.5rem;
}

.intro-card-body {
margin-top: 8px;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.4s ease, opacity 0.3s ease;
}

.intro-card.expanded .intro-card-body {
max-height: 480px; /* 충분히 큰 값 */
opacity: 1;
}

.intro-card p {
color: #111827;
}

.intro-card ul {
margin-left: 18px;
display: flex;
flex-direction: column;
gap: 8px;
color: #111827;
}

.intro-card li {
list-style: disc;
}

/* 테마별 카드 배경 */
.intro-card--behavior {
background: linear-gradient(145deg, rgba(34, 197, 94, 0.16), rgba(187, 247, 208, 0.85));
}
.intro-card--behavior::before {
background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.45), transparent 60%);
}

.intro-card--data {
background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(191, 219, 254, 0.9));
}
.intro-card--data::before {
background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.45), transparent 55%);
}

.intro-card--gameplay {
background: linear-gradient(145deg, rgba(244, 114, 182, 0.18), rgba(254, 205, 211, 0.9));
}
.intro-card--gameplay::before {
background: radial-gradient(circle at bottom, rgba(244, 114, 182, 0.5), transparent 60%);
}

.intro-footnote {
margin-top: auto;
padding: 16px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.7);
color: #0f172a;
font-weight: 600;
line-height: 1.5;
}

@media (min-width: 769px) {
  .intro-card.expanded {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr);
      align-items: flex-start;
      column-gap: 32px;
  }

  .intro-card.expanded h3 {
      align-self: flex-start;
  }

  .intro-card.expanded .intro-card-body {
      margin-top: 0;
  }
}

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

.intro-card {
padding: 24px 20px;
}

.intro-card ul {
display: none; /* 모바일에서는 요약 문장만 보여주기 */
}

/* 모바일에서는 확장 상태여도 카드 1개씩 세로로 보이게 유지 */
.intro-grid.intro-grid--expanded .intro-card {
opacity: 1;
pointer-events: auto;
transform: none;
}

.intro-card.expanded {
display: block;
}
}

.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
padding: 80px 20px;
max-width: 1200px;
margin: 0 auto;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #DDDDDD;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--secondary);
}

.leaderboard {
max-width: 1200px;
width: 92vw;
margin: 40px auto 60px;
padding: 40px 20px 20px;
}

.leaderboard h2 {
font-size: 2.4rem;
margin-bottom: 1.5rem;
color: var(--dark);
position: relative;
display: inline-block;
letter-spacing: 0.06em;
text-transform: uppercase;
}

.leaderboard h2::after {
content: '';
position: absolute;
width: 70%;
height: 3px;
background: linear-gradient(90deg, var(--primary), var(--accent));
bottom: -10px;
left: 15%;
border-radius: 999px;
}

.leaderboard-list {
background: #020617; /* 더 어두운 배경으로, 텍스트 대비 강화 */
border-radius: 16px;
padding: 20px 20px 16px;
margin-top: 2rem;
border: 1px solid #1f2937;
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
min-height: 260px;
display: flex;
flex-direction: column;
gap: 6px;
overflow: hidden;
}

.loading {
color: #e5edff;
}

.leaderboard-header,
.leaderboard-entry {
    display: grid;
    grid-template-columns: 0.6fr 2.1fr 1.1fr 1fr 1.8fr; /* 순위 | 닉네임 | 점수 | 시도 | 기록 시각 */
    align-items: center;
    padding: 10px 18px;
    column-gap: 20px; /* 컬럼 사이 여백을 넉넉하게 */
}

.leaderboard-header {
position: sticky;
top: 0;
z-index: 1;
background: linear-gradient(120deg, rgba(59,130,246,0.14), rgba(16,185,129,0.18));
color: #e5e7eb;
font-size: 0.9rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
backdrop-filter: blur(6px);
}

.leaderboard-header span {
  white-space: nowrap;      /* 헤더 텍스트 줄바꿈 방지 */
  word-break: keep-all;
}

.leaderboard-header span:nth-child(1) { text-align: right; padding-right: 4px; } /* 순위(숫자) */
.leaderboard-header span:nth-child(2) { text-align: left; padding-left: 8px; }  /* 닉네임 - 순위와 조금 더 띄움 */
.leaderboard-header span:nth-child(3) { text-align: right; padding-right: 4px; } /* 점수 */
.leaderboard-header span:nth-child(4) { text-align: right; padding-right: 4px; } /* 시도 */
.leaderboard-header span:nth-child(5) { text-align: right; padding-right: 24px; }/* 기록 시각 */

.leaderboard-entry {
  background:
    radial-gradient(circle at top left, rgba(34,197,94,0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15,23,42,0.95), #020617 70%);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.leaderboard-entry + .leaderboard-entry {
margin-top: 4px;
}

.leaderboard-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.7);
    border-color: rgba(129, 230, 217, 0.8);
}

/* 새로 갱신된 랭킹 항목에 대한 하이라이트 효과 */
.leaderboard-entry.is-new {
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
    border-color: rgba(250, 204, 21, 0.9);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

/* 1등이 바뀐 경우 살짝 튀어오르는 애니메이션 */
.leaderboard-entry.top-changed {
    animation: leaderboardBounce 0.6s ease-out;
}

@keyframes leaderboardBounce {
    0% { transform: translateY(-4px) scale(1.02); }
    40% { transform: translateY(-8px) scale(1.04); }
    70% { transform: translateY(-2px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}

.leaderboard-entry.gold {
background: linear-gradient(135deg, #facc15, #f97316);
color: #1f2933;
}

.leaderboard-entry.silver {
background: linear-gradient(135deg, #e5e7eb, #9ca3af);
color: #111827;
}

.leaderboard-entry.bronze {
background: linear-gradient(135deg, #f97316, #92400e);
color: #111827;
}

.leaderboard-entry.gold .score,
.leaderboard-entry.silver .score,
.leaderboard-entry.bronze .score {
color: #111827;
}

.category {
font-weight: 700;
}

.rank {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
font-weight: 800;
font-size: 1.1rem;
}

.trophy {
filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.7));
}

.nickname {
 font-weight: 700;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 text-align: left;
 padding-left: 8px; /* 순위와 충분한 간격 확보 */
}

.mistakes {
text-align: center;
font-variant-numeric: tabular-nums;
opacity: 0.88;
}

.score {
  text-align: right;
  padding-right: 8px; /* 너무 바깥으로 붙지 않도록 약간 안쪽으로 */
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fbbf24;
  font-size: 1.05rem;
}

.plays,
.time {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  text-align: right;
}

/* 모바일 뷰: 기록 시각 컬럼 제거 및 한 줄 표기 유지 */
@media (max-width: 640px) {
  .leaderboard-header,
  .leaderboard-entry {
    grid-template-columns: 1fr 1.6fr 1fr; /* 순위 | 닉네임 | 점수 (균형 비율) */
  }

  /* 모바일에서는 시도/기록 시각 컬럼과 값 숨김 */
  .leaderboard-header span:nth-child(4),
  .leaderboard-header span:nth-child(5),
  .leaderboard-entry .plays,
  .leaderboard-entry .time {
    display: none;
  }

  /* 모바일 정렬: 순위는 왼쪽, 닉네임은 가운데, 점수는 오른쪽 */
  .leaderboard-entry .rank {
    justify-content: flex-start;
  }

  .leaderboard-entry .nickname {
    text-align: center;
    white-space: nowrap;      /* 한 줄 고정 (박준서, 성예나 등) */
    overflow: hidden;
    text-overflow: ellipsis;  /* 너무 길면 ... 처리 */
  }

  .leaderboard-entry .score {
    text-align: right;
  }
}

.leaderboard-entry.is-current-user {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(6, 78, 59, 0.9));
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.9), 0 16px 36px rgba(45, 212, 191, 0.7);
}

.leaderboard-meta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-meta-text {
  max-width: 70%;
}

.leaderboard-meta-updated {
  text-align: right;
}

/* * ======================================== */
.site-footer {
    /* --- 변경: 한 톤 밝은 회색으로 변경 --- */
    background-color: #FFFFFF; 
    color: #111827;
    /* --- 변경: 상하 패딩 줄여서 높이 낮춤 --- */
    padding: 15px 0;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid #e5e7eb;
}

/* 기본: 모바일/태블릿에서는 플렉스 레이아웃으로 위에서 아래로 자연스럽게 랩 */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    padding: 0 20px;
    margin-bottom: 15px;
}

.footer-section h3, 
.footer-section h4 {
    color: #111827;
    /* --- 변경: 제목 하단 마진/패딩 줄임 --- */
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    /* --- 변경: 링크 색상과 통일 --- */
    background: linear-gradient(to bottom, #FFFFFF 95%, #F0F0F0 100%);
}

.footer-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    /* --- 변경: 링크 글씨를 조금 더 밝게 --- */
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    /* --- 변경: 호버 색상도 한 톤 밝게 --- */
    color: var(--primary-dark);
}

.social-links {
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    margin-right: 15px;
    font-size: 20px;
    color: #ecf0f1;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    /* --- 변경: 호버 색상 통일 --- */
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    /* --- 변경: 상단 패딩/마진 줄임 --- */
    padding-top: 15px;
    /* --- 변경: 배경색보다 살짝 밝은 테두리 --- */
    border-top: 1px solid rgba(15, 118, 110, 0.3); 
    margin-top: 15px;
    font-size: 14px;
    color: #95a5a6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    .nav-menu, .auth-menu {
        display: none;
    }

    /* 모바일: 1행 로고(전체폭), 2행 메뉴/연락처 나란히 */
    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2열 그리드 */
        column-gap: 16px;
        row-gap: 8px;
        justify-items: center;
    }

    .footer-section {
        text-align: center;
    }

    /* 첫 번째 섹션(로고)을 1행 전체 폭으로 */
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        text-align: center;
    }
    .cta-buttons .btn {
        width: 80%;
        margin-bottom: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-left .cta-buttons {
        justify-content: flex-start;
    }

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

    .features {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

/* 매우 작은 화면 (예: 모바일 360~414px) 최적화 */
@media (max-width: 480px) {
  body {
    padding-top: 68px; /* 모바일에서 헤더와 본문 사이 간격을 조금 줄임 */
  }

  .navbar {
    padding: 4px 0; /* 상단 바 높이를 살짝 줄여 더 컴팩트하게 */
  }
  .navbar-container {
    padding: 0 12px;
  }

  .nav-actions {
    margin-right: 0;
    flex: 1 0 auto;
    display: flex;
    justify-content: flex-end; /* 로고와 반대쪽(오른쪽) 끝으로 버튼 정렬 */
  }

  .logo-link {
    height: 56px;
    padding: 4px 4px;
    margin-right: 0;
  }

  .logo-img {
    max-width: 150px; /* 상단 바 안에서는 더 작은 로고 */
  }

  .nav-actions .btn.btn-primary {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 999px;
  }

  .hero {
    padding: 72px 16px 24px; /* 네비게이션과 더 가깝게, 전체 높이 줄이기 */
  }

  .hero-title-img {
    max-width: 260px;
  }

  .hero p {
    font-size: 1rem;
    text-align: center; /* 모바일에서 본문 문구 가운데 정렬 */
  }

  .hero-left {
    align-items: center;
  }

  .hero-content {
    margin: 16px 0 0;
    text-align: center;
  }

  /* 모바일에서는 오른쪽 캐러셀 카드(홍보 슬라이드)를 숨기고
     상단 로고/문구/버튼과 바로 이어서 게임 소개 섹션이 나오도록 */
  .hero-right {
    display: none;
  }

  .cta-buttons {
    flex-direction: row;           /* 버튼을 가로로 */
    flex-wrap: wrap;              /* 너무 좁으면 다음 줄로 자연스럽게 내려가도록 */
    align-items: center;
    justify-content: center;      /* 가운데 정렬 */
    gap: 8px;
  }

  .cta-buttons .btn {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .leaderboard {
    width: 100%;
    margin: 24px auto 40px;
    padding: 24px 12px 16px;
  }

  .leaderboard-header,
  .leaderboard-entry {
    grid-template-columns: 1.6fr 1fr 1.7fr 1fr 1.1fr;
    padding: 8px 8px;
    column-gap: 8px;
  }

  .leaderboard-entry {
    font-size: 0.85rem;
  }

  #ranking-section,
  #region-stats-section {
    margin: 32px auto;
    padding: 24px 16px;
    border-radius: 20px;
  }

  .stats-charts {
    grid-template-columns: 1fr;
  }
}

/* 애니메이션 */

/* Hero 오른쪽 카드 자동 슬라이드 */
@keyframes carouselSlide {
  0%,
  15% {
    transform: translateX(0);            /* 1번 카드 */
  }
  33%,
  48% {
    transform: translateX(-33.3333%);    /* 2번 카드 */
  }
  66%,
  81% {
    transform: translateX(-66.6667%);    /* 3번 카드 */
  }
  100% {
    transform: translateX(0);            /* 다시 1번으로 */
  }
}

/* 하단 게이지(초록 바) 채워지는 애니메이션 */
@keyframes meterFill {
  0% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.feature-card {
    animation: float 6s ease-in-out infinite;
}

.feature-card:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) {
    animation-delay: 1s;
}

/* 페이지의 나머지 컨텐츠 (예시) */
.content-wrapper {
    padding: 20px; 
    max-width: 1200px; 
    margin: 0 auto;
    flex: 1;
}


/* ========= 브랜드 컬러 ========= */
:root{
  --brand-50:  #ecfdf5;  /* very light mint */
  --brand-100: #d1fae5;  /* light border mint */
  --brand-400: #34d399;  /* button base green */
  --brand-500: #10b981;  /* button hover green */
  --brand-700: #047857;  /* strong focus green */
  --footer-bg: linear-gradient(180deg, #ffffff 0%, #ffffff 100%); /* light footer */
}

/* ========= 카테고리 섹션 ========= */
.section--categories{
  padding: 56px 20px;
  background: #f8fafc;
}
.section--categories .sec-title{
  text-align:center; margin:0 0 28px; font-weight:800; font-size:1.8rem; color:#111827;
}
.categories{
  display:grid; gap:16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px; margin:0 auto;
}
.category-card{
  border-radius:14px; background:#fff; padding:20px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  border:1px solid #e5e7eb;
}
.category-card .tag{display:inline-block; font-weight:800; margin-bottom:10px;}
.category-card p{margin:8px 0 0; color:#374151; line-height:1.55}
.tag--plastic{color:#2d77ff}
.tag--paper{color:#8a4f2b}
.tag--metal{color:#ffbf00}

/* ========= 통일된 푸터 ========= */
.site-footer{
  background: var(--footer-bg);
  color: var(--dark);
  border-top: 1px solid #e5e7eb;
}
.site-footer a{ color:var(--primary); }
.site-footer h3, .site-footer h4{ color:#111827; }
.footer-bottom{
  border-top: 1px solid #e5e7eb;
  color:#6b7280;
}

/* 기존 버튼/링크가 어두운 배경에서도 잘 보이도록 */
.btn-primary{
  background: linear-gradient(120deg, var(--cta-start), var(--cta-mid));
  border: none;
  color:#fff;
}
.btn-primary:hover{
  background: linear-gradient(120deg, var(--cta-mid), var(--cta-end));
}
/* 푸터 안에 있는 로고 이미지만 조금 작게 */
.site-footer .footer-section .logo-img {
    max-width: 220px;   /* 원하는 크기: 숫자만 조절하면 됨 */
    height: auto;
}
  /* 랭킹/통계 섹션 공통 카드 스타일 */
  #ranking-section,
  #region-stats-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 32px 40px;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    color: #111827;
    position: relative;  /* 카드 기준으로 블러를 깔 수 있도록 */
    overflow: visible;
  }

  /* 통합 랭킹 카드 왼쪽 아래쪽에서 퍼지는 초록 블러 */
  #ranking-section::before {
    content: none;
  }

  /* 지역별 통계 카드 오른쪽 아래쪽에서 퍼지는 초록 블러 */
  #region-stats-section::before {
    content: none;
  }

  #ranking-section h2,
  #region-stats-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    text-align: left;
  }

  /* 랭킹 섹션 내부 리스트 여백 정리 */
  #ranking-section .leaderboard-list {
    margin-top: 16px;
  }

  /* 지역별 통계 컨트롤/표 정리 */
  .stats-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: black;
  }

  .stats-controls select {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.7);
    color: #e2f3ff;
  }

  .stats-summary {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 16px;
  }

  .stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    border-radius: 16px;
    overflow: hidden;
    /* 캡스톤 데모에서는 상세 테이블은 사용하지 않으므로 화면에서는 숨김 */
    display: none;
  }

  .stats-table th,
  .stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  }

  .stats-table th {
    text-align: left;
    font-weight: 600;
    color: #111827;
  }

  /* 지역별 통계 그래프 카드 레이아웃 */
  .stats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
  }

  .stats-chart-card {
    background: #020617;
    border-radius: 20px;
    padding: 18px 20px 16px;
    color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    border: 1px solid #111827;
  }

  .stats-chart-header h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
  }

  .stats-chart-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
  }

  .stats-chart-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: flex-end;
    margin-top: 12px;
    min-height: 160px;
  }

  .stats-chart-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #6b7280;
  }

  .stats-chart-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    gap: 10px;
    height: 100%;
  }

  .stats-bar {
    flex: 1 1 0;
    max-width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
  }

  .stats-bar-column {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: #fb923c;
    position: relative;
    overflow: hidden;
  }

  .stats-bar-column::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%);
  }

  .stats-bar-label {
    font-size: 0.7rem;
    text-align: center;
    color: #e5e7eb;
    white-space: nowrap;
  }

  .stats-bar-value {
    font-size: 0.75rem;
    color: #fed7aa;
    font-variant-numeric: tabular-nums;
  }

  .stats-chart-caption {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #9ca3af;
  }

  @media (max-width: 768px) {
    .stats-charts {
      grid-template-columns: 1fr;
    }
  }

  /* 앵커(#ranking-section, #region-stats-section)로 이동할 때
   헤더에 가리지 않도록 위에 여유를 두기 위한 설정 */
#ranking-section,
#region-stats-section {
    scroll-margin-top: 140px;  /* 헤더 높이에 맞게 여유 공간 */
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* Hero subtle load-in animation */
.hero {
    will-change: transform, opacity;
}

.hero.hero-loaded {
    animation: heroEnter 1s ease-out forwards;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* CTA buttons: more Apple-like micro‑interaction */
.cta-buttons .btn-primary {
    transform: translateY(0) scale(1);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Intro cards: glassy hover */
.intro-card {
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.35s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.35s ease,
                background-color 0.25s ease;
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
    border-color: rgba(148, 163, 184, 0.85);
}

/* Intro detail fullscreen overlay */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.intro-overlay.is-active {
    pointer-events: auto;
    opacity: 1;
}

.intro-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(18px);
}

.intro-overlay-dialog {
    position: relative;
    max-width: 960px;
    width: min(960px, 92vw);
    max-height: min(620px, 80vh);
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.45);
    padding: 28px 32px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 80px; /* 네비게이션과 너무 붙지 않도록 약간 아래로 내림 */
}

.intro-overlay-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.intro-overlay-header {
    padding-right: 40px;
    margin-bottom: 16px;
}

.intro-overlay-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.intro-overlay-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.intro-overlay-slider {
    margin-top: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 10px;
}

.intro-overlay-viewport {
    overflow: hidden;
}

.intro-overlay-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.intro-overlay-slide {
    flex: 0 0 100%;
    padding: 4px 4px 0;
}

.intro-overlay-slide h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.intro-overlay-body p {
    margin-bottom: 10px;
    color: #111827;
}

.intro-overlay-body ul {
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-overlay-body li {
    list-style: disc;
    color: #111827;
    white-space: normal;
    word-break: break-word;   /* 모바일에서도 줄 끝까지 나올 수 있도록 강제 줄바꿈 허용 */
    overflow: visible;
}

.intro-overlay-arrow {
    align-self: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.intro-overlay-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.intro-overlay-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
}

.intro-overlay-dot.is-active {
    background: #0f766e;
}

@media (max-width: 768px) {
  .intro-overlay-dialog {
      width: 92vw;
      max-height: 95vh;
      border-radius: 24px;
      padding: 18px 16px 20px;
  }

  /* 내용 영역 자체에 세로 스크롤을 허용해 모바일에서 텍스트가 잘리지 않도록 */
  .intro-overlay-viewport {
      max-height: 80vh;
      overflow-y: auto;
      padding-right: 4px; /* 스크롤바 공간 확보 */
  }

  .intro-overlay-title {
      font-size: 1.5rem;
  }

  .intro-overlay-slide h3 {
      font-size: 1.1rem;
  }

  .intro-overlay-body p,
  .intro-overlay-body li {
      font-size: 0.9rem;
      line-height: 1.5;
  }

  .intro-overlay-slider {
      grid-template-columns: minmax(0, 1fr);
  }

  .intro-overlay-arrow {
      display: none;
  }
}

.intro-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 26px 24px 30px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.intro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.intro-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.intro-card-kicker {
    font-size: 0.95rem;
    color: #4b5563;
}