/* ==========================================================================
   2026 희망런 | 복지관 지역주민 러닝 기부 챌린지 후원현황 디자인 시스템
   ========================================================================== */

:root {
  /* Color Palette - Vibrant Charity Energy */
  --primary: #ff5e36;
  --primary-light: #ff8566;
  --primary-dark: #e0441d;
  --primary-glow: rgba(255, 94, 54, 0.35);

  --secondary: #00b4d8;
  --secondary-glow: rgba(0, 180, 216, 0.3);

  --accent-green: #10b981;
  --accent-green-light: #34d399;
  --accent-green-glow: rgba(16, 185, 129, 0.3);

  --accent-yellow: #f59e0b;
  --accent-yellow-light: #fbbf24;

  /* Neutrals & Dark Tones */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-glass-border: rgba(255, 255, 255, 0.6);
  --surface-dark: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 30px var(--primary-glow);
  --shadow-glow-green: 0 10px 30px var(--accent-green-glow);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* Global Korean Typography Word-Break Rules (한 글자씩 줄바꿈 방지) */
h1, h2, h3, h4, h5, h6, p, span, a, label, button, .section-desc, .hero-title, .single-ms-title, .single-ms-desc {
  word-break: keep-all;
  -webkit-hyphens: none;
  hyphens: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

button, input, select {
  font-family: inherit;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   Top Announcement Live Ticker
   ========================================================================== */
.top-banner {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #ffffff;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  color: #e2e8f0;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.kiosk-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.kiosk-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   Header & Sticky Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-fast);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-image {
  height: 50px;
  width: auto;
  min-width: 44px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: var(--transition-bounce);
}

.brand-logo:hover .header-logo-image {
  transform: scale(1.06) rotate(-2deg);
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ff3e14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.logo-org {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.badge-slogan {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-title strong {
  background: linear-gradient(135deg, #ff2a6d, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Pretendard', 'Outfit', sans-serif;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-item:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-bounce);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--text-primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 94, 54, 0.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-background-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.85) contrast(1.05);
  transform: scale(1.02);
  transition: transform 10s ease;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.72) 50%,
    rgba(255, 94, 54, 0.4) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 860px;
}

.campaign-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffe4d6;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.campaign-tag i {
  color: #ff6b4a;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-title strong {
  background: linear-gradient(135deg, #ffa97a, #ff6b35, #ffd166);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', 'Pretendard', sans-serif;
  font-weight: 900;
}

.hero-desc {
  font-size: 1.15rem;
  color: #f1f5f9;
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-quick-rule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
}

.rule-chip .step-num {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.rule-chip.highlight {
  background: linear-gradient(135deg, rgba(255, 94, 54, 0.5), rgba(255, 62, 20, 0.6));
  border-color: rgba(255, 140, 100, 0.6);
  box-shadow: 0 0 16px rgba(255, 94, 54, 0.4);
}

.rule-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-main {
  background: linear-gradient(135deg, #ff5e36, #e03810);
  color: #fff;
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(255, 94, 54, 0.45);
  transition: var(--transition-bounce);
}

.btn-hero-main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(255, 94, 54, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 16px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* ==========================================================================
   Key Metrics & Donation Dashboard
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  margin-bottom: 70px;
}

.donation-meter-card {
  padding: 38px 42px;
  background: #ffffff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.meter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 94, 54, 0.1);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.meter-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.meter-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-dday {
  background: #fee2e2;
  color: #ef4444;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.metric-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metric-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.metric-box.primary::before { background: var(--primary); }
.metric-box.success::before { background: var(--accent-green); }
.metric-box.info::before { background: var(--secondary); }
.metric-box.warning::before { background: var(--accent-yellow); }

.metric-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.metric-box.primary .metric-icon-wrap { background: rgba(255, 94, 54, 0.12); color: var(--primary); }
.metric-box.success .metric-icon-wrap { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.metric-box.info .metric-icon-wrap { background: rgba(0, 180, 216, 0.12); color: var(--secondary); }
.metric-box.warning .metric-icon-wrap { background: rgba(245, 158, 11, 0.12); color: var(--accent-yellow); }

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.metric-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-unit {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.metric-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
}

.metric-sub strong {
  color: var(--text-primary);
}

.sub-rate {
  background: rgba(255, 94, 54, 0.1);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.sub-rule {
  color: var(--accent-green);
  font-weight: 700;
}

/* Overall Progress Bar */
.overall-progress-area {
  margin-top: 10px;
  background: #f1f5f9;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.progress-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-start { color: var(--text-muted); }
.progress-end { color: var(--text-primary); }
.progress-center-info {
  color: var(--primary);
  background: rgba(255, 94, 54, 0.1);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.progress-track {
  position: relative;
  width: 100%;
  height: 28px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: visible;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff8566 0%, #ff5e36 60%, #10b981 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 28px;
}

.progress-runner-indicator {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.indicator-bubble {
  background: var(--text-primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  position: absolute;
  top: -30px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: float-slow 2s infinite ease-in-out;
}

.indicator-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: var(--text-primary) transparent transparent;
}

.indicator-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* Markers along track */
.track-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  box-shadow: 0 0 0 2px #fff;
  transition: var(--transition-fast);
}

.marker-dot.passed {
  background: var(--accent-green);
  border-color: #ffffff;
}

.marker-dot.finish {
  background: var(--accent-yellow);
  border-color: #ffffff;
  transform: scale(1.2);
}

.marker-text {
  position: absolute;
  top: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Milestone Roadmap Section
   ========================================================================== */
.milestones-section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.section-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.milestone-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-light);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.milestone-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.milestone-card.unlocked {
  border-color: var(--accent-green);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.milestone-card.in-progress {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.milestone-card.locked {
  opacity: 0.85;
  background: #fafafa;
}

.ms-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  width: fit-content;
}

.ms-status-badge.completed {
  background: #dcfce7;
  color: #166534;
}

.ms-status-badge.ongoing {
  background: #ffedd5;
  color: #c2410c;
  animation: pulse-border 2s infinite;
}

.ms-status-badge.upcoming {
  background: #f1f5f9;
  color: #64748b;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 54, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(255, 94, 54, 0); }
}

.ms-target-km {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ms-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ms-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.ms-sponsor-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.ms-sponsor-tag strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Virtual Marathon Course Track Map
   ========================================================================== */
.track-section {
  padding: 30px 0 60px;
}

.track-card {
  padding: 38px 42px;
  background: #ffffff;
}

.track-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.course-summary-badge {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.course-summary-badge span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.course-summary-badge strong {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 800;
}

.course-visual-wrapper {
  background: linear-gradient(180deg, #f0fdfa 0%, #e6fffa 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid #ccfbf1;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}

.course-map-container {
  position: relative;
  width: 100%;
  height: 240px;
}

.course-svg-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.checkpoint {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 6;
}

.cp-pin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #94a3b8;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.checkpoint.active .cp-pin {
  background: var(--accent-green);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-green-glow);
}

.checkpoint.current .cp-pin {
  background: var(--primary);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
  transform: scale(1.15);
}

.pulse-ring {
  animation: pulse-ring-anim 1.8s infinite;
}

@keyframes pulse-ring-anim {
  0% { box-shadow: 0 0 0 0 rgba(255, 94, 54, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 94, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 94, 54, 0); }
}

.cp-tooltip {
  position: absolute;
  top: 48px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
}

.cp-tooltip strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.cp-tooltip span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.track-animated-runner {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  transition: left 1.5s cubic-bezier(0.16, 1, 0.3, 1), top 1.5s ease;
}

.runner-avatar-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5e36, #ff8566);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px var(--primary-glow);
  animation: bounce-runner 0.8s infinite alternate ease-in-out;
}

@keyframes bounce-runner {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.runner-callout {
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Two-Column Social Section (Leaderboard & Live Feed)
   ========================================================================== */
.social-section {
  padding: 50px 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.leaderboard-card, .feed-card {
  padding: 32px 30px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-light);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--primary);
}

.tab-buttons {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.leaderboard-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-content.hidden {
  display: none;
}

/* Rank Item */
.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.rank-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.rank-item.top-1 {
  background: linear-gradient(90deg, #fffbeb, #ffffff);
  border-color: #fde68a;
}
.rank-item.top-2 {
  background: linear-gradient(90deg, #f8fafc, #ffffff);
  border-color: #e2e8f0;
}
.rank-item.top-3 {
  background: linear-gradient(90deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  background: #e2e8f0;
  color: var(--text-secondary);
}

.rank-item.top-1 .rank-badge {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.rank-item.top-2 .rank-badge {
  background: #94a3b8;
  color: #fff;
}
.rank-item.top-3 .rank-badge {
  background: #b45309;
  color: #fff;
}

.rank-user-info {
  display: flex;
  flex-direction: column;
}

.rank-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rank-dept {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rank-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rank-distance {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.rank-donation {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-green);
}

.leaderboard-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.footer-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Live Feed Items */
.live-feed-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: slideInDown 0.4s ease;
  transition: var(--transition-fast);
}

.feed-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.feed-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-user-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 94, 54, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.feed-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-record-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.feed-comment {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.feed-live-status {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.text-link-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Sponsors Showcase Section
   ========================================================================== */
.sponsors-section {
  padding: 60px 0;
  background: #f1f5f9;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.sponsor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.sponsor-logo-box {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.sponsor-brand {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sponsor-brand i {
  color: var(--primary);
  font-size: 1.2rem;
}

.matching-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.sponsor-quote {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 48px;
}

.accumulated-pledge {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
  display: block;
}

.accumulated-pledge strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Guide & How-to Section
   ========================================================================== */
.guide-section {
  padding: 50px 0 70px;
}

.guide-box {
  padding: 36px 40px;
  background: #ffffff;
}

.guide-header {
  margin-bottom: 30px;
}

.guide-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.guide-header h3 i {
  color: var(--primary);
}

.guide-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.guide-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guide-step-item {
  position: relative;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border-light);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.guide-step-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guide-step-item p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 40px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 680px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-logo i {
  color: var(--primary);
}

.footer-info {
  line-height: 1.7;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.copyright {
  font-size: 0.8rem;
  color: #64748b;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
}

/* ==========================================================================
   Modal Dialog (러닝 기록 등록 모달)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 24px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.required {
  color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #f8fafc;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  margin-top: 4px;
}

.highlight-input-group {
  background: #fff7ed;
  border: 1.5px solid #ffedd5;
  padding: 16px;
  border-radius: var(--radius-md);
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  padding-right: 50px !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem !important;
  font-weight: 700;
}

.input-unit-tag {
  position: absolute;
  right: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.donation-calc-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #c2410c;
  margin-top: 8px;
  font-weight: 600;
}

.donation-calc-preview strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.photo-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.auto-detect-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  transition: var(--transition-fast);
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: #fffaf7;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dropzone-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.dropzone-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Image preview inside dropzone */
.proof-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.proof-preview-img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.proof-preview-meta {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.preview-filename {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-ocr-status {
  font-size: 0.76rem;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  line-height: 1.35;
}

.btn-change-photo {
  font-size: 0.74rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-change-photo:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* Privacy notice below dropzone */
.photo-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.73rem;
  line-height: 1.4;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
}

.photo-privacy-notice i {
  font-size: 0.98rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Dropzone error animation */
.dropzone-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  animation: dropzoneShake 0.4s ease-in-out;
}

@keyframes dropzoneShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Highlight distance input when recognized */
.input-highlight-pulse {
  animation: greenPulseGlow 1.2s ease-in-out;
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

@keyframes greenPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.file-hidden {
  display: none;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1100;
  background: #ffffff;
  border-left: 5px solid var(--accent-green);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  color: var(--accent-green);
  font-size: 2rem;
}

.toast-content h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.toast-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Admin / Demo Drawer & Floating Action Button
   ========================================================================== */
.admin-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.admin-fab:hover {
  transform: scale(1.1) rotate(45deg);
  background: var(--primary);
}

.admin-drawer {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInUp 0.25s ease;
}

.admin-drawer.open {
  display: flex;
}

.drawer-header {
  padding: 16px 20px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

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

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

.drawer-action-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.btn-group-row {
  display: flex;
  gap: 6px;
}

.input-inline {
  display: flex;
  gap: 6px;
}

.input-inline input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.drawer-footer-actions {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 4px;
}

.btn-danger-outline {
  width: 100%;
  border: 1px solid #fca5a5;
  color: #dc2626;
  background: #fff;
}

.btn-danger-outline:hover {
  background: #fef2f2;
}

/* ==========================================================================
   Kiosk / Lobby Fullscreen Mode
   ========================================================================== */
body.kiosk-mode {
  background-color: #0b1120;
  color: #f8fafc;
}

body.kiosk-mode .glass-panel {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}

body.kiosk-mode .donation-meter-card {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

body.kiosk-mode .metric-box {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

body.kiosk-mode .metric-number,
body.kiosk-mode .meter-title,
body.kiosk-mode .card-title,
body.kiosk-mode .section-title {
  color: #ffffff;
}

body.kiosk-mode .rank-item,
body.kiosk-mode .feed-item {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

body.kiosk-mode .rank-name,
body.kiosk-mode .feed-author {
  color: #ffffff;
}

body.kiosk-mode .site-header {
  display: none;
}

body.kiosk-mode .hero-section {
  padding: 40px 0 60px;
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .milestones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .desktop-only {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .social-grid {
    grid-template-columns: 1fr;
  }
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-steps-row {
    grid-template-columns: 1fr 1fr;
  }
  .track-card {
    padding: 24px 16px;
  }
  .donation-meter-card {
    padding: 24px 18px;
  }
  .course-map-container {
    height: 180px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .milestones-grid {
    grid-template-columns: 1fr;
  }
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
  .guide-steps-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .btn-hero-main {
    width: 100%;
  }
}

/* ==========================================================================
   Compact Hero & Top Prominent Cumulative Meter (첫 화면 집중형 레이아웃)
   ========================================================================== */
.hero-compact {
  min-height: auto;
  padding: 24px 0 20px;
  background: #0f172a;
}

.hero-compact .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.82) 60%,
    rgba(255, 94, 54, 0.35) 100%
  );
}

.hero-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-top-row .campaign-tag {
  margin-bottom: 0;
  padding: 5px 14px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.campaign-badge-match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.campaign-badge-match strong {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-title-compact {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.compact-rule {
  margin-bottom: 0;
}

.compact-rule .rule-chip {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-sm-hero {
  padding: 10px 22px;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Prominent Key Metrics & Progress Bar */
.stats-prominent {
  margin-top: 10px;
  margin-bottom: 60px;
}

.highlight-meter {
  border: 1.5px solid rgba(255, 94, 54, 0.22);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), 0 0 20px rgba(255, 94, 54, 0.08);
  padding: 32px 36px;
}

.prominent-progress {
  margin-top: 0;
  margin-bottom: 30px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  padding: 24px 30px 28px;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.prominent-progress .progress-bar-labels {
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.prominent-progress .progress-start {
  color: #64748b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prominent-progress .progress-end {
  color: #0f172a;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prominent-progress .progress-center-info {
  background: #fff1ec;
  color: #ff471a;
  border: 1px solid #ffd8cc;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(255, 94, 54, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: subtle-pulse 2.5s infinite ease-in-out;
}

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 94, 54, 0.12); }
  50% { transform: scale(1.02); box-shadow: 0 4px 14px rgba(255, 94, 54, 0.24); }
}

.prominent-progress .progress-track {
  height: 32px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.prominent-progress .progress-fill {
  background: linear-gradient(90deg, #ff7a59 0%, #ff5e36 40%, #10b981 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(255, 94, 54, 0.35);
}

.prominent-progress .indicator-bubble {
  background: #0f172a;
  color: #ffffff;
  padding: 3px 9px;
  font-size: 0.82rem;
  top: -34px;
}

.prominent-progress .indicator-icon {
  width: 36px;
  height: 36px;
  border: 3.5px solid #ff5e36;
  color: #ff5e36;
  font-size: 1.25rem;
}

.prominent-grid .metric-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.prominent-grid .metric-box.pulse-card {
  border-color: rgba(255, 94, 54, 0.35);
  box-shadow: 0 4px 16px rgba(255, 94, 54, 0.08);
}

/* QR Code Header Button & Modal */
.btn-qr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
}

.qr-modal-card {
  max-width: 440px;
  text-align: center;
}

.modal-icon-badge.qr-icon {
  background: rgba(0, 180, 216, 0.15);
  color: var(--secondary);
}

.qr-modal-body {
  padding: 24px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-image-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 2px solid #e2e8f0;
  box-shadow: var(--shadow-md);
  display: inline-flex;
}

.qr-code-image {
  width: 200px;
  height: 200px;
  display: block;
}

.qr-info-box {
  text-align: center;
}

.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.qr-url-text {
  font-family: 'Outfit', monospace;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
  word-break: break-all;
}

.qr-tip {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Partner Logo styling */
.sponsor-card.featured-partner {
  border: 1.5px solid rgba(255, 94, 54, 0.25);
  background: #ffffff;
}

.sponsor-logo-box.has-image {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin-bottom: 12px;
}

.sponsor-logo-img {
  max-height: 54px;
  max-width: 100%;
  object-fit: contain;
}

.partner-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0 8px;
}

.matching-badge.highlight {
  background: rgba(255, 94, 54, 0.12);
  color: var(--primary);
  border: 1px solid rgba(255, 94, 54, 0.2);
}

/* Mobile Responsiveness for Compact Layout */
@media (max-width: 768px) {
  .hero-compact {
    padding: 18px 0 14px;
  }
  .hero-title-compact {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }
  .hero-top-row {
    margin-bottom: 8px;
  }
  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .compact-rule {
    display: none; /* 모바일에서 공간 절약하여 현황표를 상단에 즉각 노출 */
  }
  .highlight-meter {
    padding: 20px 16px;
  }
  .prominent-progress {
    padding: 16px 14px 20px;
    margin-bottom: 20px;
  }
  .prominent-progress .progress-track {
    height: 26px;
  }
  .prominent-progress .progress-center-info {
    font-size: 0.8rem;
    padding: 3px 10px;
  }
  .prominent-progress .progress-start,
  .prominent-progress .progress-end {
    font-size: 0.8rem;
  }
  .stats-prominent {
    margin-top: -10px;
  }
  .hero-compact-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-emblem-graphic {
    max-height: 85px;
  }
}

/* Hero Compact Layout & Character Emblem */
.hero-compact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-main-text {
  flex: 1;
  min-width: 0;
}

.hero-emblem-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.8);
  animation: float-slow 3.6s infinite ease-in-out;
}

.hero-emblem-graphic {
  max-height: 105px;
  width: auto;
  object-fit: contain;
}

.hero-slogan-lead {
  margin-bottom: 8px;
}

.slogan-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff2a6d, #ff5e36);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(255, 42, 109, 0.35);
}

.footer-logo-thumb {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Live Real-Track Running Visual Interface (실제로 트랙을 달리는 그림 이미지 인터페이스)
   ========================================================================== */
.hero-title-break {
  display: inline;
}

.hero-compact-layout {
  display: block;
  width: 100%;
}

.hero-main-text {
  width: 100%;
  max-width: 1000px;
}

/* ==========================================================================
/* ==========================================================================
   Bright & Cheerful Hero Styling - 100% Solid & Razor-Sharp Legibility
   ========================================================================== */
.hero-bright {
  color: #0f172a;
}

.hero-overlay-bright {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 250, 245, 0.84) 50%,
    rgba(255, 237, 213, 0.78) 100%
  ) !important;
  backdrop-filter: blur(0.5px) !important;
}

.hero-bright .hero-content {
  color: #0f172a;
}

.hero-bright .hero-title {
  color: #0f172a !important;
  text-shadow: none !important;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

/* NO transparent gradient clipping! Solid, punchy, razor-sharp colors */
.hero-bright .hero-title strong {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

.hero-bright .hero-title .title-brand,
.hero-bright .hero-title strong:first-child {
  color: #e11d48 !important; /* Vivid Crimson Rose - 100% solid & punchy */
}

.hero-bright .hero-title .title-metric,
.hero-bright .hero-title strong:nth-child(2),
.hero-bright .hero-title strong:nth-child(3) {
  color: #ea580c !important; /* Energetic Running Orange */
}

.hero-bright .campaign-tag {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #fed7aa;
  color: #9a3412;
  box-shadow: 0 2px 8px rgba(255, 94, 54, 0.12);
}

.hero-bright .campaign-badge-match {
  background: rgba(236, 253, 245, 0.96);
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.hero-bright .campaign-badge-match strong {
  color: #047857;
}

.hero-bright .rule-chip {
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.hero-bright .rule-chip .step-num {
  background: #f1f5f9;
  color: #ff5e36;
}

.hero-bright .rule-chip.highlight {
  background: linear-gradient(135deg, #ff5e36, #ea580c);
  color: #ffffff;
  border-color: #ff8c5a;
  box-shadow: 0 4px 14px rgba(255, 94, 54, 0.35);
}

.hero-bright .rule-chip.highlight .step-num {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.hero-bright .rule-arrow {
  color: #94a3b8;
}

.hero-title-break {
  display: inline;
}

.hero-compact-layout {
  display: block;
  width: 100%;
}

.hero-main-text {
  width: 100%;
  max-width: 1000px;
}

/* ==========================================================================
   400M Oval Athletic Stadium Track (타원형 육상 트랙 현황표)
   ========================================================================== */
.oval-stadium-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 28px 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 30px;
}

.stadium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.oval-track-container {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow: visible;
}

.oval-track-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08));
}

/* Runner Animations on Track */
.runner-halo-pulse {
  animation: halo-pulse 1.6s infinite ease-in-out;
}

@keyframes halo-pulse {
  0%, 100% { r: 28; opacity: 0.25; }
  50% { r: 36; opacity: 0.55; }
}

.svg-runner-emoji {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  transform-box: fill-box;
  transform-origin: center center;
  animation: runner-hop 0.6s infinite alternate ease-in-out;
  pointer-events: none;
  user-select: none;
}

@keyframes runner-hop {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2.5px); }
}

/* Center Infield Stadium Digital Scoreboard Overlay */
.stadium-infield-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  max-width: 480px;
  z-index: 5;
  pointer-events: none;
}

.infield-center-board {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 18px 14px;
  border: 1.5px solid rgba(22, 101, 52, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  text-align: center;
  pointer-events: auto;
}

.infield-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.live-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.2s infinite;
}

.infield-stats-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 10px;
}

.infield-divider {
  width: 1px;
  height: 36px;
  background: #cbd5e1;
}

.infield-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inf-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.inf-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.val-orange {
  color: #ea580c;
}

.val-green {
  color: #047857;
}

.val-neon-yellow {
  color: #713f12;
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 50%, #fde047 100%);
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid #facc15;
  box-shadow: 0 1px 8px rgba(250, 204, 21, 0.45);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.val-neon-yellow strong {
  color: #713f12;
  font-weight: 900;
}

.val-amber {
  color: #d97706;
}

.infield-target-notice {
  font-size: 0.78rem;
  color: #334155;
  background: #f8fafc;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.infield-target-notice strong {
  color: #e11d48;
}

/* Track Header & Footer */
.track-gauge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.track-point {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
}

.track-point.start {
  color: #64748b;
}

.track-point.start i {
  color: #38bdf8;
  font-size: 1.15rem;
}

.track-point.finish {
  color: #0f172a;
}

.track-point.finish i {
  color: #f59e0b;
  font-size: 1.25rem;
}

.track-gauge-center {
  background: #fff7ed;
  color: #c2410c;
  border: 1.5px solid #ffedd5;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.94rem;
  box-shadow: 0 2px 10px rgba(255, 94, 54, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.track-gauge-center i {
  color: #ea580c;
}

.track-gauge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
}

.track-notice-right strong {
  color: #d97706;
}

/* Modal Form Row & Duplicate Name Phone Tail Input */
.form-row-responsive {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.flex-2 {
  flex: 1.25;
}

.flex-1 {
  flex: 1;
}

.phone-tail-label {
  white-space: nowrap !important;
  font-size: 0.81rem !important;
  letter-spacing: -0.3px;
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
}

.phone-tail-label .sub-label {
  font-size: 0.73rem;
  color: #ea580c;
  font-weight: 700;
  white-space: nowrap;
}

.input-help-text {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 4px;
}

.leaderboard-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}


/* ==========================================================================
   Single 2,000km Milestone Showcase Card
   ========================================================================== */
.single-milestone-container {
  max-width: 900px;
  margin: 0 auto;
}

.single-milestone-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffcf9 100%);
  border: 2px solid #fed7aa;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.08), 0 0 0 1px rgba(254, 215, 170, 0.5);
}

.single-ms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.single-ms-target-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.single-ms-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff1ec;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.single-ms-sponsor-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.ms-sponsor-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.sponsor-mini-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 94, 54, 0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.single-ms-body {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}

.ms-gift-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ms-ear-icon-wrap {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border-radius: 50%;
  border: 3px solid #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2);
}

.ear-icon-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.gift-caption {
  font-size: 0.78rem;
  font-weight: 800;
  color: #c2410c;
  text-align: center;
}

.single-ms-content {
  flex: 1;
}

.single-ms-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.single-ms-desc {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

.single-ms-progress-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.single-ms-bar {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.single-ms-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8c42, #ea580c, #10b981);
  border-radius: var(--radius-pill);
  transition: width 1.2s ease;
}

.single-ms-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.ms-remaining-callout {
  color: #ea580c;
  font-weight: 800;
}

.single-ms-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #fed7aa;
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
}

.single-ms-partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.single-ms-partner-tag strong {
  color: #0f172a;
  font-weight: 800;
}

.single-ms-cheer-callout {
  color: #ea580c;
  font-weight: 700;
}

/* Sponsors 2 Column & Expanded Logos */
.sponsors-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 960px;
  margin: 0 auto;
  gap: 28px;
}

.sponsor-logo-expanded {
  min-height: 95px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

.enlarged-davich-logo {
  max-height: 80px !important;
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: scale(1.18);
  transition: transform 0.3s ease;
}

.enlarged-davich-logo:hover {
  transform: scale(1.24);
}

.enlarged-ajang-logo {
  max-height: 48px !important;
  height: 48px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.enlarged-ajang-logo:hover {
  transform: scale(1.05);
}

.partner-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.partner-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.p-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  margin-top: 2px;
}

.p-detail-badge.highlight-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.p-detail-badge.market-badge {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.p-detail-val {
  color: #334155;
  font-weight: 500;
}

.p-detail-val.highlight-market {
  color: #0f172a;
  font-weight: 700;
}

.p-detail-val.highlight-text strong {
  color: #047857;
  font-weight: 800;
}

/* ==========================================================================
   Mobile & Responsive Optimization System (모바일 전용 최적화 디자인 시스템)
   ========================================================================== */

/* 1. Mobile Sticky Bottom Action Bar (모바일 하단 고정 바) */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Safe body padding for sticky bar */
  body {
    padding-bottom: 74px !important;
  }

  .mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
  }

  .mobile-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .m-sticky-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffea00;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.2px;
  }

  .m-sticky-km {
    font-size: 0.84rem;
    color: #e2e8f0;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
  }

  .m-sticky-km strong {
    color: #38bdf8;
    font-size: 1.05rem;
    font-weight: 900;
  }

  .btn-m-sticky {
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 4px 14px rgba(255, 94, 54, 0.4) !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    animation: pulse-cta 2.2s infinite ease-in-out;
  }

  @keyframes pulse-cta {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
  }

  /* 2. Header Mobile Optimization */
  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    height: auto;
    min-height: 56px;
    gap: 8px;
    padding: 0 12px;
  }

  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
  }

  .header-logo-image,
  .logo-img {
    height: 42px !important;
    width: auto !important;
    min-width: 42px !important;
    flex-shrink: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }

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

  .logo-org {
    font-size: 0.68rem;
    line-height: 1.1;
    color: #64748b;
  }

  .logo-title {
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .logo-title .badge-slogan {
    display: none !important; /* 모바일에서는 슬로건 뱃지를 숨겨 로고와 타이틀이 넓고 시원하게 보이도록 최적화 */
  }

  .header-cta {
    gap: 6px;
  }

  .btn-qr span {
    display: none;
  }

  .btn-qr {
    padding: 7px 9px;
    font-size: 1rem;
    border-radius: var(--radius-pill);
  }

  .header-cta .btn-primary {
    padding: 7px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-pill);
  }

  .header-cta .btn-primary span {
    display: inline;
  }

  /* 3. Hero Banner Mobile Optimization */
  .hero-compact {
    padding: 16px 0 16px;
  }

  .hero-top-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .campaign-tag, .campaign-badge-match {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
  }

  .slogan-badge-pill {
    font-size: 0.74rem;
    padding: 3px 10px;
    margin-bottom: 8px;
  }

  .hero-bright .hero-title,
  .hero-title-compact {
    font-size: clamp(1.10rem, 4.2vw, 1.25rem) !important;
    line-height: 1.4 !important;
    margin-bottom: 12px;
    word-break: keep-all !important;
    text-wrap: balance;
    letter-spacing: -0.4px;
  }

  .hero-title-break {
    display: inline;
  }

  .hero-bottom-bar {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .compact-actions {
    width: 100%;
  }

  .compact-actions .btn-sm-hero {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.92rem;
    justify-content: center;
    border-radius: 12px;
  }

  /* 4. Stats Section & 400M Oval Track Optimization */
  .stats-prominent {
    margin-top: -6px;
  }

  .highlight-meter {
    padding: 16px 12px 18px;
    border-radius: 20px;
  }

  .meter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }

  .meter-title {
    font-size: clamp(1.12rem, 4vw, 1.25rem) !important;
    word-break: keep-all !important;
    letter-spacing: -0.3px;
  }

  .meter-meta {
    font-size: 0.76rem;
    gap: 8px;
  }

  .oval-stadium-card {
    padding: 12px 8px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .track-gauge-header {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .track-gauge-center {
    order: -1;
    width: 100%;
    justify-content: center;
    font-size: clamp(0.72rem, 2.7vw, 0.80rem);
    padding: 4px 12px;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .track-point {
    font-size: 0.74rem;
  }

  .oval-track-container {
    position: relative;
    margin: 0 auto 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .oval-track-svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Infield digital scoreboard on mobile: 트랙 하단으로 완전히 분리 배치하여 트랙 가림/중복 원천 해결 */
  .stadium-infield-overlay {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    pointer-events: auto;
  }

  .infield-center-board {
    padding: 12px 14px 13px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    width: 100%;
  }

  .infield-live-pill {
    font-size: 0.72rem;
    padding: 2px 9px;
    margin-bottom: 7px;
    gap: 5px;
    display: inline-flex;
    align-items: center;
  }

  .infield-stats-flex {
    gap: 6px;
    margin-bottom: 7px;
    justify-content: space-around;
  }

  .infield-divider {
    height: 24px;
  }

  .inf-label {
    font-size: 0.68rem;
    margin-bottom: 2px;
    white-space: nowrap;
    color: #64748b;
  }

  .inf-val {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .val-neon-yellow {
    font-size: 0.86rem;
    padding: 2px 7px;
  }

  .infield-target-notice {
    font-size: 0.75rem;
    padding: 5px 10px;
    line-height: 1.35;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }

  .track-gauge-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding-top: 10px;
    font-size: clamp(0.68rem, 2.6vw, 0.74rem);
    word-break: keep-all;
  }

  .track-notice-right {
    display: none; /* 하단 보드에서 이미 목표 완주 혜택을 명확히 안내하므로 중복 문구 숨김 */
  }

  /* 5. Metrics 4-Boxes on Mobile: 2x2 App Style Dashboard */
  .metrics-grid.prominent-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .metric-box {
    padding: 12px 10px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .metric-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .metric-label {
    font-size: clamp(0.62rem, 2.4vw, 0.70rem) !important;
    color: #64748b;
    white-space: nowrap !important;
    word-break: keep-all !important;
    letter-spacing: -0.4px;
  }

  .metric-number {
    font-size: 1.22rem;
  }

  .metric-unit {
    font-size: 0.74rem;
  }

  .metric-sub {
    font-size: clamp(0.60rem, 2.2vw, 0.66rem) !important;
    margin-top: 2px;
    white-space: nowrap !important;
    word-break: keep-all !important;
    letter-spacing: -0.4px;
  }

  .sub-rate {
    padding: 1px 5px;
    font-size: 0.62rem;
  }

  /* 6. Milestone Section Optimization */
  .milestones-section {
    padding: 32px 0 20px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-sub {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }

  .section-title {
    font-size: clamp(1.22rem, 4.4vw, 1.38rem);
    margin-bottom: 6px;
    word-break: keep-all !important;
    letter-spacing: -0.3px;
  }

  .section-desc {
    font-size: clamp(0.78rem, 2.9vw, 0.86rem) !important;
    line-height: 1.5 !important;
    word-break: keep-all !important;
    text-wrap: balance;
    letter-spacing: -0.3px;
    padding: 0 6px;
  }

  .single-milestone-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .single-ms-header {
    margin-bottom: 14px;
  }

  .ms-badge-row {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .single-ms-target-badge,
  .single-ms-status-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.76rem;
    padding: 5px 10px;
    white-space: nowrap;
    word-break: keep-all;
  }

  .single-ms-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .ms-gift-visual {
    margin-bottom: 4px;
  }

  .ms-ear-icon-wrap {
    width: 56px;
    height: 56px;
  }

  .ear-icon-emoji {
    font-size: 28px;
  }

  .gift-caption {
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .single-ms-title {
    font-size: clamp(0.96rem, 3.6vw, 1.12rem) !important;
    line-height: 1.42 !important;
    text-align: center;
    margin-bottom: 8px;
    word-break: keep-all !important;
    text-wrap: balance;
    letter-spacing: -0.4px;
  }

  .single-ms-desc {
    font-size: clamp(0.78rem, 2.9vw, 0.85rem) !important;
    line-height: 1.55 !important;
    text-align: center;
    margin-bottom: 14px;
    word-break: keep-all !important;
    text-wrap: pretty;
    letter-spacing: -0.2px;
  }

  .single-ms-bar {
    height: 14px;
    border-radius: var(--radius-pill);
  }

  .single-ms-bar-labels {
    font-size: 0.74rem;
  }

  .single-ms-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding-top: 12px;
    font-size: 0.76rem;
  }

  /* 7. Hall of Fame & Live Feed */
  .social-section {
    padding: 20px 0 28px;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .leaderboard-card, .feed-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .card-title {
    font-size: 1.10rem;
  }

  .rank-item {
    padding: 9px 10px;
    gap: 8px;
    border-radius: 10px;
  }

  .rank-badge {
    width: 26px;
    height: 26px;
    font-size: 0.76rem;
  }

  .runner-name {
    font-size: 0.84rem;
  }

  .runner-km strong {
    font-size: 0.95rem;
  }

  .feed-item {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .feed-user-name {
    font-size: 0.82rem;
  }

  .feed-comment {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* 8. Sponsors Section Mobile */
  .sponsors-section {
    padding: 24px 0 24px;
  }

  .sponsors-two-col {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .sponsor-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .sponsor-logo-expanded {
    height: 68px;
    min-height: 68px;
    padding: 6px 14px;
    margin-bottom: 12px;
  }

  .enlarged-davich-logo {
    max-height: 52px !important;
    height: 52px;
    transform: scale(1.05);
  }

  .enlarged-ajang-logo {
    max-height: 38px !important;
    height: 38px;
  }

  .partner-name {
    font-size: 1.05rem;
  }

  .partner-detail-list {
    padding: 10px 12px;
    gap: 7px;
    margin-top: 10px;
  }

  .partner-detail-item {
    font-size: 0.80rem;
    line-height: 1.4;
  }

  .p-detail-badge {
    font-size: 0.70rem;
    padding: 2px 6px;
  }

  /* 9. Participation Guide Steps */
  .guide-box {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .guide-steps-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .guide-step-item {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.80rem;
    margin-bottom: 6px;
  }

  .guide-step-item h4 {
    font-size: 0.88rem;
    margin-bottom: 3px;
  }

  .guide-step-item p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  /* 10. Modals on Mobile & Prevent iOS Auto-Zoom */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.75);
    z-index: 2000;
  }

  .modal-card {
    max-height: 90vh;
    max-height: 90dvh;
    height: auto;
    border-radius: 24px 24px 0 0;
    padding: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  }

  .modal-header {
    padding: 16px 18px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-light);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .modal-title-group h3 {
    font-size: 1.12rem;
  }

  .modal-subtitle {
    font-size: 0.75rem;
  }

  .modal-form {
    padding: 14px 18px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* iOS Auto-Zoom prevention: font-size >= 16px */
  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group select {
    font-size: 16px !important;
    padding: 12px 14px;
  }

  .form-row-responsive {
    flex-direction: column;
    gap: 10px;
  }

  .phone-tail-label {
    font-size: 0.82rem !important;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 12px 18px 16px;
    margin: 8px -18px -24px;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 10;
    flex-shrink: 0;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 0.96rem;
  }

  .modal-footer .btn-primary {
    box-shadow: 0 4px 14px rgba(255, 94, 54, 0.35);
  }

  /* 11. Footer */
  .site-footer {
    padding: 26px 0 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-info {
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .footer-badges {
    justify-content: center;
    gap: 6px;
  }
}

/* Extra Compact Phones (iPhone SE, Galaxy Fold Cover <= 375px) */
@media (max-width: 375px) {
  .hero-bright .hero-title,
  .hero-title-compact {
    font-size: 1.18rem !important;
  }

  .brand-main {
    max-width: 110px;
  }

  .metrics-grid.prominent-grid {
    grid-template-columns: 1fr !important;
  }

  .guide-steps-row {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Beautiful Runners Heart Photo Gallery (함께한 아름다운 러너들)
   ========================================================================== */
.photo-gallery-section {
  padding: 30px 0 10px;
}

.photo-gallery-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 28px 36px;
  border: 1px solid rgba(255, 94, 54, 0.15);
  box-shadow: 0 12px 36px rgba(255, 94, 54, 0.07);
}

.photo-count-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1), rgba(255, 94, 54, 0.1));
  color: #ff3366;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

.btn-photo-upload {
  background: linear-gradient(135deg, #ff3366, #ff5e36) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-photo-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 51, 102, 0.45) !important;
}

.heart-gallery-wrapper {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Heart Layout Structure (2 - 4 - 3 - 1 = Total 10 Slots) */
.heart-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 620px;
  padding: 10px 0 20px;
}

.heart-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.heart-row-1 {
  /* 상단 봉우리 2개 (가운데 간격을 넓혀 하트 곡선 형성) */
  gap: clamp(36px, 10vw, 84px);
}

.heart-row-2 {
  /* 상단 몸체 4개 */
  gap: clamp(8px, 2vw, 16px);
}

.heart-row-3 {
  /* 하단 수렴부 3개 */
  gap: clamp(8px, 2vw, 16px);
}

.heart-row-4 {
  /* 하트 뾰족한 끝 1개 */
  gap: 0;
  margin-bottom: 0;
}

/* Individual Heart Photo Slot */
.heart-slot {
  width: clamp(66px, 17vw, 114px);
  height: clamp(66px, 17vw, 114px);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 2.5px solid #ffffff;
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  user-select: none;
}

.heart-slot:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 14px 28px rgba(255, 51, 102, 0.22);
  z-index: 10;
  border-color: #ff5e36;
}

.heart-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.heart-slot:hover img {
  transform: scale(1.08);
}

/* Photo Card Hover/Active Overlay */
.heart-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 6px 7px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  text-align: center;
}

.heart-slot:hover .heart-card-overlay,
.heart-slot:active .heart-card-overlay {
  opacity: 1;
}

.heart-runner-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffea79;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.heart-runner-caption {
  font-size: 0.68rem;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 1px;
}

/* Placeholder Slot (10장 미만일 때 채워지는 감성 플레이스홀더) */
.heart-slot.placeholder-slot {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(254, 226, 226, 0.75));
  border: 2px dashed rgba(255, 94, 54, 0.35);
  box-shadow: 0 4px 12px rgba(255, 94, 54, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.heart-empty-content i {
  font-size: 1.4rem;
  color: #ff758c;
  margin-bottom: 3px;
  animation: heartPulse 2s infinite ease-in-out;
}

.heart-empty-content span {
  font-size: 0.62rem;
  font-weight: 700;
  color: #be185d;
  line-height: 1.25;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* 5초 간격 랜덤 회전 시 슬롯 페이드/플립 애니메이션 */
.heart-slot.rotating {
  animation: heartSlotRotate 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartSlotRotate {
  0% { transform: scale(1) rotateY(0); opacity: 1; }
  50% { transform: scale(0.85) rotateY(90deg); opacity: 0.3; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.heart-gallery-footer {
  margin-top: 14px;
  text-align: center;
}

.heart-footer-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

/* Photo Dropzone in Modal */
.photo-dropzone {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-dropzone:hover {
  border-color: #ff3366;
  background: rgba(255, 51, 102, 0.02);
}

/* Lightbox Modal */
.lightbox-backdrop {
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #ff3366;
  transform: scale(1.1);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 480px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  padding: 18px 20px 22px;
  background: #ffffff;
}

.lightbox-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.lightbox-user i {
  font-size: 1.4rem;
  color: #ff3366;
}

.lightbox-user strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.lightbox-time {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: auto;
}

.lightbox-caption {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border-left: 3px solid #ff3366;
}

@media (max-width: 640px) {
  .photo-gallery-card {
    padding: 24px 16px 28px;
  }
  
  .heart-row {
    margin-bottom: 8px;
  }
  
  .heart-row-1 {
    gap: clamp(24px, 8vw, 48px);
  }
  
  .heart-row-2,
  .heart-row-3 {
    gap: clamp(6px, 1.5vw, 10px);
  }

  .heart-slot {
    border-radius: 14px;
  }

  .heart-footer-notice {
    font-size: 0.74rem;
    padding: 5px 12px;
  }
}

/* ==========================================================================
   Campaign Period Notice Modal (캠페인 기간 안내 팝업)
   ========================================================================== */
.campaign-modal-card {
  max-width: 520px;
}

.campaign-modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campaign-status-pill-wrap {
  display: flex;
  justify-content: center;
}

.campaign-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #fde68a;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.08);
}

.campaign-notice-desc {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}

.campaign-date-schedule-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.schedule-label i {
  color: var(--primary);
  font-size: 1rem;
}

.schedule-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  font-family: 'Outfit', -apple-system, sans-serif;
}

.schedule-divider {
  height: 1px;
  background: #e2e8f0;
}

.campaign-example-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.example-notice-icon {
  color: #2563eb;
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.example-notice-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #1e3a8a;
}

.example-notice-text strong {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .campaign-modal-body {
    padding: 20px 18px;
    gap: 14px;
  }
  .campaign-notice-desc {
    font-size: 0.95rem;
  }
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .schedule-val {
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   캠페인 완주 세레모니 모달 & 결승선 줄(피니시 테이프) 끊는 이펙트 애니메이션
   ========================================================================== */
.ceremony-modal-backdrop {
  z-index: 2500 !important;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease forwards;
}

.ceremony-modal-card {
  max-width: 620px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 65px -10px rgba(245, 158, 11, 0.35), 0 15px 35px rgba(0, 0, 0, 0.18);
  border: 2px solid #fde68a;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: ceremonyModalPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ceremonyModalPop {
  0% { transform: scale(0.88) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.ceremony-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
}

.ceremony-close-x:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.ceremony-badge-wrap {
  text-align: center;
  padding-top: 22px;
  padding-bottom: 8px;
}

.ceremony-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
  animation: badgeGlowPulse 2s ease-in-out infinite;
}

@keyframes badgeGlowPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4); transform: scale(1); }
  50% { box-shadow: 0 6px 22px rgba(245, 158, 11, 0.7); transform: scale(1.03); }
}

/* 결승선 애니메이션 스테이지 (화사한 파란 가을 하늘 & 스타디움 육상 트랙) */
.ceremony-stage {
  margin: 10px 20px 16px;
  height: 175px;
  background: linear-gradient(180deg, #38bdf8 0%, #60a5fa 30%, #bae6fd 54%, #c2410c 55%, #ea580c 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(56, 189, 248, 0.28);
  border: 1.5px solid #7dd3fc;
}

.ceremony-stage::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 24px;
  width: 75px;
  height: 22px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  filter: blur(1.5px);
  box-shadow: 130px 6px 0 -3px rgba(255, 255, 255, 0.5), 340px 2px 0 -1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* 트랙 지면 및 라인 */
.track-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 78px;
}

.track-lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.5);
}
.track-lane.lane-1 { bottom: 48px; }
.track-lane.lane-2 { bottom: 18px; }

.track-finish-mark {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 3px solid #ffffff;
  padding: 0 8px 2px;
}

/* 좌우 결승 기둥 */
.finish-post {
  position: absolute;
  bottom: 10px;
  width: 14px;
  height: 96px;
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.finish-post.post-left { left: 40px; }
.finish-post.post-right { right: 40px; }

.finish-post .post-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fbbf24;
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: flagWave 1.8s ease-in-out infinite alternate;
}

@keyframes flagWave {
  from { transform: translateX(-50%) rotate(-5deg); }
  to { transform: translateX(-50%) rotate(12deg); }
}

/* 피니시 리본 (줄) */
.finish-ribbon-wrap {
  position: absolute;
  top: 86px;
  left: 47px;
  right: 47px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
}

.finish-ribbon {
  height: 22px;
  flex: 1;
  background: repeating-linear-gradient(
    45deg,
    #dc2626,
    #dc2626 12px,
    #facc15 12px,
    #facc15 24px
  );
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.finish-ribbon.ribbon-left {
  border-radius: 4px 0 0 4px;
  justify-content: flex-end;
  padding-right: 8px;
  transform-origin: left center;
}

.finish-ribbon.ribbon-right {
  border-radius: 0 4px 4px 0;
  justify-content: flex-start;
  padding-left: 8px;
  transform-origin: right center;
}

/* 줄 끊어졌을 때의 역동적 애니메이션 */
.ceremony-stage.is-broken .finish-ribbon.ribbon-left {
  animation: ribbonSnapFlutterLeft 2s ease-in-out infinite alternate;
  transform-origin: left center;
}

.ceremony-stage.is-broken .finish-ribbon.ribbon-right {
  animation: ribbonSnapFlutterRight 2s ease-in-out infinite alternate;
  transform-origin: right center;
}

@keyframes ribbonSnapFlutterLeft {
  0% { transform: rotate(0) scaleY(1); }
  20% { transform: rotate(-55deg) translateX(-22px) translateY(8px) scaleX(0.78); }
  55% { transform: rotate(-38deg) translateX(-18px) translateY(4px) scaleX(0.84); }
  100% { transform: rotate(-48deg) translateX(-20px) translateY(6px) scaleX(0.8); }
}

@keyframes ribbonSnapFlutterRight {
  0% { transform: rotate(0) scaleY(1); }
  20% { transform: rotate(55deg) translateX(22px) translateY(8px) scaleX(0.78); }
  55% { transform: rotate(38deg) translateX(18px) translateY(4px) scaleX(0.84); }
  100% { transform: rotate(48deg) translateX(20px) translateY(6px) scaleX(0.8); }
}

/* 중앙 스파크 폭발 효과 */
.ribbon-spark {
  width: 16px;
  height: 16px;
  background: #fef08a;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

.ceremony-stage.is-broken .ribbon-spark {
  animation: sparkBurst 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkBurst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.9); }
  45% { transform: translate(-50%, -50%) scale(4.5); opacity: 0.95; box-shadow: 0 0 40px 18px rgba(245, 158, 11, 0.9); }
  100% { transform: translate(-50%, -50%) scale(7); opacity: 0; box-shadow: 0 0 55px 22px rgba(245, 158, 11, 0); }
}

/* 러너 캐릭터 (모바일/PC 하드웨어 가속) */
.runner-chaser {
  position: absolute;
  bottom: 22px;
  left: -50px;
  z-index: 14;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
  will-change: left, transform;
}

.ceremony-stage.running .runner-chaser {
  animation: runnerSprintToGoal 1.25s cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

@keyframes runnerSprintToGoal {
  0% { left: -45px; transform: scale(0.92); }
  75% { left: 47%; transform: scale(1.05); }
  100% { left: 50%; transform: translateX(-50%) scale(1.15); }
}

.runner-celebrate {
  font-size: 38px;
  animation: runnerGoalBounce 0.75s ease-in-out infinite alternate;
}

@keyframes runnerGoalBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.12); }
}

/* 골인 텍스트 팝업 */
.goal-burst-text {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.5px;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.6);
  z-index: 18;
  white-space: nowrap;
}

.ceremony-stage.is-broken .goal-burst-text {
  animation: goalTextPop 0.5s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes goalTextPop {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* 다시보기 버튼 */
.btn-replay-ribbon {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.btn-replay-ribbon:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
}

/* 메시지 본문 (한글 어절 단위 정렬) */
.ceremony-body {
  padding: 0 24px 20px;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ceremony-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1.3;
  word-break: keep-all;
}

.ceremony-subtitle {
  font-size: 1.05rem;
  color: #ea580c;
  font-weight: 700;
  margin-bottom: 16px;
  word-break: keep-all;
}

.ceremony-quote-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ceremony-quote-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #78350f;
  margin: 0;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ceremony-quote-desc strong {
  color: #b45309;
  font-weight: 800;
}

/* 핵심 성과 지표 3열 카드 */
.ceremony-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.c-metric-item {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  transition: transform 0.2s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.c-metric-item.highlight {
  background: #fff7ed;
  border-color: #fdba74;
}

.c-metric-icon {
  font-size: 1.5rem;
  color: #ea580c;
  margin-bottom: 4px;
}

.c-metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
}

.c-metric-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
  word-break: keep-all;
  line-height: 1.3;
}

/* 모달 푸터 */
.ceremony-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-radius: 0 0 28px 28px;
}

.ceremony-footer-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ceremony-confirm-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff5e36, #ea580c);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.ceremony-confirm-btn:hover {
  background: linear-gradient(135deg, #e04822, #c2410c);
  transform: translateY(-1px);
}

/* 모바일 전용 반응형 스타일 (어절 단위 줄바꿈 및 글씨 크기 최적화) */
@media (max-width: 640px) {
  .ceremony-modal-card {
    border-radius: 20px;
    max-height: 96vh;
    width: 95%;
    word-break: keep-all;
  }
  .ceremony-stage {
    margin: 8px 12px 14px;
    height: 155px;
  }
  .finish-post.post-left { left: 20px; }
  .finish-post.post-right { right: 20px; }
  .finish-ribbon-wrap { left: 26px; right: 26px; top: 72px; }
  .ceremony-body {
    padding: 0 14px 16px;
    word-break: keep-all;
  }
  .ceremony-title {
    font-size: 1.18rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
    word-break: keep-all;
    margin-bottom: 4px;
  }
  .ceremony-subtitle {
    font-size: 0.88rem;
    word-break: keep-all;
    margin-bottom: 12px;
  }
  .ceremony-quote-box {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
  }
  .ceremony-quote-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    word-break: keep-all;
    letter-spacing: -0.3px;
  }
  /* 모바일 핵심 성과 카드: 3열 균형 배치 및 글씨 크기 축소로 한 줄에 쏙 */
  .ceremony-metrics-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px;
  }
  .c-metric-item {
    padding: 10px 4px;
    border-radius: 12px;
  }
  .c-metric-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }
  .c-metric-val {
    font-size: 0.92rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1.2;
  }
  .c-metric-lbl {
    font-size: 0.65rem;
    letter-spacing: -0.4px;
    line-height: 1.22;
    margin-top: 3px;
    word-break: keep-all;
  }
  .ceremony-footer {
    padding: 12px 14px;
    justify-content: stretch;
  }
  .ceremony-footer-btns {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .ceremony-footer-btns button {
    flex: 1;
    padding: 10px 6px;
    font-size: 0.86rem;
    justify-content: center;
    white-space: nowrap;
  }
}

/* ==========================================================================
   10. Result Report & Ceremony Preview & Lightbox Styles
   ========================================================================== */

/* Header Nav Highlight */
.nav-item-highlight {
  color: #d97706 !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  padding: 6px 14px !important;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.35);
  animation: navGlowPulse 2.5s infinite ease-in-out;
}

@keyframes navGlowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
}

.btn-ceremony-nav {
  color: #b45309;
  border-color: #fcd34d;
  background: #fef3c7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ceremony-nav:hover {
  background: #fde68a;
  border-color: #f59e0b;
  color: #92400e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* Hero Action Buttons */
.btn-hero-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

.btn-hero-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
}

.btn-hero-outline-ceremony {
  background: rgba(255, 255, 255, 0.9);
  color: #b45309;
  border: 1.5px solid #fcd34d;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-hero-outline-ceremony:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-2px);
}

/* ==========================================================================
   Result Report Section
   ========================================================================== */
.result-report-section {
  padding: 56px 0 68px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 40%, #f8fafc 100%);
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.result-report-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #10b981, #3b82f6, #f59e0b);
}

.report-header-wrap {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}

.report-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.report-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-outline-ceremony-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #b45309;
  border: 1.5px solid #fcd34d;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-ceremony-sm:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.report-main-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1.35;
  margin-bottom: 14px;
  word-break: keep-all;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.report-subtitle {
  font-size: 1.08rem;
  color: #475569;
  line-height: 1.65;
  word-break: keep-all;
}

/* 4 KPI Cards */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.report-kpi-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.16);
  border-color: #f59e0b;
}

.report-kpi-card.highlight-card {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.18);
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.kpi-icon-wrap.icon-run {
  background: #dcfce7;
  color: #16a34a;
}

.kpi-icon-wrap.icon-runners {
  background: #e0f2fe;
  color: #0284c7;
}

.kpi-icon-wrap.icon-fund {
  background: #fef3c7;
  color: #d97706;
}

.kpi-icon-wrap.icon-ear {
  background: #ede9fe;
  color: #7c3aed;
}

.kpi-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.kpi-value-sm {
  font-size: 1.28rem;
}

.kpi-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}

.kpi-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.35;
  word-break: keep-all;
}

.kpi-sub.highlight-green {
  color: #15803d;
  font-weight: 700;
}

.kpi-sub.highlight-gold {
  color: #b45309;
  font-weight: 700;
}

.kpi-sub.highlight-blue {
  color: #2563eb;
  font-weight: 700;
}

/* Partners Bar */
.report-partners-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.partner-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
}

.partner-bar-title i {
  color: #ef4444;
  font-size: 1.25rem;
}

.partner-logos-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-role {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}

.partner-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.partner-name {
  font-size: 0.92rem;
  color: #0f172a;
}

.partner-divider {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* 4-Step Story Timeline */
.report-story-timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.story-step-item {
  display: flex;
  gap: 22px;
  position: relative;
}

.story-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.marker-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  z-index: 2;
}

.marker-dot.last {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.marker-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, #f59e0b 0%, #fed7aa 100%);
  margin-top: 8px;
  border-radius: 2px;
}

.story-step-content {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
}

.story-step-content:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12);
}

.story-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.story-step-tag {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.story-step-tag.highlight-tag {
  background: #fee2e2;
  color: #b91c1c;
}

.story-step-tag.highlight-green-tag {
  background: #d1fae5;
  color: #065f46;
}

.story-step-title {
  font-size: 1.32rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
}

.story-step-date {
  font-size: 0.84rem;
  color: #64748b;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.story-step-desc {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.68;
  margin-bottom: 20px;
  word-break: keep-all;
}

.quote-highlight {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  margin: 8px 0;
  border-left: 3px solid #f59e0b;
}

/* Photo Grid within Story Steps */
.story-photo-grid {
  display: grid;
  gap: 16px;
}

.story-photo-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.story-photo-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.story-photo-grid.cols-1 {
  grid-template-columns: 1fr;
}

.story-photo-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.story-photo-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.photo-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.story-photo-card.featured-card .photo-img-wrap {
  aspect-ratio: 16 / 10;
  max-height: 480px;
}

.photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-photo-card:hover .photo-img-wrap img {
  transform: scale(1.06);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.story-photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-caption {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.caption-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
}

.caption-badge.highlight {
  background: #fef3c7;
  color: #b45309;
}

.caption-badge.highlight-green {
  background: #d1fae5;
  color: #065f46;
}

.caption-text {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.4;
  word-break: keep-all;
}

/* Step 4 Placeholder Card for Extra Photos */
.story-photo-card.placeholder-card {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.story-photo-card.placeholder-card:hover {
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}

.placeholder-content {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.placeholder-content .placeholder-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.placeholder-content .placeholder-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.placeholder-content .placeholder-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  word-break: keep-all;
}

.c-card-tag.highlight-green {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Gratitude Banner */
.report-gratitude-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2);
}

.gratitude-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #ffffff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.gratitude-content h4 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: #fef08a;
  letter-spacing: -0.4px;
}

.gratitude-content p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

/* ==========================================================================
   Ceremony Modal: Preview Section inside Ceremony Modal
   ========================================================================== */
.ceremony-modal-card {
  max-width: 680px !important;
}

.ceremony-report-preview {
  margin: 20px 20px 10px;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.c-preview-header {
  text-align: center;
  margin-bottom: 14px;
}

.c-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.c-preview-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}

.c-preview-desc {
  font-size: 0.8rem;
  color: #78350f;
  margin: 0;
}

.c-preview-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.c-preview-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.c-preview-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.2);
}

.c-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.c-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-preview-card:hover .c-card-thumb img {
  transform: scale(1.08);
}

.c-card-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.c-card-tag.highlight {
  background: #dc2626;
}

.c-card-info {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.c-card-info strong {
  font-size: 0.76rem;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-card-info span {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-preview-cta {
  display: flex;
  justify-content: center;
}

.btn-report-go {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

.btn-report-go:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

/* ==========================================================================
   Modal 4 & 7: Fullscreen Lightbox Viewers (Runner Photo & Result Report)
   ========================================================================== */
.lightbox-backdrop {
  z-index: 3500 !important;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease forwards;
}

.lightbox-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65);
}

.photo-lightbox-card {
  max-width: 540px;
  width: 92%;
  background: #ffffff;
  border-radius: 20px;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.report-lightbox-card {
  max-width: 920px;
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  animation: ceremonyModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 100 !important;
  pointer-events: auto !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn * {
  pointer-events: none;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.lightbox-nav-btn:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev-btn {
  left: 16px;
}

.lightbox-nav-btn.next-btn {
  right: 16px;
}

.lightbox-image-wrap {
  width: 100%;
  height: 60vh;
  min-height: 320px;
  max-height: 540px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.lightbox-caption-wrap {
  padding: 20px 24px 24px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  color: #ffffff;
}

.lightbox-caption-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lightbox-step-tag {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.lightbox-counter {
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
}

.lightbox-title {
  font-size: 1.28rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: keep-all;
}

.lightbox-meta {
  display: flex;
  gap: 16px;
  font-size: 0.84rem;
  color: #64748b;
}

.lightbox-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Sticky Bar: 결과보고 버튼 */
.btn-m-report {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #b45309;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  gap: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-m-report i {
  font-size: 1.05rem;
}

/* ==========================================================================
   Responsive Breakpoints for Report & Lightbox
   ========================================================================== */
@media (max-width: 992px) {
  .report-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-photo-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .result-report-section {
    padding: 40px 0 48px;
  }
  .report-main-title {
    font-size: 1.6rem;
  }
  .report-subtitle {
    font-size: 0.95rem;
  }
  .story-step-item {
    gap: 14px;
  }
  .story-step-marker {
    width: 34px;
  }
  .marker-dot {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .story-step-content {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .story-step-title {
    font-size: 1.15rem;
  }
  .story-photo-grid.cols-2,
  .story-photo-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .report-gratitude-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
  .ceremony-report-preview {
    margin: 14px 10px 8px;
    padding: 14px 10px;
  }
  .c-preview-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .lightbox-image-wrap {
    height: 48vh;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .report-kpi-grid {
    grid-template-columns: 1fr;
  }
  .report-badge-row {
    flex-direction: column;
  }
  .btn-outline-ceremony-sm {
    width: 100%;
    justify-content: center;
  }
  .report-partners-bar {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .partner-logos-row {
    width: 100%;
    justify-content: space-between;
  }
}
